/* ============================================================
   Volt — mylife UI concept
   Design tokens derived from mylife-diabetescare.com
   ============================================================ */

:root {
  --forest-900: #0B2419;
  --forest-800: #103222;
  --forest-700: #1A5136;
  --forest-600: #236044;
  --lime: #AAC811;
  --lime-bright: #BBD92A;
  --lime-300: #DAE49B;
  --lime-200: #F0F4D7;
  --cream: #F4F6EA;
  --canvas: #F2F4E8;
  --white: #FFFFFF;
  --ink: #103222;
  --ink-2: #3D5949;
  --muted: #718176;
  --muted-2: #96A399;
  --line: #E5E9DA;
  --blue: #006EB7;
  --blue-200: #E7F5FA;
  --blue-300: #C2E5F2;
  --red: #D84C42;
  --red-deep: #7F150B;
  --red-200: #FDEDF2;
  --amber: #E4A600;
  --amber-200: #FFF4B3;
  --green-online: #008A39;
  --grey-100: #F2F2F2;
  --grey-200: #E0E0E0;
  --grey-300: #B3B3B3;
  --grey-400: #868686;
  --grey-500: #595959;
  --grey-600: #2E2E2E;

  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --radius-pill: 999px;

  --font: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, "Liberation Sans", sans-serif;
  --shadow-card: 0 1px 2px rgba(16, 50, 34, .04), 0 12px 28px rgba(16, 50, 34, .07);
  --shadow-float: 0 20px 50px rgba(4, 18, 11, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: #071710;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

button, input { font-family: inherit; }
button { cursor: pointer; }
img { display: block; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   Studio shell
   ============================================================ */

.studio {
  height: 100vh;
  min-height: 720px;
  display: grid;
  grid-template-columns: 280px minmax(430px, 1fr) 300px;
}

.studio-sidebar {
  position: relative;
  z-index: 5;
  background: var(--forest-900);
  border-right: 1px solid rgba(255, 255, 255, .07);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 200, 17, .25) transparent;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.studio-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(170, 200, 17, .18);
}

.studio-brand strong {
  display: block;
  color: var(--white);
  font-size: 17px;
  letter-spacing: -.02em;
  font-weight: 700;
}

.studio-brand strong em {
  font-style: normal;
  color: var(--lime);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .06em;
  margin-left: 2px;
}

.studio-brand small {
  display: block;
  margin-top: 2px;
  color: rgba(218, 228, 155, .75);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.studio-intro { margin-top: 36px; }

.studio-kicker {
  display: inline-block;
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.studio-intro h1 {
  margin: 0;
  color: var(--white);
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}

.studio-intro p {
  margin: 12px 0 0;
  color: rgba(240, 244, 215, .58);
  font-size: 11.5px;
  line-height: 1.55;
}

.screen-nav {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: grid;
  grid-template-columns: 26px 1fr 14px;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 9px 9px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: rgba(240, 244, 215, .62);
  text-align: left;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .045);
  color: rgba(255, 255, 255, .88);
}

.nav-item.is-active {
  background: rgba(170, 200, 17, .11);
  border-color: rgba(170, 200, 17, .26);
  color: var(--white);
}

.nav-num {
  font-size: 8.5px;
  letter-spacing: .08em;
  color: rgba(218, 228, 155, .5);
  font-weight: 600;
}

.nav-item.is-active .nav-num { color: var(--lime); }

.nav-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.nav-copy small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: rgba(240, 244, 215, .38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item.is-active .nav-copy small { color: rgba(218, 228, 155, .62); }

.nav-item > .icon { width: 12px; height: 12px; opacity: .35; }

.studio-footer { margin-top: auto; padding-top: 26px; }

.palette { display: flex; gap: 7px; }

.palette span {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.studio-footer p {
  margin: 12px 0 0;
  color: rgba(240, 244, 215, .3);
  font-size: 8.5px;
  line-height: 1.5;
}

/* ============================================================
   Stage
   ============================================================ */

.studio-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 620px at 65% 28%, rgba(38, 96, 62, .55), transparent 62%),
    radial-gradient(700px 540px at 20% 95%, rgba(170, 200, 17, .1), transparent 60%),
    linear-gradient(150deg, #0E2A1D 0%, #071710 58%, #050F0A 100%);
}

.stage-aurora {
  position: absolute;
  top: -160px;
  right: 4%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 200, 17, .2), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.stage-pattern {
  position: absolute;
  right: -140px;
  bottom: -160px;
  width: 780px;
  height: 486px;
  background: url("assets/brand/pattern.svg") center / contain no-repeat;
  opacity: .055;
  pointer-events: none;
}

.stage-topbar {
  position: absolute;
  top: 22px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.stage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(240, 244, 215, .75);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}

.stage-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(170, 200, 17, .12);
}

.stage-sep { color: rgba(240, 244, 215, .25); }
.stage-muted { color: rgba(240, 244, 215, .32); }

.stage-controls { display: flex; gap: 8px; }

.stage-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .2s ease;
}

.stage-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.stage-btn--accent {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--forest-800);
}

.stage-btn--accent:hover { background: var(--lime-bright); color: var(--forest-800); }

.device-wrap {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
}

.device {
  width: 417px;
  height: 876px;
  padding: 12px;
  border-radius: 66px;
  background: linear-gradient(160deg, #4A5A50 0%, #182019 26%, #0A0E0B 70%, #2C3830 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .12),
    0 2px 3px rgba(255, 255, 255, .16) inset,
    0 46px 90px rgba(0, 0, 0, .62),
    0 12px 30px rgba(0, 0, 0, .45);
  position: relative;
}

.device::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 61px;
  border: 1px solid rgba(255, 255, 255, .07);
  pointer-events: none;
}

.device-island {
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 118px;
  height: 34px;
  border-radius: 20px;
  background: #000;
  z-index: 60;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}

.device-screen {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 54px;
  overflow: hidden;
  background: var(--canvas);
  isolation: isolate;
}

.device-caption {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: rgba(240, 244, 215, .3);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
}

.device-caption span + span::before {
  content: "·";
  margin-right: 18px;
  color: rgba(240, 244, 215, .18);
}

/* ============================================================
   Notes panel
   ============================================================ */

.studio-notes {
  position: relative;
  z-index: 5;
  padding: 30px 26px;
  background: rgba(8, 24, 16, .82);
  border-left: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notes-kicker {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lime);
}

.notes-index {
  font-size: 9px;
  color: rgba(240, 244, 215, .3);
  letter-spacing: .08em;
}

.studio-notes h2 {
  margin: 22px 0 0;
  color: var(--white);
  font-size: 24px;
  letter-spacing: -.03em;
  font-weight: 700;
}

.studio-notes > p {
  margin: 9px 0 0;
  color: rgba(240, 244, 215, .5);
  font-size: 11.5px;
  line-height: 1.6;
}

.notes-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notes-list li {
  position: relative;
  padding-left: 16px;
  color: rgba(240, 244, 215, .62);
  font-size: 10.5px;
  line-height: 1.5;
}

.notes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.notes-spec {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
}

.notes-spec div { display: flex; flex-direction: column; gap: 2px; }

.notes-spec span {
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(240, 244, 215, .3);
}

.notes-spec b {
  font-size: 10px;
  font-weight: 600;
  color: rgba(240, 244, 215, .78);
}

.notes-brand { margin-top: auto; padding-top: 26px; }

.notes-brand img { width: 132px; opacity: .92; }

.notes-brand p {
  margin: 12px 0 0;
  font-size: 9px;
  line-height: 1.55;
  color: rgba(240, 244, 215, .3);
}

/* ============================================================
   Status bar
   ============================================================ */

.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  padding: 15px 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 45;
  color: var(--forest-700);
  pointer-events: none;
  transition: color .25s ease;
}

.statusbar--light { color: #fff; }

.status-time {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.status-icons { display: flex; align-items: center; gap: 6px; }

.status-signal { width: 17px; height: 12px; fill: currentColor; }
.status-wifi { width: 16px; height: 12px; fill: currentColor; }

.status-battery {
  width: 24px;
  height: 12px;
  border: 1.4px solid currentColor;
  border-radius: 3.5px;
  position: relative;
  opacity: .95;
}

.status-battery::after {
  content: "";
  position: absolute;
  right: -3.4px;
  top: 3px;
  width: 2px;
  height: 4.5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
  opacity: .5;
}

.status-battery i {
  position: absolute;
  inset: 1.6px;
  border-radius: 1.6px;
  background: currentColor;
}

/* ============================================================
   Screens & shared phone UI
   ============================================================ */

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  background: var(--canvas);
  overflow: hidden;
}

.screen.is-active { display: flex; }

.scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 66px 20px 34px;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}

.scroll::-webkit-scrollbar { display: none; }

.scroll--tab { padding-bottom: 112px; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .055);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  color: var(--forest-700);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .18s ease, background .18s ease;
}

.icon-btn:active { transform: scale(.94); }

.icon-btn .icon { width: 19px; height: 19px; }

.icon-btn--on-dark {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(10px);
}

.icon-btn--sm { width: 34px; height: 34px; }
.icon-btn--sm .icon { width: 15px; height: 15px; }

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.app-brand-logo {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.app-brand em {
  font-style: normal;
  color: var(--lime);
  font-size: 10px;
  letter-spacing: .08em;
  margin-left: 1px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  border: none;
  color: var(--forest-800);
  background: var(--lime);
  flex-shrink: 0;
}

.avatar--header {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.avatar--lime {
  width: 42px;
  height: 42px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

/* Page headers */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-heading { flex: 1; }
.page-heading--center { text-align: center; }

.eyebrow {
  margin: 0 0 4px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.page-heading h1 {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.03;
  color: var(--forest-800);
}

.header-spacer { width: 40px; flex-shrink: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 23px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}

.chip--lime { background: var(--lime-200); color: var(--forest-700); }
.chip--soft { background: var(--grey-100); color: var(--muted); }
.chip--on-dark {
  background: rgba(255, 255, 255, .09);
  color: var(--lime-300);
  border: 1px solid rgba(255, 255, 255, .08);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.status-chip--on { background: #E6F2D8; color: var(--green-online); }
.status-chip--lime { background: var(--lime); color: var(--forest-800); }
.status-chip--manual { background: var(--red-200); color: var(--red-deep); }

.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(170, 200, 17, .16);
  animation: pulse-dot 2.6s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(170, 200, 17, .16); }
  50% { box-shadow: 0 0 0 5px rgba(170, 200, 17, .04); }
}

/* Buttons */
.primary-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--forest-700);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(16, 50, 34, .18);
  transition: transform .18s var(--ease), background .18s ease;
}

.primary-btn:hover { background: var(--forest-800); }
.primary-btn:active { transform: scale(.985); }
.primary-btn .icon { width: 17px; height: 17px; }

.primary-btn--lime {
  background: var(--lime);
  color: var(--forest-800);
  box-shadow: 0 12px 26px rgba(170, 200, 17, .22);
}

.primary-btn--lime:hover { background: var(--lime-bright); }

.primary-btn--sm {
  min-height: 38px;
  width: auto;
  flex: 1;
  font-size: 11px;
  box-shadow: none;
}

.secondary-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 50, 34, .14);
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 700;
}

.ghost-btn {
  min-height: 38px;
  flex: 1;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 50, 34, .12);
  background: transparent;
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 600;
}

.danger-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.text-btn {
  margin: 11px auto 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 600;
}

.text-btn .icon { width: 14px; height: 14px; }

.text-btn--on-dark { color: rgba(240, 244, 215, .75); }

.fineprint {
  margin: 10px 2px 0;
  text-align: center;
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--muted-2);
}

.fineprint--left { text-align: left; }

/* Toggle */
.toggle {
  width: 50px;
  height: 30px;
  border: none;
  border-radius: var(--radius-pill);
  background: #DDE3D2;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: background .22s ease;
}

.toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 50, 34, .22);
  transition: left .24s var(--ease), background .22s ease;
}

.toggle.is-on { background: var(--forest-700); }
.toggle.is-on span { left: 23px; background: var(--lime); }

.toggle--sm { width: 40px; height: 24px; }
.toggle--sm span { width: 18px; height: 18px; }
.toggle--sm.is-on span { left: 19px; }

/* Tab bar */
.tabbar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  height: 62px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 22px;
  border: 1px solid rgba(16, 50, 34, .07);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(24px);
  box-shadow: 0 14px 32px rgba(16, 50, 34, .14);
  z-index: 32;
  transition: opacity .2s ease, transform .25s var(--ease);
}

.tabbar.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.tab {
  border: none;
  background: transparent;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted-2);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 0;
  transition: background .2s ease, color .2s ease;
}

.tab .icon { width: 19px; height: 19px; stroke-width: 1.7; }

.tab.is-active { background: var(--lime-200); color: var(--forest-700); }

/* ============================================================
   Home
   ============================================================ */

.screen--home { background: var(--canvas); }

.home-hero {
  position: relative;
  flex-shrink: 0;
  padding: 61px 22px 60px;
  background:
    radial-gradient(360px 240px at 88% 6%, rgba(170, 200, 17, .16), transparent 70%),
    linear-gradient(160deg, var(--forest-800) 0%, var(--forest-900) 100%);
  border-radius: 0 0 34px 34px;
  overflow: hidden;
  z-index: 1;
}

.hero-pattern {
  position: absolute;
  right: -108px;
  bottom: -46px;
  width: 430px;
  height: 268px;
  background: url("assets/brand/pattern.svg") center / contain no-repeat;
  opacity: .085;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 200, 17, .16), transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: 21px;
}

.hero-date {
  margin: 0 0 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(218, 228, 155, .65);
}

.hero-greeting {
  margin: 0 0 19px;
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.hero-glucose {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.glucose-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(240, 244, 215, .7);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .01em;
}

.glucose-label .live-dot { width: 5px; height: 5px; }

.glucose-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 2px 0 1px;
}

.glucose-number {
  font-size: 76px;
  line-height: .96;
  font-weight: 700;
  letter-spacing: -.06em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.glucose-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(218, 228, 155, .78);
  letter-spacing: .01em;
}

.glucose-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 23px;
  padding: 0 9px 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .11);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
}

.trend-pill .icon { width: 12px; height: 12px; color: var(--lime); stroke-width: 2; }

.glucose-time {
  font-size: 9.5px;
  color: rgba(240, 244, 215, .45);
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
}

.expand-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--lime);
  color: var(--forest-800);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .2s var(--ease), background .2s ease;
}

.expand-btn:hover { background: var(--lime-bright); transform: translateY(-1px); }
.expand-btn:active { transform: scale(.95); }
.expand-btn .icon { width: 22px; height: 22px; stroke-width: 2; }

.hero-device {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: rgba(240, 244, 215, .52);
  font-weight: 500;
}

.hero-device .live-dot { width: 4px; height: 4px; box-shadow: none; }

.home-scroll {
  margin-top: -35px;
  padding: 0 20px 116px;
  position: relative;
  z-index: 3;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.home-scroll::-webkit-scrollbar { display: none; }

.chart-card { padding: 16px; border-radius: 28px; }

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chart-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--forest-800);
}

.chart-head p {
  margin: 3px 0 0;
  font-size: 9.5px;
  color: var(--muted-2);
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
}

.mini-icon .icon { width: 15px; height: 15px; }

.chart-shell { width: 100%; position: relative; }
.chart-shell--home { height: 116px; margin-top: 8px; }
.chart-shell--stats { height: 148px; margin-top: 10px; }
.chart-shell--detail { height: 226px; margin-top: 12px; }

.chart-svg { display: block; width: 100%; height: 100%; overflow: visible; }

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(16, 50, 34, .06);
  font-size: 9px;
  color: var(--muted);
}

.legend { display: inline-flex; align-items: center; gap: 5px; }

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

.legend-dot--lime { background: var(--lime); }
.legend-dot--forest { background: var(--forest-700); }
.legend-dot--red { background: var(--red); }
.legend-dot--amber { background: #F2B705; }

.legend-bar {
  width: 13px;
  height: 7px;
  border-radius: 3px;
  background: var(--lime-200);
  display: inline-block;
}

.legend-line { width: 14px; height: 2px; border-radius: 2px; display: inline-block; }
.legend-line--blue { background: var(--blue); }
.legend-bar--lime { width: 13px; height: 7px; background: var(--lime-200); }

.legend-target {
  color: var(--muted-2);
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 15px 2px 8px;
}

.section-head h2 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--forest-800);
}

.section-head span {
  font-size: 8.5px;
  color: var(--muted-2);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-card {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 20px;
  border: 1px solid transparent;
  text-align: left;
  transition: transform .18s var(--ease), box-shadow .18s ease;
}

.quick-card:active { transform: scale(.98); }

.quick-card--boost {
  background: var(--lime);
  color: var(--forest-800);
  box-shadow: 0 8px 20px rgba(170, 200, 17, .18);
}

.quick-card--ease {
  background: var(--white);
  color: var(--forest-800);
  border-color: rgba(16, 50, 34, .06);
  box-shadow: var(--shadow-card);
}

.quick-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.quick-card--boost .quick-icon { background: rgba(16, 50, 34, .12); }
.quick-card--ease .quick-icon { background: var(--lime-200); }
.quick-icon .icon { width: 17px; height: 17px; }
.quick-card--boost .quick-icon .icon { fill: currentColor; stroke: none; }

.quick-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.quick-text strong {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.quick-text small { font-size: 8.5px; opacity: .62; }

.quick-chev {
  width: 12px;
  height: 12px;
  margin-left: auto;
  opacity: .38;
  flex-shrink: 0;
}

.auto-card {
  margin-top: 9px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
}

.auto-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--forest-700);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.auto-icon .icon { width: 18px; height: 18px; }

.auto-copy { flex: 1; min-width: 0; }

.auto-copy h3 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--forest-800);
  display: flex;
  align-items: center;
  gap: 5px;
}

.auto-copy p {
  margin: 2px 0 0;
  font-size: 8.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auto-card.is-off .auto-icon { background: var(--grey-200); color: var(--grey-500); }
.auto-card.is-off .status-chip { background: var(--red-200); color: var(--red-deep); }

.device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 9px;
}

.device-mini {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .055);
  border-radius: 17px;
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
  text-align: left;
}

.device-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.device-mini-icon .icon { width: 14px; height: 14px; }

.device-mini-copy { display: flex; flex-direction: column; min-width: 0; }

.device-mini-copy strong {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--forest-800);
  letter-spacing: -.005em;
  white-space: nowrap;
}

.device-mini-copy small { font-size: 8px; color: var(--muted-2); margin-top: 1px; }

.device-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-online);
  margin-left: auto;
  box-shadow: 0 0 0 2px rgba(0, 138, 57, .12);
}

/* Home active mode banner */
.mode-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px 12px;
  border-radius: 16px;
  background: var(--lime);
  color: var(--forest-800);
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(170, 200, 17, .16);
}

.mode-banner .icon { width: 14px; height: 14px; }
.mode-banner .mode-cancel {
  margin-left: auto;
  border: none;
  background: rgba(16, 50, 34, .12);
  color: var(--forest-800);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
}

.mode-banner .mode-cancel .icon { width: 10px; height: 10px; }

/* ============================================================
   Bolus
   ============================================================ */

.meal-card { padding: 16px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-head h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--forest-800);
}

.meal-icons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 17px 10px 2px;
}

.meal-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #BCC6B8;
  transition: all .22s var(--ease);
}

.meal-ico:nth-child(1) .icon { width: 13px; height: 13px; }
.meal-ico:nth-child(2) .icon { width: 17px; height: 17px; }
.meal-ico:nth-child(3) .icon { width: 21px; height: 21px; }
.meal-ico:nth-child(4) .icon { width: 26px; height: 26px; }

.meal-ico.is-active {
  background: var(--lime);
  color: var(--forest-800);
  box-shadow: 0 8px 18px rgba(170, 200, 17, .22);
}

.brand-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--lime) 0%, var(--lime) var(--fill, 40%), #E3E8D8 var(--fill, 40%), #E3E8D8 100%);
  margin: 20px 0 17px;
  outline: none;
}

.brand-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--forest-700);
  box-shadow: 0 3px 10px rgba(16, 50, 34, .22);
  cursor: grab;
}

.brand-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--forest-700);
  box-shadow: 0 3px 10px rgba(16, 50, 34, .22);
  cursor: grab;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: 8px;
  color: var(--muted-2);
}

.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.input-card { padding: 13px 14px; min-height: 104px; }

.card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.tiny-icon {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  padding: 0;
}

.tiny-icon .icon { width: 11px; height: 11px; }

.input-value {
  margin-top: 10px;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.input-value span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted-2);
}

.input-hint {
  margin: 3px 0 0;
  font-size: 8px;
  color: var(--muted-2);
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
}

.stepper button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: none;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  padding: 0;
}

.stepper button .icon { width: 13px; height: 13px; }

.stepper-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.stepper-value span {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.stepper-value small { font-size: 9.5px; color: var(--muted-2); }

.calc-card {
  margin-top: 10px;
  padding: 15px 16px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(280px 180px at 100% 0%, rgba(170, 200, 17, .15), transparent 70%),
    var(--forest-800);
  box-shadow: 0 14px 30px rgba(16, 50, 34, .2);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: rgba(240, 244, 215, .62);
  padding: 3px 0;
}

.calc-row b {
  color: var(--lime-300);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.calc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.calc-total span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(240, 244, 215, .8);
}

.calc-total strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.calc-total small { font-size: 11px; color: var(--lime); font-weight: 600; }

.calc-note {
  margin: 5px 0 0;
  font-size: 8px;
  color: rgba(240, 244, 215, .32);
}

/* ============================================================
   Statistics
   ============================================================ */

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 4px;
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .06);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
  margin-bottom: 12px;
}

.segmented button {
  height: 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}

.segmented button.is-active {
  background: var(--forest-700);
  color: #fff;
}

.stat-hero {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border-radius: 26px;
  background:
    radial-gradient(300px 220px at 95% -10%, rgba(170, 200, 17, .18), transparent 65%),
    linear-gradient(150deg, var(--forest-800), var(--forest-900));
  color: #fff;
  box-shadow: 0 18px 38px rgba(16, 50, 34, .2);
}

.stat-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 300px;
  height: 187px;
  background: url("assets/brand/pattern.svg") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

.stat-hero-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.stat-hero-kicker {
  margin: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lime-300);
}

.stat-hero-sub {
  margin: 3px 0 0;
  font-size: 9px;
  color: rgba(240, 244, 215, .45);
}

.stat-hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
}

.ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) calc(var(--pct) * 1%), rgba(255, 255, 255, .12) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
  transition: background .4s ease;
}

.ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--forest-800);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.ring-center { position: relative; z-index: 2; text-align: center; }

.ring-center strong {
  display: block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ring-center strong span { font-size: 13px; color: var(--lime); }

.ring-center small {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: rgba(240, 244, 215, .5);
  letter-spacing: .03em;
}

.ring-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.ring-legend div {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: rgba(240, 244, 215, .55);
}

.ring-legend b {
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 10px;
}

.metric-card {
  padding: 12px 13px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
}

.metric-card > span {
  display: block;
  font-size: 8.5px;
  color: var(--muted-2);
  letter-spacing: .02em;
}

.metric-card strong {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.metric-card small {
  font-size: 8.5px;
  color: var(--muted-2);
  margin-left: 2px;
}

.metric-trend {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  font-style: normal;
  color: var(--muted-2);
}

.chart-card--stats { margin-top: 10px; padding: 15px 15px 13px; }

.metrics-list { margin-top: 10px; padding: 14px 16px; }

.metrics-list .card-head { margin-bottom: 5px; }

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid rgba(16, 50, 34, .055);
  font-size: 10px;
  color: var(--ink-2);
}

.list-row:first-of-type { border-top: none; }

.list-row b {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.metrics-list.compact { padding: 10px 16px; }

/* ============================================================
   Sensor & pump
   ============================================================ */

.device-hero {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border-radius: 26px;
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .055);
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
}

.device-hero::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 200, 17, .17), transparent 68%);
  pointer-events: none;
}

.device-hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.device-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--forest-700);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.device-hero-icon .icon { width: 20px; height: 20px; }

.device-hero-icon--lime { background: var(--lime); color: var(--forest-800); }

.device-hero-top h2 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--forest-800);
}

.device-hero-top p {
  margin: 2px 0 0;
  font-size: 8.5px;
  color: var(--muted-2);
}

.device-hero-top .status-chip { margin-left: auto; }

.device-big {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 12px 0 7px;
}

.device-big strong {
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .95;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.device-big span { font-size: 9px; color: var(--muted-2); }

.brand-progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: #E9EDDE;
  overflow: hidden;
  margin-bottom: 12px;
}

.brand-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--lime-bright));
}

.device-rows { border-top: 1px solid rgba(16, 50, 34, .06); }

.device-rows div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 9.5px;
  color: var(--muted);
}

.device-rows b { color: var(--forest-800); font-weight: 600; }

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pump-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 14px 0 10px;
}

.reservoir { text-align: center; }

.reservoir-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(var(--lime) 0 60%, #E9EDDE 60% 100%);
  display: grid;
  place-items: center;
  position: relative;
  margin: 0 auto;
}

.reservoir-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--white);
}

.reservoir-ring strong {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--forest-800);
}

.reservoir-ring small {
  position: relative;
  z-index: 2;
  font-size: 8px;
  color: var(--muted-2);
  margin-left: 1px;
}

.reservoir > span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  color: var(--muted-2);
}

.pump-stats { flex: 1; }

.pump-stats div {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 9.5px;
  color: var(--muted);
}

.pump-stats b { color: var(--forest-800); font-weight: 600; }

.auto-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--muted-2);
  font-weight: 600;
}

.auto-live .live-dot { width: 5px; height: 5px; }

/* ============================================================
   Detailed graph
   ============================================================ */

.big-chart-card { padding: 15px; }

.graph-now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}

.graph-now .live-dot { width: 5px; height: 5px; }

.chart-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid rgba(16, 50, 34, .06);
  font-size: 8.5px;
  color: var(--muted);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.stat-strip-card {
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .055);
  border-radius: 17px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
}

.stat-strip-card span {
  display: block;
  font-size: 7.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.stat-strip-card strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.stat-strip-card small {
  font-size: 7px;
  color: var(--muted-2);
  margin-left: 2px;
  font-weight: 500;
}

/* ============================================================
   Settings
   ============================================================ */

.group-label {
  margin: 16px 4px 6px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.settings-card {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: none;
  border-top: 1px solid rgba(16, 50, 34, .055);
  background: var(--white);
  text-align: left;
}

.setting-row:first-child { border-top: none; }

.setting-row--static { cursor: default; }

.setting-icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.setting-icon .icon { width: 15px; height: 15px; }
.setting-icon--lime { background: var(--lime); color: var(--forest-800); }

.setting-copy { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }

.setting-copy strong {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--forest-800);
  letter-spacing: -.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setting-copy small {
  font-size: 8px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setting-value { font-size: 9px; color: var(--muted-2); white-space: nowrap; }

.setting-chev { width: 11px; height: 11px; color: var(--grey-300); flex-shrink: 0; }

.settings-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  opacity: .7;
}

.settings-logo { width: 26px; height: 26px; border-radius: 7px; }

.settings-foot p {
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
  color: var(--muted-2);
}

.settings-foot p span { opacity: .75; }

/* ============================================================
   Alerts
   ============================================================ */

.alerts-master {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
}

.alerts-master-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.alerts-master-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest-800);
}

.alerts-master-copy small {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: var(--muted-2);
}

.alert-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.alert-dot--red { background: var(--red); }
.alert-dot--amber { background: #F2B705; }
.alert-dot--blue { background: var(--blue-300); box-shadow: inset 0 0 0 1px rgba(0, 110, 183, .25); }
.alert-dot--grey { background: var(--grey-300); }

.schedule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
}

/* ============================================================
   Welcome
   ============================================================ */

.screen--welcome {
  background: var(--forest-900);
  color: #fff;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 340px at 92% -4%, rgba(170, 200, 17, .3), transparent 64%),
    radial-gradient(520px 420px at -20% 108%, rgba(0, 138, 57, .22), transparent 66%),
    linear-gradient(165deg, #143926 0%, var(--forest-900) 54%, #06130C 100%);
}

.welcome-pattern {
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 520px;
  height: 324px;
  background: url("assets/brand/pattern.svg") center / contain no-repeat;
  opacity: .08;
}

.welcome-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--forest-900) 0%, transparent 40%, transparent 70%, var(--forest-900) 100%);
}

.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 66px 24px 30px;
  overflow-y: auto;
  scrollbar-width: none;
}

.welcome-content::-webkit-scrollbar { display: none; }

.welcome-brand img { width: 172px; height: auto; }

.welcome-hero { margin-top: 34px; }

.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(240, 244, 215, .72);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.welcome-pill .live-dot { width: 5px; height: 5px; }

.welcome-hero h1 {
  margin: 15px 0 0;
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 700;
  color: #fff;
}

.welcome-hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.welcome-hero p {
  margin: 14px 0 0;
  max-width: 320px;
  font-size: 11.5px;
  line-height: 1.58;
  color: rgba(240, 244, 215, .55);
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 25px;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .075);
  backdrop-filter: blur(12px);
}

.welcome-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(170, 200, 17, .15);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.welcome-feature-icon .icon { width: 17px; height: 17px; }

.welcome-feature strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
}

.welcome-feature small {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: rgba(240, 244, 215, .42);
}

.welcome-actions { margin-top: auto; padding-top: 22px; }

.welcome-actions .primary-btn { min-height: 50px; }

.welcome-actions p {
  margin: 11px 0 0;
  text-align: center;
  font-size: 8px;
  color: rgba(240, 244, 215, .3);
}

/* ============================================================
   Overlays, menu drawer, sheets, modal
   ============================================================ */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: none;
}

.overlay.is-open { display: block; }

.scrim {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 11, .55);
  backdrop-filter: blur(2px);
  animation: fade-in .25s ease;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Drawer */
.drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 87%;
  padding: 58px 20px 18px;
  background:
    radial-gradient(300px 260px at 95% 0%, rgba(170, 200, 17, .13), transparent 62%),
    var(--forest-900);
  color: #fff;
  border-radius: 0 30px 30px 0;
  transform: translateX(-102%);
  transition: transform .42s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 30px 0 60px rgba(0, 0, 0, .35);
}

.overlay.is-open .drawer { transform: translateX(0); }

.drawer-pattern {
  position: absolute;
  right: -100px;
  top: 60px;
  width: 330px;
  height: 206px;
  background: url("assets/brand/pattern.svg") center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.app-brand--drawer { font-size: 14px; }

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .075);
  position: relative;
  z-index: 2;
}

.drawer-profile > div { flex: 1; min-width: 0; }

.drawer-profile strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
}

.drawer-profile small {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: rgba(240, 244, 215, .42);
}

.drawer-scroll {
  position: relative;
  z-index: 2;
  overflow-y: auto;
  scrollbar-width: none;
  flex: 1;
  margin: 0 -4px;
  padding: 0 4px;
}

.drawer-scroll::-webkit-scrollbar { display: none; }

.drawer-label {
  margin: 17px 4px 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(218, 228, 155, .55);
}

.drawer-nav { display: flex; flex-direction: column; }

.drawer-nav button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 3px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .002em;
  text-align: left;
}

.drawer-nav-icon {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
  color: var(--lime-300);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.drawer-nav-icon .icon { width: 14px; height: 14px; }

.drawer-chev {
  width: 11px;
  height: 11px;
  margin-left: auto;
  color: rgba(255, 255, 255, .28);
}

.drawer-device {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  margin-bottom: 5px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .045);
  color: #fff;
  text-align: left;
}

.drawer-device-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(170, 200, 17, .14);
  color: var(--lime);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.drawer-device-icon .icon { width: 15px; height: 15px; }

.drawer-device strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.drawer-device small {
  display: block;
  font-size: 8px;
  color: rgba(240, 244, 215, .4);
  margin-top: 1px;
}

.drawer-device > span:nth-child(2) { flex: 1; min-width: 0; }

.drawer-device .live-dot { width: 5px; height: 5px; box-shadow: none; }

.drawer-danger {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 8px 3px;
  border: none;
  background: transparent;
  color: #FF9EA0;
  font-size: 10.5px;
  font-weight: 600;
}

.drawer-danger .icon { width: 15px; height: 15px; }

.drawer-version {
  margin: 8px 0 0;
  font-size: 7.5px;
  color: rgba(240, 244, 215, .26);
}

/* Sheet */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 20px 22px;
  border-radius: 30px 30px 0 0;
  background: var(--cream);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .3);
  transform: translateY(103%);
  transition: transform .4s var(--ease);
}

.overlay.is-open .sheet { transform: translateY(0); }

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: 3px;
  background: rgba(16, 50, 34, .18);
  margin: 0 auto 13px;
}

.sheet-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sheet-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--lime);
  color: var(--forest-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sheet-icon .icon { width: 21px; height: 21px; }
.sheet-icon .icon use[href="#i-bolt"] { fill: currentColor; }

.sheet-title { flex: 1; }

.sheet-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--forest-800);
}

.sheet-title p { margin: 2px 0 0; font-size: 9.5px; color: var(--muted-2); }

.sheet .icon-btn {
  background: rgba(16, 50, 34, .06);
  border-color: transparent;
}

.sheet-label {
  margin: 16px 2px 7px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.segmented--sheet { margin-bottom: 0; background: #E9EDDE; border: none; box-shadow: none; }

.segmented--sheet button.is-active { background: var(--forest-700); }

.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }

.chip-row button {
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 50, 34, .1);
  background: var(--white);
  color: var(--ink-2);
  font-size: 9.5px;
  font-weight: 600;
  transition: all .18s ease;
}

.chip-row button.is-active {
  background: var(--forest-700);
  border-color: var(--forest-700);
  color: #fff;
}

.sheet-note {
  display: flex;
  gap: 8px;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 15px;
  background: var(--lime-200);
  color: var(--forest-700);
}

.sheet-note .icon { width: 14px; height: 14px; margin-top: 1px; }

.sheet-note p {
  margin: 0;
  font-size: 8.5px;
  line-height: 1.45;
  color: var(--forest-700);
}

.sheet-hint {
  margin: 9px 2px 0;
  font-size: 8.5px;
  color: var(--muted-2);
  text-align: center;
}

.sheet .primary-btn { margin-top: 14px; min-height: 48px; font-size: 12.5px; }
.sheet .text-btn { margin-top: 6px; }

.sheet--ease .sheet-icon { background: var(--blue-200); color: var(--blue); }
.sheet--ease .sheet-note { background: var(--blue-200); color: var(--blue); }
.sheet--ease .sheet-note p { color: #14506E; }

/* Modal */
.overlay--modal { display: none; z-index: 95; }

.overlay--modal.is-open { display: grid; place-items: center; padding: 24px; }

.overlay--modal .scrim { backdrop-filter: blur(3px); }

.modal {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  padding: 22px 20px 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  text-align: center;
  animation: modal-in .32s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--amber-200);
  color: #7A5200;
  display: grid;
  place-items: center;
  margin: 0 auto 11px;
}

.modal-icon .icon { width: 22px; height: 22px; }

.modal h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--forest-800);
}

.modal p {
  margin: 7px 0 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--muted);
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 15px;
}

.modal-actions .secondary-btn,
.modal-actions .danger-btn { min-height: 42px; font-size: 11px; }

/* Toast */
.toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 98px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 15px;
  background: var(--forest-800);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest-800);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.toast-icon .icon { width: 11px; height: 11px; stroke-width: 2.4; }

/* ============================================================
   Capture mode
   ============================================================ */

body.capture { background: var(--canvas); overflow: hidden; }

body.capture .studio { display: block; height: auto; min-height: 0; }

body.capture .studio-sidebar,
body.capture .studio-notes,
body.capture .stage-topbar,
body.capture .stage-aurora,
body.capture .stage-pattern,
body.capture .device-caption { display: none !important; }

body.capture .studio-stage {
  position: static;
  display: block;
  overflow: visible;
  background: var(--canvas);
  height: auto;
  min-height: 0;
}

body.capture .device-wrap {
  display: block;
  height: auto;
  padding: 0;
}

body.capture .device {
  width: 393px;
  height: 852px;
  padding: 0;
  border-radius: 0;
  background: var(--canvas);
  box-shadow: none;
}

body.capture .device::after { display: none; }

body.capture .device-screen {
  width: 393px;
  height: 852px;
  border-radius: 0;
}

body.capture .device-island { display: none; }

body.capture .statusbar { padding-top: 16px; }

/* ============================================================
   Responsive studio
   ============================================================ */

@media (max-width: 1320px) {
  .studio { grid-template-columns: 270px minmax(430px, 1fr); }
  .studio-notes { display: none; }
}

@media (max-width: 980px) {
  body { overflow: auto; }
  .studio { display: block; height: auto; min-height: 0; }
  .studio-sidebar { display: none; }
  .studio-stage { min-height: 100vh; padding: 54px 0 40px; }
  .stage-topbar { left: 20px; right: 20px; }
  .device-wrap { justify-content: flex-start; height: auto; padding-top: 34px; }
  .device { transform-origin: top center; }
  .device-caption { display: none; }
}

@media (max-width: 460px) {
  .stage-topbar { display: none; }
  .studio-stage { padding-top: 0; }
  .device { transform: scale(.92); margin-bottom: -70px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================================================
   Chart internals
   ============================================================ */

.grid-line {
  stroke: #EDF0E4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.axis-label {
  fill: #96A399;
  font-family: var(--font);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: .01em;
}

.axis-label--x { font-size: 7.5px; }

.target-band { fill: #F0F4D7; opacity: .85; }

.target-line {
  stroke: #DAE49B;
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.glucose-area { pointer-events: none; }

.glucose-line {
  fill: none;
  stroke: var(--forest-700);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.reading-dot { fill: var(--forest-700); }

.insulin-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linejoin: round;
  opacity: .85;
  vector-effect: non-scaling-stroke;
}

.bolus-marker { fill: var(--blue); }


/* ============================================================
   Bolus tip, insulin card, connection tip, home indicator
   ============================================================ */

.bolus-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(16, 50, 34, .055);
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
}

.tip-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--lime-200);
  color: var(--forest-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tip-icon .icon { width: 14px; height: 14px; }

.bolus-tip strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--forest-800);
}

.bolus-tip small {
  display: block;
  margin-top: 1px;
  font-size: 8px;
  color: var(--muted-2);
}

.bolus-tip + .primary-btn { margin-top: 14px; }

.insulin-card {
  margin-top: 10px;
  padding: 13px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(16, 50, 34, .04);
}

.insulin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.insulin-stats div {
  border-left: 1px solid rgba(16, 50, 34, .06);
  padding-left: 10px;
}

.insulin-stats div:first-child { border-left: none; padding-left: 0; }

.insulin-stats span {
  display: block;
  font-size: 8px;
  color: var(--muted-2);
}

.insulin-stats strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--forest-800);
  font-variant-numeric: tabular-nums;
}

.connection-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 8.5px;
  line-height: 1.4;
}

.connection-tip .icon { width: 13px; height: 13px; flex-shrink: 0; }

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  border-radius: 3px;
  background: rgba(16, 50, 34, .68);
  z-index: 40;
  pointer-events: none;
  transition: background .25s ease;
}

.home-indicator--light { background: rgba(255, 255, 255, .82); }

/* ============================================================
   Capture overrides (must stay last)
   ============================================================ */

body.capture,
body.capture .studio,
body.capture .studio-stage {
  width: 393px !important;
  height: 852px !important;
  min-height: 852px !important;
  overflow: hidden !important;
}

body.capture .device-wrap,
body.capture .device,
body.capture .device-screen {
  transform: none !important;
  margin: 0 !important;
  width: 393px !important;
  height: 852px !important;
}

body.capture .device { padding: 0 !important; border-radius: 0 !important; }
body.capture .device-screen { border-radius: 0 !important; }
body.capture .device-island { display: none !important; }
