.custom-med-backdrop{position:fixed;inset:0;z-index:10040;display:grid;place-items:center;background:rgba(0,0,0,.42);padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
.custom-med{--custom-med-inline:54px;--custom-med-scrollbar:12px;width:min(620px,100%);height:min(760px,100%);display:grid;grid-template-rows:auto 1fr auto;overflow:hidden;border-radius:34px;background:#fff;background:var(--startup-bg,#fff);color:#111;color:var(--startup-fg,#111);box-shadow:0 24px 70px rgba(0,0,0,.26)}
.custom-med header{display:grid;grid-template-columns:52px 1fr 52px;align-items:center;padding:18px 22px 10px;text-align:center}.custom-med header button{width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:color-mix(in srgb,currentColor 7%,transparent);color:inherit}.custom-med header div{display:grid}.custom-med header small{opacity:.6}
.custom-med__scroll{min-width:0;overflow-x:clip;overflow-y:auto;padding:28px var(--custom-med-inline) 36px;scrollbar-gutter:stable;overscroll-behavior:contain}.custom-med__scroll::-webkit-scrollbar{width:var(--custom-med-scrollbar)}.custom-med h2{font-size:clamp(30px,6vw,44px);line-height:1.08;margin:12px 0 28px}.custom-med h3{font-size:22px;margin:28px 0 12px}
.custom-med__field{min-width:0;display:grid;grid-gap:12px;gap:12px;font-size:24px;font-weight:700}.custom-med__field input{box-sizing:border-box;width:100%;min-width:0;min-height:76px;border:0;border-radius:28px;padding:0 28px;background:color-mix(in srgb,currentColor 6%,transparent);color:inherit;font:inherit;font-weight:400;outline:none}
.custom-med__sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.custom-med__choices{width:100%;min-width:0;overflow:hidden;border-radius:30px;background:color-mix(in srgb,currentColor 6%,transparent)}.custom-med__choices button{width:100%;min-width:0;min-height:70px;display:flex;align-items:center;justify-content:space-between;border:0;border-bottom:1px solid color-mix(in srgb,currentColor 10%,transparent);padding:0 28px;background:transparent;color:inherit;font-size:22px;text-align:left}.custom-med__choices button:last-child{border-bottom:0}.custom-med__choices .is-selected{font-weight:700}
.custom-med__preview{position:relative;isolation:isolate;overflow:hidden;width:150px;height:150px;margin:0 auto 28px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,color-mix(in srgb,var(--custom-bg) 68%,#fff) 0%,var(--custom-bg) 55%,color-mix(in srgb,var(--custom-bg) 78%,#000) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -2px 4px rgba(0,0,0,.1)}.custom-med__preview::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(145deg,rgba(255,255,255,.22),transparent 46%,rgba(0,0,0,.08))}.custom-med__preview span,.custom-med__shapes i{position:relative;display:block;width:68px;height:42px;border-radius:22px;background:linear-gradient(155deg,color-mix(in srgb,var(--custom-fg) 72%,#fff) 0%,var(--custom-fg) 58%,color-mix(in srgb,var(--custom-fg) 76%,#777) 100%);box-shadow:inset 0 2px 2px rgba(255,255,255,.82),inset 0 -2px 3px rgba(0,0,0,.14),0 7px 11px rgba(0,0,0,.22);transform:perspective(120px) rotateX(-8deg)}.custom-med__preview span::after,.custom-med__shapes i::after{content:"";position:absolute;inset:10% 12% 48%;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.72),transparent);filter:blur(.4px)}
.custom-med__shapes{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:18px;gap:18px}.custom-med__shapes button{border:2px solid transparent;border-radius:24px;padding:14px 6px;background:color-mix(in srgb,currentColor 6%,transparent);color:inherit}.custom-med__shapes button.is-selected{border-color:currentColor;background:color-mix(in srgb,currentColor 12%,transparent)}.custom-med__shapes i{margin:auto;width:54px;height:36px}.custom-med__shapes span{display:block;margin-top:8px;font-size:12px}
.custom-med__preview.is-round span,.custom-med__shapes i.is-round{aspect-ratio:1;height:auto;border-radius:50%;background:radial-gradient(circle at 34% 26%,color-mix(in srgb,var(--custom-fg) 58%,#fff) 0 10%,var(--custom-fg) 54%,color-mix(in srgb,var(--custom-fg) 70%,#666) 100%)}
.custom-med__preview.is-round span{width:62px}.custom-med__shapes i.is-round{width:44px}
.custom-med__preview.is-square span,.custom-med__shapes i.is-square{aspect-ratio:1;height:auto;border-radius:20%}.custom-med__preview.is-square span{width:62px}.custom-med__shapes i.is-square{width:44px}
.custom-med__preview.is-diamond span,.custom-med__shapes i.is-diamond{aspect-ratio:1;height:auto;border-radius:20%;transform:perspective(120px) rotateX(-8deg) rotate(45deg)}.custom-med__preview.is-diamond span{width:58px}.custom-med__shapes i.is-diamond{width:42px}
.custom-med__preview.is-triangle span,.custom-med__shapes i.is-triangle{width:68px;height:58px;border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%)}.custom-med__shapes i.is-triangle{width:52px;height:42px}
.custom-med__preview.is-oval span,.custom-med__shapes i.is-oval{width:72px;height:48px;border-radius:50%}.custom-med__shapes i.is-oval{width:56px;height:36px}
.custom-med__preview.is-oblong span,.custom-med__shapes i.is-oblong{width:78px;height:36px;border-radius:999px}.custom-med__shapes i.is-oblong{width:58px;height:30px}
.custom-med__preview.is-freeform span,.custom-med__shapes i.is-freeform{width:68px;height:54px;border-radius:48% 58% 42% 62%;transform:perspective(120px) rotateX(-8deg) rotate(-8deg)}.custom-med__shapes i.is-freeform{width:52px;height:40px}
.custom-med__colors>div{display:grid;grid-template-columns:repeat(6,1fr);grid-gap:18px;gap:18px}.custom-med__colors button{aspect-ratio:1;border:4px solid transparent;border-radius:50%}.custom-med__colors button.is-selected{outline:3px solid #8e8e93;outline-offset:4px}.custom-med__field+.custom-med__review{margin-block-start:18px}.custom-med__review{min-width:0;display:grid;grid-gap:10px;gap:10px;overflow:clip;padding:28px;border-radius:28px;background:color-mix(in srgb,currentColor 6%,transparent)}.custom-med__review>*{min-width:0;overflow-wrap:anywhere}.custom-med__review strong{font-size:30px}.custom-med__review span{font-size:18px;opacity:.65}
.custom-med__management{display:grid;grid-template-columns:1fr 1fr;grid-gap:12px;gap:12px;margin-top:18px}.custom-med__management button{min-height:54px;border:0;border-radius:20px;background:color-mix(in srgb,currentColor 7%,transparent);color:inherit;font-weight:700}.custom-med__management .is-danger{color:#ff3b30}
.custom-med footer{display:grid;grid-gap:10px;gap:10px;padding:14px calc(var(--custom-med-inline) + var(--custom-med-scrollbar)) max(24px,env(safe-area-inset-bottom)) var(--custom-med-inline);background:linear-gradient(transparent,#fff 20%);background:linear-gradient(transparent,var(--startup-bg,#fff) 20%)}.custom-med footer button{min-height:64px;border:0;border-radius:28px;background:#111;color:#fff;font-size:20px;font-weight:700}.custom-med footer button:disabled{opacity:.35}.custom-med footer .is-secondary{background:color-mix(in srgb,currentColor 6%,transparent);color:inherit}.custom-med footer .is-confirm{background:light-dark(#1c1c1e,#f2f2f7);color:light-dark(#fff,#111)}
.theme-dark .custom-med{background:#1c1c1e;color:#f2f2f7;box-shadow:0 28px 76px rgba(0,0,0,.58)}
.theme-dark .custom-med header button{background:#2c2c2e;color:#f2f2f7}
.theme-dark .custom-med__scroll{scrollbar-color:#8e8e93 #1c1c1e}
.theme-dark .custom-med__field input,
.theme-dark .custom-med__choices,
.theme-dark .custom-med__review,
.theme-dark .custom-med__management button,
.theme-dark .custom-med footer .is-secondary{background:#2c2c2e;color:#f2f2f7}
.theme-dark .custom-med__field input::placeholder{color:#8e8e93;opacity:1}
.theme-dark .custom-med__choices button{border-color:rgba(255,255,255,.12)}
.theme-dark .custom-med__shapes button{background:#2c2c2e;color:#f2f2f7}
.theme-dark .custom-med__shapes button.is-selected{border-color:#f2f2f7;background:#3a3a3c}
.theme-dark .custom-med__review span{color:#aeaeb2;opacity:1}
.theme-dark .custom-med footer{background:linear-gradient(transparent,#1c1c1e 20%)}
.theme-dark .custom-med footer button{background:#f2f2f7;color:#111}
.theme-dark .custom-med footer .is-confirm{background:#f2f2f7;color:#111}
@media(max-width:600px){.custom-med-backdrop{padding:0;place-items:end center}.custom-med{--custom-med-inline:clamp(38px,11vw,52px);width:100%;height:calc(100dvh - max(70px,70px));height:calc(100dvh - max(70px,var(--app-page-top-offset,70px)));border-radius:32px 32px 0 0}.custom-med__scroll{padding-block:22px 30px}.custom-med__shapes{grid-template-columns:repeat(3,1fr)}}

.portal-bottom-sheet__backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.35);
  animation: portalBottomSheetBackdropIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-bottom-sheet {
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  padding: 10px;
  background: #fff;
  background: var(--card, #fff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  box-shadow:
    0 16px 50px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
  animation: portalBottomSheetIn 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-bottom-sheet::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% - 1px);
  height: calc(0px + env(safe-area-inset-bottom, 0px));
  height: calc(var(--sheet-underhang, 0px) + var(--app-bottom-safe-reserve, env(safe-area-inset-bottom, 0px)));
  background: #fff;
  background: var(--card, #fff);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-right: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.portal-bottom-sheet.is-dragging,
.portal-bottom-sheet.is-closing-by-drag {
  animation: none;
}

.portal-bottom-sheet__header {
  position: relative;
  padding-top: 2px;
  cursor: grab;
  touch-action: none;
}

.portal-bottom-sheet__header-end {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.portal-bottom-sheet__header.is-handle-only {
  cursor: default;
}

.portal-bottom-sheet__handle {
  width: 36px;
  height: 4px;
  margin: 2px auto 10px;
  border-radius: 999px;
  
  background: rgba(120, 120, 128, 0.36);
}

.portal-bottom-sheet.is-dragging {
  transition: none;
}

.portal-bottom-sheet.is-closing-by-drag {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-bottom-sheet.is-dragging .portal-bottom-sheet__header {
  cursor: grabbing;
}

.portal-bottom-sheet__title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.portal-bottom-sheet__subtitle {
  margin-top: -4px;
  margin-bottom: 6px;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
}

.portal-bottom-sheet__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-dark .portal-bottom-sheet {
  background: #1b1b1b;
  background: var(--card, #1b1b1b);
  border-color: #2a2a2a;
  border-color: var(--border, #2a2a2a);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.46),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.theme-dark .portal-bottom-sheet::after {
  background: #1b1b1b;
  background: var(--card, #1b1b1b);
  border-left-color: #2a2a2a;
  border-left-color: var(--border, #2a2a2a);
  border-right-color: #2a2a2a;
  border-right-color: var(--border, #2a2a2a);
}

.theme-dark .portal-bottom-sheet__handle {
  background: rgba(174, 174, 178, 0.36);
}

@media (max-width: 519px) {
  .portal-bottom-sheet__backdrop {
    padding:
      max(10px, calc(env(safe-area-inset-top, 0px) + 8px))
      8px
      0;
    padding:
      max(10px, calc(var(--app-top-safe-reserve, env(safe-area-inset-top, 0px)) + 8px))
      8px
      0;
    align-items: flex-end;
  }

  .portal-bottom-sheet {
    width: 100%;
    max-width: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding:
      10px
      10px
      calc(10px + env(safe-area-inset-bottom, 0px));
    padding:
      10px
      10px
      calc(10px + var(--app-bottom-safe-reserve, env(safe-area-inset-bottom, 0px)));
    box-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.2) inset,
      0 -24px 48px rgba(0, 0, 0, 0.22);
    animation-duration: 0.46s;
  }

  .portal-bottom-sheet__header {
    padding-top: 4px;
  }
}

@keyframes portalBottomSheetBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes portalBottomSheetIn {
  0% {
    opacity: 0;
    transform: translateY(calc(100% + 24px)) scale(0.982);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.003);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.exp-schedule-sheet {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - 24px));
  max-height: min(820px, calc(100dvh - 0px - 24px));
  max-height: min(820px, calc(100dvh - var(--app-top-safe-reserve, 0px) - 24px));
  padding: 0;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  background: #fff;
  background: var(--card, #fff);
}


.exp-schedule-sheet .portal-bottom-sheet__header { box-sizing: border-box; min-height: 52px; padding: 0 72px 2px; }
.exp-schedule-sheet .portal-bottom-sheet__handle { margin: 0 auto; }
.exp-schedule-sheet .portal-bottom-sheet__title { margin: 2px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; overflow-wrap: anywhere; }
.exp-schedule-sheet .portal-bottom-sheet__subtitle { margin: 3px 0 8px; color: var(--sub); font-size: 13px; font-weight: 600; line-height: 1.3; }
.exp-schedule-sheet .portal-bottom-sheet__content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.exp-schedule-scroll {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 0 38px max(40px, env(safe-area-inset-bottom, 0px));
  padding: 0 38px max(40px, var(--app-bottom-safe-reserve, env(safe-area-inset-bottom, 0px)));
  scrollbar-gutter: stable;
}
.exp-schedule-sheet .portal-bottom-sheet__header-start { position: absolute; top: 50%; left: 18px; transform: translateY(-50%); }
.exp-schedule-back,
.exp-schedule-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: inherit; background: #f1f1f5; background: var(--surface-2, #f1f1f5); font-size: 30px; font-weight: 300; line-height: 1; }
.exp-schedule-hero { padding: 16px 0 30px; }
.exp-schedule-hero h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1.06; letter-spacing: -.035em; }
.exp-schedule-section { margin: 0 0 30px; }
.exp-schedule-section h3 { margin: 0 0 12px; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.02em; }
.exp-schedule-choice,
.exp-schedule-row,
.exp-schedule-time-list,
.exp-schedule-date-card { border: 0; border-radius: 24px; background: #f1f1f5; background: var(--surface-2, #f1f1f5); }
.exp-schedule-choice { position: relative; display: flex; align-items: center; min-height: 76px; padding: 0 20px; font-size: 21px; }
.exp-schedule-choice span { flex: 1 1; }
.exp-schedule-choice em { color: inherit; font-size: 18px; font-style: normal; font-weight: 750; }
.exp-schedule-choice select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.exp-schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 62px; padding: 0 20px; }
.exp-schedule-inline-input { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.exp-schedule-inline-input input { box-sizing: border-box; width: 82px; min-width: 82px; height: 42px; margin: 0; border: 0; border-radius: 14px; padding: 0 10px 0 14px; background: light-dark(#fff,#111); color: light-dark(#111,#fff); font: inherit; font-size: 18px; font-weight: 750; line-height: 42px; text-align: center; outline: none; }
.exp-schedule-inline-input input:focus-visible { outline: 3px solid color-mix(in srgb, currentColor 42%, transparent); outline-offset: 2px; }
.exp-schedule-inline-input input::-webkit-inner-spin-button { margin-left: 6px; opacity: .65; }
.exp-schedule-inline-input small { color: inherit; font-size: 15px; font-weight: 700; white-space: nowrap; }
.exp-schedule-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); grid-gap: 7px; gap: 7px; margin-top: 12px; padding: 12px; border: 0; background: #f1f1f5; background: var(--surface-2, #f1f1f5); }
.exp-schedule-weekday { aspect-ratio: 1; min-height: 0; border: 0; border-radius: 50%; background: #fff; background: var(--card, #fff); }
.exp-schedule-weekday.is-selected { color: #fff; background: #ff375f; background: var(--accent, #ff375f); }
.exp-schedule-time-list { overflow: hidden; }
.exp-schedule-time-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; grid-gap: 10px; gap: 10px; min-height: 70px; padding: 0 20px; border-bottom: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-time-row input { justify-self: start; border: 0; border-radius: 14px; padding: 8px 14px; background: color-mix(in srgb, #777 10%, transparent); background: color-mix(in srgb, var(--sub, #777) 10%, transparent); color: inherit; font: inherit; font-size: 21px; }
.exp-schedule-remove-time { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #ff3b4d; }
.exp-schedule-remove-time span,.exp-schedule-add-time>span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; color: transparent; font-size: 0; line-height: 0; }
.exp-schedule-remove-time span::before,.exp-schedule-add-time>span::before,.exp-schedule-add-time>span::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; border-radius: 999px; background: #fff; transform: translate(-50%, -50%); }
.exp-schedule-add-time>span::after { transform: translate(-50%, -50%) rotate(90deg); }
.exp-schedule-remove-time:disabled { opacity: .28; }
.exp-schedule-add-time { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 20px; border: 0; color: inherit; background: transparent; font-size: 19px; font-weight: 750; text-align: left; }
.exp-schedule-add-time>span { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: #30c759; }
.exp-schedule-hint { margin: 12px 6px 0; color: var(--sub); font-size: 15px; line-height: 1.35; }
.exp-schedule-date-card { overflow: hidden; padding: 0 20px; }

.exp-schedule-date-card label { display: grid; grid-template-columns: minmax(0, 84px) minmax(0, 1fr); grid-gap: 12px; gap: 12px; align-items: center; min-height: 72px; border-bottom: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-date-card label span { color: var(--sub); font-size: 13px; text-transform: uppercase; }

.exp-schedule-date-card label:only-child { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }

.exp-schedule-date-card input { justify-self: start; box-sizing: border-box; width: auto; max-width: 100%; min-width: 0; border: 0; border-radius: 14px; padding: 8px 10px; background: color-mix(in srgb, #777 10%, transparent); background: color-mix(in srgb, var(--sub, #777) 10%, transparent); color: inherit; font: inherit; font-size: 17px; text-align: left; }

.exp-schedule-date-card input::-webkit-calendar-picker-indicator { margin-left: 4px; padding: 0; opacity: .55; }
.exp-schedule-date-card button { min-height: 54px; border: 0; color: inherit; background: transparent; font-weight: 750; text-align: left; }
.exp-schedule-options { overflow: hidden; border-radius: 24px; background: #f1f1f5; background: var(--surface-2, #f1f1f5); }
.exp-schedule-options .exp-schedule-row { border-radius: 0; background: transparent; }
.exp-schedule-options .exp-schedule-row + .exp-schedule-row { border-top: 1px solid rgba(0,0,0,.08); border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-privacy-link { display: block; width: 100%; min-height: 44px; padding: 0 20px 14px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.exp-schedule-exact-alarms { padding: 16px 20px 18px; border-top: 1px solid rgba(0,0,0,.08); border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-exact-alarms strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.exp-schedule-exact-alarms p { margin: 6px 0 12px; color: var(--sub); font-size: 14px; line-height: 1.35; }
.exp-schedule-exact-alarms button { min-height: 44px; padding: 0 18px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 999px; color: inherit; background: #fff; background: var(--card, #fff); font: inherit; font-size: 15px; font-weight: 700; }
.theme-dark .exp-schedule-exact-alarms button { color: #fff; border-color: rgba(255,255,255,.2); background: #1c1c1e; }
.exp-schedule-phase-options { padding: 0 20px 18px; border-top: 1px solid rgba(0,0,0,.08); border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-phase-options h3 { margin: 18px 0 12px; font-size: 17px; letter-spacing: -.015em; }
.exp-schedule-phase-group { padding: 14px 0; border-top: 1px solid rgba(0,0,0,.08); border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.exp-schedule-phase-group:first-of-type { border-top: 0; }
.exp-schedule-phase-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; margin-bottom: 10px; }
.exp-schedule-phase-group strong { font-size: 16px; }
.exp-schedule-phase-group-title span { color: var(--sub); font-size: 13px; }
.exp-schedule-phase-group p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.35; }
.exp-schedule-phase-list { display: flex; flex-wrap: wrap; gap: 8px; }
.exp-schedule-phase-button { min-height: 38px; padding: 0 14px; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 999px; color: inherit; background: #fff; background: var(--card, #fff); font: inherit; font-size: 14px; font-weight: 700; }
.exp-schedule-phase-button.is-selected { color: #fff; border-color: #111; background: #111; }
.exp-schedule-options input[type="checkbox"] { position: relative; flex: 0 0 auto; width: 51px; height: 31px; margin: 0; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: color-mix(in srgb, #8e8e93 30%, transparent); background: color-mix(in srgb, var(--sub, #8e8e93) 30%, transparent); cursor: pointer; transition: background .18s ease; }
.exp-schedule-options input[type="checkbox"]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.24); transition: transform .18s ease; }
.exp-schedule-options input[type="checkbox"]:checked { background: #30c759; }
.exp-schedule-options input[type="checkbox"]:checked::after { transform: translateX(20px); }
.exp-schedule-options input[type="checkbox"]:focus-visible { outline: 3px solid color-mix(in srgb, currentColor 42%, transparent); outline-offset: 3px; }
.exp-schedule-confirm { width: 100%; min-height: 64px; border: 0; border-radius: 999px; color: light-dark(#fff,#111); background: light-dark(#111,#f2f2f7); font-size: 19px; font-weight: 800; }
.exp-schedule-confirm:disabled { opacity: .35; }
.theme-dark .exp-schedule-choice,
.theme-dark .exp-schedule-row,
.theme-dark .exp-schedule-time-list,
.theme-dark .exp-schedule-date-card,
.theme-dark .exp-schedule-options,
.theme-dark .exp-schedule-weekdays { background: #2c2c2e; }

.theme-dark .exp-schedule-back,
.theme-dark .exp-schedule-close { color: #fff; background: #2c2c2e; }
.theme-dark .exp-schedule-phase-button { color: #fff; border-color: rgba(255,255,255,.2); background: #1c1c1e; }
.theme-dark .exp-schedule-phase-button.is-selected { color: #111; border-color: #f2f2f7; background: #f2f2f7; }

@media (max-width: 519px) {
  .exp-schedule-sheet { width: 100%; max-height: calc(100dvh - 0px - 8px); max-height: calc(100dvh - var(--app-top-safe-reserve, 0px) - 8px); }
  .exp-schedule-scroll { padding-inline: 26px; }
  .exp-schedule-hero { padding-top: 10px; }
  .exp-schedule-phase-options { padding-inline: 16px; }
}

.medications-view {
  --med-accent: var(--accent, #087d8f);
  --med-accent-contrast: var(--accent-contrast, #17191f);
  --med-accent-soft: color-mix(in srgb, var(--med-accent) 13%, transparent);
  --med-bg: var(--bg, #fff);
  --med-fg: var(--fg, #17191f);
  --med-muted: var(--muted, #74747a);
  --med-surface: var(--card, color-mix(in srgb, currentColor 5%, transparent));
  --med-border: var(--border, color-mix(in srgb, currentColor 12%, transparent));
  --med-grouped: color-mix(in srgb, var(--med-fg) 3%, var(--med-bg));
  --med-row: color-mix(in srgb, var(--med-fg) 7%, var(--med-bg));
  width: min(100%, 760px);
  min-height: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 34px 28px calc(150px + env(safe-area-inset-bottom, 0px));
  overflow: visible;
  color: var(--med-fg);
}

.medications-hero,
.med-section-heading,
.med-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.medications-hero { margin: 8px 8px 54px; }
.medications-hero__date,
.med-section-heading__eyebrow,
.med-sheet__header p {
  margin: 0 0 4px;
  color: var(--med-accent);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .01em;
}
.med-section-heading__eyebrow {
  color: var(--med-muted);
  font-size: 13px;
  font-weight: 600;
}
.medications-hero h1 { margin: 0; font-size: clamp(42px, 7vw, 64px); font-weight: 750; line-height: .98; letter-spacing: -.045em; }

.med-date-strip {
  --med-calendar-accent: #ff2d55;
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 20px;
  border-bottom: 0;
}
.med-date-strip.is-empty { border-bottom-color: transparent; }
.med-date-strip__viewport {
  overflow: clip;
  touch-action: pan-y;
}
.med-date-strip__calendar.is-sliding-forward {
  animation: med-calendar-slide-forward 220ms cubic-bezier(.22, .75, .25, 1) both;
}
.med-date-strip__calendar.is-sliding-backward {
  animation: med-calendar-slide-backward 220ms cubic-bezier(.22, .75, .25, 1) both;
}
@keyframes med-calendar-slide-forward {
  from { opacity: .28; transform: translate3d(11%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes med-calendar-slide-backward {
  from { opacity: .28; transform: translate3d(-11%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.med-date-strip__days-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.med-date-strip__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-gap: 2px;
  gap: 2px;
}
.med-date-strip__native-picker {
  position: absolute;
  inset-block: 0;
  inline-size: calc((100% - 12px) / 7);
  opacity: 0;
  pointer-events: none;
}
.med-date-strip__native-picker.is-start { inset-inline-start: 0; }
.med-date-strip__native-picker.is-end { inset-inline-end: 0; }
.med-date-strip__day {
  position: relative;
  min-width: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 2px 0 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--med-muted);
  font: inherit;
  cursor: pointer;
}
.med-date-strip__day small {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}
.med-date-strip__day strong {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--med-fg) 5%, var(--med-bg));
  font-size: 16px;
  font-weight: 650;
  line-height: 40px;
}
.med-date-strip__day > i {
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--med-calendar-accent);
}
.med-date-strip__day.is-selected {
  
  background: var(--med-bg);
  color: var(--med-fg);
}
.med-date-strip__day.is-selected strong {
  background: var(--med-calendar-accent);
  color: #fff;
}
.med-date-strip__day.is-selected > i { background: var(--med-calendar-accent); }
.med-date-strip__day.is-calendar-edge {
  color: color-mix(in srgb, var(--med-muted) 58%, transparent);
}
.med-date-strip__day:focus { outline: 0; }
.med-date-strip__day:focus-visible strong,
.med-date-strip__day:focus-within strong {
  box-shadow: 0 0 0 2px var(--med-bg), 0 0 0 4px var(--med-calendar-accent);
}
.med-date-strip__label {
  position: relative;
  
  margin: 0 0 17px;
  color: var(--med-fg);
  font-size: clamp(22px, 3.5vw, 31px);
  font-weight: 740;
  line-height: 1.25;
  text-align: center;
  letter-spacing: -.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.med-date-strip__label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 0;
  height: 0;
  border-inline: 8px solid transparent;
  border-top: 10px solid var(--med-fg);
  transform: translateX(-50%);
}

.med-live {
  padding: 0 4px 22px;
}
.med-live-loading {
  min-height: 220px;
  display: grid;
  align-content: start;
  grid-gap: 10px;
  gap: 10px;
  padding: 54px 4px 0;
}
.med-live-loading > i {
  height: 78px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--med-fg) 5%, transparent);
}
.med-live-row__times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: color-mix(in srgb, currentColor 58%, transparent);
  font-size: 13px;
  letter-spacing: .04em;
}
.med-live__heading { display: flex; align-items: flex-start; justify-content: space-between; margin: 10px 0 14px; }
.med-live__heading p { margin: 0; color: color-mix(in srgb, currentColor 58%, transparent); font-size: 14px; }
.med-live__heading button {
  min-width: 0;
  height: auto;
  padding: 3px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--med-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.med-live-row__edit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin: 12px 0 0;
}
.med-live-row__edit-actions button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: var(--med-surface);
  color: var(--med-fg);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.med-live-row__edit-actions button.is-destructive { color: #d9363e; color: var(--danger, #d9363e); }
.med-live__substances {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 12px;
}
.med-live__substances::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 67px;
  bottom: 28px;
  left: 53px;
  width: 1px;
  background: color-mix(in srgb, var(--med-fg) 12%, transparent);
}
.med-live__timeline-now {
  position: relative;
  z-index: 2;
  display: block;
  height: 14px;
  margin: -4px 0 2px;
  pointer-events: none;
}
.med-live__timeline-now > i {
  position: absolute;
  top: 0;
  left: 46px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 3px solid var(--med-bg);
  border-radius: 50%;
  background: var(--med-calendar-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--med-calendar-accent) 24%, var(--med-bg)), 0 2px 6px color-mix(in srgb, var(--med-calendar-accent) 32%, transparent);
}
.med-live-status { min-width: 0; }
.med-live-status__heading {
  margin: 0 2px 10px;
  color: var(--med-fg);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.med-live-status__toggle {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.med-live-status__toggle .mdi {
  flex: 0 0 auto;
  color: var(--med-muted);
}
.med-live-status__toggle:focus { outline: 0; }
.med-live-status__toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--med-calendar-accent) 66%, transparent);
  outline-offset: 3px;
  border-radius: 7px;
}
.med-live-status__groups {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr;
  transition: grid-template-rows 260ms cubic-bezier(.2, .75, .25, 1);
}
.med-live-status__content {
  display: flex;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  gap: 19px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 260ms cubic-bezier(.2, .75, .25, 1);
}
.med-live-status.is-collapsed .med-live-status__groups {
  grid-template-rows: 0fr;
}
.med-live-status.is-collapsed .med-live-status__content {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .med-live-status__groups,
  .med-live-status__content {
    transition: none;
  }
}
.med-live-group { min-width: 0; }
.med-live-group__heading {
  position: relative;
  z-index: 1;
  background: var(--med-bg);
  box-shadow: 0 -4px 0 var(--med-bg), 0 4px 0 var(--med-bg);
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 7px;
  min-width: 0;
  color: var(--med-fg);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.med-live-group__name {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: break-word;
}
.med-live-group__color {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.med-live-group__color > i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--group-color);
  box-shadow: 0 0 0 2px var(--med-bg), 0 0 0 3px color-mix(in srgb, currentColor 10%, transparent);
}
.med-live-group__color > input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.med-live-group__color:focus-within {
  outline: 2px solid color-mix(in srgb, var(--med-accent) 65%, transparent);
  outline-offset: 2px;
}
.med-live-group__rows {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding-left: 62px;
}
.med-live-row__timeline-item {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.med-live-row__timeline-time {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: calc(100% + 14px);
  width: 46px;
  color: var(--med-muted);
  font-size: 10px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  text-align: right;
}
.med-live-row__timeline-time sup {
  display: inline-block;
  margin-left: 2px;
  color: var(--med-text);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  vertical-align: top;
}
.med-live-row__timeline-dot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: -14px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 2px solid var(--med-bg);
  border-radius: 50%;
  background: var(--timeline-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--timeline-color) 30%, var(--med-bg));
  transform: translateY(-50%);
}
.med-live-row {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 82px;
  padding: 10px 14px 9px;
  border: 1px solid var(--med-border);
  border-radius: 18px;
  
  background: var(--med-bg);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--med-fg) 6%, transparent),
    0 7px 18px color-mix(in srgb, var(--med-fg) 4%, transparent);
  color: var(--med-fg);
  text-align: left;
  cursor: default;
}

.theme-dark .med-live-row { background: var(--med-bg); }

.med-live-row__summary {
  display: grid;
  min-width: 0;
  min-height: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(112px, auto);
  grid-template-areas: "phase dose";
  align-items: center;
  grid-column-gap: 10px;
  column-gap: 10px;
  margin-bottom: 4px;
}
.med-live-row__summary small {
  width: 100%;
  min-width: 0;
  padding: 0;
  grid-area: dose;
  align-self: center;
  background: transparent;
  color: var(--med-fg);
  line-height: 1;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-align: right;
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.med-live-row__summary small strong {
  font-size: clamp(31px, 9vw, 42px);
  font-weight: 280;
  letter-spacing: -.045em;
  color: var(--med-fg);
  color: var(--dose-text-color, var(--med-fg));
}
.med-live-row__summary small span {
  margin-left: 3px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--med-fg);
  color: var(--dose-text-color, var(--med-fg));
}
.med-live-row__labels {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  grid-area: phase;
}
.med-live-row__summary em {
  min-width: 0;
  color: var(--med-fg);
  font-size: 13px;
  font-weight: 650;
  font-style: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
  
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.med-live-row__labels b {
  color: var(--med-fg);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.15;
}
.med-live-row__track { display: flex; gap: 4px; }
.med-live-row__track > i { min-width: 4px; height: 6px; flex-basis: 0; border-radius: 999px; background: color-mix(in srgb, var(--dose-color) 24%, var(--med-bg)); }

.med-live-row__track > i.is-past { background: var(--dose-color); }
.med-live-row__track > i.is-current { background: var(--dose-color); box-shadow: none; }
.med-live-row.is-placeholder .med-live-row__track > i {
  background: color-mix(in srgb, var(--med-muted) 22%, var(--med-bg));
}
.med-live-row__times { margin-top: 5px; color: var(--med-muted); font-size: 10px; }
.med-live__warning { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 15px 16px; border-radius: 18px; background: color-mix(in srgb, #d88b13 18%, transparent); background: color-mix(in srgb, var(--warning, #d88b13) 18%, transparent); color: #b56c00; color: var(--warning, #b56c00); font-size: 14px; line-height: 1.35; }
.med-live__warning span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: color-mix(in srgb, #d88b13 32%, transparent); background: color-mix(in srgb, var(--warning, #d88b13) 32%, transparent); font-size: 11px; }
.med-live__add { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--med-fg); color: var(--med-bg); font-size: 17px; font-weight: 750; cursor: pointer; }
.med-live__add--top {
  margin: 14px 4px 0;
  width: calc(100% - 8px);
  border: 1px solid var(--med-border);
  background: var(--med-bg);
  color: var(--med-fg);
}

.med-health {
  margin: 42px 0 0;
  padding: 0 4px;
  container: med-health / inline-size;
}
.med-health > h2 { margin: 0 8px 20px; font-size: clamp(28px, 4vw, 38px); line-height: 1.08; letter-spacing: -.035em; }
.med-health__water {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  grid-gap: 0 20px;
  gap: 0 20px;
  box-sizing: border-box;
  padding: 13px 20px;
  border: 0;
  border-radius: 20px;
  background: #31aee4;
  color: #fff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26);
  cursor: pointer;
}
.med-health__water > span,
.med-health__watch article > span { display: inline-flex; min-width: 0; align-items: center; gap: 7px; font-size: 15px; font-weight: 650; }
.med-health__water > strong {
  min-width: max-content;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: clamp(36px, 8cqi, 54px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.045em;
  text-align: right;
}

.med-health__water > small { align-self: start; max-width: min(100%, 32ch); color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.18; text-wrap: balance; }
.med-health__watch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-top: 10px;
}
.med-health__watch article {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  grid-gap: 8px;
  gap: 8px;
  box-sizing: border-box;
  padding: 15px;
  border-radius: 18px;
  background: var(--med-bg);
  box-shadow: 0 0 0 1px var(--med-border);
}
.med-health__watch article > span {
  max-width: 100%;
  color: var(--med-muted);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.med-health__watch article > strong {
  min-width: max-content;
  align-self: end;
  justify-self: end;
  max-width: 100%;
  font-size: clamp(20px, 4cqi, 28px);
  line-height: 1;
  letter-spacing: -.03em;
  text-align: right;
  white-space: nowrap;
}

@container med-health (max-width: 560px) {
  .med-health__watch { grid-template-columns: 1fr; }
  .med-health__watch article {
    min-height: 82px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
  }
  .med-health__watch article > span {
    max-width: 16ch;
    overflow-wrap: normal;
  }
  .med-health__watch article > strong {
    align-self: center;
    font-size: clamp(22px, 7cqi, 29px);
  }
}

.med-icon-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--med-accent) 12%, var(--med-bg));
  color: var(--med-accent);
  font: 400 34px/1 system-ui;
  cursor: pointer;
}

.med-log,
.med-info {
  margin: 0;
  padding: 44px 0 30px;
  background: transparent;
}
.med-log { padding-top: 40px; }
.med-log.is-populated {
  padding-bottom: 26px;
  
  background: var(--med-bg);
}
.med-log__recents > h3 {
  margin: 0 8px 16px;
  color: var(--med-fg);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
}
.med-info { padding-top: 38px; padding-bottom: 48px; }
.med-section-heading { margin: 0 8px 22px; align-items: flex-end; }
.med-section-heading h2,
.med-info > h2,
.med-sheet h2 { margin: 0; font-size: clamp(28px, 4vw, 38px); font-weight: 760; line-height: 1.08; letter-spacing: -.035em; }
.med-section-heading > button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--med-accent);
  font-size: 17px;
  font-weight: 650;
  cursor: pointer;
}

.med-substance-list,
.med-info-list,
.med-picker-list {
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: var(--med-row);
}

.med-substance-row {
  width: 100%;
  min-height: 126px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px 0 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--med-fg) 10%, transparent);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-substance-row:last-child { border-bottom: 0; }

.med-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 112px;
  height: 126px;
  margin-right: 22px;
  border-radius: 28px 0 0 28px;
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.48), inset 0 -1px 0 rgba(0,0,0,.08);
}
.med-mark::after { content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(145deg,rgba(255,255,255,.22) 0%,transparent 42%,rgba(0,0,0,.08) 100%);pointer-events:none }
.med-mark--coral { background: linear-gradient(145deg, #ff8a76 0%, #ff625f 48%, #ed3858 100%); }
.med-mark--green { background: linear-gradient(145deg, #67d6ad 0%, #34c79b 50%, #169278 100%); }
.med-mark--violet { background: linear-gradient(145deg, #b99aff 0%, #8e6ee8 48%, #6750c8 100%); }
.med-mark--amber { background: linear-gradient(145deg, #ffc867 0%, #f5a438 52%, #e57d22 100%); }
.med-mark--blue { background: linear-gradient(145deg, #66d3f5 0%, #32ade6 50%, #1684c1 100%); }
.med-mark--custom { background:linear-gradient(145deg,color-mix(in srgb,var(--med-custom-bg) 68%,#fff) 0%,var(--med-custom-bg) 55%,color-mix(in srgb,var(--med-custom-bg) 78%,#000) 100%) }
.med-custom-shape { position:relative;width:52%;height:34%;display:block;border-radius:999px;background:linear-gradient(155deg,color-mix(in srgb,var(--med-custom-fg) 72%,#fff) 0%,var(--med-custom-fg) 58%,color-mix(in srgb,var(--med-custom-fg) 76%,#777) 100%);box-shadow:inset 0 2px 2px rgba(255,255,255,.8),inset 0 -2px 3px rgba(0,0,0,.13),0 7px 10px rgba(0,0,0,.22);transform:perspective(120px) rotateX(-8deg) }
.med-custom-shape::after { content:"";position:absolute;inset:10% 12% 48%;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.72),transparent);filter:blur(.4px) }
.med-custom-shape.is-round { width:42%;aspect-ratio:1;height:auto;border-radius:50%;background:radial-gradient(circle at 34% 26%,color-mix(in srgb,var(--med-custom-fg) 58%,#fff) 0 10%,var(--med-custom-fg) 54%,color-mix(in srgb,var(--med-custom-fg) 70%,#666) 100%) }
.med-custom-shape.is-square { width:42%;aspect-ratio:1;height:auto;border-radius:18% }
.med-custom-shape.is-diamond { width:38%;aspect-ratio:1;height:auto;border-radius:18%;transform:perspective(120px) rotateX(-8deg) rotate(45deg) }
.med-custom-shape.is-triangle { width:48%;height:42%;border-radius:0;clip-path:polygon(50% 0,100% 100%,0 100%) }
.med-custom-shape.is-oval { width:52%;height:38%;border-radius:50% }
.med-custom-shape.is-oblong { width:58%;height:30% }
.med-custom-shape.is-freeform { width:46%;height:42%;border-radius:48% 58% 42% 62%;transform:perspective(120px) rotateX(-8deg) rotate(-8deg) }

.med-substance-row__copy,
.med-picker-list button > span:nth-child(2) { display: flex; min-width: 0; flex: 1 1; flex-direction: column; gap: 5px; }
.med-substance-row strong,
.med-add-row strong,
.med-picker-list strong { font-size: 23px; line-height: 1.15; }
.med-substance-row small,
.med-add-row small,
.med-picker-list small { color: color-mix(in srgb, currentColor 52%, transparent); font-size: 17px; line-height: 1.28; }
.med-substance-row__status { color: var(--med-accent); font-size: 14px; font-weight: 700; }
.med-chevron { color: color-mix(in srgb, currentColor 28%, transparent); font-size: 42px; font-weight: 300; line-height: 1; }

.med-add-row {
  width: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px 22px;
  border: 0;
  border-radius: 28px;
  background: var(--med-row);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-add-row > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.med-add-row strong { color: var(--med-fg); }
.med-add-row__plus { color: var(--med-fg); font-size: 38px; font-weight: 300; }
.med-add-row--ingestion {
  min-height: 82px;
  justify-content: space-between;
  margin-top: 22px;
  padding: 15px 24px;
  border: 1px solid var(--med-border);
  background: var(--med-bg);
}
.med-add-row--ingestion > span:last-child {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--med-fg);
}
.med-add-row--ingestion strong {
  color: var(--med-fg);
  font-size: 22px;
}

.med-info > h2 { margin: 0 8px 20px; }
.med-live + .med-info { margin-top: 42px; }
.med-info-list button {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 17px 22px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--med-fg) 10%, transparent);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-info-list button:last-child { border-bottom: 0; }
.med-info-list button > span:first-child { font-size: 21px; font-weight: 550; }
.med-info-list button small { grid-column: 1; color: color-mix(in srgb, currentColor 50%, transparent); font-size: 16px; }
.med-info-list button.is-emergency > span:first-child { color: #d9363e; color: var(--danger, #d9363e); }
.med-info-list .med-chevron { grid-column: 2; grid-row: 1 / span 2; }
.med-info-list button:disabled { cursor: default; opacity: .45; }
.med-now-footer {
  margin: 42px 8px 0;
  color: var(--med-muted);
  font-size: 12px;
  line-height: 1.4;
  opacity: .82;
  text-align: center;
  text-wrap: balance;
}

.med-context-sheet__body {
  min-height: 0;
  flex: 1 1;
  overflow-y: auto;
  margin-top: 28px;
  padding-bottom: 12px;
  overscroll-behavior: contain;
}
.med-context-sheet__body.is-health {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
}
.med-context-sheet .med-health.is-compact {
  margin: 0;
  padding: 0 2px 18px;
}
.med-context-sheet .med-health.is-compact .med-health__water {
  min-height: 98px;
}
.med-context-card,
.med-context-tip {
  margin: 0 0 12px;
  padding: 18px;
  border-radius: 20px;
  background: var(--med-surface);
}
.med-context-card__heading { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.med-context-card strong { font-size: 17px; }
.med-context-card span { color: #c67600; color: var(--warning, #c67600); font-size: 14px; font-weight: 700; }
.med-context-card p,
.med-context-tip p { margin: 9px 0 0; color: var(--med-muted); line-height: 1.45; }
.med-context-tip { display: grid; grid-template-columns: 28px 1fr; grid-gap: 10px; gap: 10px; }
.med-context-tip__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #1f9d55;
  color: var(--success, #1f9d55);
}
.med-context-tip__copy { min-width: 0; }
.med-context-tip__copy small {
  display: block;
  margin: 0 0 7px;
  color: var(--med-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
}
.med-context-tip p { margin: 0; }
.med-context-empty { margin: 0; padding: 28px 18px; color: var(--med-muted); text-align: center; line-height: 1.45; }

.med-context-note { margin: 0; padding: 22px 18px 4px; color: var(--med-muted); text-align: center; line-height: 1.45; }
.med-context-nav { display: none; }
.med-context-pagination { display: none; }
.med-context-sheet__body.is-paged {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-gap: 0;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.med-context-sheet__body.is-paged::-webkit-scrollbar { display: none; }
.med-context-sheet__body.is-paged > .med-context-tip-page,
.med-context-sheet__body.is-paged > .med-context-empty {
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
}
.med-context-sheet__body.is-paged > .med-context-tip-page { margin-inline: 2px; }
.med-context-tip-page {
  min-width: 0;
  padding: 4px 2px 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-align: start;
}
.med-context-tip-page h3 {
  margin: 0 8px 14px;
  color: var(--med-fg);
  font-size: 14px;
}
.med-context-tip-page__list { display: grid; grid-gap: 12px; gap: 12px; }
.med-context-tip-page__list .med-context-tip { margin: 0; }
.med-context-sheet.is-safer-pager .med-context-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px 0;
}
.med-context-sheet.is-safer-pager .med-context-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.med-context-sheet.is-safer-pager .med-context-pagination {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 44px;
  padding: 6px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.med-context-sheet.is-safer-pager .med-context-pagination::-webkit-scrollbar { display: none; }
.med-context-sheet.is-safer-pager .med-context-nav__back {
  background: color-mix(in srgb, var(--med-fg) 12%, transparent);
  color: var(--med-fg);
}
.med-context-sheet.is-safer-pager .med-context-nav__next {
  margin-left: auto;
  background: var(--med-fg);
  color: var(--med-bg);
}
.med-context-sheet.is-safer-pager .med-context-pagination__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--med-fg) 28%, transparent);
  cursor: pointer;
}
.med-context-sheet.is-safer-pager .med-context-pagination__dot.is-active {
  width: 22px;
  background: color-mix(in srgb, var(--med-fg) 94%, transparent);
}

.med-sheet-backdrop {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 12, 18, .46);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
html.med-picker-open #nav-rail-portal-host,
body.med-picker-open #nav-rail-portal-host,
html.med-picker-open.app-modal-open #nav-rail-portal-host,
body.med-picker-open.app-modal-open #nav-rail-portal-host { display: none !important; }
.med-sheet {
  --med-accent: var(--accent, #087d8f);
  --med-surface: var(--card, #fff);
  --med-border: var(--border, #d8d9dd);
  --med-sheet-bg: light-dark(#fff, #1c1c1e);
  --med-sheet-list-bg: light-dark(#f2f2f7, #2c2c2e);
  --med-sheet-inline: 24px;
  width: min(100%, 620px);
  height: min(760px, calc(100dvh - 44px - 40px));
  height: min(760px, calc(100dvh - var(--app-floating-content-top-offset, 44px) - 40px));
  max-height: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 24px 0;
  border: 0;
  border-radius: 34px;
  background: var(--med-sheet-bg);
  color: #17191f;
  color: var(--med-fg, var(--fg, #17191f));
  box-shadow: 0 28px 70px rgba(0,0,0,.38);
  animation: med-sheet-in 220ms cubic-bezier(.2,.75,.25,1);
}
.med-sheet__grabber { display: none; }

.med-sheet__header { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; grid-gap: 10px; gap: 10px; margin-top: 10px; }
.med-sheet__title { min-width: 0; text-align: center; }
.med-sheet__title h2 { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.med-sheet__title p { margin: 2px 0 0; color: #74747a; color: var(--med-muted, var(--muted, #74747a)); font-size: 13.5px; font-weight: 500; }
.med-sheet__header-spacer { width: 44px; height: 44px; }
.med-sheet__header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--med-surface);
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.med-sheet__header button[aria-label="Back"] { font-size: 32px; line-height: .8; }
.med-sheet__intro { margin: 16px 2px 20px; color: color-mix(in srgb, currentColor 62%, transparent); font-size: 16px; line-height: 1.4; }
.med-sheet-search {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 26px;
  padding: 0 17px;
  border: 0;
  border-radius: 16px;
  background: var(--med-surface);
}
.med-sheet-search__icon { color: color-mix(in srgb, currentColor 48%, transparent); font-size: 27px; line-height: 1; transform: rotate(-20deg); }
.med-sheet-search input {
  min-width: 0;
  flex: 1 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 17px;
}
.med-sheet-search input::placeholder { color: color-mix(in srgb, currentColor 48%, transparent); opacity: 1; }
.med-sheet-search > button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 11%, transparent);
  color: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}
.med-sheet__list-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
  margin: 0 calc(-1 * var(--med-sheet-inline));
  padding: 26px 28px 14px;
  background: var(--med-sheet-list-bg);
}
.med-sheet__list-heading h3 { margin: 0; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; }
.med-sheet__list-heading span { color: #74747a; color: var(--med-muted, var(--muted, #74747a)); font-size: 13px; }
.med-sheet > .med-picker-list {
  min-height: 0;
  flex: 1 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(-1 * var(--med-sheet-inline));
  padding: 0 var(--med-sheet-inline);
  border-radius: 0;
  background: var(--med-sheet-list-bg);
}
.med-picker-list button {
  width: 100%;
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--med-border);
  background: var(--med-sheet-bg);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-picker-list > button:first-child,
.med-picker-list > .med-picker-list__row:first-child .med-substance-row { border-radius: 24px 24px 0 0; overflow: hidden; }
.med-picker-list > button:last-child,
.med-picker-list > .med-picker-list__row:last-child .med-substance-row { border-bottom: 0; border-radius: 0 0 24px 24px; overflow: hidden; }
.med-picker-list > button:only-child,
.med-picker-list > .med-picker-list__row:only-child .med-substance-row { border-radius: 24px; overflow: hidden; }
.med-picker-list .med-mark { width: 58px; height: 58px; border-radius: 50%; }
.med-picker-list .med-substance-row { min-height:116px;gap:0;padding:0 16px 0 0 }
.med-picker-list .med-substance-row .med-mark { width:96px;height:116px;margin-right:18px;border-radius:0 }
.med-picker-list > .med-substance-row:first-child .med-mark,
.med-picker-list > .med-picker-list__row:first-child .med-substance-row .med-mark { border-radius:24px 0 0 0 }
.med-picker-list > .med-substance-row:last-child .med-mark,
.med-picker-list > .med-picker-list__row:last-child .med-substance-row .med-mark { border-radius:0 0 0 24px }
.med-picker-list > .med-substance-row:only-child .med-mark,
.med-picker-list > .med-picker-list__row:only-child .med-substance-row .med-mark { border-radius:24px 0 0 24px }
.med-picker-list__add { color: var(--med-accent); font-size: 28px; }
.med-picker-list__row { position: relative; }
.med-picker-list__row--custom .med-substance-row { padding-right: 58px; }
.med-picker-list .med-picker-list__manage {
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
  cursor: pointer;
}
.med-picker-list__manage > span { font-style: normal; letter-spacing: 2px; }
.med-picker-list__empty { margin: 0; padding: 26px 18px; color: color-mix(in srgb, currentColor 55%, transparent); text-align: center; }
.med-route-list {
  min-height: 0;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 30px;
  border-radius: 22px;
  background: var(--med-surface);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.med-route-list > button {
  width: 100%;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--med-border);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-route-list > button:last-child { border-bottom: 0; }
.med-route-list strong { font-size: 20px; line-height: 1.15; }
.med-route-list small { color: color-mix(in srgb, currentColor 58%, transparent); font-size: 15px; }
.med-route-skeleton {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--med-border);
  border-radius: 21px;
  background: var(--med-surface);
}
.med-route-skeleton span { display: block; height: 15px; border-radius: 7px; background: color-mix(in srgb, currentColor 10%, transparent); }
.med-route-skeleton span:first-child { width: 38%; }
.med-route-skeleton span:last-child { width: 24%; height: 12px; }
.med-dose-step {
  min-height: 0;
  flex: 1 1;
  margin-top: 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 4px;
}
.med-dose-group { display: flex; flex-direction: column; gap: 0; margin: 0 0 30px; }
.med-dose-group h3 { margin: 0 4px 12px; font-size: 25px; line-height: 1.1; letter-spacing: -.025em; color: inherit; }
.med-dose-group > button:not(.med-dose-save) {
  width: 100%;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 17px;
  border: 0;
  border-bottom: 1px solid var(--med-border);
  border-radius: 0;
  background: var(--med-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.med-dose-group > button:not(.med-dose-save):nth-of-type(even) {
  background: color-mix(in srgb, var(--med-sheet-list-bg) 92%, var(--med-sheet-bg));
}
.med-dose-group > h3 + button { border-radius: 22px 22px 0 0; }
.med-dose-group > button:last-of-type { border-bottom: 0; border-radius: 0 0 22px 22px; }
.med-dose-group > h3 + button:last-of-type { border-radius: 22px; }
.med-dose-group > button > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.med-dose-group strong { font-size: 18px; line-height: 1.18; }
.med-dose-group small { color: color-mix(in srgb, currentColor 55%, transparent); font-size: 13px; }
.med-dose-group em { flex: 0 0 auto; color: color-mix(in srgb, currentColor 62%, transparent); font-size: 15px; font-style: normal; }
.med-dose-custom label,
.med-dose-price__field {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px;
  border: 0;
  border-radius: 22px;
  background: var(--med-surface);
}
.med-dose-custom input,
.med-dose-price__field input {
  min-width: 0;
  flex: 1 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 20px;
}
.med-dose-custom label > span,
.med-dose-price__field > span { color: color-mix(in srgb, currentColor 58%, transparent); font-size: 17px; }
.med-dose-price__heading { margin-top: 18px !important; font-size: 18px !important; }
.med-dose-save {
  min-height: 64px;
  margin-top: 12px;
  border: 0;
  border-radius: 22px;
  background: light-dark(#1c1c1e, #f2f2f7);
  color: light-dark(#fff, #111);
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
}
.med-dose-save:disabled { opacity: .35; cursor: default; }
.med-picker-skeleton {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--med-border);
}
.med-picker-skeleton:last-child { border-bottom: 0; }
.med-picker-skeleton__mark,
.med-picker-skeleton__copy span {
  position: relative;
  overflow: hidden;
  display: block;
  background: color-mix(in srgb, currentColor 10%, transparent);
}
.med-picker-skeleton__mark { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 18px; }
.med-picker-skeleton__copy { min-width: 0; flex: 1 1; display: flex; flex-direction: column; gap: 10px; }
.med-picker-skeleton__copy span:first-child { width: min(48%, 190px); height: 17px; border-radius: 7px; }
.med-picker-skeleton__copy span:last-child { width: min(72%, 290px); height: 13px; border-radius: 6px; }
.med-picker-skeleton__mark::after,
.med-picker-skeleton__copy span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, currentColor 12%, transparent), transparent);
  animation: med-skeleton-sweep 1.1s ease-in-out infinite;
}

@keyframes med-sheet-in { from { transform: translateY(35px); opacity: 0; } }
@keyframes med-skeleton-sweep { to { transform: translateX(100%); } }

@media (hover: hover) {
  .med-substance-row:hover,
  .med-info-list button:hover,
  .med-route-list > button:hover,
  .med-dose-group > button:not(.med-dose-save):hover { background: color-mix(in srgb, var(--med-accent) 7%, transparent); }
  .med-picker-list button:hover { background: var(--med-sheet-bg); }
  .med-icon-button:hover, .med-add-row:hover { filter: brightness(.96); }
}

@media (min-width: 521px) {
  .med-substance-list,
  .med-info-list,
  .med-add-row {
    background: var(--med-bg);
    box-shadow: 0 0 0 1px var(--med-border);
  }
}

@media (max-width: 520px) {
  .medications-view {
    --med-row: var(--med-bg);
    padding: 0px 18px 0;
  }
  .medications-hero { margin: 4px 2px 48px; }
  .medications-hero h1 { font-size: 43px; }
  .med-icon-button { width: 58px; height: 58px; }
  .med-log,
  .med-info,
  .med-health {
    margin-inline: -18px;
    padding-inline: 18px;
    background: var(--med-grouped);
  }
  .med-health { margin-top: 0; padding-top: 38px; }
  .med-health__watch article { min-height: 82px; }
  .med-health + .med-info { padding-top: 54px; }
  .med-info {
    padding-bottom: calc(198px + env(safe-area-inset-bottom, 0px));
  }
  .med-log { padding-top: 36px; }
  .med-log.is-populated { padding-bottom: 22px; }
  .med-date-strip {
    margin-bottom: 8px;
    padding-bottom: 14px;
  }
  .med-date-strip__label {
    margin-bottom: 15px;
    font-size: 22px;
  }
  .med-date-strip__day { min-height: 62px; }
  .med-date-strip__day strong { width: 35px; height: 35px; font-size: 15px; line-height: 35px; }
  .med-add-row--ingestion { min-height: 76px; margin-top: 18px; }
  .med-substance-row { min-height: 116px; padding: 0 16px 0 0; gap: 0; }
  .med-mark { width: 96px; height: 116px; margin-right: 18px; border-radius: 28px 0 0 28px; }
  .med-substance-row strong,
  .med-add-row strong { font-size: 21px; }
  .med-substance-row small,
  .med-add-row small { font-size: 15px; }
  .med-substance-row__status { display: none; }
  .med-section-heading > button { display: none; }
  .med-sheet-backdrop { padding: 0; }
  .med-live { margin: -4px 0 0; padding: 0 4px 20px; }
  .med-sheet {
    --med-sheet-inline: 20px;
    width: 100%;
    height: calc(100dvh - 52px);
    border-radius: 34px 34px 0 0;
    padding: 10px 20px 0;
  }
  .med-context-sheet__body {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    grid-gap: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .med-context-sheet__body::-webkit-scrollbar { display: none; }
  .med-context-sheet__body.is-list {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-snap-type: none;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--med-fg) 58%, transparent) transparent;
    scrollbar-gutter: stable;
    padding-right: 8px;
  }
  .med-context-sheet__body.is-health {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
  .med-context-sheet__body.is-list::-webkit-scrollbar {
    display: block;
    width: 6px;
  }
  .med-context-sheet__body.is-list::-webkit-scrollbar-track {
    background: transparent;
  }
  .med-context-sheet__body.is-list::-webkit-scrollbar-thumb {
    min-height: 44px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--med-fg) 58%, transparent);
  }
  .med-context-sheet__body > .med-context-card,
  .med-context-sheet__body > .med-context-tip-page,
  .med-context-sheet__body > .med-context-empty {
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-align: start;
  }
  .med-context-sheet__body > .med-context-card,
  .med-context-sheet__body > .med-context-tip-page { margin-inline: 2px; }
  .med-context-sheet__body.is-list > .med-context-card,
  .med-context-sheet__body.is-list > .med-context-tip {
    height: auto;
    min-height: 0;
    margin: 0 2px 12px;
    overflow: visible;
    scroll-snap-align: none;
  }
  .med-context-nav {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px 0;
  }
  .med-context-nav button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }
  .med-context-nav__back {
    background: color-mix(in srgb, var(--med-fg) 12%, transparent);
    color: var(--med-fg);
  }
  .med-context-nav__next {
    margin-left: auto;
    background: var(--med-fg);
    color: var(--med-bg);
  }
  .med-context-pagination {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 6px 0 0;
  }
  .med-context-pagination__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--med-fg) 28%, transparent);
    cursor: pointer;
  }
  .med-context-pagination__dot.is-active {
    width: 22px;
    background: color-mix(in srgb, var(--med-fg) 94%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .med-sheet { animation: none; }
  .med-date-strip__calendar.is-sliding-forward,
  .med-date-strip__calendar.is-sliding-backward { animation: none; }
  .med-picker-skeleton__mark::after,
  .med-picker-skeleton__copy span::after { animation: none; }
}
.med-create-custom{width:100%;min-height:68px;margin:14px 0;border:0;border-radius:24px;display:flex;align-items:center;gap:14px;padding:0 22px;background:color-mix(in srgb,currentColor 6%,transparent);color:inherit;font-size:18px;text-align:left}.med-create-custom span{font-size:28px;font-weight:300}

