/*! iOS 27 UI Kit by AI UX Playground: plain HTML and CSS, no JavaScript. The iOS 26 base plus iOS 27 additions and foldable
   layouts. iOS 27 is opt-in: add class="ios27" to a screen. Not affiliated with Apple. Some glyphs derive from Lucide (ISC License, lucide.dev). */
/* Tokens generated from registry/ios/theme.mjs by `npm run vanilla:build`. Do not edit. */

:root,
:host {
  color-scheme: light;
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ios-red: #ff383c;
  --ios-orange: #ff8d28;
  --ios-yellow: #ffcc00;
  --ios-green: #34c759;
  --ios-mint: #00c8b3;
  --ios-teal: #00c3d0;
  --ios-cyan: #00c0e8;
  --ios-blue: #0088ff;
  --ios-indigo: #6155f5;
  --ios-purple: #cb30e0;
  --ios-pink: #ff2d55;
  --ios-brown: #ac7f5e;
  --ios-gray: #8e8e93;
  --ios-gray2: #aeaeb2;
  --ios-gray3: #c7c7cc;
  --ios-gray4: #d1d1d6;
  --ios-gray5: #e5e5ea;
  --ios-gray6: #f2f2f7;
  --ios-label: #000000;
  --ios-secondary-label: rgb(60 60 67 / 0.6);
  --ios-tertiary-label: rgb(60 60 67 / 0.3);
  --ios-quaternary-label: rgb(60 60 67 / 0.18);
  --ios-background: #ffffff;
  --ios-secondary-background: #f2f2f7;
  --ios-tertiary-background: #ffffff;
  --ios-grouped-background: #f2f2f7;
  --ios-secondary-grouped-background: #ffffff;
  --ios-tertiary-grouped-background: #f2f2f7;
  --ios-fill: rgb(120 120 120 / 0.2);
  --ios-secondary-fill: rgb(120 120 128 / 0.16);
  --ios-tertiary-fill: rgb(118 118 128 / 0.12);
  --ios-quaternary-fill: rgb(116 116 128 / 0.08);
  --ios-separator: rgb(0 0 0 / 0.12);
  --ios-opaque-separator: #c6c6c8;
  --ios-glass-label: #1a1a1a;
  --ios-segment-selection: #ffffff;
  --ios-tab-selection: rgb(0 0 0 / 0.07);
  --ios-glass-bg: rgb(255 255 255 / 0.58);
  --ios-glass-clear-bg: rgb(255 255 255 / 0.12);
  --ios-glass-blur: 10px;
  --ios-glass-clear-blur: 3px;
  --ios-glass-saturate: 180%;
  --ios-glass-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.55), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.95), inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.55), 0 0 0 0.5px rgb(0 0 0 / 0.06), 0 6px 22px rgb(0 0 0 / 0.1);
  --ios-glass-prominent-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.25), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.6), inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.3), 0 6px 22px rgb(0 0 0 / 0.12);
  --ios-tint: var(--ios-blue);
}

.dark {
  color-scheme: dark;
  --ios-red: #ff4245;
  --ios-orange: #ff9230;
  --ios-yellow: #ffd600;
  --ios-green: #30d158;
  --ios-mint: #00dac3;
  --ios-teal: #00d2e0;
  --ios-cyan: #3cd3fe;
  --ios-blue: #0091ff;
  --ios-indigo: #6d7cff;
  --ios-purple: #db34f2;
  --ios-pink: #ff375f;
  --ios-brown: #b78a66;
  --ios-gray: #8e8e93;
  --ios-gray2: #636366;
  --ios-gray3: #48484a;
  --ios-gray4: #3a3a3c;
  --ios-gray5: #2c2c2e;
  --ios-gray6: #1c1c1e;
  --ios-label: #ffffff;
  --ios-secondary-label: rgb(235 235 245 / 0.7);
  --ios-tertiary-label: rgb(235 235 245 / 0.3);
  --ios-quaternary-label: rgb(235 235 245 / 0.16);
  --ios-background: #000000;
  --ios-secondary-background: #1c1c1e;
  --ios-tertiary-background: #2c2c2e;
  --ios-grouped-background: #000000;
  --ios-secondary-grouped-background: #1c1c1e;
  --ios-tertiary-grouped-background: #2c2c2e;
  --ios-fill: rgb(120 120 128 / 0.36);
  --ios-secondary-fill: rgb(120 120 128 / 0.32);
  --ios-tertiary-fill: rgb(118 118 128 / 0.24);
  --ios-quaternary-fill: rgb(118 118 128 / 0.18);
  --ios-separator: rgb(255 255 255 / 0.17);
  --ios-opaque-separator: #38383a;
  --ios-glass-label: #f5f5f5;
  --ios-segment-selection: rgb(255 255 255 / 0.27);
  --ios-tab-selection: rgb(255 255 255 / 0.12);
  --ios-glass-bg: rgb(30 30 32 / 0.58);
  --ios-glass-clear-bg: rgb(0 0 0 / 0.18);
  --ios-glass-blur: 10px;
  --ios-glass-clear-blur: 3px;
  --ios-glass-saturate: 160%;
  --ios-glass-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.35), inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.16), 0 0 0 0.5px rgb(0 0 0 / 0.35), 0 6px 22px rgb(0 0 0 / 0.35);
  --ios-glass-prominent-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.2), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.45), inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.2), 0 6px 22px rgb(0 0 0 / 0.35);
  --ios-tint: var(--ios-blue);
}

.ios-large-title {
  font-size: 34px;
  line-height: 41px;
  letter-spacing: 0.4px;
}

.ios-title1 {
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.38px;
}

.ios-title2 {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.26px;
}

.ios-title3 {
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.45px;
}

.ios-headline {
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  font-weight: 600;
}

.ios-body {
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
}

.ios-callout {
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
}

.ios-subheadline {
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.23px;
}

.ios-footnote {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.08px;
}

.ios-caption1 {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0px;
}

.ios-caption2 {
  font-size: 11px;
  line-height: 13px;
  letter-spacing: 0.06px;
}

.ios-glass {
  background-color: var(--ios-glass-bg);
  -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
  backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
  box-shadow: var(--ios-glass-shadow);
}

.ios-glass-clear {
  background-color: var(--ios-glass-clear-bg);
  -webkit-backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
  backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
  box-shadow: var(--ios-glass-shadow);
}

@keyframes ios-banner-in {
  from {
    transform: translateY(-130%) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes ios-face-id-island {
  from {
    width: 126px;
    height: 37px;
    border-radius: 18.5px;
  }
  to {
    width: 136px;
    height: 136px;
    border-radius: 44px;
  }
}

@keyframes ios-face-id-fade {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ios-face-id-look {
  0%, 100% {
    transform: translateX(0) scaleX(1);
  }
  25% {
    transform: translateX(-3px) scaleX(0.94);
  }
  75% {
    transform: translateX(3px) scaleX(0.94);
  }
}

@keyframes ios-face-id-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(9px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes ios-cc-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ios-cc-content {
  from {
    opacity: 0;
    transform: scale(1.06) translateY(-12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ios-wave {
  0%, 100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}

.ios-glass-prominent {
  background-color: var(--ios-tint);
  box-shadow: var(--ios-glass-prominent-shadow);
  color: #ffffff;
}



/* Icon masks (generated from vanilla/src/icons.mjs) */

@layer ios {
:root,
:host {
  --ios-clear-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2018'%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'18'%20height%3D'18'%20fill%3D'white'%2F%3E%3Cpath%20d%3D'm6%206%206%206M12%206l-6%206'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%2F%3E%3C%2Fmask%3E%3Ccircle%20cx%3D'9'%20cy%3D'9'%20r%3D'9'%20fill%3D'black'%20mask%3D'url(%2523m)'%2F%3E%3C%2Fsvg%3E");
  --ios-check-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2017%2016'%3E%3Cpath%20d%3D'm2%208.6%204.4%204.6L15%202.8'%20stroke%3D'black'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--cellular {
  --w: 18px;
  --h: 12px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2012'%3E%3Cg%20fill%3D'black'%3E%3Crect%20x%3D'0'%20y%3D'8'%20width%3D'3'%20height%3D'4'%20rx%3D'1'%2F%3E%3Crect%20x%3D'5'%20y%3D'5.5'%20width%3D'3'%20height%3D'6.5'%20rx%3D'1'%2F%3E%3Crect%20x%3D'10'%20y%3D'3'%20width%3D'3'%20height%3D'9'%20rx%3D'1'%2F%3E%3Crect%20x%3D'15'%20y%3D'0'%20width%3D'3'%20height%3D'12'%20rx%3D'1'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--wifi {
  --w: 17px;
  --h: 12px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2017%2012'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2.1'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Cpath%20d%3D'M1.43%204.43a10%2010%200%200%201%2014.14%200'%2F%3E%3Cpath%20d%3D'M4.08%207.08a6.25%206.25%200%200%201%208.84%200'%2F%3E%3C%2Fg%3E%3Cpath%20d%3D'M8.5%2011.6%206.4%209.5a2.97%202.97%200%200%201%204.2%200z'%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'1.2'%20stroke-linejoin%3D'round'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--chevron-left {
  --w: 12px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2012%2020'%3E%3Cpath%20d%3D'M10%202%202.2%2010%2010%2018'%20stroke%3D'black'%20stroke-width%3D'2.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--chevron-right {
  --w: 8px;
  --h: 14px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%208%2014'%3E%3Cpath%20d%3D'm1.5%201.5%205%205.5-5%205.5'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--checkmark {
  --w: 17px;
  --h: 16px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2017%2016'%3E%3Cpath%20d%3D'm2%208.6%204.4%204.6L15%202.8'%20stroke%3D'black'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--search {
  --w: 18px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2018'%3E%3Ccircle%20cx%3D'7.5'%20cy%3D'7.5'%20r%3D'6'%20stroke%3D'black'%20stroke-width%3D'2.1'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3Cpath%20d%3D'm12%2012%204.5%204.5'%20stroke%3D'black'%20stroke-width%3D'2.3'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--xmark-circle {
  --w: 18px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2018'%3E%3Cmask%20id%3D'm'%3E%3Crect%20width%3D'18'%20height%3D'18'%20fill%3D'white'%2F%3E%3Cpath%20d%3D'm6%206%206%206M12%206l-6%206'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%2F%3E%3C%2Fmask%3E%3Ccircle%20cx%3D'9'%20cy%3D'9'%20r%3D'9'%20fill%3D'black'%20mask%3D'url(%2523m)'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--ellipsis {
  --w: 20px;
  --h: 4px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2020%204'%3E%3Cg%20fill%3D'black'%3E%3Ccircle%20cx%3D'2'%20cy%3D'2'%20r%3D'2'%2F%3E%3Ccircle%20cx%3D'10'%20cy%3D'2'%20r%3D'2'%2F%3E%3Ccircle%20cx%3D'18'%20cy%3D'2'%20r%3D'2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--sun {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'4'%2F%3E%3Cpath%20d%3D'M12%202.5v2.2M12%2019.3v2.2M2.5%2012h2.2M19.3%2012h2.2M5.3%205.3l1.6%201.6M17.1%2017.1l1.6%201.6M18.7%205.3l-1.6%201.6M6.9%2017.1l-1.6%201.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--moon {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M20%2014.5A8.5%208.5%200%201%201%209.5%204a7%207%200%200%200%2010.5%2010.5z'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--bell {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Cpath%20d%3D'M6%209a6%206%200%201%201%2012%200c0%206%202%207.5%202%207.5H4S6%2015%206%209z'%2F%3E%3Cpath%20d%3D'M10%2020a2%202%200%200%200%204%200'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--home {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M3.5%2011.5%2012%204l8.5%207.5V19a1.5%201.5%200%200%201-1.5%201.5h-4v-5.5h-6v5.5H5A1.5%201.5%200%200%201%203.5%2019z'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--grid {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Crect%20x%3D'4'%20y%3D'4'%20width%3D'6.5'%20height%3D'6.5'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13.5'%20y%3D'4'%20width%3D'6.5'%20height%3D'6.5'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'4'%20y%3D'13.5'%20width%3D'6.5'%20height%3D'6.5'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'13.5'%20y%3D'13.5'%20width%3D'6.5'%20height%3D'6.5'%20rx%3D'1.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--radio {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Cpath%20d%3D'M5.4%2018.6a9%209%200%200%201%200-13.2M18.6%205.4a9%209%200%200%201%200%2013.2M8.6%2015.4a4.5%204.5%200%200%201%200-6.8M15.4%208.6a4.5%204.5%200%200%201%200%206.8'%2F%3E%3C%2Fg%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'1.8'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--library {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M5%204.5v15M10%204.5v15M15.2%205.6l3.6%2014.4'%20stroke%3D'black'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--xmark {
  --w: 16px;
  --h: 16px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2016%2016'%3E%3Cpath%20d%3D'm3%203%2010%2010M13%203%203%2013'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--plus {
  --w: 18px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2018'%3E%3Cpath%20d%3D'M9%202v14M2%209h14'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--minus {
  --w: 18px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2018%2018'%3E%3Cpath%20d%3D'M3%209h12'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--mic {
  --w: 14px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2014%2020'%3E%3Crect%20x%3D'3.5'%20y%3D'1'%20width%3D'7'%20height%3D'11.5'%20rx%3D'3.5'%20fill%3D'black'%2F%3E%3Cpath%20d%3D'M1%209.5a6%206%200%200%200%2012%200M7%2015.5V19'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--play {
  --w: 20px;
  --h: 22px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2020%2022'%3E%3Cpath%20d%3D'M3%202.6v16.8c0%201.1%201.2%201.8%202.2%201.2l14-8.4a1.4%201.4%200%200%200%200-2.4l-14-8.4C4.2.8%203%201.5%203%202.6Z'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--pause {
  --w: 20px;
  --h: 22px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2020%2022'%3E%3Cg%20fill%3D'black'%3E%3Crect%20x%3D'3'%20y%3D'2'%20width%3D'5'%20height%3D'18'%20rx%3D'1.5'%2F%3E%3Crect%20x%3D'12'%20y%3D'2'%20width%3D'5'%20height%3D'18'%20rx%3D'1.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--forward {
  --w: 28px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2018'%3E%3Cg%20fill%3D'black'%3E%3Cpath%20d%3D'M1%202.3v13.4c0%20.9%201%201.4%201.7.9L13%209.9a1.1%201.1%200%200%200%200-1.8L2.7%201.4C2%20.9%201%201.4%201%202.3Z'%2F%3E%3Cpath%20d%3D'M14%202.3v13.4c0%20.9%201%201.4%201.7.9L26%209.9a1.1%201.1%200%200%200%200-1.8L15.7%201.4C15%20.9%2014%201.4%2014%202.3Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--backward {
  --w: 28px;
  --h: 18px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2028%2018'%3E%3Cg%20transform%3D'translate(28%200)%20scale(-1%201)'%20fill%3D'black'%3E%3Cpath%20d%3D'M1%202.3v13.4c0%20.9%201%201.4%201.7.9L13%209.9a1.1%201.1%200%200%200%200-1.8L2.7%201.4C2%20.9%201%201.4%201%202.3Z'%2F%3E%3Cpath%20d%3D'M14%202.3v13.4c0%20.9%201%201.4%201.7.9L26%209.9a1.1%201.1%200%200%200%200-1.8L15.7%201.4C15%20.9%2014%201.4%2014%202.3Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--power {
  --w: 20px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2020%2020'%3E%3Cpath%20d%3D'M6%204.4a7.5%207.5%200%201%200%208%200M10%201.5v8'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--flashlight {
  --w: 14px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2014%2024'%3E%3Cpath%20d%3D'M1.5%201.5h11v3.2c0%20.9-.3%201.7-.9%202.4L10%209.2V21a1.5%201.5%200%200%201-1.5%201.5h-3A1.5%201.5%200%200%201%204%2021V9.2L2.4%207.1a3.8%203.8%200%200%201-.9-2.4zM1.5%205h11'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3Ccircle%20cx%3D'7'%20cy%3D'13'%20r%3D'1.4'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--camera {
  --w: 26px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2026%2020'%3E%3Cpath%20d%3D'M3.5%204.5h3.6l1.7-2.4c.3-.4.7-.6%201.2-.6h5.9c.5%200%20.9.2%201.2.6l1.7%202.4h3.7a2.5%202.5%200%200%201%202.5%202.5v9.5a2.5%202.5%200%200%201-2.5%202.5h-19A2.5%202.5%200%200%201%201%2016.5V7a2.5%202.5%200%200%201%202.5-2.5Z'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3Ccircle%20cx%3D'13'%20cy%3D'11.5'%20r%3D'4.2'%20stroke%3D'black'%20stroke-width%3D'1.8'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--side-button {
  --w: 24px;
  --h: 28px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2028'%3E%3Crect%20x%3D'2'%20y%3D'2'%20width%3D'15'%20height%3D'24'%20rx%3D'4.5'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3Crect%20x%3D'19.5'%20y%3D'8'%20width%3D'3'%20height%3D'9'%20rx%3D'1.5'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--plane {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M17.8%2019.2%2016%2011l3.5-3.5C21%206%2021.5%204%2021%203c-1-.5-3%200-4.5%201.5L13%208%204.8%206.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1%201%20.3%201.3L9%2012l-2%203H4l-1%201%203%202%202%203%201-1v-3l3-2%203.5%205.3c.3.4.8.5%201.3.3l.5-.2c.4-.3.6-.7.5-1.2z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--antenna {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%2012%207%202'%2F%3E%3Cpath%20d%3D'm7%2012%205-10'%2F%3E%3Cpath%20d%3D'm12%2012%205-10'%2F%3E%3Cpath%20d%3D'm17%2012%205-10'%2F%3E%3Cpath%20d%3D'M4.5%207h15'%2F%3E%3Cpath%20d%3D'M12%2016v6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--bluetooth {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm7%207%2010%2010-5%205V2l5%205L7%2017'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--lock {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'18'%20height%3D'11'%20x%3D'3'%20y%3D'11'%20rx%3D'2'%20ry%3D'2'%2F%3E%3Cpath%20d%3D'M7%2011V7a5%205%200%200%201%2010%200v4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--tv {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm17%202-5%205-5-5'%2F%3E%3Crect%20width%3D'20'%20height%3D'15'%20x%3D'2'%20y%3D'7'%20rx%3D'2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--timer {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cline%20x1%3D'10'%20x2%3D'14'%20y1%3D'2'%20y2%3D'2'%2F%3E%3Cline%20x1%3D'12'%20x2%3D'15'%20y1%3D'14'%20y2%3D'11'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'14'%20r%3D'8'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--calculator {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'16'%20height%3D'20'%20x%3D'4'%20y%3D'2'%20rx%3D'2'%2F%3E%3Cline%20x1%3D'8'%20x2%3D'16'%20y1%3D'6'%20y2%3D'6'%2F%3E%3Cline%20x1%3D'16'%20x2%3D'16'%20y1%3D'14'%20y2%3D'18'%2F%3E%3Cpath%20d%3D'M16%2010h.01'%2F%3E%3Cpath%20d%3D'M12%2010h.01'%2F%3E%3Cpath%20d%3D'M8%2010h.01'%2F%3E%3Cpath%20d%3D'M12%2014h.01'%2F%3E%3Cpath%20d%3D'M8%2014h.01'%2F%3E%3Cpath%20d%3D'M12%2018h.01'%2F%3E%3Cpath%20d%3D'M8%2018h.01'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--car {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M19%2017h2c.6%200%201-.4%201-1v-3c0-.9-.7-1.7-1.5-1.9C18.7%2010.6%2016%2010%2016%2010s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6%200-1.1.4-1.4.9l-1.4%202.9A3.7%203.7%200%200%200%202%2012v4c0%20.6.4%201%201%201h2'%2F%3E%3Ccircle%20cx%3D'7'%20cy%3D'17'%20r%3D'2'%2F%3E%3Cpath%20d%3D'M9%2017h6'%2F%3E%3Ccircle%20cx%3D'17'%20cy%3D'17'%20r%3D'2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--cloud-sun {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202v2'%2F%3E%3Cpath%20d%3D'm4.93%204.93%201.41%201.41'%2F%3E%3Cpath%20d%3D'M20%2012h2'%2F%3E%3Cpath%20d%3D'm19.07%204.93-1.41%201.41'%2F%3E%3Cpath%20d%3D'M15.947%2012.65a4%204%200%200%200-5.925-4.128'%2F%3E%3Cpath%20d%3D'M13%2022H7a5%205%200%201%201%204.9-6H13a3%203%200%200%201%200%206Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--pencil {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21.174%206.812a1%201%200%200%200-3.986-3.987L3.842%2016.174a2%202%200%200%200-.5.83l-1.321%204.352a.5.5%200%200%200%20.623.622l4.353-1.32a2%202%200%200%200%20.83-.497z'%2F%3E%3Cpath%20d%3D'm15%205%204%204'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--copy {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'14'%20height%3D'14'%20x%3D'8'%20y%3D'8'%20rx%3D'2'%20ry%3D'2'%2F%3E%3Cpath%20d%3D'M4%2016c-1.1%200-2-.9-2-2V4c0-1.1.9-2%202-2h10c1.1%200%202%20.9%202%202'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--trash-2 {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10%2011v6'%2F%3E%3Cpath%20d%3D'M14%2011v6'%2F%3E%3Cpath%20d%3D'M19%206v14a2%202%200%200%201-2%202H7a2%202%200%200%201-2-2V6'%2F%3E%3Cpath%20d%3D'M3%206h18'%2F%3E%3Cpath%20d%3D'M8%206V4a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--pin {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%2017v5'%2F%3E%3Cpath%20d%3D'M9%2010.76a2%202%200%200%201-1.11%201.79l-1.78.9A2%202%200%200%200%205%2015.24V16a1%201%200%200%200%201%201h12a1%201%200%200%200%201-1v-.76a2%202%200%200%200-1.11-1.79l-1.78-.9A2%202%200%200%201%2015%2010.76V7a1%201%200%200%201%201-1%202%202%200%200%200%200-4H8a2%202%200%200%200%200%204%201%201%200%200%201%201%201z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--flag {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2022V4a1%201%200%200%201%20.4-.8A6%206%200%200%201%208%202c3%200%205%202%207.333%202q2%200%203.067-.8A1%201%200%200%201%2020%204v10a1%201%200%200%201-.4.8A6%206%200%200%201%2016%2016c-3%200-5-2-8-2a6%206%200%200%200-4%201.528'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--reply {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2018v-2a4%204%200%200%200-4-4H4'%2F%3E%3Cpath%20d%3D'm9%2017-5-5%205-5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--forward-mail {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm15%2017%205-5-5-5'%2F%3E%3Cpath%20d%3D'M4%2018v-2a4%204%200%200%201%204-4h12'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--mail-open {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21.2%208.4c.5.38.8.97.8%201.6v10a2%202%200%200%201-2%202H4a2%202%200%200%201-2-2V10a2%202%200%200%201%20.8-1.6l8-6a2%202%200%200%201%202.4%200l8%206Z'%2F%3E%3Cpath%20d%3D'm22%2010-8.97%205.7a1.94%201.94%200%200%201-2.06%200L2%2010'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--list-checks {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M13%205h8'%2F%3E%3Cpath%20d%3D'M13%2012h8'%2F%3E%3Cpath%20d%3D'M13%2019h8'%2F%3E%3Cpath%20d%3D'm3%2017%202%202%204-4'%2F%3E%3Cpath%20d%3D'm3%207%202%202%204-4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--arrow-down-up {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm3%2016%204%204%204-4'%2F%3E%3Cpath%20d%3D'M7%2020V4'%2F%3E%3Cpath%20d%3D'm21%208-4-4-4%204'%2F%3E%3Cpath%20d%3D'M17%204v16'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--share {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202v13'%2F%3E%3Cpath%20d%3D'm16%206-4-4-4%204'%2F%3E%3Cpath%20d%3D'M4%2012v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-8'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--arrow-up {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm5%2012%207-7%207%207'%2F%3E%3Cpath%20d%3D'M12%2019V5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--bookmark {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M17%203a2%202%200%200%201%202%202v15a1%201%200%200%201-1.496.868l-4.512-2.578a2%202%200%200%200-1.984%200l-4.512%202.578A1%201%200%200%201%205%2020V5a2%202%200%200%201%202-2z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--book-open {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%205v16'%2F%3E%3Cpath%20d%3D'M20.001%2019A2%202%200%200022%2017V5a2%202%200%2000-1.999-2L16%203.002A5%205%200%200012%205a5%205%200%2000-4-2H4a2%202%200%2000-2%202v12a2%202%200%20001.999%202H8a5%205%200%20014%202%205%205%200%20014-2z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--star {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M11.525%202.295a.53.53%200%200%201%20.95%200l2.31%204.679a2.123%202.123%200%200%200%201.595%201.16l5.166.756a.53.53%200%200%201%20.294.904l-3.736%203.638a2.123%202.123%200%200%200-.611%201.878l.882%205.14a.53.53%200%200%201-.771.56l-4.618-2.428a2.122%202.122%200%200%200-1.973%200L6.396%2021.01a.53.53%200%200%201-.77-.56l.881-5.139a2.122%202.122%200%200%200-.611-1.879L2.16%209.795a.53.53%200%200%201%20.294-.906l5.165-.755a2.122%202.122%200%200%200%201.597-1.16z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--heart-fill {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%209.5a5.5%205.5%200%200%201%209.591-3.676.56.56%200%200%200%20.818%200A5.49%205.49%200%200%201%2022%209.5c0%202.29-1.5%204-3%205.5l-5.492%205.313a2%202%200%200%201-3%20.019L5%2015c-1.5-1.5-3-3.2-3-5.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--thumbs-up {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%205.88%2014%2010h5.83a2%202%200%200%201%201.92%202.56l-2.33%208A2%202%200%200%201%2017.5%2022H4a2%202%200%200%201-2-2v-8a2%202%200%200%201%202-2h2.76a2%202%200%200%200%201.79-1.11L12%202a3.13%203.13%200%200%201%203%203.88Z'%2F%3E%3Cpath%20d%3D'M7%2010v12'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--thumbs-down {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%2018.12%2010%2014H4.17a2%202%200%200%201-1.92-2.56l2.33-8A2%202%200%200%201%206.5%202H20a2%202%200%200%201%202%202v8a2%202%200%200%201-2%202h-2.76a2%202%200%200%200-1.79%201.11L12%2022a3.13%203.13%200%200%201-3-3.88Z'%2F%3E%3Cpath%20d%3D'M17%2014V2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--smile-plus {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M13.267%202.08a10%2010%200%20108.653%208.653'%2F%3E%3Cpath%20d%3D'M15%2010V9'%2F%3E%3Cpath%20d%3D'M16%205h6'%2F%3E%3Cpath%20d%3D'M16.472%2015a6%206%200%2001-8.943%200'%2F%3E%3Cpath%20d%3D'M19%202v6'%2F%3E%3Cpath%20d%3D'M9%2010V9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--square-pen {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%203H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14a2%202%200%200%200%202-2v-7'%2F%3E%3Cpath%20d%3D'M18.375%202.625a1%201%200%200%201%203%203l-9.013%209.014a2%202%200%200%201-.853.505l-2.873.84a.5.5%200%200%201-.62-.62l.84-2.873a2%202%200%200%201%20.506-.852z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--folder {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2020a2%202%200%200%200%202-2V8a2%202%200%200%200-2-2h-7.9a2%202%200%200%201-1.69-.9L9.6%203.9A2%202%200%200%200%207.93%203H4a2%202%200%200%200-2%202v13a2%202%200%200%200%202%202Z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--user {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M19%2021v-2a4%204%200%200%200-4-4H9a4%204%200%200%200-4%204v2'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'7'%20r%3D'4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--image {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'18'%20height%3D'18'%20x%3D'3'%20y%3D'3'%20rx%3D'2'%20ry%3D'2'%2F%3E%3Ccircle%20cx%3D'9'%20cy%3D'9'%20r%3D'2'%2F%3E%3Cpath%20d%3D'm21%2015-3.086-3.086a2%202%200%200%200-2.828%200L6%2021'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--globe {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpath%20d%3D'M12%202a14.5%2014.5%200%200%200%200%2020%2014.5%2014.5%200%200%200%200-20'%2F%3E%3Cpath%20d%3D'M2%2012h20'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--inbox {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolyline%20points%3D'22%2012%2016%2012%2014%2015%2010%2015%208%2012%202%2012'%2F%3E%3Cpath%20d%3D'M5.45%205.11%202%2012v6a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-6l-3.45-6.89A2%202%200%200%200%2016.76%204H7.24a2%202%200%200%200-1.79%201.11z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--volume-2 {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M11%204.702a.705.705%200%200%200-1.203-.498L6.413%207.587A1.4%201.4%200%200%201%205.416%208H3a1%201%200%200%200-1%201v6a1%201%200%200%200%201%201h2.416a1.4%201.4%200%200%201%20.997.413l3.383%203.384A.705.705%200%200%200%2011%2019.298z'%2F%3E%3Cpath%20d%3D'M16%209a5%205%200%200%201%200%206'%2F%3E%3Cpath%20d%3D'M19.364%2018.364a9%209%200%200%200%200-12.728'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--bell-off {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10.268%2021a2%202%200%200%200%203.464%200'%2F%3E%3Cpath%20d%3D'M17%2017H4a1%201%200%200%201-.74-1.673C4.59%2013.956%206%2012.499%206%208a6%206%200%200%201%20.258-1.742'%2F%3E%3Cpath%20d%3D'm2%202%2020%2020'%2F%3E%3Cpath%20d%3D'M8.668%203.01A6%206%200%200%201%2018%208c0%202.687.77%204.653%201.707%206.05'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--smile {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%2010V9'%2F%3E%3Cpath%20d%3D'M16.472%2015a6%206%200%2001-8.943%200'%2F%3E%3Cpath%20d%3D'M9%2010V9'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--search-x {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm13.5%208.5-5%205'%2F%3E%3Cpath%20d%3D'm8.5%208.5%205%205'%2F%3E%3Ccircle%20cx%3D'11'%20cy%3D'11'%20r%3D'8'%2F%3E%3Cpath%20d%3D'm21%2021-4.3-4.3'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--circle-check {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpath%20d%3D'm16%209-5.5%205.5L8%2012'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--backspace {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10%205a2%202%200%200%200-1.344.519l-6.328%205.74a1%201%200%200%200%200%201.481l6.328%205.741A2%202%200%200%200%2010%2019h10a2%202%200%200%200%202-2V7a2%202%200%200%200-2-2z'%2F%3E%3Cpath%20d%3D'm12%209%206%206'%2F%3E%3Cpath%20d%3D'm18%209-6%206'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--shift {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%2019a1%201%200%200%200%201%201h4a1%201%200%200%200%201-1v-6a1%201%200%200%201%201-1h3.293a.707.707%200%200%200%20.5-1.207l-7.086-7.086a1%201%200%200%200-1.414%200l-7.086%207.086a.707.707%200%200%200%20.5%201.207H8a1%201%200%200%201%201%201z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--shift-fill {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'black'%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%2019a1%201%200%200%200%201%201h4a1%201%200%200%200%201-1v-6a1%201%200%200%201%201-1h3.293a.707.707%200%200%200%20.5-1.207l-7.086-7.086a1%201%200%200%200-1.414%200l-7.086%207.086a.707.707%200%200%200%20.5%201.207H8a1%201%200%200%201%201%201z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--chevron-forward {
  --w: 12px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2012%2020'%3E%3Cpath%20d%3D'M2%202l7.8%208L2%2018'%20stroke%3D'black'%20stroke-width%3D'2.6'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--page-menu {
  --w: 22px;
  --h: 20px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2022%2020'%3E%3Crect%20x%3D'1.5'%20y%3D'1.5'%20width%3D'19'%20height%3D'17'%20rx%3D'4'%20stroke%3D'black'%20stroke-width%3D'1.9'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3Cpath%20d%3D'M6%207h10M6%2011.5h6.5'%20stroke%3D'black'%20stroke-width%3D'1.9'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%2F%3E%3C%2Fsvg%3E");
}
.ios-icon--reload {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2012a9%209%200%201%201-9-9c2.52%200%204.93%201%206.74%202.74L21%208'%2F%3E%3Cpath%20d%3D'M21%203v5h-5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--tabs {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20stroke%3D'black'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%20fill%3D'none'%3E%3Crect%20x%3D'3'%20y%3D'7'%20width%3D'14'%20height%3D'14'%20rx%3D'3'%2F%3E%3Cpath%20d%3D'M7%203.5h10.5A3.5%203.5%200%200%201%2021%207v10.5'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--plus-square {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'18'%20height%3D'18'%20x%3D'3'%20y%3D'3'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M8%2012h8'%2F%3E%3Cpath%20d%3D'M12%208v8'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--eye-off {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10.733%205.076a10.744%2010.744%200%200%201%2011.205%206.575%201%201%200%200%201%200%20.696%2010.747%2010.747%200%200%201-1.444%202.49'%2F%3E%3Cpath%20d%3D'M14.084%2014.158a3%203%200%200%201-4.242-4.242'%2F%3E%3Cpath%20d%3D'M17.479%2017.499a10.75%2010.75%200%200%201-15.417-5.151%201%201%200%200%201%200-.696%2010.75%2010.75%200%200%201%204.446-5.143'%2F%3E%3Cpath%20d%3D'm2%202%2020%2020'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--reader {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M6%2022a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h8a2.4%202.4%200%200%201%201.704.706l3.588%203.588A2.4%202.4%200%200%201%2020%208v12a2%202%200%200%201-2%202z'%2F%3E%3Cpath%20d%3D'M14%202v5a1%201%200%200%200%201%201h5'%2F%3E%3Cpath%20d%3D'M10%209H8'%2F%3E%3Cpath%20d%3D'M16%2013H8'%2F%3E%3Cpath%20d%3D'M16%2017H8'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--link {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.4'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71'%2F%3E%3Cpath%20d%3D'M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--house {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M15%2021v-8a1%201%200%200%200-1-1h-4a1%201%200%200%200-1%201v8'%2F%3E%3Cpath%20d%3D'M3%2010a2%202%200%200%201%20.709-1.528l7-6a2%202%200%200%201%202.582%200l7%206A2%202%200%200%201%2021%2010v9a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--sparkles {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594z'%2F%3E%3Cpath%20d%3D'M20%202v4'%2F%3E%3Cpath%20d%3D'M22%204h-4'%2F%3E%3Ccircle%20cx%3D'4'%20cy%3D'20'%20r%3D'2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--heart-pulse {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%209.5a5.5%205.5%200%200%201%209.591-3.676.56.56%200%200%200%20.818%200A5.49%205.49%200%200%201%2022%209.5c0%202.29-1.5%204-3%205.5l-5.492%205.313a2%202%200%200%201-3%20.019L5%2015c-1.5-1.5-3-3.2-3-5.5'%2F%3E%3Cpath%20d%3D'M3.22%2013H9.5l.5-1%202%204.5%202-7%201.5%203.5h5.27'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--activity {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2012h-2.48a2%202%200%200%200-1.93%201.46l-2.35%208.36a.25.25%200%200%201-.48%200L9.24%202.18a.25.25%200%200%200-.48%200l-2.35%208.36A2%202%200%200%201%204.49%2012H2'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--pill {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm10.5%2020.5%2010-10a4.95%204.95%200%201%200-7-7l-10%2010a4.95%204.95%200%201%200%207%207Z'%2F%3E%3Cpath%20d%3D'm8.5%208.5%207%207'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--moon-star {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M18%205h4'%2F%3E%3Cpath%20d%3D'M20%203v4'%2F%3E%3Cpath%20d%3D'M20.985%2012.486a9%209%200%201%201-9.473-9.472c.405-.022.617.46.402.803a6%206%200%200%200%208.268%208.268c.344-.215.825-.004.803.401'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--footprints {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2016v-2.38C4%2011.5%202.97%2010.5%203%208c.03-2.72%201.49-6%204.5-6C9.37%202%2010%203.8%2010%205.5c0%203.11-2%205.66-2%208.68V16a2%202%200%201%201-4%200Z'%2F%3E%3Cpath%20d%3D'M20%2020v-2.38c0-2.12%201.03-3.12%201-5.62-.03-2.72-1.49-6-4.5-6C14.63%206%2014%207.8%2014%209.5c0%203.11%202%205.66%202%208.68V20a2%202%200%201%200%204%200Z'%2F%3E%3Cpath%20d%3D'M16%2017h4'%2F%3E%3Cpath%20d%3D'M4%2013h4'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--bed {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%204v16'%2F%3E%3Cpath%20d%3D'M2%208h18a2%202%200%200%201%202%202v10'%2F%3E%3Cpath%20d%3D'M2%2017h20'%2F%3E%3Cpath%20d%3D'M6%208v9'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--audio-lines {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%2010v3'%2F%3E%3Cpath%20d%3D'M6%206v11'%2F%3E%3Cpath%20d%3D'M10%203v18'%2F%3E%3Cpath%20d%3D'M14%208v7'%2F%3E%3Cpath%20d%3D'M18%205v13'%2F%3E%3Cpath%20d%3D'M22%2010v3'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--music {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9%2018V5l12-2v13'%2F%3E%3Ccircle%20cx%3D'6'%20cy%3D'18'%20r%3D'3'%2F%3E%3Ccircle%20cx%3D'18'%20cy%3D'16'%20r%3D'3'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--list {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%205h.01'%2F%3E%3Cpath%20d%3D'M3%2012h.01'%2F%3E%3Cpath%20d%3D'M3%2019h.01'%2F%3E%3Cpath%20d%3D'M8%205h13'%2F%3E%3Cpath%20d%3D'M8%2012h13'%2F%3E%3Cpath%20d%3D'M8%2019h13'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--layers {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12.83%202.18a2%202%200%200%200-1.66%200L2.6%206.08a1%201%200%200%200%200%201.83l8.58%203.91a2%202%200%200%200%201.66%200l8.58-3.9a1%201%200%200%200%200-1.83z'%2F%3E%3Cpath%20d%3D'M2%2012a1%201%200%200%200%20.58.91l8.6%203.91a2%202%200%200%200%201.65%200l8.58-3.9A1%201%200%200%200%2022%2012'%2F%3E%3Cpath%20d%3D'M2%2017a1%201%200%200%200%20.58.91l8.6%203.91a2%202%200%200%200%201.65%200l8.58-3.9A1%201%200%200%200%2022%2017'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--gear {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M9.671%204.136a2.34%202.34%200%200%201%204.659%200%202.34%202.34%200%200%200%203.319%201.915%202.34%202.34%200%200%201%202.33%204.033%202.34%202.34%200%200%200%200%203.831%202.34%202.34%200%200%201-2.33%204.033%202.34%202.34%200%200%200-3.319%201.915%202.34%202.34%200%200%201-4.659%200%202.34%202.34%200%200%200-3.32-1.915%202.34%202.34%200%200%201-2.33-4.033%202.34%202.34%200%200%200%200-3.831A2.34%202.34%200%200%201%206.35%206.051a2.34%202.34%200%200%200%203.319-1.915'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'3'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--panel-left {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20width%3D'18'%20height%3D'18'%20x%3D'3'%20y%3D'3'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M9%203v18'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--map-pin {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2010c0%204.993-5.539%2010.193-7.399%2011.799a1%201%200%200%201-1.202%200C9.539%2020.193%204%2014.993%204%2010a8%208%200%200%201%2016%200'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'10'%20r%3D'3'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--navigation {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolygon%20points%3D'3%2011%2022%202%2013%2021%2011%2013%203%2011'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--map {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M14.106%205.553a2%202%200%200%200%201.788%200l3.659-1.83A1%201%200%200%201%2021%204.619v12.764a1%201%200%200%201-.553.894l-4.553%202.277a2%202%200%200%201-1.788%200l-4.212-2.106a2%202%200%200%200-1.788%200l-3.659%201.83A1%201%200%200%201%203%2019.381V6.618a1%201%200%200%201%20.553-.894l4.553-2.277a2%202%200%200%201%201.788%200z'%2F%3E%3Cpath%20d%3D'M15%205.764v15'%2F%3E%3Cpath%20d%3D'M9%203.236v15'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.ios-icon--message-circle {
  --w: 24px;
  --h: 24px;
  --mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cg%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2.992%2016.342a2%202%200%200%201%20.094%201.167l-1.065%203.29a1%201%200%200%200%201.236%201.168l3.413-.998a2%202%200%200%201%201.099.092%2010%2010%200%201%200-4.777-4.719'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
}

/* ── components.css ── */
/* ── Components ─────────────────────────────────────────────────────────────
   Plain CSS, one `.ios-*` class per component, variants through data attributes
   (`data-variant`, `data-size`). Behavior comes from native HTML: radios, checkboxes,
   the Popover API, `:has()`, and `:user-invalid`. No JavaScript.
   Everything sits in `@layer ios`, so any unlayered rule of yours wins. */

@layer ios {
  :where([class*="ios-"]) {
    box-sizing: border-box;
  }

  /* Visually hidden but still focusable inputs (radios behind labels). */
  .ios-tab > input,
  .ios-segmented > label > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }

  /* ── Icons (CSS masks, colored by `color`) ── */
  .ios-icon {
    display: inline-block;
    flex: none;
    width: var(--w, 24px);
    height: var(--h, 24px);
    background: currentColor;
    -webkit-mask: var(--mask) center / contain no-repeat;
    mask: var(--mask) center / contain no-repeat;
  }

  /* ── Device and screen ──
     1 CSS px = 1 pt. Set --ios-safe-top / --ios-safe-bottom on .ios-screen for other iPhones,
     or pick a whole model with data-model on .ios-device (devices.css).
     The frame is a black bezel inside a metal band. --ios-frame colors the band and buttons. */
  .ios-device {
    --ios-frame: #4a4a4e;
    --ios-bezel: 11px;
    --ios-band: 4px;
    --ios-device-radius: 62px;
    --ios-shine: 40%;
    position: relative;
    display: inline-block;
    vertical-align: top;
    padding: var(--ios-bezel);
    border: var(--ios-band) solid transparent;
    border-radius: calc(var(--ios-device-radius) + var(--ios-bezel) + var(--ios-band));
    background:
      linear-gradient(#0b0b0c, #0b0b0c) padding-box,
      linear-gradient(
          135deg,
          color-mix(in oklab, var(--ios-frame), white var(--ios-shine)),
          var(--ios-frame) 16%,
          color-mix(in oklab, var(--ios-frame), black 22%) 48%,
          var(--ios-frame) 84%,
          color-mix(in oklab, var(--ios-frame), white calc(var(--ios-shine) * 0.8))
        )
        border-box;
    box-shadow:
      inset 0 0 0 1px color-mix(in oklab, var(--ios-frame), black 45%),
      0 0 0 0.5px color-mix(in oklab, var(--ios-frame), black 40%),
      0 40px 80px -24px rgb(0 0 0 / 0.35);
  }

  .ios-screen {
    --ios-safe-top: 62px;
    --ios-safe-bottom: 34px;
    --ios-screen-radius: 62px;
    --ios-edge-color: var(--ios-background);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 402px;
    height: 874px;
    border-radius: var(--ios-screen-radius);
    background: var(--ios-background);
    color: var(--ios-label);
    font-family: var(--ios-font);
    -webkit-font-smoothing: antialiased;
  }

  .ios-screen--grouped {
    background: var(--ios-grouped-background);
    --ios-edge-color: var(--ios-grouped-background);
  }

  .ios-island {
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 60;
    width: var(--ios-island-w, 126px);
    height: 37px;
    translate: -50% 0;
    border-radius: 999px;
    background: #000;
  }

  .ios-home-indicator {
    position: absolute;
    inset: auto 0 0;
    z-index: 50;
    height: var(--ios-safe-bottom);
    pointer-events: none;
  }
  .ios-home-indicator::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 139px;
    height: 5px;
    translate: -50% 0;
    border-radius: 999px;
    background: var(--ios-label);
  }

  .ios-screen__scroll {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: calc(var(--ios-safe-top) + 125px) 0 130px;
    scrollbar-width: none;
  }
  .ios-screen__scroll::-webkit-scrollbar {
    display: none;
  }

  /* ── Status bar ── */
  .ios-statusbar {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--ios-safe-top);
    pointer-events: none;
    user-select: none;
  }
  .ios-statusbar__row {
    position: absolute;
    inset: 4px 0 auto;
    display: flex;
    align-items: center;
    height: 51px;
    padding: 0 10px;
  }
  .ios-statusbar__time {
    flex: 1;
    padding-left: 6px;
    text-align: center;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
  }
  .ios-statusbar__island-gap {
    flex: none;
    width: var(--ios-island-w, 126px);
  }
  .ios-statusbar__icons {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-right: 2px;
  }

  .ios-battery {
    position: relative;
    flex: none;
    width: 27px;
    height: 13px;
  }
  .ios-battery::before {
    content: "";
    position: absolute;
    inset: 0 3px 0 0;
    border: 1px solid currentColor;
    border-radius: 3.8px;
    opacity: 0.35;
  }
  .ios-battery::after {
    content: "";
    position: absolute;
    top: 4.5px;
    right: 0;
    width: 1.5px;
    height: 4px;
    border-radius: 0 2px 2px 0;
    background: currentColor;
    opacity: 0.4;
  }
  .ios-battery > i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(20px * var(--level, 100) / 100);
    height: 9px;
    border-radius: 2.2px;
    background: currentColor;
  }

  /* ── Liquid Glass ──
     Tokens (--ios-glass-*) are generated; this applies them to the glass surfaces. */
  .ios-glass,
  .ios-barbutton,
  .ios-tabbar__bar::after,
  .ios-tabbar__search,
  .ios-button[data-variant="glass"] {
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }

  /* ── Scroll edge (fade and blur under floating bars) ── */
  .ios-scrolledge {
    position: absolute;
    inset: 0 0 auto;
    z-index: 30;
    height: 200px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--ios-edge-color) 88%, transparent),
      color-mix(in srgb, var(--ios-edge-color) 55%, transparent) 50%,
      transparent
    );
  }
  .ios-scrolledge::before {
    content: "";
    position: absolute;
    inset: 0;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
  }
  .ios-scrolledge[data-edge="bottom"] {
    inset: auto 0 0;
    height: 110px;
    background: linear-gradient(
      to top,
      color-mix(in srgb, var(--ios-edge-color) 88%, transparent),
      color-mix(in srgb, var(--ios-edge-color) 55%, transparent) 50%,
      transparent
    );
  }
  .ios-scrolledge[data-edge="bottom"]::before {
    display: none;
  }

  /* ── Navigation bar ── */
  .ios-navbar {
    position: relative;
    z-index: 40;
  }
  /* A direct child of a screen floats under the status bar. */
  .ios-screen > .ios-navbar {
    position: absolute;
    inset: var(--ios-safe-top) 0 auto;
  }
  .ios-navbar__bar {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    height: 54px;
    padding: 0 16px 10px;
  }
  .ios-navbar__leading,
  .ios-navbar__trailing {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
  }
  .ios-navbar__inline-title {
    position: absolute;
    inset: 0 96px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 0;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    pointer-events: none;
  }
  .ios-navbar__large-title {
    margin: 0;
    padding: 6px 16px 10px;
    font: 700 34px/41px var(--ios-font);
    letter-spacing: 0.4px;
  }

  .ios-barbutton {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--ios-glass-label);
    font: 500 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-barbutton:active {
    transform: scale(1.06);
  }
  .ios-barbutton:has(> .ios-icon:only-child) {
    width: 44px;
    padding: 0;
  }
  .ios-barbutton[data-variant="prominent"] {
    background: var(--ios-tint);
    color: #fff;
    box-shadow: var(--ios-glass-prominent-shadow);
  }

  /* ── Tab bar ── (radios inside labels; the lens follows :checked through :has) */
  .ios-tabbar {
    position: relative;
    z-index: 40;
    display: flex;
    width: 100%;
    gap: 18px;
    height: 95px;
    padding: 16px 25px 0;
  }
  /* A direct child of a screen pins to the bottom. */
  .ios-screen > .ios-tabbar {
    position: absolute;
    inset: auto 0 0;
  }
  .ios-tabbar__bar {
    --tabs: 4;
    --i: 0;
    position: relative;
    isolation: isolate;
    display: flex;
    flex: 1;
    min-width: 0;
    height: 54px;
  }
  .ios-tabbar__bar::after {
    content: "";
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: 999px;
  }
  .ios-tabbar__bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(100% / var(--tabs));
    border-radius: 999px;
    background: var(--ios-tab-selection);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform 0.45s cubic-bezier(0.3, 1.25, 0.4, 1);
  }
  .ios-tabbar__bar:has(.ios-tab:nth-child(2) > input:checked) { --i: 1; }
  .ios-tabbar__bar:has(.ios-tab:nth-child(3) > input:checked) { --i: 2; }
  .ios-tabbar__bar:has(.ios-tab:nth-child(4) > input:checked) { --i: 3; }
  .ios-tabbar__bar:has(.ios-tab:nth-child(5) > input:checked) { --i: 4; }

  .ios-tab {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    border-radius: 999px;
    color: var(--ios-glass-label);
    font: 600 10px/12px var(--ios-font);
    letter-spacing: 0.1px;
    user-select: none;
  }
  .ios-tab .ios-icon {
    --w: 24px;
    --h: 24px;
  }
  .ios-tab:has(> input:checked) {
    color: var(--ios-tint);
  }
  .ios-tab:has(> input:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
  }
  .ios-tabbar__search {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 999px;
    color: var(--ios-glass-label);
    cursor: pointer;
  }

  /* ── List (inset grouped) ── */
  .ios-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .ios-list__section {
    display: flex;
    flex-direction: column;
  }
  .ios-list__header {
    margin: 0;
    padding: 10px 32px;
    color: var(--ios-secondary-label);
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-list__footer {
    margin: 0;
    padding: 8px 32px 6px;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-list__group {
    margin: 0 16px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--ios-secondary-grouped-background);
  }

  .ios-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 0 0 16px;
    border: 0;
    background: none;
    color: var(--ios-label);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    text-align: left;
    text-decoration: none;
  }
  :is(a, button).ios-row {
    cursor: pointer;
    transition: background-color 0.15s;
  }
  :is(a, button).ios-row:active {
    background: var(--ios-gray4);
  }
  .ios-row__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--bg, var(--ios-blue));
    color: #fff;
  }
  .ios-row__icon .ios-icon {
    --w: 20px;
    --h: 20px;
  }
  .ios-row__body {
    display: flex;
    flex: 1;
    align-items: center;
    align-self: stretch;
    gap: 8px;
    min-width: 0;
    padding: 11px 16px 11px 0;
  }
  /* Separators start at the text, so they inset past the icon. */
  .ios-row:not(:first-child) > .ios-row__body {
    border-top: 0.5px solid var(--ios-separator);
  }
  .ios-row__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-row__detail {
    color: var(--ios-secondary-label);
  }
  .ios-row .ios-icon--chevron-right {
    color: var(--ios-tertiary-label);
  }

  /* ── Switch ── (a real checkbox) */
  .ios-switch {
    position: relative;
    flex: none;
    width: 64px;
    height: 28px;
    margin: 0;
    border-radius: 999px;
    background: var(--ios-secondary-fill);
    appearance: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .ios-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 38px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 0 0 0.5px rgb(0 0 0 / 0.04);
    transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.5, 1);
  }
  .ios-switch:checked {
    background: var(--ios-green);
  }
  .ios-switch:checked::before {
    transform: translateX(22px);
  }
  .ios-switch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .ios-switch:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }

  /* ── Segmented control ── (radios inside labels) */
  .ios-segmented {
    --n: 3;
    --i: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    height: 32px;
    padding: 2px;
    border-radius: 999px;
    background: var(--ios-tertiary-fill);
    user-select: none;
  }
  .ios-segmented[data-size="sm"] { height: 28px; }
  .ios-segmented[data-size="lg"] { height: 40px; }
  .ios-segmented::before {
    content: "";
    position: absolute;
    inset: 2px auto 2px 2px;
    width: calc((100% - 4px) / var(--n));
    border-radius: 999px;
    background: var(--ios-segment-selection);
    box-shadow: 0 3px 8px rgb(0 0 0 / 0.12), 0 3px 1px rgb(0 0 0 / 0.04);
    transform: translateX(calc(var(--i) * 100%));
    transition: transform 0.35s cubic-bezier(0.3, 1.2, 0.4, 1);
  }
  .ios-segmented:has(> label:nth-child(2) > input:checked) { --i: 1; }
  .ios-segmented:has(> label:nth-child(3) > input:checked) { --i: 2; }
  .ios-segmented:has(> label:nth-child(4) > input:checked) { --i: 3; }
  .ios-segmented:has(> label:nth-child(5) > input:checked) { --i: 4; }
  .ios-segmented > label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0 8px;
    border-radius: 999px;
    font: 500 13px/18px var(--ios-font);
    cursor: pointer;
  }
  .ios-segmented[data-size="lg"] > label { font-size: 15px; line-height: 20px; }
  .ios-segmented > label:has(> input:checked) { font-weight: 600; }
  .ios-segmented > label:has(> input:focus-visible) { outline: 2px solid var(--ios-tint); }
  /* Hairlines between segments, hidden beside the thumb. */
  .ios-segmented > label + label::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 14px;
    translate: 0 -50%;
    background: var(--ios-opaque-separator);
    transition: opacity 0.2s;
  }
  .ios-segmented > label:has(> input:checked)::before,
  .ios-segmented > label:has(> input:checked) + label::before {
    opacity: 0;
  }

  /* ── Button ── */
  .ios-button {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    color: var(--ios-label);
    font: 500 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s, opacity 0.2s;
  }
  .ios-button[data-size="sm"] { height: 28px; padding: 0 10px; gap: 3px; }
  .ios-button[data-size="lg"] { height: 50px; padding: 0 20px; font: 600 17px/22px var(--ios-font); letter-spacing: -0.43px; }
  .ios-button[data-variant="glass"] { color: var(--ios-glass-label); }
  .ios-button[data-variant="glass-prominent"] { background: var(--ios-tint); color: #fff; box-shadow: var(--ios-glass-prominent-shadow); }
  .ios-button[data-variant="filled"] { background: var(--ios-tint); color: #fff; }
  .ios-button[data-variant="tinted"] { background: color-mix(in srgb, var(--ios-tint) 15%, transparent); color: var(--ios-tint); }
  .ios-button[data-variant="gray"] { background: var(--ios-tertiary-fill); color: var(--ios-tint); }
  .ios-button[data-variant="plain"] { background: none; color: var(--ios-tint); }
  .ios-button[data-variant="glass"]:active,
  .ios-button[data-variant="glass-prominent"]:active { transform: scale(1.04); }
  .ios-button:is([data-variant="filled"], [data-variant="tinted"], [data-variant="gray"], [data-variant="plain"]):active { opacity: 0.7; }
  .ios-button:disabled { opacity: 0.35; pointer-events: none; }
  .ios-button[data-block] { display: flex; width: 100%; }
  .ios-button:focus-visible { outline: 2px solid var(--ios-tint); outline-offset: 2px; }

  /* ── Text field ── (validation is native: required, type="email", :user-invalid) */
  .ios-field {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 22px;
    background: var(--ios-tertiary-fill);
    color: var(--ios-label);
    caret-color: var(--ios-tint);
    font: 400 17px/22px var(--ios-font); /* 17px keeps iOS Safari from zooming on focus */
    letter-spacing: -0.43px;
    outline: none;
    transition: box-shadow 0.15s;
  }
  .ios-field::placeholder {
    color: var(--ios-tertiary-label);
  }
  .ios-field[data-variant="outlined"] {
    padding: 0 12px;
    border-radius: 10px;
    background: var(--ios-background);
    box-shadow: inset 0 0 0 1px var(--ios-tertiary-label);
  }
  .ios-field[data-variant="outlined"]:focus {
    box-shadow: inset 0 0 0 2px var(--ios-tint);
  }
  .ios-field:disabled {
    opacity: 0.5;
  }
  .ios-field:is(:user-invalid, [aria-invalid="true"]) {
    box-shadow: inset 0 0 0 1.5px var(--ios-red);
  }
  /* The browser's own clear button, restyled. Only <input type="search"> has one. */
  .ios-field[type="search"]::-webkit-search-cancel-button {
    width: 18px;
    height: 18px;
    background: var(--ios-tertiary-label);
    -webkit-mask: var(--ios-clear-mask) center / contain no-repeat;
    mask: var(--ios-clear-mask) center / contain no-repeat;
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .ios-field-help,
  .ios-field-error {
    margin: 0;
    padding: 0 16px;
    font: 400 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-field-help { color: var(--ios-secondary-label); }
  .ios-field-error { display: none; color: var(--ios-red); }
  .ios-field-group:has(.ios-field:user-invalid) .ios-field-error { display: block; }
  .ios-field-group:has(.ios-field:user-invalid) .ios-field-help { display: none; }

  /* ── Menu ── (Popover API: opens, light-dismisses and handles Escape with no script;
     CSS anchor positioning puts it beside the button that opened it.) */
  .ios-menu {
    --ios-glass-bg: color-mix(in srgb, var(--ios-tertiary-background) 90%, transparent);
    --ios-glass-blur: 28px;
    position: fixed;
    inset: auto;
    position-area: bottom span-left;
    position-try-fallbacks: flip-block;
    margin: 8px 0;
    width: 250px;
    padding: 8px;
    border: 0;
    border-radius: 30px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow), 0 18px 50px rgb(0 0 0 / 0.22);
    color: var(--ios-label);
    font-family: var(--ios-font);
    overflow: hidden;
    transform-origin: top right;
    transition: opacity 0.18s, scale 0.38s cubic-bezier(0.2, 1.2, 0.4, 1), display 0.2s allow-discrete, overlay 0.2s allow-discrete;
  }
  .ios-menu:not(:popover-open) {
    opacity: 0;
    scale: 0.6;
  }
  @starting-style {
    .ios-menu:popover-open {
      opacity: 0;
      scale: 0.6;
    }
  }
  .ios-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 6px 14px;
    border: 0;
    border-radius: 22px;
    background: none;
    color: inherit;
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    text-align: left;
    cursor: pointer;
  }
  .ios-menu__item:hover,
  .ios-menu__item:focus-visible { background: var(--ios-tertiary-fill); outline: none; }
  .ios-menu__item:active { background: var(--ios-secondary-fill); }
  .ios-menu__item > span { flex: 1; }
  .ios-menu__item > .ios-icon { --w: 20px; --h: 20px; }
  .ios-menu__item[data-destructive] { color: var(--ios-red); }
  /* Selection menus: a check on the left for the chosen item. */
  .ios-menu__item[aria-checked]::before {
    content: "";
    flex: none;
    width: 17px;
    height: 16px;
    margin: 0 -2px 0 0;
    background: currentColor;
    -webkit-mask: var(--ios-check-mask) center / contain no-repeat;
    mask: var(--ios-check-mask) center / contain no-repeat;
    visibility: hidden;
  }
  .ios-menu__item[aria-checked="true"]::before { visibility: visible; }
  .ios-menu__label {
    padding: 8px 14px 4px;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
  }
  .ios-menu__separator {
    height: 8px;
    margin: 6px -8px;
    border: 0;
    background: var(--ios-quaternary-fill);
  }
}


/* ── controls.css ── */
/* ── Controls: surface, device sizes, search, text area, stepper, progress parts ── */

@layer ios {
  /* ── Surface ──
     A screen-colored box for showing a component without a whole phone (docs, galleries).
     It provides the same variables and context as .ios-screen, minus the fixed size. */
  .ios-surface {
    --ios-safe-top: 62px;
    --ios-safe-bottom: 34px;
    --ios-screen-radius: 62px;
    --ios-edge-color: var(--ios-background);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 402px;
    max-width: 100%;
    border-radius: 18px;
    background: var(--ios-background);
    color: var(--ios-label);
    font-family: var(--ios-font);
    -webkit-font-smoothing: antialiased;
  }
  .ios-surface[data-bg="grouped"] {
    background: var(--ios-grouped-background);
  }

  /* ── Other iPhones ── (1 CSS px = 1 pt) */
  .ios-screen[data-device="iphone-17-pro-max"] {
    width: 440px;
    height: 956px;
  }
  .ios-screen[data-device="iphone-16"] {
    --ios-safe-top: 59px;
    --ios-screen-radius: 55px;
    width: 393px;
    height: 852px;
  }

  /* ── Search bar ── glass capsule by default; data-variant="filled" for in-content use. */
  .ios-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .ios-search {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
  }
  .ios-search[data-variant="filled"] {
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    background: var(--ios-tertiary-fill);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ios-secondary-label);
  }
  .ios-search > .ios-icon--search {
    --w: 18px;
    --h: 18px;
  }
  .ios-search[data-variant="filled"] > .ios-icon--search {
    --w: 16px;
    --h: 16px;
  }
  .ios-search > input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ios-label);
    caret-color: var(--ios-tint);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-search > input::placeholder {
    color: var(--ios-secondary-label);
  }
  .ios-search > input::-webkit-search-cancel-button {
    width: 18px;
    height: 18px;
    background: var(--ios-tertiary-label);
    -webkit-mask: var(--ios-clear-mask) center / contain no-repeat;
    mask: var(--ios-clear-mask) center / contain no-repeat;
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-search__mic {
    --w: 14px;
    --h: 20px;
  }
  /* The mic only shows while the field is empty. */
  .ios-search:has(> input:not(:placeholder-shown)) > .ios-search__mic {
    display: none;
  }
  .ios-search__cancel {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-search__cancel:active {
    transform: scale(1.06);
  }
  .ios-search__cancel[data-variant="text"] {
    width: auto;
    height: auto;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ios-tint);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }

  /* ── Text field extras ── */
  .ios-field[data-variant="plain"] {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  /* Multi-line: <textarea class="ios-field">. It grows with its text where field-sizing is supported. */
  textarea.ios-field {
    height: auto;
    min-height: 88px;
    padding: 11px 16px;
    border-radius: 22px;
    field-sizing: content;
    max-height: 198px;
    resize: none;
  }
  textarea.ios-field[data-variant="outlined"] {
    padding: 11px 12px;
    border-radius: 10px;
  }
  textarea.ios-field[data-variant="plain"] {
    padding: 11px 0;
    border-radius: 0;
  }
  /* A labeled row inside a list group: <div class="ios-field-row"><label for>…</label><input></div> */
  .ios-field-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
  }
  /* Inset separator, starting at the text like list rows. */
  .ios-field-row:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 16px;
    height: 0.5px;
    background: var(--ios-separator);
  }
  .ios-field-row > label {
    display: flex;
    align-items: center;
    flex: none;
    width: 96px;
    min-height: 44px;
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-field-row > .ios-field {
    flex: 1;
    min-width: 0;
  }

  /* ── Stepper ── The buttons are plain; wire them up with an inline handler if you want them live, e.g.
     onclick="this.closest('.ios-stepper').nextElementSibling.stepUp()". */
  .ios-stepper {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: stretch;
    width: 94px;
    height: 32px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ios-tertiary-fill);
    color: var(--ios-label);
    user-select: none;
  }
  .ios-stepper::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: var(--ios-opaque-separator);
  }
  .ios-stepper > button {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.1s;
  }
  .ios-stepper > button:active {
    background: var(--ios-tertiary-fill);
  }
  .ios-stepper > button:disabled {
    color: var(--ios-tertiary-label);
    pointer-events: none;
  }
  .ios-stepper .ios-icon {
    --w: 17px;
    --h: 17px;
  }
  .ios-stepper:focus-within {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }

  /* ── Badge ── red count on an icon: put it inside a position: relative parent. */
  .ios-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--ios-red);
    color: #fff;
    font: 500 14px/22px var(--ios-font);
    text-align: center;
  }

  /* ── Progress bar ── <div class="ios-progress" style="--value: 72"><i></i></div> */
  .ios-progress {
    --color: #fff;
    width: 100%;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.25);
  }
  .ios-progress > i {
    display: block;
    width: calc(var(--value, 0) * 1%);
    height: 100%;
    border-radius: inherit;
    background: var(--color);
    transition: width 0.5s ease-out;
  }

  /* ── Progress ring ── <span class="ios-ring" style="--value: 70">glyph</span> */
  .ios-ring {
    --size: 24px;
    --stroke: 3px;
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--size);
    height: var(--size);
  }
  .ios-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(currentColor calc(var(--value, 0) * 1%), color-mix(in srgb, currentColor 25%, transparent) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 0.5px), #000 calc(100% - var(--stroke)));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke) - 0.5px), #000 calc(100% - var(--stroke)));
  }

  /* ── Waveform ── four bars that bounce. data-paused holds them still. */
  .ios-wave {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 18px;
  }
  .ios-wave > i {
    width: 3px;
    height: 100%;
    border-radius: 999px;
    background: currentColor;
    animation: ios-wave 800ms ease-in-out infinite;
  }
  .ios-wave > i:nth-child(2) { animation-duration: 930ms; animation-delay: -170ms; }
  .ios-wave > i:nth-child(3) { animation-duration: 1060ms; animation-delay: -340ms; }
  .ios-wave > i:nth-child(4) { animation-duration: 1190ms; animation-delay: -510ms; }
  .ios-wave[data-paused] > i {
    animation: none;
    transform: scaleY(0.3);
  }

  /* ── Countdown timer ── <span class="ios-timer" style="--from: 272"></span>
     Counts down by itself: an animated integer property drives CSS counters. */
  .ios-timer {
    counter-reset: ios-m calc(var(--ios-t) / 60 - 0.5) ios-s mod(var(--ios-t), 60);
    animation: ios-countdown calc(var(--from, 60) * 1s) linear forwards;
    font-variant-numeric: tabular-nums;
  }
  .ios-timer::after {
    content: counter(ios-m) ":" counter(ios-s, decimal-leading-zero);
  }
  @media (prefers-reduced-motion: reduce) {
    .ios-timer { animation: none; --ios-t: var(--from, 60); }
  }

  /* Bar buttons that share one glass capsule. */
  .ios-barbutton-group {
    display: inline-flex;
    flex: none;
    height: 44px;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-barbutton-group > .ios-barbutton {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  /* A press target for a context menu. */
  .ios-ctx {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-touch-callout: none;
  }

  .ios-home-indicator[data-tone="white"]::after { background: #fff; }

  /* ── Small additions to core components ── */

  /* Links and labels styled as buttons. */
  a.ios-button,
  a.ios-barbutton,
  a.ios-alert__action {
    text-decoration: none;
  }
  a.ios-button {
    display: inline-flex;
  }

  /* Battery states: data-low turns red, data-charging green. */
  .ios-battery[data-low] > i { background: var(--ios-red); }
  .ios-battery[data-charging] > i { background: var(--ios-green); }

  /* List: plain (full-width) variant, tone for text rows, and selection rows. */
  .ios-list__group[data-variant="plain"] {
    margin: 0;
    border-radius: 0;
    background: var(--ios-background);
  }
  .ios-list__header[data-variant="plain"],
  .ios-list__footer[data-variant="plain"] {
    padding-right: 16px;
    padding-left: 16px;
  }
  .ios-row { position: relative; }
  .ios-row__title[data-tone="tint"] { color: var(--ios-tint); }
  .ios-row__title[data-tone="destructive"] { color: var(--ios-red); }
  .ios-row__subtitle {
    display: block;
    color: var(--ios-secondary-label);
    font: 400 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-row[data-tall] { min-height: 68px; }
  /* Choose-one rows: <label class="ios-row"><input type="radio" name="…"> …<i class="ios-icon ios-icon--checkmark ios-row__check"></i></label> */
  label.ios-row > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-row__check {
    color: var(--ios-tint);
    visibility: hidden;
  }
  .ios-row:has(> input:checked) .ios-row__check {
    visibility: visible;
  }
  .ios-row:has(> input:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
  }
}

/* Registered properties and keyframes live outside the layer. */
@property --ios-t {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}
@keyframes ios-countdown {
  from { --ios-t: var(--from, 60); }
  to { --ios-t: 0; }

}



/* ── overlays.css ── */
/* ── Overlays: layers (alert, sheet), notifications, context menu ──
   Modals are opened with :target, so they need no script and stay inside the phone:
     <a href="#my-alert">Open</a>   …   <div id="my-alert" class="ios-layer">…</div>
   Anything inside the layer that links to "#_" closes it (nothing matches "_", so the page doesn't jump).
   Limits: one layer open at a time per page, and Back steps through them. */

@layer ios {
  /* ── Layer ── full-screen container that fades its children in when targeted. */
  .ios-layer {
    position: absolute;
    inset: 0;
    z-index: 52;
    visibility: hidden;
    pointer-events: none;
    /* Stay visible long enough for the exit transition. */
    transition: visibility 0s linear 0.45s;
  }
  .ios-layer:target,
  .ios-layer:has(:target),
  .ios-layer[data-open],
  .ios-layer:has([data-open]) {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .ios-layer__scrim {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.25);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .ios-layer:is(:target, :has(:target), [data-open], :has([data-open])) > .ios-layer__scrim {
    opacity: 1;
  }

  /* Denser glass for surfaces that sit over busy content. */
  .ios-alert,
  .ios-sheet[data-detent="medium"],
  .ios-notification-banner {
    --ios-glass-bg: color-mix(in srgb, var(--ios-background) 82%, transparent);
    --ios-glass-blur: 24px;
  }

  /* ── Alert ── */
  .ios-alert-layer {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .ios-alert {
    position: relative;
    width: 300px;
    padding: 14px;
    border-radius: 34px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-label);
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 0.2s ease-out, transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .ios-layer:is(:target, :has(:target), [data-open], :has([data-open])) > .ios-alert {
    opacity: 1;
    transform: none;
  }
  .ios-alert__text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px 20px;
  }
  .ios-alert__title {
    margin: 0;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-alert__message {
    margin: 0;
    font: 400 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-alert__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
  }
  .ios-alert__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ios-alert__actions[data-layout="side"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  /* Stacked: Cancel goes last, as on iOS. */
  .ios-alert__actions:not([data-layout="side"]) > [data-role="cancel"] {
    order: 99;
  }
  .ios-alert__action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ios-secondary-fill);
    color: var(--ios-label);
    font: 500 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s;
  }
  .ios-alert__action:active {
    filter: brightness(0.9);
  }
  .ios-alert__action[data-destructive] {
    color: var(--ios-red);
  }
  .ios-alert__action[data-preferred] {
    background: var(--ios-tint);
    color: #fff;
    font-weight: 600;
  }
  .ios-alert__action[data-preferred][data-destructive] {
    background: var(--ios-red);
  }

  /* ── Sheet ── data-detent="medium" floats as an inset glass card; "large" fills the screen. */
  .ios-sheet {
    position: absolute;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--ios-label);
    transform: translateY(calc(100% + 12px));
    transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .ios-layer:is(:target, :has(:target), [data-open], :has([data-open])) > .ios-sheet {
    transform: none;
  }
  .ios-sheet[data-detent="medium"] {
    inset: auto 6px 6px;
    height: var(--sheet-h, 52.5%);
    border-radius: 34px 34px calc(var(--ios-screen-radius, 62px) - 6px) calc(var(--ios-screen-radius, 62px) - 6px);
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-sheet[data-detent="large"] {
    inset: var(--ios-safe-top, 62px) 0 0;
    border-radius: 38px 38px 0 0;
    background: var(--ios-background);
  }
  .ios-sheet__grabber {
    position: absolute;
    top: 5px;
    left: 50%;
    width: 36px;
    height: 5px;
    translate: -50% 0;
    border-radius: 999px;
    background: var(--ios-tertiary-label);
  }
  .ios-sheet__toolbar {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    min-height: 60px;
    padding: 10px 16px 6px;
  }
  .ios-sheet__leading,
  .ios-sheet__trailing {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
  }
  .ios-sheet__trailing {
    justify-content: flex-end;
  }
  .ios-sheet__title {
    position: absolute;
    inset: 10px 96px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin: 0;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    pointer-events: none;
  }
  .ios-sheet__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: var(--ios-safe-bottom, 34px);
    scrollbar-width: none;
  }

  /* ── Notification ── */
  .ios-notification-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px;
  }
  .ios-notification {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-label);
    font-family: var(--ios-font);
  }
  .ios-notification__icon {
    flex: none;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 9px;
  }
  .ios-notification__icon > img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .ios-notification__body {
    flex: 1;
    min-width: 0;
  }
  .ios-notification__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .ios-notification__title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-notification__time {
    flex: none;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-notification__subtitle {
    overflow: hidden;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-notification__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
    margin: 0;
    font: 400 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-notification__footer {
    margin-top: 2px;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-notification__attachment {
    flex: none;
    align-self: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 8px;
  }
  /* Stacked group: wrap the front card in .ios-notification-stack so cards peek out behind it.
     data-stack="2" or "3". (The layers are on the wrapper because a glass card is its own stacking context.) */
  .ios-notification-stack {
    position: relative;
    isolation: isolate;
    margin-bottom: 8px;
  }
  .ios-notification-stack[data-stack="3"] {
    margin-bottom: 16px;
  }
  .ios-notification-stack::before,
  .ios-notification-stack[data-stack="3"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 24px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    transform-origin: bottom;
    transform: translateY(8px) scaleX(0.95);
    opacity: 0.75;
  }
  .ios-notification-stack[data-stack="3"]::before {
    transform: translateY(16px) scaleX(0.9);
    opacity: 0.5;
  }

  /* Banner: drops in below the Dynamic Island while an app is open. */
  .ios-notification-banner {
    position: absolute;
    inset: calc(var(--ios-safe-top) - 6px) 8px auto;
    z-index: 55;
    animation: ios-banner-in 550ms cubic-bezier(0.2, 1.2, 0.4, 1) both;
  }
  @media (prefers-reduced-motion: reduce) {
    .ios-notification-banner { animation: none; }
  }

  /* Swipe actions: a scroll-snap row, so swiping reveals the buttons with no script. */
  .ios-swipe {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-radius: 24px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ios-swipe::-webkit-scrollbar {
    display: none;
  }
  .ios-swipe > .ios-notification {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .ios-swipe__actions {
    display: flex;
    flex: none;
    gap: 8px;
    scroll-snap-align: end;
  }
  .ios-swipe__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    border: 0;
    border-radius: 24px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-label);
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
    text-decoration: none;
    cursor: pointer;
  }
  .ios-swipe__action[data-destructive] {
    color: var(--ios-red);
  }

  /* ── Context menu ── a popover menu with a blurred, dimmed backdrop:
     <div class="ios-menu" popover data-context>. It opens on click; long-press needs script. */
  /* Alignment: the default opens below and extends left (for buttons at the right edge). */
  .ios-menu[data-align="start"] {
    position-area: bottom span-right;
    transform-origin: top left;
  }
  .ios-menu[data-align="center"] {
    position-area: bottom;
    transform-origin: top center;
  }
  .ios-menu[data-side="top"] {
    position-area: top span-left;
    transform-origin: bottom right;
  }
  .ios-menu[data-side="top"][data-align="start"] {
    position-area: top span-right;
    transform-origin: bottom left;
  }
  .ios-menu[data-context] {
    position-area: bottom span-right;
    transform-origin: top left;
  }
  .ios-menu[data-context]::backdrop {
    background: rgb(0 0 0 / 0.25);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
}


/* ── screens.css ── */
/* ── Screens: lock screen, home screen, Control Center ──
   Wallpapers are a CSS background: style="--wallpaper: url(photo.jpg) center / cover". */

@layer ios {
  /* Clear glass tinted white, for controls that sit directly on a wallpaper. */
  .ios-lock__widget,
  .ios-lock-button,
  .ios-dock,
  .ios-home__search,
  .ios-module,
  .ios-cc__button {
    background-color: rgb(255 255 255 / 0.14);
    -webkit-backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }

  /* ── Lock screen ── */
  .ios-lock {
    --wallpaper: radial-gradient(120% 70% at 20% 10%, #ff9a6b 0%, transparent 55%), radial-gradient(90% 60% at 90% 35%, #7b6cff 0%, transparent 60%),
      radial-gradient(120% 70% at 40% 100%, #1fb5a8 0%, transparent 60%), linear-gradient(180deg, #3b2a7a, #12243f);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--wallpaper);
    color: #fff;
    font-family: var(--ios-font);
    user-select: none;
  }
  .ios-lock__top {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--ios-safe-top) + 6px);
  }
  .ios-lock__date {
    font: 600 21px/26px var(--ios-font);
    letter-spacing: -0.3px;
    opacity: 0.9;
    text-shadow: 0 1px 8px rgb(0 0 0 / 0.12);
  }
  .ios-lock__clock {
    margin-top: -4px;
    color: rgb(255 255 255 / 0.62);
    font: 600 112px/112px var(--ios-font);
    letter-spacing: -3px;
    font-variant-numeric: tabular-nums;
    mix-blend-mode: plus-lighter;
    text-shadow: 0 1px 0 rgb(255 255 255 / 0.55), 0 -1px 0 rgb(0 0 0 / 0.06), 0 4px 24px rgb(0 0 0 / 0.12);
  }
  .ios-lock__clock[data-style="solid"] {
    color: #fff;
    mix-blend-mode: normal;
    text-shadow: 0 2px 20px rgb(0 0 0 / 0.12);
  }
  .ios-lock__widgets {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
    padding: 0 28px;
  }
  .ios-lock__widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 72px;
    padding: 0 10px;
    border-radius: 22px;
    font: 600 15px/18px var(--ios-font);
  }
  .ios-lock__widget[data-wide] {
    align-items: flex-start;
    width: 158px;
  }
  .ios-lock__widget small {
    font: 600 13px/16px var(--ios-font);
    opacity: 0.75;
  }
  .ios-lock__notifications {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding-bottom: 12px;
    overflow: hidden;
  }
  .ios-lock__controls {
    display: flex;
    flex: none;
    justify-content: space-between;
    padding: 0 46px calc(var(--ios-safe-bottom) + 16px);
  }
  .ios-lock-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
  }
  .ios-lock-button:active {
    transform: scale(1.12);
  }
  .ios-lock-button > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  /* Flashlight on: a checkbox inside the button. */
  .ios-lock-button:has(> input:checked) {
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 16px rgb(0 0 0 / 0.15);
  }

  /* ── Home screen ── */
  .ios-home {
    --wallpaper: radial-gradient(120% 60% at 0% 0%, #ff8a5c 0%, transparent 55%), radial-gradient(100% 60% at 100% 30%, #6c5cff 0%, transparent 60%),
      radial-gradient(120% 60% at 30% 100%, #13b3a0 0%, transparent 60%), linear-gradient(180deg, #3d2b86, #0f2a45);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--wallpaper);
    color: #fff;
    font-family: var(--ios-font);
    user-select: none;
  }
  .ios-home::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .ios-home__page {
    position: relative;
    flex: 1;
    min-height: 0;
    padding-top: calc(var(--ios-safe-top) + 12px);
  }
  .ios-home__grid {
    display: grid;
    grid-template-columns: repeat(4, 64px);
    grid-auto-rows: 84px;
    row-gap: 20px;
    justify-content: space-between;
    padding: 0 27px;
  }
  .ios-home__search {
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
    gap: 5px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font: 600 13px/1 var(--ios-font);
    cursor: pointer;
  }
  .ios-home__search .ios-icon {
    --w: 12px;
    --h: 12px;
  }
  .ios-dock {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 92px;
    margin: 14px 12px 22px;
    padding: 0 14px;
    border-radius: 38px;
  }
  .ios-dock .ios-app {
    align-self: center;
  }

  /* App icon: pass the artwork in as <img>s tagged with data-style, so one markup serves every icon style. */
  .ios-app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    gap: 6px;
    width: 64px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-app:active {
    transform: scale(0.92);
  }
  .ios-app__icon {
    position: relative;
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 14.4px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.14);
  }
  .ios-app__icon > img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .ios-app__icon > img[data-style="dark"],
  .ios-app__icon > img[data-style="clear"] {
    display: none;
  }
  .ios-app__label {
    width: calc(100% + 20px);
    margin: 0 -10px;
    overflow: hidden;
    font: 500 12px/14px var(--ios-font);
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
    white-space: nowrap;
  }
  .ios-app > .ios-badge {
    z-index: 1;
  }

  /* Icon styles: set --ios-icons to "dark" or "clear" on .ios-home or any ancestor.
     (A radio plus :has() on a shared parent can flip it with no script.) */
  @container style(--ios-icons: dark) {
    .ios-app__icon > img[data-style="default"],
    .ios-app__icon > img[data-style="clear"] { display: none; }
    .ios-app__icon > img[data-style="dark"] { display: block; }
    .ios-home::before { opacity: 1; }
    .ios-widget__card { background: #1c1c1e; color: #fff; }
  }
  @container style(--ios-icons: clear) {
    .ios-app__icon > img[data-style="default"],
    .ios-app__icon > img[data-style="dark"] { display: none; }
    .ios-app__icon > img[data-style="clear"] { display: block; }
    .ios-widget__card {
      background-color: rgb(255 255 255 / 0.14);
      -webkit-backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
      backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
      color: #fff;
    }
  }

  /* Widgets: data-size is small (2×2 icons), medium (4×2), or large (4×4). */
  .ios-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: start;
    gap: 6px;
    grid-column: span 2;
    grid-row: span 2;
  }
  .ios-widget[data-size="medium"] { grid-column: span 4; }
  .ios-widget[data-size="large"] { grid-column: span 4; grid-row: span 4; }
  .ios-widget__card {
    position: relative;
    width: 100%;
    height: 148px;
    padding: 14px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card-bg, var(--ios-glass-bg));
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.22), 0 2px 10px rgb(0 0 0 / 0.12);
    color: var(--card-fg, var(--ios-label));
  }
  /* Same regular glass as a notification. */
  .ios-widget[data-glass] > .ios-widget__card {
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-widget[data-size="large"] > .ios-widget__card { height: 340px; }
  .ios-widget__label {
    max-width: 100%;
    overflow: hidden;
    font: 500 12px/14px var(--ios-font);
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgb(0 0 0 / 0.25);
    white-space: nowrap;
  }

  /* ── Control Center ──
     A 4-column grid of 70pt cells. Modules span cells with data-cols / data-rows. */
  .ios-cc {
    position: absolute;
    inset: 0;
    z-index: 45;
    overflow: hidden;
    color: #fff;
    font-family: var(--ios-font);
    user-select: none;
  }
  .ios-cc__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.35);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    backdrop-filter: blur(28px) saturate(1.6);
  }
  .ios-cc__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: calc(var(--ios-safe-top) + 8px);
  }
  .ios-cc__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 322px;
    height: 40px;
    margin-bottom: 18px;
  }
  .ios-cc__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-cc__button:active {
    transform: scale(0.92);
  }
  .ios-cc__grid {
    display: grid;
    grid-template-columns: repeat(4, 70px);
    grid-auto-rows: 70px;
    gap: 14px;
  }
  .ios-module {
    position: relative;
    grid-column: span 1;
    grid-row: span 1;
    overflow: hidden;
    border-radius: 35px;
    color: #fff;
  }
  .ios-module[data-cols="2"] { grid-column: span 2; }
  .ios-module[data-cols="3"] { grid-column: span 3; }
  .ios-module[data-cols="4"] { grid-column: span 4; }
  .ios-module[data-rows="2"] { grid-row: span 2; }
  .ios-module[data-rows="3"] { grid-row: span 3; }
  .ios-module[data-rows="4"] { grid-row: span 4; }
  /* Squarer modules get the larger corner. */
  .ios-module[data-cols="2"][data-rows="2"],
  .ios-module[data-cols="2"][data-rows="3"],
  .ios-module[data-cols="4"][data-rows="2"] {
    border-radius: 34px;
  }

  /* Round toggle: a checkbox in a label. --tint colors it when on; data-tint="white" gives the white button. */
  .ios-cc-toggle {
    --tint: var(--ios-blue);
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
  }
  .ios-cc-toggle:active {
    transform: scale(0.92);
  }
  .ios-cc-toggle:not(.ios-module) {
    background-color: rgb(255 255 255 / 0.14);
    -webkit-backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-clear-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-cc-toggle > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-cc-toggle .ios-icon {
    --w: 24px;
    --h: 24px;
  }
  .ios-cc-toggle:has(> input:checked) {
    background-color: var(--tint);
    color: #fff;
  }
  .ios-cc-toggle[data-tint="white"]:has(> input:checked) {
    background-color: #fff;
    color: #000;
  }
  .ios-cc-toggle:has(> input:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  /* Inside the connectivity square: smaller, flat. */
  .ios-module[data-connectivity] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    padding: 14px;
  }
  .ios-module[data-connectivity] > .ios-cc-toggle {
    width: 56px;
    height: 56px;
    background-color: rgb(255 255 255 / 0.18);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .ios-module[data-connectivity] > .ios-cc-toggle:has(> input:checked) {
    background-color: var(--tint);
  }

  /* Wide toggle (Focus). */
  .ios-cc-wide {
    --tint: var(--ios-indigo);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 7px;
    cursor: pointer;
  }
  .ios-cc-wide > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-cc-wide__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.18);
    transition: background-color 0.2s, color 0.2s;
  }
  .ios-cc-wide__icon .ios-icon {
    --w: 24px;
    --h: 24px;
  }
  .ios-cc-wide:has(> input:checked) .ios-cc-wide__icon {
    background: #fff;
    color: var(--tint);
  }
  .ios-cc-wide__label {
    font: 600 15px/19px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-cc-wide__label small {
    display: block;
    font: 400 13px/16px var(--ios-font);
    opacity: 0.7;
  }

  /* Vertical slider (brightness, volume): a native range input; the fill is a clipped box-shadow. */
  .ios-cc-slider {
    cursor: pointer;
  }
  .ios-cc-slider > input {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: transparent;
    appearance: none;
    writing-mode: vertical-lr;
    direction: rtl;
    cursor: pointer;
  }
  .ios-cc-slider > input::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    background: transparent;
  }
  .ios-cc-slider > input::-webkit-slider-thumb {
    width: 70px;
    height: 1px;
    border: 0;
    background: #fff;
    box-shadow: 0 400px 0 400px #fff;
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-cc-slider > input::-moz-range-track {
    background: transparent;
  }
  .ios-cc-slider > input::-moz-range-progress {
    background: #fff;
  }
  .ios-cc-slider > input::-moz-range-thumb {
    width: 70px;
    height: 1px;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
  .ios-cc-slider > .ios-icon {
    --w: 26px;
    --h: 26px;
    position: absolute;
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
    color: #8e8e93;
    pointer-events: none;
  }

  /* Now Playing. */
  .ios-cc-media {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
  }
  .ios-cc-media__info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }
  .ios-cc-media__art {
    flex: none;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
  }
  .ios-cc-media__title {
    overflow: hidden;
    font: 600 15px/19px var(--ios-font);
    letter-spacing: -0.23px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-cc-media__artist {
    overflow: hidden;
    font: 400 13px/16px var(--ios-font);
    opacity: 0.7;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-cc-media__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }
  .ios-cc-media__controls > button,
  .ios-cc-media__controls > label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-cc-media__controls > :active {
    transform: scale(0.85);
  }
  .ios-cc-media__controls .ios-icon--backward,
  .ios-cc-media__controls .ios-icon--forward {
    --w: 24px;
    --h: 16px;
  }
  .ios-cc-media__controls .ios-icon--play,
  .ios-cc-media__controls .ios-icon--pause {
    --w: 20px;
    --h: 22px;
  }
  /* Play/pause is one checkbox: checked = playing. */
  .ios-cc-media__controls > label > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-cc-media__controls > label > .ios-icon--play { display: block; }
  .ios-cc-media__controls > label > .ios-icon--pause { display: none; }
  .ios-cc-media__controls > label:has(> input:checked) > .ios-icon--play { display: none; }
  .ios-cc-media__controls > label:has(> input:checked) > .ios-icon--pause { display: block; }
}


/* ── island.css ── */
/* ── Dynamic Island: live activities, Face ID ──
   Don't include .ios-island when you use .ios-activity; the activity is the island. */

@layer ios {
  /* ── Live Activity ──
     <label class="ios-activity" data-presentation="compact">
       <input type="checkbox" class="ios-activity__toggle" aria-label="Expand">
       <span class="ios-activity__compact">…</span>
       <span class="ios-activity__minimal">…</span>
       <span class="ios-activity__expanded">…</span>
     </label>
     data-presentation picks the starting layout; clicking the island toggles compact ↔ expanded.
     Sizes come from --compact-w (default 164px), --expanded-w (371px), and --expanded-h (160px). Set them on the activity or on any ancestor. */
  .ios-activity {
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 61;
    width: var(--compact-w, 164px);
    height: 37px;
    translate: -50% 0;
    overflow: hidden;
    border-radius: 18.5px;
    background: #000;
    color: #fff;
    font-family: var(--ios-font);
    cursor: pointer;
    transition: width 0.52s cubic-bezier(0.25, 1.2, 0.4, 1), height 0.52s cubic-bezier(0.25, 1.2, 0.4, 1),
      border-radius 0.52s cubic-bezier(0.25, 1.2, 0.4, 1);
    @starting-style {
      width: var(--compact-w, 164px);
      height: 37px;
      border-radius: 18.5px;
    }
  }
  .ios-activity[data-presentation="minimal"] {
    width: 126px;
    @starting-style {
      width: 126px;
      height: 37px;
      border-radius: 18.5px;
    }
  }
  .ios-activity[data-presentation="expanded"],
  .ios-activity:has(> .ios-activity__toggle:checked) {
    width: var(--expanded-w, 371px);
    height: var(--expanded-h, 160px);
    border-radius: 44px;
    @starting-style {
      width: var(--expanded-w, 371px);
      height: var(--expanded-h, 160px);
      border-radius: 44px;
    }
  }
  /* A surface that holds an activity resizes with it: 59px (island + margins) when compact,
     and --expanded-h + 22px when expanded. Set --expanded-h on the surface or the activity. */
  .ios-surface:has(> .ios-activity) {
    height: 59px;
    transition: height 0.52s cubic-bezier(0.25, 1.2, 0.4, 1);
    @starting-style {
      height: 59px;
    }
  }
  .ios-surface:has(> .ios-activity[data-presentation="expanded"]),
  .ios-surface:has(> .ios-activity > .ios-activity__toggle:checked) {
    height: calc(var(--expanded-h, 160px) + 22px);
    @starting-style {
      height: calc(var(--expanded-h, 160px) + 22px);
    }
  }
  /* The checkbox is just state. A label (.ios-activity__hit) underneath is the tap target,
     so buttons inside the expanded layer still work. */
  .ios-activity__toggle {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    pointer-events: none;
  }
  .ios-activity__hit {
    position: absolute;
    inset: 0;
    cursor: pointer;
  }
  .ios-art {
    display: block;
    flex: none;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
  }
  .ios-activity:has(> .ios-activity__toggle:focus-visible) {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* The three layers crossfade, with a blur like the system's. */
  .ios-activity__compact,
  .ios-activity__minimal,
  .ios-activity__expanded {
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% 0;
    opacity: 0;
    filter: blur(8px);
    scale: 0.9;
    transform-origin: 50% 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.12s ease-in, filter 0.12s ease-in, scale 0.2s ease-in, visibility 0s linear 0.2s;
    @starting-style {
      opacity: 0;
      filter: blur(8px);
      scale: 0.9;
    }
  }
  .ios-activity__compact {
    display: flex;
    align-items: center;
    width: var(--compact-w, 164px);
    height: 37px;
    padding: 0 12px;
    justify-content: space-between;
  }
  .ios-activity__minimal {
    display: flex;
    align-items: center;
    width: 126px;
    height: 37px;
    padding-left: 10px;
  }
  .ios-activity__expanded {
    display: flex;
    flex-direction: column;
    width: var(--expanded-w, 371px);
    padding: 14px 18px 18px;
  }
  /* Show exactly one, by presentation. */
  .ios-activity:not([data-presentation]) > .ios-activity__compact,
  .ios-activity[data-presentation="compact"]:not(:has(> .ios-activity__toggle:checked)) > .ios-activity__compact,
  .ios-activity[data-presentation="minimal"] > .ios-activity__minimal,
  .ios-activity[data-presentation="expanded"] > .ios-activity__expanded,
  .ios-activity:has(> .ios-activity__toggle:checked) > .ios-activity__expanded {
    opacity: 1;
    filter: blur(0);
    scale: 1;
    visibility: visible;
    transition: opacity 0.28s ease-out 0.12s, filter 0.28s ease-out 0.12s, scale 0.42s ease-out 0.08s, visibility 0s;
    @starting-style {
      opacity: 1;
      filter: blur(0);
      scale: 1;
    }
  }
  .ios-activity:has(> .ios-activity__toggle:checked) > .ios-activity__compact {
    opacity: 0;
    visibility: hidden;
  }
  .ios-activity :is(button, a, input:not(.ios-activity__toggle)) {
    pointer-events: auto;
  }
  .ios-activity__side {
    display: flex;
    align-items: center;
    min-width: 24px;
  }
  .ios-activity__side[data-end] {
    justify-content: flex-end;
  }
  /* Expanded layout: leading / trailing beside the sensors, center and bottom below. */
  .ios-activity__row {
    display: grid;
    grid-template-columns: 1fr 122px 1fr;
    align-items: start;
    min-height: 23px;
  }
  .ios-activity__row > :last-child {
    display: flex;
    justify-content: flex-end;
  }
  .ios-activity__center {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
  .ios-activity__bottom {
    margin-top: 10px;
  }
  /* The second activity detaches as its own circle (put it right after .ios-activity). */
  .ios-activity-secondary {
    position: absolute;
    top: 11px;
    left: calc(50% + 63px + 8px);
    z-index: 61;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    opacity: 0;
    scale: 0.4;
    transform-origin: 0 50%;
    transition: opacity 0.25s ease-out, scale 0.45s cubic-bezier(0.25, 1.2, 0.4, 1);
    @starting-style {
      opacity: 0;
      scale: 0.4;
    }
  }
  .ios-activity[data-presentation="minimal"] ~ .ios-activity-secondary {
    opacity: 1;
    scale: 1;
    @starting-style {
      opacity: 1;
      scale: 1;
    }
  }

  /* Lock screen presentation of the same activity. */
  .ios-activity-card {
    margin: 0 8px;
    padding: 16px;
    border-radius: 34px;
    background-color: color-mix(in srgb, var(--ios-tertiary-background) 72%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(24px) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-label);
    font-family: var(--ios-font);
  }

  /* ── Face ID glyph ── inline SVG, so its parts can animate by state.
     <svg class="ios-faceid" data-state="scanning" viewBox="0 0 64 64">…</svg>
     States: idle, scanning, success, failure. */
  .ios-faceid {
    --size: 64px;
    flex: none;
    width: var(--size);
    height: var(--size);
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .ios-faceid__brackets,
  .ios-faceid__face {
    transform-origin: 32px 32px;
    transition: opacity 0.2s, scale 0.3s;
  }
  .ios-faceid__ring,
  .ios-faceid__check {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .ios-faceid__ring {
    transform: rotate(-90deg);
    transform-origin: 32px 32px;
  }
  .ios-faceid[data-state="scanning"] .ios-faceid__look {
    transform-origin: 32px 32px;
    animation: ios-face-look 1.2s ease-in-out infinite;
  }
  .ios-faceid[data-state="success"] .ios-faceid__brackets {
    opacity: 0;
    scale: 0.82;
  }
  .ios-faceid[data-state="success"] .ios-faceid__face {
    opacity: 0;
  }
  .ios-faceid[data-state="success"] .ios-faceid__ring {
    animation: ios-face-draw 0.45s cubic-bezier(0.4, 0, 0.2, 1) 0.12s forwards;
  }
  .ios-faceid[data-state="success"] .ios-faceid__check {
    animation: ios-face-draw 0.3s ease-out 0.45s forwards;
  }
  .ios-faceid[data-state="failure"] {
    animation: ios-face-shake 0.5s ease-in-out;
  }


  /* ── Face ID prompt ──
     island: grows out of the Dynamic Island. hud: a centered glass square with a label. */
  .ios-faceid-prompt {
    position: absolute;
    z-index: 61;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--ios-font);
    pointer-events: none;
  }
  .ios-faceid-prompt[data-variant="island"] {
    top: 11px;
    left: 50%;
    width: 136px;
    height: 136px;
    translate: -50% 0;
    border-radius: 44px;
    background: #000;
    animation: ios-face-island 450ms cubic-bezier(0.2, 1.2, 0.4, 1) both;
  }
  .ios-faceid-prompt[data-variant="island"] > .ios-faceid {
    --size: 68px;
    animation: ios-face-in 0.22s ease-out 0.18s both;
  }
  .ios-faceid-prompt[data-variant="hud"] {
    inset: 0;
    margin: auto;
    flex-direction: column;
    gap: 14px;
    width: 160px;
    height: 160px;
    border-radius: 34px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-label);
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    animation: ios-face-in 0.22s ease-out both;
  }
  .ios-faceid-prompt[data-variant="hud"] > .ios-faceid {
    --size: 72px;
  }
  @media (prefers-reduced-motion: reduce) {
    .ios-faceid[data-state] * ,
    .ios-faceid[data-state],
    .ios-faceid-prompt,
    .ios-faceid-prompt > * { animation: none !important; }
    .ios-faceid[data-state="success"] .ios-faceid__ring,
    .ios-faceid[data-state="success"] .ios-faceid__check { stroke-dashoffset: 0; }
  }
}

@keyframes ios-face-look {
  0%, 100% { transform: translateX(0) scaleX(1); }
  25% { transform: translateX(-3px) scaleX(0.94); }
  75% { transform: translateX(3px) scaleX(0.94); }
}
@keyframes ios-face-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}
@keyframes ios-face-draw { to { stroke-dashoffset: 0; } }
@keyframes ios-face-in {
  from { opacity: 0; scale: 0.8; }
  to { opacity: 1; scale: 1; }
}
@keyframes ios-face-island {
  from { width: 126px; height: 37px; border-radius: 18.5px; }
  to { width: 136px; height: 136px; border-radius: 44px; }
}


/* ── extras.css ── */
/* ── Extras: slider, action sheet, messages, picker, date picker, share sheet, pager, spinner ── */

@layer ios {
  /* ── Slider ──
     <div class="ios-slider">
       <input type="range" min="0" max="100" value="60" aria-label="Brightness">
       <i class="ios-icon ios-icon--sun" data-start></i><i class="ios-icon ios-icon--sun" data-end></i>   (optional glyphs)
     </div>
     A native range input. The fill is a clipped box-shadow on the thumb, so it needs no script.
     --fill sets the fill color (default is the tint); --h sets the height (default 36px). */
  .ios-slider {
    --h: 36px;
    --fill: var(--ios-tint);
    position: relative;
    display: block;
    width: 100%;
    height: var(--h);
    overflow: hidden;
    border-radius: 999px;
    background: var(--ios-secondary-fill);
    isolation: isolate;
  }
  .ios-slider > input {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-slider > input::-webkit-slider-runnable-track {
    height: 100%;
    background: transparent;
  }
  .ios-slider > input::-webkit-slider-thumb {
    width: 1px;
    height: var(--h);
    border: 0;
    background: transparent;
    box-shadow: -800px 0 0 800px var(--fill);
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-slider > input::-moz-range-track {
    height: 100%;
    background: transparent;
  }
  .ios-slider > input::-moz-range-progress {
    height: 100%;
    background: var(--fill);
  }
  .ios-slider > input::-moz-range-thumb {
    width: 1px;
    height: var(--h);
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .ios-slider > input:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
    border-radius: 999px;
  }
  .ios-slider > .ios-icon {
    --w: 18px;
    --h: 18px;
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    color: var(--ios-secondary-label);
    pointer-events: none;
  }
  .ios-slider > .ios-icon[data-start] { left: 12px; }
  .ios-slider > .ios-icon[data-end] { right: 12px; }
  .ios-slider:has(> input:disabled) { opacity: 0.4; }

  /* ── Action sheet ──
     A floating glass stack at the bottom: a group of actions, then a separate Cancel pill.
     Same open/close as an alert: put it in an .ios-layer. */
  .ios-actionsheet {
    --ios-glass-bg: color-mix(in srgb, var(--ios-background) 82%, transparent);
    --ios-glass-blur: 24px;
    position: absolute;
    inset: auto 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--ios-label);
    transform: translateY(calc(100% + 16px));
    transition: transform 0.45s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .ios-layer:is(:target, :has(:target), [data-open], :has([data-open])) > .ios-actionsheet {
    transform: none;
  }
  .ios-actionsheet__group {
    overflow: hidden;
    border-radius: 34px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-actionsheet__group[data-pill] {
    border-radius: 999px;
  }
  .ios-actionsheet__header {
    padding: 16px 20px 14px;
    text-align: center;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
  }
  .ios-actionsheet__header b {
    display: block;
    font-weight: 600;
  }
  .ios-actionsheet__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 0;
    border-top: 0.5px solid var(--ios-separator);
    background: none;
    color: var(--ios-tint);
    font: 400 20px/25px var(--ios-font);
    letter-spacing: -0.45px;
    text-decoration: none;
    cursor: pointer;
  }
  .ios-actionsheet__group > :first-child {
    border-top: 0;
  }
  .ios-actionsheet__action:active {
    background: var(--ios-tertiary-fill);
  }
  .ios-actionsheet__action[data-destructive] {
    color: var(--ios-red);
  }
  .ios-actionsheet__action[data-role="cancel"] {
    font-weight: 600;
  }

  /* ── Messages ──
     <div class="ios-messages">
       <p class="ios-messages__time"><b>Today</b> 9:41</p>
       <div class="ios-bubble" data-from="them" data-tail>Hi!</div>
       <div class="ios-bubble" data-from="me" data-tail>Hello</div>
       <p class="ios-messages__status">Delivered</p>
     </div>
     data-tail goes on the last bubble of a run. Add data-service="sms" to .ios-messages for green.
     The tail erases itself with --ios-messages-bg, which defaults to the screen background. */
  .ios-messages {
    --bubble-them: #e9e9eb;
    --bubble-me: var(--ios-tint);
    --bubble-text-them: var(--ios-label);
    display: flex;
    flex-direction: column;
    padding: 8px 16px;
    font-family: var(--ios-font);
  }
  .ios-messages:is(.dark, .dark *) {
    --bubble-them: #3b3b3d;
  }
  .ios-messages[data-service="sms"] {
    --bubble-me: var(--ios-green);
  }
  .ios-messages__time {
    margin: 14px 0 8px;
    text-align: center;
    color: var(--ios-secondary-label);
    font: 400 11px/13px var(--ios-font);
  }
  .ios-messages__status {
    align-self: flex-end;
    margin: 2px 4px 6px;
    color: var(--ios-secondary-label);
    font: 400 11px/13px var(--ios-font);
  }
  .ios-bubble {
    --bubble: var(--bubble-them);
    position: relative;
    z-index: 0;
    align-self: flex-start;
    max-width: 75%;
    margin: 0 0 2px;
    padding: 8px 14px 9px;
    border-radius: 18px;
    background: var(--bubble);
    color: var(--bubble-text-them);
    font: 400 17px/21px var(--ios-font);
    letter-spacing: -0.43px;
    overflow-wrap: anywhere;
  }
  .ios-bubble[data-from="me"] {
    --bubble: var(--bubble-me);
    align-self: flex-end;
    color: #fff;
  }
  .ios-bubble[data-tail] {
    margin-bottom: 8px;
  }
  .ios-bubble[data-tail]::before,
  .ios-bubble[data-tail]::after {
    content: "";
    position: absolute;
    bottom: 0;
    z-index: -1;
  }
  .ios-bubble[data-tail]::before {
    width: 20px;
    height: 19px;
    background: var(--bubble);
  }
  /* The eraser stays within the 16px side padding so it never shows past the screen edge. */
  .ios-bubble[data-tail]::after {
    width: 10px;
    height: 20px;
    background: var(--ios-messages-bg, var(--ios-background));
  }
  .ios-bubble[data-tail]:not([data-from="me"])::before { left: -7px; border-bottom-right-radius: 16px 14px; }
  .ios-bubble[data-tail]:not([data-from="me"])::after { left: -10px; border-bottom-right-radius: 10px; }
  .ios-bubble[data-tail][data-from="me"]::before { right: -7px; border-bottom-left-radius: 16px 14px; }
  .ios-bubble[data-tail][data-from="me"]::after { right: -10px; border-bottom-left-radius: 10px; }
  /* Typing indicator: three dots inside a bubble. */
  .ios-bubble[data-typing] {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    padding: 0 16px;
  }
  .ios-bubble[data-typing] > i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ios-gray2);
    animation: ios-typing 1.2s ease-in-out infinite;
  }
  .ios-bubble[data-typing] > i:nth-child(2) { animation-delay: 0.15s; }
  .ios-bubble[data-typing] > i:nth-child(3) { animation-delay: 0.3s; }

  /* Composer: a glass capsule with the text field, plus a button for attachments.
     The mic turns into a send button once the field has text. */
  .ios-compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
  }
  .ios-compose__field {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    min-height: 44px;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-compose__field > input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 8px 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ios-label);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-compose__field > input::placeholder {
    color: var(--ios-tertiary-label);
  }
  .ios-compose__mic,
  .ios-compose__send {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ios-secondary-label);
    cursor: pointer;
  }
  .ios-compose__send {
    display: none;
    background: var(--ios-tint);
    color: #fff;
  }
  .ios-compose__field:has(> input:not(:placeholder-shown)) > .ios-compose__send { display: flex; }
  .ios-compose__field:has(> input:not(:placeholder-shown)) > .ios-compose__mic { display: none; }

  /* ── Picker (wheel) ──
     <div class="ios-picker" role="group" aria-label="Time">
       <ul class="ios-picker__col" data-align="end" tabindex="0"><li>1</li>…</ul>
     </div>
     Each column is a scroll-snap list. Items tilt and fade toward the edges through a scroll-driven
     animation (a plain flat list where that isn't supported). Mark the starting item with data-selected;
     browsers that know scroll-initial-target will start there. Read the value with a tiny script,
     or leave the wheel decorative. */
  .ios-picker {
    --item: 36px;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    height: calc(var(--item) * 6);
    margin-inline: auto;
    color: var(--ios-label);
    font: 400 22px/var(--item) var(--ios-font);
    letter-spacing: -0.3px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 72%, transparent);
  }
  .ios-picker::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: var(--item);
    translate: 0 -50%;
    border-radius: 12px;
    background: var(--ios-tertiary-fill);
    pointer-events: none;
  }
  .ios-picker__col {
    position: relative;
    flex: 1;
    margin: 0;
    padding: calc(var(--item) * 2.5) 12px;
    overflow-y: auto;
    list-style: none;
    text-align: center;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    perspective: 520px;
    overscroll-behavior: contain;
  }
  .ios-picker__col::-webkit-scrollbar { display: none; }
  .ios-picker__col[data-align="end"] { text-align: right; }
  .ios-picker__col[data-align="start"] { text-align: left; }
  .ios-picker__col[data-narrow] { flex: 0 0 25%; }
  .ios-picker__col > li {
    height: var(--item);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    cursor: grab;
    user-select: none;
  }
  .ios-picker__col > li[data-selected] {
    scroll-initial-target: nearest;
  }
  .ios-picker__col:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
    border-radius: 12px;
  }
  @supports (animation-timeline: view()) {
    .ios-picker__col > li {
      animation: ios-wheel linear both;
      animation-timeline: view(block);
      animation-range: cover;
    }
  }

  /* ── Date field ── a native date, time, or datetime-local input styled as the compact picker.
     Tapping it opens the system picker (on iOS, the real one). */
  .ios-datefield {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--ios-tertiary-fill);
    color: var(--ios-label);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
  .ios-datefield::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    opacity: 0;
    cursor: pointer;
  }
  .ios-datefield::-webkit-datetime-edit-fields-wrapper { padding: 0; }
  .ios-datefield:focus-visible { outline: 2px solid var(--ios-tint); outline-offset: 2px; }

  /* ── Calendar (inline date picker) ──
     Days are radios inside labels, so choosing one needs no script. Month arrows are decorative:
     swap the grid for another month in your own code. First day of the month: set grid-column-start. */
  /* Side and bottom padding keep the 40px day circles clear of the group's
     26px rounded corners; without it the first/last cells get clipped. */
  .ios-calendar {
    padding: 10px 10px 16px;
    color: var(--ios-label);
    font-family: var(--ios-font);
  }
  .ios-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 12px;
  }
  .ios-calendar__month {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ios-label);
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-calendar__month .ios-icon {
    --w: 10px;
    --h: 14px;
    color: var(--ios-tint);
  }
  .ios-calendar__nav {
    display: flex;
    gap: 24px;
    color: var(--ios-tint);
  }
  .ios-calendar__nav .ios-icon {
    --w: 12px;
    --h: 20px;
  }
  .ios-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
    padding: 0 2px;
  }
  .ios-calendar__dow {
    padding-bottom: 6px;
    text-align: center;
    color: var(--ios-secondary-label);
    font: 600 13px/18px var(--ios-font);
  }
  .ios-calendar__day {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    cursor: pointer;
  }
  .ios-calendar__day > input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
  }
  .ios-calendar__day > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font: 400 20px/24px var(--ios-font);
    letter-spacing: -0.45px;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.15s, color 0.15s;
  }
  .ios-calendar__day[data-today] > span {
    color: var(--ios-tint);
    font-weight: 600;
  }
  .ios-calendar__day > input:checked + span {
    background: var(--ios-tint);
    color: #fff;
    font-weight: 600;
  }
  .ios-calendar__day > input:disabled + span {
    color: var(--ios-tertiary-label);
  }
  .ios-calendar__day > input:disabled { cursor: default; }
  .ios-calendar__day > input:focus-visible + span {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }

  /* ── Share sheet ── built from .ios-sheet (data-detent="medium") plus these parts.
     Set --sheet-h on the sheet to make it taller. */
  .ios-share__preview {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .ios-sheet__toolbar:has(.ios-share__preview) > .ios-sheet__leading {
    flex: 1 1 auto;
    min-width: 0;
  }
  .ios-sheet__toolbar:has(.ios-share__preview) > .ios-sheet__trailing {
    flex: none;
  }
  .ios-share__thumb {
    flex: none;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff9a5a, #b5179e);
  }
  .ios-share__thumb > img { display: block; width: 100%; height: 100%; }
  .ios-share__title {
    display: block;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-share__meta {
    display: block;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
  }
  .ios-share__meta a {
    color: var(--ios-tint);
    text-decoration: none;
  }
  .ios-share__row {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 12px 16px 8px;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .ios-share__row::-webkit-scrollbar { display: none; }
  .ios-share__item {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 68px;
    color: var(--ios-label);
    text-decoration: none;
    scroll-snap-align: start;
  }
  .ios-share__item > small {
    max-width: 100%;
    text-align: center;
    font: 400 12px/14px var(--ios-font);
    letter-spacing: -0.1px;
  }
  .ios-share__avatar,
  .ios-share__app {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    color: #fff;
    font: 600 22px/1 var(--ios-font);
  }
  .ios-share__avatar { border-radius: 50%; }
  .ios-share__app { border-radius: 22.4%; background: var(--ios-secondary-fill); }
  .ios-share__app > img { display: block; width: 100%; height: 100%; }
  .ios-share__actions {
    padding-top: 8px;
  }
  .ios-share__actions .ios-row__body > .ios-icon {
    --w: 22px;
    --h: 22px;
    color: var(--ios-label);
  }

  /* ── Pager and page control ──
     <div class="ios-pager">
       <div class="ios-pager__track"><section>…</section><section>…</section></div>
       <div class="ios-pagecontrol" style="--n:3" role="presentation"><i style="--i:0"></i><i style="--i:1"></i><i style="--i:2"></i></div>
     </div>
     The track is a scroll-snap row. The dots follow its scroll position through a named scroll
     timeline, so the active dot updates with no script. data-peek on .ios-pager shows the next card's edge. */
  .ios-pager {
    timeline-scope: --ios-pager;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }
  .ios-pager__track {
    scroll-timeline: --ios-pager x;
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .ios-pager__track::-webkit-scrollbar { display: none; }
  .ios-pager__track > * {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: center;
  }
  .ios-pager[data-peek] .ios-pager__track {
    container-type: inline-size;
    gap: 12px;
    padding-inline: 8%;
  }
  .ios-pager[data-peek] .ios-pager__track > * {
    flex-basis: 84cqw;
  }
  .ios-pagecontrol {
    --dot: var(--ios-label);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
  }
  .ios-pagecontrol[data-style="glass"] {
    --dot: #fff;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgb(0 0 0 / 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
  .ios-pagecontrol > i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dot);
    opacity: 0.3;
    animation: ios-dot linear both;
    animation-timeline: --ios-pager;
    animation-range: calc((var(--i) - 1) / (var(--n) - 1) * 100%) calc((var(--i) + 1) / (var(--n) - 1) * 100%);
  }
  @supports not (animation-timeline: scroll()) {
    .ios-pagecontrol > i:first-child { opacity: 1; }
  }

  /* ── Activity indicator ── eight blades that spin. <span class="ios-spinner" role="progressbar" aria-label="Loading"> then 8 <i></i>.
     --size sets the diameter (default 20px); color sets the tint (default gray). */
  .ios-spinner {
    --size: 20px;
    position: relative;
    display: inline-block;
    flex: none;
    width: var(--size);
    height: var(--size);
    color: var(--ios-secondary-label);
    vertical-align: middle;
  }
  .ios-spinner > i {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    animation: ios-blade 0.8s linear infinite;
    animation-delay: calc(var(--n) * 0.1s - 0.8s);
  }
  .ios-spinner > i::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 9%;
    height: 28%;
    translate: -50% 0;
    border-radius: 999px;
    background: currentColor;
  }
  .ios-spinner > i:nth-child(1) { --n: 0; rotate: 0deg; }
  .ios-spinner > i:nth-child(2) { --n: 1; rotate: 45deg; }
  .ios-spinner > i:nth-child(3) { --n: 2; rotate: 90deg; }
  .ios-spinner > i:nth-child(4) { --n: 3; rotate: 135deg; }
  .ios-spinner > i:nth-child(5) { --n: 4; rotate: 180deg; }
  .ios-spinner > i:nth-child(6) { --n: 5; rotate: 225deg; }
  .ios-spinner > i:nth-child(7) { --n: 6; rotate: 270deg; }
  .ios-spinner > i:nth-child(8) { --n: 7; rotate: 315deg; }
  .ios-spinner[data-size="lg"] { --size: 36px; }
}

@keyframes ios-typing {
  0%, 60%, 100% { opacity: 0.4; translate: 0 0; }
  30% { opacity: 1; translate: 0 -3px; }
}
@keyframes ios-wheel {
  0% { opacity: 0.25; transform: rotateX(-62deg) scale(0.92); }
  50% { opacity: 1; transform: none; }
  100% { opacity: 0.25; transform: rotateX(62deg) scale(0.92); }
}
@keyframes ios-dot {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes ios-blade {
  from { opacity: 1; }
  to { opacity: 0.15; }
}


/* ── messages.css ── */
/* ── Messages, more variants: tapbacks, tapback picker, inline replies, photos, link previews,
   big emoji, audio messages, group chats, edited and unsent notes. Builds on .ios-messages and
   .ios-bubble in extras.css. */

@layer ios {
  /* ── Tapbacks ──
     A badge on the top corner of a bubble. Put it inside the bubble:
       <div class="ios-bubble" data-from="them" data-tail>Text
         <span class="ios-tapbacks"><span class="ios-tapback" data-mine aria-label="You loved this">…glyph…</span></span>
       </div>
     data-mine colors it as your own reaction (blue). Several badges in one .ios-tapbacks overlap,
     newest last. The glyph is an icon (heart-fill, thumbs-up, thumbs-down), text for HA HA, !! and ?,
     or any emoji with data-emoji. */
  .ios-bubble:has(> .ios-tapbacks:not([data-live])) {
    margin-top: 26px;
  }
  .ios-tapbacks {
    position: absolute;
    top: -27px;
    right: -16px;
    z-index: 1;
    display: flex;
    pointer-events: none;
  }
  .ios-bubble[data-from="me"] > .ios-tapbacks {
    right: auto;
    left: -16px;
    flex-direction: row-reverse;
  }
  .ios-tapback {
    --badge: var(--bubble-them);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--badge);
    box-shadow: 0 0 0 2px var(--ios-messages-bg, var(--ios-background));
    color: var(--ios-secondary-label);
    font-family: var(--ios-font);
    line-height: 1;
  }
  .ios-tapback + .ios-tapback {
    margin-left: -14px;
  }
  .ios-bubble[data-from="me"] .ios-tapback + .ios-tapback {
    margin-left: 0;
    margin-right: -14px;
  }
  .ios-tapback[data-mine] {
    --badge: var(--bubble-me);
    color: #fff;
  }
  /* The two small circles that point at the bubble. Only the badge nearest the bubble has them. */
  .ios-tapback:first-child::before,
  .ios-tapback:first-child::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--badge);
  }
  .ios-tapback:first-child::before { bottom: -1px; left: 0; width: 10px; height: 10px; }
  .ios-tapback:first-child::after { bottom: -6px; left: -4px; width: 5px; height: 5px; }
  .ios-bubble[data-from="me"] .ios-tapback:first-child::before { left: auto; right: 0; }
  .ios-bubble[data-from="me"] .ios-tapback:first-child::after { left: auto; right: -4px; }
  .ios-tapback > .ios-icon {
    --w: 17px;
    --h: 17px;
  }
  .ios-tapback:not([data-mine]) > .ios-icon--heart-fill {
    color: var(--ios-pink);
  }
  .ios-tapback > b {
    display: block;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
  }
  .ios-tapback > b[data-r="haha"] { font-size: 8.5px; line-height: 8px; }
  .ios-tapback > b[data-r="emphasize"] { font-size: 15px; letter-spacing: -1px; }
  .ios-tapback > b[data-r="question"] { font-size: 18px; }
  .ios-tapback[data-emoji] { font-size: 18px; }

  /* ── Tapback picker ──
     Click a bubble to open a bar of reactions above it (Popover API + anchor positioning).
     Picking one is a radio, so the badge appears with no script; click outside to close.
       <div class="ios-msg">
         <button class="ios-bubble" data-from="them" popovertarget="tb" style="anchor-name:--tb">Text
           <span class="ios-tapbacks" data-live><span class="ios-tapback" data-mine>…every glyph, each with data-r…</span></span>
         </button>
         <div id="tb" class="ios-tapback-picker" popover style="position-anchor:--tb">
           <label><input type="radio" name="r" value="heart">…glyph…</label> …
         </div>
       </div>
     The values are heart, thumbs-up, thumbs-down, haha, emphasize, question. */
  .ios-msg {
    display: flex;
    flex-direction: column;
  }
  button.ios-bubble {
    border: 0;
    text-align: left;
    cursor: pointer;
    transition: scale 0.2s, margin-top 0.25s;
  }
  button.ios-bubble:active {
    scale: 0.97;
  }
  button.ios-bubble:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }
  .ios-tapbacks[data-live] { display: none; }
  .ios-tapbacks[data-live] [data-r] { display: none; }
  .ios-msg:has(.ios-tapback-picker :checked) .ios-tapbacks[data-live] { display: flex; }
  .ios-msg:has(.ios-tapback-picker :checked) > .ios-bubble { margin-top: 26px; }
  .ios-msg:has([value="heart"]:checked) .ios-tapbacks [data-r="heart"],
  .ios-msg:has([value="thumbs-up"]:checked) .ios-tapbacks [data-r="thumbs-up"],
  .ios-msg:has([value="thumbs-down"]:checked) .ios-tapbacks [data-r="thumbs-down"],
  .ios-msg:has([value="haha"]:checked) .ios-tapbacks [data-r="haha"],
  .ios-msg:has([value="emphasize"]:checked) .ios-tapbacks [data-r="emphasize"],
  .ios-msg:has([value="question"]:checked) .ios-tapbacks [data-r="question"] {
    display: block;
  }
  .ios-tapback-picker {
    --ios-glass-bg: color-mix(in srgb, var(--ios-tertiary-background) 90%, transparent);
    --ios-glass-blur: 28px;
    position: fixed;
    inset: auto;
    position-area: top span-right;
    position-try-fallbacks: flip-block;
    display: flex;
    gap: 2px;
    margin: 10px 0;
    padding: 6px;
    border: 0;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow), 0 12px 36px rgb(0 0 0 / 0.2);
    color: var(--ios-secondary-label);
    font-family: var(--ios-font);
    transform-origin: bottom left;
    transition: opacity 0.18s, scale 0.35s cubic-bezier(0.2, 1.2, 0.4, 1), display 0.2s allow-discrete, overlay 0.2s allow-discrete;
  }
  .ios-tapback-picker:not(:popover-open) {
    display: none;
    opacity: 0;
    scale: 0.5;
  }
  @starting-style {
    .ios-tapback-picker:popover-open {
      opacity: 0;
      scale: 0.5;
    }
  }
  .ios-msg:has(> .ios-bubble[data-from="me"]) > .ios-tapback-picker {
    position-area: top span-left;
    transform-origin: bottom right;
  }
  .ios-tapback-picker > label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, scale 0.2s;
  }
  .ios-tapback-picker > label:hover { background: var(--ios-tertiary-fill); }
  .ios-tapback-picker > label:active { scale: 1.15; }
  .ios-tapback-picker > label:has(:checked) {
    background: var(--ios-tint);
    color: #fff;
  }
  .ios-tapback-picker > label:has(:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: 1px;
  }
  .ios-tapback-picker input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
  }
  .ios-tapback-picker .ios-icon { --w: 20px; --h: 20px; }
  .ios-tapback-picker b { font-weight: 800; letter-spacing: -0.5px; line-height: 1; text-align: center; }
  .ios-tapback-picker b[data-r="haha"] { font-size: 10px; line-height: 9px; }
  .ios-tapback-picker b[data-r="emphasize"] { font-size: 18px; letter-spacing: -1px; }
  .ios-tapback-picker b[data-r="question"] { font-size: 21px; }

  /* ── Inline reply ──
     The quoted message sits faded above the reply, joined by a line on the outer side.
       <div class="ios-thread" data-from="them">
         <div class="ios-bubble" data-from="them" data-quote>Original</div>
         <div class="ios-bubble" data-from="them" data-tail>Reply</div>
       </div> */
  .ios-thread {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-left: 14px;
  }
  .ios-thread[data-from="me"] {
    padding: 0 14px 0 0;
  }
  .ios-thread::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 26px;
    left: 3px;
    width: 14px;
    border: 2px solid var(--ios-gray4);
    border-right: 0;
    border-radius: 14px 0 0 14px;
  }
  .ios-thread[data-from="me"]::before {
    left: auto;
    right: 3px;
    border: 2px solid var(--ios-gray4);
    border-left: 0;
    border-radius: 0 14px 14px 0;
  }
  /* The quote sits on the reply's side, whoever wrote it, so the line can join them. */
  .ios-thread > .ios-bubble[data-quote] { align-self: flex-start; }
  .ios-thread[data-from="me"] > .ios-bubble[data-quote] { align-self: flex-end; }
  .ios-bubble[data-quote] {
    margin-bottom: 4px;
    padding: 6px 12px 7px;
    opacity: 0.5;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: -0.23px;
  }
  .ios-messages__replies {
    align-self: flex-start;
    margin: 0 12px 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ios-tint);
    font: 600 13px/18px var(--ios-font);
    text-decoration: none;
    cursor: pointer;
  }
  .ios-messages__replies[data-from="me"] { align-self: flex-end; }

  /* ── Photo ── a bubble with data-media and an <img> (or a .ios-bubble__media box) inside. No tail. */
  .ios-bubble[data-media] {
    padding: 0;
    background: none;
    line-height: 0;
  }
  .ios-bubble:is([data-media], [data-emoji])::before,
  .ios-bubble:is([data-media], [data-emoji])::after {
    display: none;
  }
  .ios-bubble[data-media] > :is(img, .ios-bubble__media) {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
  }
  .ios-bubble[data-media] > .ios-bubble__media {
    height: var(--media-h, 160px);
  }
  .ios-bubble__media {
    background: linear-gradient(135deg, #ff9a5a, #b5179e);
  }

  /* ── Link preview ── always gray, whoever sent it. */
  .ios-bubble[data-link] {
    --bubble: var(--bubble-them);
    display: block;
    width: 260px;
    padding: 0;
    color: var(--ios-label);
    text-decoration: none;
  }
  .ios-bubble[data-link] > .ios-bubble__media {
    display: block;
    height: var(--media-h, 140px);
    border-radius: 18px 18px 0 0;
  }
  .ios-bubble__caption {
    display: block;
    padding: 9px 14px 11px;
  }
  .ios-bubble__caption > b {
    display: block;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-bubble__caption > small {
    display: block;
    color: var(--ios-secondary-label);
    font: 400 13px/18px var(--ios-font);
  }

  /* ── Big emoji ── one to three emoji with no bubble. */
  .ios-bubble[data-emoji] {
    padding: 0 2px;
    background: none;
    font-size: 48px;
    line-height: 58px;
    letter-spacing: 0;
  }

  /* ── Audio message ──
     <div class="ios-bubble" data-from="me" data-audio data-tail>
       <button class="ios-audio__play">play icon</button>
       <span class="ios-audio__wave"><i style="--h:40" data-p></i>…</span>
       <span class="ios-audio__time">0:12</span>
     </div>
     --h is each bar's height in percent; data-p marks the bars already played. */
  .ios-bubble[data-audio] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
  }
  .ios-audio__play {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .ios-audio__play > .ios-icon { --w: 16px; --h: 18px; }
  .ios-audio__wave {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
  }
  .ios-audio__wave > i {
    width: 2.5px;
    height: calc(var(--h, 50) * 1%);
    min-height: 3px;
    border-radius: 2px;
    background: currentColor;
  }
  .ios-audio__wave > i:not([data-p]) {
    opacity: 0.4;
  }
  .ios-audio__time {
    font: 400 13px/18px var(--ios-font);
    font-variant-numeric: tabular-nums;
    opacity: 0.8;
  }

  /* ── Group chat ── data-group on .ios-messages indents received bubbles for an avatar.
     Put the sender's name before their run, and the avatar inside the run's last bubble. */
  .ios-messages[data-group] .ios-bubble[data-from="them"] {
    margin-left: 36px;
  }
  .ios-messages[data-group] .ios-thread:not([data-from="me"]) {
    margin-left: 36px;
  }
  .ios-messages[data-group] .ios-thread .ios-bubble[data-from="them"] {
    margin-left: 0;
  }
  .ios-messages__sender {
    margin: 6px 0 2px 50px;
    color: var(--ios-secondary-label);
    font: 400 11px/13px var(--ios-font);
  }
  .ios-bubble__avatar {
    position: absolute;
    bottom: 0;
    left: -36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg, var(--ios-gray));
    color: #fff;
    font: 600 11px/1 var(--ios-font);
    letter-spacing: 0;
  }

  /* ── Edited and unsent ── */
  .ios-messages__status[data-from="them"] {
    align-self: flex-start;
  }
  .ios-messages__status[data-edited] {
    color: var(--ios-tint);
  }
  .ios-messages__note {
    margin: 6px 0 10px;
    text-align: center;
    color: var(--ios-secondary-label);
    font: 400 11px/13px var(--ios-font);
  }
}


/* ── essentials.css ── */
/* ── Essentials: toolbar, bottom accessory, keyboard, chips, avatar, badge, disclosure, empty state, HUD, widgets ── */

@layer ios {
  /* ── Toolbar ──
     <div class="ios-toolbar">
       <button class="ios-barbutton">…</button>
       <span class="ios-toolbar__label"><b>8 Notes</b></span>
       <button class="ios-barbutton" data-variant="prominent">…</button>
     </div>
     Glass buttons (or .ios-barbutton-group capsules) along the bottom edge. A direct child of
     .ios-screen it pins above the home indicator. A .ios-toolbar__label (or __spacer) fills the gap. */
  .ios-toolbar {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
  }
  .ios-screen > .ios-toolbar {
    position: absolute;
    inset: auto 0 24px;
  }
  .ios-toolbar__spacer {
    flex: 1;
  }
  .ios-toolbar__label {
    flex: 1;
    min-width: 0;
    color: var(--ios-secondary-label);
    font: 400 11px/13px var(--ios-font);
    text-align: center;
  }
  .ios-toolbar__label > b {
    display: block;
    color: var(--ios-label);
    font-weight: 600;
  }

  /* ── Bottom accessory ──
     The mini player that floats above a tab bar. A direct child of .ios-screen it sits on the tab bar. */
  .ios-accessory {
    position: relative;
    z-index: 39;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 8px 0 8px;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
    font-family: var(--ios-font);
  }
  .ios-screen > .ios-accessory {
    position: absolute;
    inset: auto 25px 92px;
  }
  .ios-accessory__art {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
  }
  .ios-accessory__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font: 600 15px/19px var(--ios-font);
    letter-spacing: -0.24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-accessory__text > small {
    display: block;
    color: var(--ios-secondary-label);
    font: 400 12px/15px var(--ios-font);
  }
  .ios-accessory__button {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.2s;
  }
  .ios-accessory__button:active {
    transform: scale(0.9);
  }
  .ios-accessory__button .ios-icon {
    --w: 18px;
    --h: 18px;
  }
  /* Play and pause are two glyphs in one checkbox label, as in the Control Center media module. */
  .ios-accessory__button:has(> input) > .ios-icon--pause { display: none; }
  .ios-accessory__button:has(> input:checked) > .ios-icon--play { display: none; }
  .ios-accessory__button:has(> input:checked) > .ios-icon--pause { display: block; }
  .ios-accessory__button > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  .ios-accessory__button:has(> input:focus-visible) {
    outline: 2px solid var(--ios-tint);
  }

  /* ── Keyboard ──
     <div class="ios-keyboard">
       <div class="ios-keyboard__suggest"><button>“Hello”</button><button>Hi</button><button>Hey</button></div>
       <div class="ios-keyboard__keys">
         <div class="ios-keyboard__row"><button class="ios-key">q</button>…</div>
         <div class="ios-keyboard__row"><button class="ios-key" data-fn>shift</button>…</div>
       </div>
       <div class="ios-keyboard__bottom">globe + mic</div>
     </div>
     data-fn marks gray function keys; data-tone="tint" makes the return key blue; data-active
     lights the shift key. Inside a screen the keyboard pins to the bottom and its last row sits
     in the home indicator zone. Keys are 1 CSS px = 1 pt (a 402-wide phone). */
  .ios-keyboard {
    --kb-bg: rgb(214 217 222 / 0.88);
    --kb-key: #fff;
    --kb-fn: rgb(172 178 189 / 0.9);
    --kb-label: #000;
    --kb-shadow: 0 1px 0 rgb(0 0 0 / 0.3);
    --kb-rule: rgb(0 0 0 / 0.18);
    --kw: calc((100% - 54px) / 10);
    position: relative;
    z-index: 45;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 6px;
    background-color: var(--kb-bg);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    backdrop-filter: blur(24px) saturate(1.8);
    color: var(--kb-label);
    font-family: var(--ios-font);
    user-select: none;
  }
  .ios-keyboard:is(.dark, .dark *) {
    --kb-bg: rgb(36 36 38 / 0.9);
    --kb-key: rgb(255 255 255 / 0.3);
    --kb-fn: rgb(255 255 255 / 0.17);
    --kb-label: #fff;
    --kb-shadow: 0 1px 0 rgb(0 0 0 / 0.4);
    --kb-rule: rgb(255 255 255 / 0.22);
  }
  .ios-screen > .ios-keyboard {
    position: absolute;
    inset: auto 0 0;
  }
  .ios-keyboard__suggest {
    display: flex;
    height: 44px;
  }
  .ios-keyboard__suggest > button {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
    overflow: hidden;
    border: 0;
    background: none;
    color: inherit;
    font: 400 16px/20px var(--ios-font);
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
  }
  .ios-keyboard__suggest > button + button::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    background: var(--kb-rule);
  }
  .ios-keyboard__suggest > button:active {
    background: rgb(128 128 128 / 0.18);
  }
  .ios-keyboard__keys {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 6px 3px 0;
  }
  .ios-keyboard__row {
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .ios-key {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--kw);
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--kb-key);
    box-shadow: var(--kb-shadow);
    color: inherit;
    font: 400 25px/1 var(--ios-font);
    cursor: pointer;
    transition: background-color 0.08s;
  }
  .ios-key[data-fn] {
    background: var(--kb-fn);
    font-size: 16px;
  }
  .ios-key:active {
    background: var(--kb-fn);
  }
  .ios-key[data-fn]:active {
    background: var(--kb-key);
  }
  .ios-key .ios-icon {
    --w: 22px;
    --h: 22px;
  }
  /* Shift and delete stretch to fill the row; the extra margin is the wider gap beside the letters. */
  .ios-keyboard__row > .ios-key[data-flex] {
    flex: 1;
    width: auto;
  }
  .ios-keyboard__row > .ios-key[data-flex]:first-child { margin-right: 6px; }
  .ios-keyboard__row > .ios-key[data-flex]:last-child { margin-left: 6px; }
  /* The numbers layout's third row: every key shares the width. */
  .ios-keyboard__row[data-stretch] > .ios-key {
    flex: 1;
    width: auto;
  }
  .ios-key[data-active] {
    background: var(--kb-key);
  }
  .ios-key[data-wide] {
    width: calc(var(--kw) * 2.5);
  }
  .ios-key[data-space] {
    flex: 1;
    width: auto;
    font-size: 16px;
  }
  .ios-key[data-tone="tint"] {
    background: var(--ios-tint);
    color: #fff;
  }
  .ios-keyboard__bottom {
    display: flex;
    justify-content: space-between;
    height: var(--ios-safe-bottom);
    padding: 0 3px;
  }
  .ios-keyboard__bottom > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--kw) * 2.5);
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .ios-keyboard__bottom .ios-icon {
    --w: 24px;
    --h: 24px;
  }

  /* ── Chips ──
     <div class="ios-chips">
       <label class="ios-chip"><input type="checkbox" checked>Unread</label>
     </div>
     Filter pills in a row that scrolls sideways. Checkboxes allow several at once; radios with the
     same name give a single choice. data-variant="glass" is for floating over a map or photo. */
  .ios-chips {
    display: flex;
    gap: 8px;
    padding: 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ios-chips::-webkit-scrollbar {
    display: none;
  }
  .ios-chip {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--ios-tertiary-fill);
    color: var(--ios-label);
    font: 500 15px/20px var(--ios-font);
    letter-spacing: -0.24px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
  }
  .ios-chip:active {
    transform: scale(0.96);
  }
  .ios-chip > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: inherit;
  }
  .ios-chip .ios-icon {
    --w: 16px;
    --h: 16px;
  }
  .ios-chip > small {
    color: var(--ios-secondary-label);
    font: 500 13px/18px var(--ios-font);
  }
  .ios-chip:has(> input:checked) {
    background: var(--ios-tint);
    color: #fff;
  }
  .ios-chip:has(> input:checked) > small {
    color: rgb(255 255 255 / 0.75);
  }
  .ios-chip:has(> input:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }
  .ios-chip[data-variant="glass"] {
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
  }
  .ios-chip[data-variant="glass"]:has(> input:checked) {
    background: var(--ios-tint);
    color: #fff;
    box-shadow: var(--ios-glass-prominent-shadow);
  }

  /* ── Avatar ──
     <span class="ios-avatar" style="--size:44px">MC</span>
     Monogram by default; put an <img> or an icon inside instead. --bg sets the fill and --size the
     diameter. data-status adds a presence dot (online, away, busy). Group avatars in .ios-avatar-stack. */
  .ios-avatar {
    --size: 40px;
    --ring: var(--ios-background);
    position: relative;
    display: inline-grid;
    flex: none;
    place-items: center;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--bg, linear-gradient(180deg, #a5abb8, #858a98));
    color: #fff;
    font: 600 calc(var(--size) * 0.42) / 1 var(--ios-font);
    letter-spacing: 0;
    text-transform: uppercase;
    vertical-align: middle;
  }
  .ios-avatar > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
  }
  .ios-avatar > .ios-icon {
    --w: calc(var(--size) * 0.5);
    --h: calc(var(--size) * 0.5);
  }
  .ios-avatar[data-status]::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: max(10px, calc(var(--size) * 0.28));
    height: max(10px, calc(var(--size) * 0.28));
    border-radius: 50%;
    background: var(--ios-green);
    box-shadow: 0 0 0 2px var(--ring);
  }
  .ios-avatar[data-status="away"]::after { background: var(--ios-orange); }
  .ios-avatar[data-status="busy"]::after { background: var(--ios-red); }
  .ios-avatar-stack {
    display: inline-flex;
    align-items: center;
  }
  .ios-avatar-stack > .ios-avatar {
    box-shadow: 0 0 0 2.5px var(--ring);
  }
  .ios-avatar-stack > .ios-avatar + .ios-avatar {
    margin-left: calc(var(--size) * -0.22);
  }
  .ios-avatar[data-more] {
    background: var(--ios-secondary-fill);
    color: var(--ios-secondary-label);
    font-weight: 500;
    text-transform: none;
  }
  .ios-avatar-stack > .ios-avatar[data-more] {
    background: var(--ios-gray5);
  }

  /* ── Badge, more ──
     The base .ios-badge sits on a corner of its positioned parent (an app icon). These add a small
     size for tabs, a dot, an inline version for rows and buttons, and tones. */
  .ios-badged {
    position: relative;
    display: inline-flex;
  }
  .ios-badge[data-size="sm"] {
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font: 500 13px/18px var(--ios-font);
  }
  .ios-badge[data-dot] {
    top: -2px;
    right: -2px;
    min-width: 0;
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    box-shadow: 0 0 0 2px var(--ring, var(--ios-background));
  }
  .ios-badge[data-inline] {
    position: static;
    display: inline-block;
    vertical-align: middle;
  }
  .ios-badge[data-tone="blue"] { background: var(--ios-blue); }
  .ios-badge[data-tone="green"] { background: var(--ios-green); }
  .ios-badge[data-tone="gray"] { background: var(--ios-gray); }
  .ios-tab > .ios-badge {
    top: 2px;
    right: auto;
    left: calc(50% + 2px);
  }
  .ios-tab > .ios-badge[data-dot] {
    top: 5px;
    left: calc(50% + 8px);
    box-shadow: none;
  }

  /* ── Disclosure ──
     <details class="ios-disclosure">
       <summary class="ios-row"><div class="ios-row__body"><span class="ios-row__title">Advanced</span>chevron</div></summary>
       <div class="ios-disclosure__content">…rows…</div>
     </details>
     A native <details> inside a list group. The chevron turns and the content slides open. */
  .ios-disclosure {
    interpolate-size: allow-keywords;
  }
  .ios-disclosure::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s cubic-bezier(0.2, 1, 0.3, 1), content-visibility 0.35s allow-discrete;
  }
  .ios-disclosure[open]::details-content {
    block-size: auto;
  }
  .ios-disclosure > summary {
    list-style: none;
    cursor: pointer;
  }
  .ios-disclosure > summary::-webkit-details-marker {
    display: none;
  }
  .ios-disclosure > summary:active {
    background: var(--ios-gray4);
  }
  .ios-disclosure > summary:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
  }
  .ios-disclosure > summary .ios-icon--chevron-right {
    transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  }
  .ios-disclosure[open] > summary .ios-icon--chevron-right {
    transform: rotate(90deg);
  }
  .ios-disclosure:not(:first-child) > summary > .ios-row__body,
  .ios-disclosure__content > .ios-row:first-child > .ios-row__body {
    border-top: 0.5px solid var(--ios-separator);
  }
  .ios-disclosure__content > .ios-row {
    padding-left: 32px;
  }

  /* ── Empty state ──
     <div class="ios-empty"><i class="ios-icon ios-icon--inbox"></i><h2>No Messages</h2><p>…</p><a class="ios-button">…</a></div> */
  .ios-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 40px;
    color: var(--ios-label);
    font-family: var(--ios-font);
    text-align: center;
  }
  .ios-empty > .ios-icon {
    --w: 56px;
    --h: 56px;
    margin-bottom: 8px;
    color: var(--ios-tertiary-label);
  }
  .ios-empty > h2 {
    margin: 0;
    font: 700 22px/28px var(--ios-font);
    letter-spacing: -0.26px;
  }
  .ios-empty > p {
    max-width: 280px;
    margin: 0;
    color: var(--ios-secondary-label);
    font: 400 15px/20px var(--ios-font);
    letter-spacing: -0.24px;
  }
  .ios-empty > .ios-button {
    margin-top: 14px;
  }

  /* ── HUD ──
     A transient glass confirmation, centered in the screen (square) or dropped under the island (pill).
     <div class="ios-hud"><i class="ios-icon ios-icon--circle-check"></i>Copied</div>
     <div class="ios-hud" data-variant="pill"><i class="ios-icon ios-icon--bell-off"></i>Silent Mode</div>
     It animates in on its own. To dismiss it, remove it or add hidden. */
  .ios-hud {
    position: absolute;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
    font-family: var(--ios-font);
    pointer-events: none;
    animation: ios-hud-in 0.28s cubic-bezier(0.2, 1.2, 0.4, 1) both;
  }
  .ios-hud:not([data-variant]),
  .ios-hud[data-variant="square"] {
    top: 50%;
    left: 50%;
    flex-direction: column;
    gap: 10px;
    width: 148px;
    height: 148px;
    margin: -74px 0 0 -74px;
    border-radius: 34px;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
  }
  .ios-hud:not([data-variant]) > .ios-icon,
  .ios-hud[data-variant="square"] > .ios-icon {
    --w: 48px;
    --h: 48px;
  }
  .ios-hud[data-variant="pill"] {
    top: 62px;
    left: 50%;
    gap: 8px;
    height: 44px;
    padding: 0 20px 0 16px;
    margin-left: 0;
    translate: -50% 0;
    border-radius: 999px;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.24px;
    white-space: nowrap;
  }
  .ios-hud[data-variant="pill"] > .ios-icon {
    --w: 18px;
    --h: 18px;
  }
  .ios-hud[data-variant="pill"][data-position="bottom"] {
    top: auto;
    bottom: 110px;
  }
  .ios-hud[hidden] {
    display: none;
  }

  /* ── Widget, standalone ──
     .ios-widget normally sits in the home grid. Add data-standalone to place one anywhere, at the
     iPhone widget sizes: small 158×158, medium 338×158, large 338×354. The card takes --card-bg and
     --card-fg. .ios-widget__eyebrow and __big are text helpers for the content. */
  .ios-widget[data-standalone] {
    --card-bg: var(--ios-secondary-grouped-background);
    display: block;
    align-self: auto;
    grid-column: auto;
    grid-row: auto;
    width: 158px;
  }
  .ios-widget[data-standalone][data-size="medium"],
  .ios-widget[data-standalone][data-size="large"] {
    width: 338px;
  }
  .ios-widget[data-standalone] > .ios-widget__card {
    height: 158px;
    padding: 16px;
  }
  .ios-widget[data-standalone][data-size="large"] > .ios-widget__card {
    height: 354px;
  }
  .ios-widget__eyebrow {
    color: var(--ios-secondary-label);
    font: 600 13px/16px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-widget__big {
    font: 300 42px/46px var(--ios-font);
    letter-spacing: -0.4px;
  }
}

@keyframes ios-hud-in {
  from { opacity: 0; scale: 0.85; }
  to { opacity: 1; scale: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ios-hud { animation: none; }
}


/* ── devices.css ── */
/* ── Device frames: popular iPhone models, finishes, side buttons ──
   <div class="ios-device" data-model="iphone-18-pro" data-finish="burgundy">
     <div class="ios-screen">…</div>
   </div>
   data-model sizes the screen (1 CSS px = 1 pt) and sets its corner radius, safe area, and the
   island (or notch). data-finish colors the metal band and buttons; or set --ios-frame yourself.
   Scale a whole phone down with `zoom` on the device or a wrapper.
   Sizes come from Apple's published pixel resolutions divided by the display scale. The iPhone 18 Pro
   island width and the foldable point sizes are derived from press measurements and pixel counts,
   and the finish colors are eyeballed from product photos, so treat them as close, not exact. */
@layer ios {
  /* Side buttons: one strip per side, each button a background layer, so no extra markup. */
  .ios-device {
    --ios-key: color-mix(in oklab, var(--ios-frame), black 14%);
    --ios-sapphire: color-mix(in oklab, var(--ios-frame), black 45%);
    --ios-buttons-l:
      linear-gradient(var(--ios-key), var(--ios-key)) 0 19% / 100% 34px no-repeat,
      linear-gradient(var(--ios-key), var(--ios-key)) 0 28% / 100% 62px no-repeat,
      linear-gradient(var(--ios-key), var(--ios-key)) 0 39% / 100% 62px no-repeat;
    --ios-buttons-r:
      linear-gradient(var(--ios-key), var(--ios-key)) 0 31% / 100% 96px no-repeat,
      linear-gradient(var(--ios-sapphire), var(--ios-sapphire)) 0 66% / 100% 56px no-repeat;
  }
  .ios-device::before,
  .ios-device::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 2px;
    pointer-events: none;
  }
  .ios-device::before {
    left: calc(-1 * var(--ios-band) - 3px);
    background: var(--ios-buttons-l);
  }
  .ios-device::after {
    right: calc(-1 * var(--ios-band) - 3px);
    background: var(--ios-buttons-r);
  }

  /* A model drives the screen inside it. */
  .ios-device[data-model] > .ios-screen {
    --ios-screen-radius: var(--ios-device-radius);
    --ios-safe-top: var(--ios-device-safe-top, 62px);
    width: var(--ios-device-w, 402px);
    height: var(--ios-device-h, 874px);
  }

  /* ── Models ── (screen in points) */
  .ios-device[data-model="iphone-18-pro"],
  .ios-device[data-model="iphone-18-pro-max"] {
    --ios-frame: #2b2c2e;
    --ios-island-w: 82px;
  }
  .ios-device[data-model="iphone-17-pro"],
  .ios-device[data-model="iphone-17-pro-max"] {
    --ios-frame: #d9692b;
  }
  .ios-device[data-model="iphone-18-pro-max"],
  .ios-device[data-model="iphone-17-pro-max"] {
    --ios-device-w: 440px;
    --ios-device-h: 956px;
    --ios-buttons-l:
      linear-gradient(var(--ios-key), var(--ios-key)) 0 19% / 100% 36px no-repeat,
      linear-gradient(var(--ios-key), var(--ios-key)) 0 28% / 100% 66px no-repeat,
      linear-gradient(var(--ios-key), var(--ios-key)) 0 39% / 100% 66px no-repeat;
  }
  .ios-device[data-model="iphone-air"] {
    --ios-frame: #bcd4e6;
    --ios-shine: 70%;
    --ios-bezel: 10px;
    --ios-band: 3px;
    --ios-device-w: 420px;
    --ios-device-h: 912px;
  }
  .ios-device[data-model="iphone-17"] {
    --ios-frame: #cdbfe0;
    --ios-bezel: 12px;
  }
  .ios-device[data-model="iphone-16"] {
    --ios-frame: #5d6be0;
    --ios-bezel: 13px;
    --ios-device-radius: 55px;
    --ios-device-safe-top: 59px;
    --ios-device-w: 393px;
    --ios-device-h: 852px;
  }
  /* iPhone 17e: the iPhone 14 front, with a notch instead of the Dynamic Island, and no Camera Control. */
  .ios-device[data-model="iphone-17e"] {
    --ios-frame: #ebebe8;
    --ios-bezel: 15px;
    --ios-device-radius: 47px;
    --ios-device-safe-top: 47px;
    --ios-device-w: 390px;
    --ios-device-h: 844px;
    --ios-island-w: 162px;
    --ios-buttons-r: linear-gradient(var(--ios-key), var(--ios-key)) 0 30% / 100% 92px no-repeat;
  }
  .ios-device[data-model="iphone-17e"] .ios-island {
    top: 0;
    height: 32px;
    border-radius: 0 0 21px 21px;
  }
  .ios-device[data-model="iphone-17e"] .ios-island::before,
  .ios-device[data-model="iphone-17e"] .ios-island::after {
    content: "";
    position: absolute;
    top: 0;
    width: 7px;
    height: 7px;
  }
  .ios-device[data-model="iphone-17e"] .ios-island::before {
    right: 100%;
    background: radial-gradient(circle at 0 100%, transparent 6.5px, #000 7px);
  }
  .ios-device[data-model="iphone-17e"] .ios-island::after {
    left: 100%;
    background: radial-gradient(circle at 100% 100%, transparent 6.5px, #000 7px);
  }
  .ios-device[data-model="iphone-17e"] .ios-statusbar__row {
    top: 0;
    height: 44px;
  }
  /* Foldable iPhone, closed: the 5.4-inch outer display. Touch ID is in the side button. */
  .ios-device[data-model="foldable"],
  .ios-device[data-model="foldable-open"] {
    --ios-frame: #1f2a44;
    --ios-shine: 65%;
    --ios-bezel: 10px;
    --ios-band: 3.5px;
    --ios-buttons-l:
      linear-gradient(var(--ios-key), var(--ios-key)) 0 22% / 100% 54px no-repeat,
      linear-gradient(var(--ios-key), var(--ios-key)) 0 36% / 100% 54px no-repeat;
    --ios-buttons-r: linear-gradient(var(--ios-key), var(--ios-key)) 0 28% / 100% 70px no-repeat;
    box-shadow:
      inset 0 0 0 1px color-mix(in oklab, var(--ios-frame), black 45%),
      0 0 0 0.5px color-mix(in oklab, var(--ios-frame), black 40%);
  }
  /* The outer display is a "D": the hinge side (left) has tighter corners. The front camera sits in the
     top right corner, and iOS puts the status, the Dynamic Island, and app controls in a column under it
     (.ios-rail, foldable layouts), so there is no status row across the top. */
  .ios-device[data-model="foldable"] {
    --ios-device-radius: 48px;
    --ios-device-safe-top: 14px;
    --ios-device-w: 466px;
    --ios-device-h: 678px;
    border-radius: 34px calc(48px + var(--ios-bezel) + var(--ios-band)) calc(48px + var(--ios-bezel) + var(--ios-band)) 34px;
  }
  .ios-device[data-model="foldable"] > .ios-screen {
    --ios-safe-bottom: 22px;
    border-radius: 22px 48px 48px 22px;
  }
  .ios-device[data-model="foldable"] .ios-island {
    top: 12px;
    right: calc((var(--ios-rail-w, 66px) - 38px) / 2);
    left: auto;
    width: 38px;
    height: 38px;
    translate: none;
    background: #000 radial-gradient(circle, #1b2336 0 4px, #0b0e16 4.5px 6px, transparent 6.5px);
  }
  /* Foldable iPhone, open: the 7.6-inch inner display, 626 × 890 in portrait. The camera is under the screen,
     so there is no island. The fold runs across the middle in portrait and down the middle in landscape
     (data-orientation="landscape", 890 × 626), where the status and controls move to the side again. */
  .ios-device[data-model="foldable-open"] {
    --ios-island-w: 0px;
    --ios-device-radius: 30px;
    --ios-device-safe-top: 40px;
    --ios-device-w: 626px;
    --ios-device-h: 890px;
    --ios-buttons-l: none;
  }
  .ios-device[data-model="foldable-open"][data-orientation="landscape"] {
    --ios-device-safe-top: 14px;
    --ios-device-w: 890px;
    --ios-device-h: 626px;
    --ios-buttons-r: none;
  }
  .ios-device[data-model="foldable-open"][data-orientation="landscape"] > .ios-screen {
    --ios-safe-bottom: 22px;
  }
  .ios-device[data-model="foldable-open"] .ios-island,
  .ios-device[data-model="foldable"] .ios-statusbar,
  .ios-device[data-model="foldable-open"][data-orientation="landscape"] .ios-statusbar {
    display: none;
  }
  .ios-device[data-model="foldable-open"] .ios-statusbar__row {
    top: 0;
    height: 38px;
    padding: 0 22px;
  }
  .ios-device[data-model="foldable-open"] .ios-statusbar__time {
    padding: 0;
    text-align: left;
  }
  .ios-device[data-model="foldable-open"] .ios-statusbar__icons {
    justify-content: flex-end;
  }
  /* The fold: a soft highlight and shadow across the middle of the inner display. */
  .ios-device[data-model="foldable-open"] > .ios-screen::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    z-index: 100;
    height: var(--ios-crease-w, 28px);
    translate: 0 -50%;
    background: linear-gradient(180deg, transparent, rgb(255 255 255 / var(--ios-crease-light, 0.07)) 38%, rgb(0 0 0 / var(--ios-crease-shade, 0.08)) 62%, transparent);
    pointer-events: none;
  }
  .ios-device[data-model="foldable-open"]:has(.ios-split) > .ios-screen::after {
    content: none;
  }
  .ios-device[data-model="foldable-open"][data-orientation="landscape"] > .ios-screen::after {
    inset: 0 auto 0 50%;
    width: var(--ios-crease-w, 28px);
    height: auto;
    translate: -50% 0;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / var(--ios-crease-light, 0.07)) 38%, rgb(0 0 0 / var(--ios-crease-shade, 0.08)) 62%, transparent);
  }
  /* Partly folded like a book (data-pose="book"): the screen curves through the middle, so the crease
     reads stronger and --ios-fold-gap widens for content that keeps out of it (.ios-columns, foldable layouts). */
  .ios-device[data-model="foldable-open"][data-pose] {
    --ios-crease-w: 90px;
    --ios-crease-light: 0.1;
    --ios-crease-shade: 0.22;
    --ios-fold-gap: 104px;
  }

  /* ── Finishes ── (after the models, so they override each model's default) */
  .ios-device[data-finish="black"] { --ios-frame: #2b2c2e; }
  .ios-device[data-finish="silver"] { --ios-frame: #d9dadc; }
  .ios-device[data-finish="glacier"] { --ios-frame: #bcd3df; }
  .ios-device[data-finish="burgundy"] { --ios-frame: #5e1f2c; }
  .ios-device[data-finish="cosmic-orange"] { --ios-frame: #d9692b; }
  .ios-device[data-finish="deep-blue"] { --ios-frame: #2f3a52; }
  .ios-device[data-finish="sky-blue"] { --ios-frame: #bcd4e6; }
  .ios-device[data-finish="light-gold"] { --ios-frame: #e3d3b1; }
  .ios-device[data-finish="cloud-white"] { --ios-frame: #ecebe6; }
  .ios-device[data-finish="space-black"] { --ios-frame: #262628; }
  .ios-device[data-finish="lavender"] { --ios-frame: #cdbfe0; }
  .ios-device[data-finish="mist-blue"] { --ios-frame: #9fb6cf; }
  .ios-device[data-finish="sage"] { --ios-frame: #a9b597; }
  .ios-device[data-finish="white"] { --ios-frame: #ebebe8; }
  .ios-device[data-finish="soft-pink"] { --ios-frame: #ecc9cb; }
  .ios-device[data-finish="ultramarine"] { --ios-frame: #5d6be0; }
  .ios-device[data-finish="teal"] { --ios-frame: #9ccfc6; }
  .ios-device[data-finish="pink"] { --ios-frame: #eea3cf; }
  .ios-device[data-finish="star-white"] { --ios-frame: #e8e6e0; }
  .ios-device[data-finish="night-sky"] { --ios-frame: #1f2a44; }
}


/* ── safari.css ── */
/* ── Safari: compact bar, bottom layout, tab overview, start page ── */
@layer ios {
  /* ── Compact bar (the iOS 26 default) ──
     <div class="ios-safari">
       <button class="ios-barbutton">‹</button>
       <a class="ios-safari__address" href="#">
         <span class="ios-safari__icon">…</span><span class="ios-safari__url">apple.com</span><span class="ios-safari__icon">…</span>
       </a>
       <button class="ios-barbutton">•••</button>
     </div>
     data-state="minimized" shrinks it to the small domain pill shown while you read.
     data-autominimize does that from scroll position: put it in an .ios-screen whose .ios-screen__scroll
     holds the page. Focusing the bar (tap it) brings it back.
     --progress (0–100) on the address draws the loading line. */
  .ios-safari {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    font-family: var(--ios-font);
  }
  .ios-screen > .ios-safari {
    position: absolute;
    inset: auto 0 24px;
  }
  .ios-safari > .ios-barbutton,
  .ios-safari > .ios-barbutton-group {
    height: 48px;
    min-width: 48px;
  }
  .ios-safari > .ios-barbutton:has(> .ios-icon:only-child) {
    width: 48px;
  }
  .ios-safari > .ios-barbutton-group > .ios-barbutton {
    height: 48px;
  }
  .ios-safari__address {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-width: 0;
    height: 48px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    color: var(--ios-glass-label);
    text-decoration: none;
    cursor: text;
  }
  .ios-safari__address::after {
    content: "";
    position: absolute;
    inset: auto auto 0 0;
    width: calc(var(--progress, 0) * 1%);
    height: 3px;
    background: var(--ios-tint);
    border-radius: 0 2px 2px 0;
    transition: width 0.3s;
  }
  .ios-safari__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
  }
  .ios-safari__icon > .ios-icon {
    --w: 20px;
    --h: 20px;
  }
  .ios-safari__url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* Editing: a real field (with an icon at each end) and a close button next to it. */
  .ios-safari__url:is(input) {
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: none;
    color: var(--ios-label);
    text-align: left;
  }
  .ios-safari__url:is(input)::placeholder {
    color: var(--ios-secondary-label);
  }
  .ios-safari[data-state="editing"] .ios-safari__address {
    cursor: text;
  }
  .ios-safari[data-state="editing"] .ios-safari__icon:first-child {
    width: 42px;
    padding-left: 4px;
    color: var(--ios-secondary-label);
  }
  .ios-screen > .ios-safari[data-state="editing"] {
    bottom: 8px;
  }
  .ios-screen:has(> .ios-keyboard) > .ios-safari[data-state="editing"] {
    bottom: 299px;
  }

  /* Minimized: only the domain, in a small pill. The same values drive the scroll animation. */
  .ios-safari > *,
  .ios-safari__icon,
  .ios-safari__url {
    transition: all 0.4s cubic-bezier(0.25, 1, 0.4, 1);
  }
  .ios-safari[data-state="minimized"] {
    gap: 0;
    height: 30px;
  }
  .ios-safari[data-state="minimized"] > :not(.ios-safari__address) {
    width: 0;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    scale: 0.5;
  }
  .ios-safari[data-state="minimized"] .ios-safari__address {
    flex: 0 0 var(--minimized-w, 150px);
    height: 30px;
  }
  .ios-safari[data-state="minimized"] .ios-safari__icon {
    width: 0;
    opacity: 0;
  }
  .ios-safari[data-state="minimized"] .ios-safari__url {
    font-size: 13px;
    letter-spacing: -0.08px;
  }
  .ios-screen > .ios-safari[data-state="minimized"] {
    bottom: 28px;
  }

  /* Auto-minimize with a scroll-driven animation over the first 80px of scroll. */
  .ios-screen:has(> .ios-safari[data-autominimize]) {
    timeline-scope: --ios-safari-page;
  }
  .ios-screen:has(> .ios-safari[data-autominimize]) > .ios-screen__scroll {
    scroll-timeline: --ios-safari-page block;
  }
  .ios-safari[data-autominimize]:not(:focus-within) {
    animation: ios-safari-bar linear both;
    animation-timeline: --ios-safari-page;
    animation-range: 0 80px;
  }
  .ios-safari[data-autominimize]:not(:focus-within) > :not(.ios-safari__address) {
    animation: ios-safari-side linear both;
    animation-timeline: --ios-safari-page;
    animation-range: 0 80px;
  }
  .ios-safari[data-autominimize]:not(:focus-within) .ios-safari__address {
    animation: ios-safari-address linear both;
    animation-timeline: --ios-safari-page;
    animation-range: 0 80px;
  }
  .ios-safari[data-autominimize]:not(:focus-within) .ios-safari__icon {
    animation: ios-safari-icon linear both;
    animation-timeline: --ios-safari-page;
    animation-range: 0 80px;
  }
  .ios-safari[data-autominimize]:not(:focus-within) .ios-safari__url {
    animation: ios-safari-url linear both;
    animation-timeline: --ios-safari-page;
    animation-range: 0 80px;
  }

  /* ── Bottom layout ── (Settings › Apps › Safari › Bottom)
     The address field above a row of five tools, on one glass panel at the bottom of the screen. */
  .ios-safari[data-layout="bottom"] {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    height: auto;
    padding: 10px 16px var(--ios-safe-bottom, 34px);
    border-radius: 30px 30px 0 0;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-screen > .ios-safari[data-layout="bottom"] {
    bottom: 0;
  }
  .ios-safari[data-layout="bottom"] .ios-safari__address {
    flex: none;
    height: 44px;
    border-radius: 14px;
    background: var(--ios-tertiary-fill);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ios-label);
  }
  .ios-safari__tools {
    display: flex;
    justify-content: space-between;
    height: 44px;
  }
  .ios-safari__tool {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ios-tint);
    cursor: pointer;
  }
  .ios-safari__tool > .ios-icon {
    --w: 24px;
    --h: 24px;
  }
  .ios-safari__tool > .ios-icon--chevron-left,
  .ios-safari__tool > .ios-icon--chevron-forward {
    --w: 12px;
    --h: 20px;
  }
  .ios-safari__tool:disabled {
    color: var(--ios-tertiary-label);
    cursor: default;
  }

  /* ── Tab overview ──
     <div class="ios-safari-tabs">
       <div class="ios-safari-tabs__grid">
         <a class="ios-safari-tab" aria-current="page">
           <span class="ios-safari-tab__thumb">…</span><span class="ios-safari-tab__title">…</span>
         </a>
       </div>
       <div class="ios-safari-tabs__bar">…</div>
     </div>
     Inside an .ios-layer it opens with :target like a sheet. aria-current marks the open tab. */
  .ios-safari-tabs {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: var(--ios-grouped-background);
    color: var(--ios-label);
    font-family: var(--ios-font);
  }
  .ios-screen > .ios-safari-tabs,
  .ios-layer > .ios-safari-tabs {
    position: absolute;
    inset: 0;
  }
  .ios-layer > .ios-safari-tabs {
    opacity: 0;
    scale: 1.08;
    transition: opacity 0.3s, scale 0.45s cubic-bezier(0.25, 1, 0.4, 1);
  }
  .ios-layer:is(:target, :has(:target), [data-open], :has([data-open])) > .ios-safari-tabs {
    opacity: 1;
    scale: 1;
  }
  /* A pull-down menu that led here hides while the overview is open; the next tap closes it. */
  .ios-screen:has(.ios-layer:is(:target, [data-open])) .ios-menu:popover-open {
    visibility: hidden;
  }
  .ios-safari-tabs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 18px 16px;
    height: 100%;
    overflow-y: auto;
    padding: calc(var(--ios-safe-top, 62px) + 8px) 18px 120px;
    scrollbar-width: none;
  }
  .ios-safari-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }
  .ios-safari-tab__thumb {
    position: relative;
    display: block;
    aspect-ratio: 0.72;
    overflow: hidden;
    border-radius: 20px;
    background: var(--ios-secondary-grouped-background) center top / cover;
    box-shadow: 0 0 0 0.5px var(--ios-separator), 0 6px 18px rgb(0 0 0 / 0.08);
  }
  .ios-safari-tab[aria-current="page"] .ios-safari-tab__thumb {
    box-shadow: 0 0 0 3px var(--ios-tint), 0 6px 18px rgb(0 0 0 / 0.1);
  }
  .ios-safari-tab__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgb(0 0 0 / 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
  }
  .ios-safari-tab__close > .ios-icon {
    --w: 10px;
    --h: 10px;
  }
  .ios-safari-tab__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 0 4px;
    font: 400 13px/16px var(--ios-font);
  }
  .ios-safari-tab__title > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ios-favicon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: var(--size, 16px);
    height: var(--size, 16px);
    border-radius: calc(var(--size, 16px) * 0.25);
    background: var(--bg, var(--ios-gray));
    color: #fff;
    font: 700 calc(var(--size, 16px) * 0.56) / 1 var(--ios-font);
  }
  .ios-safari-tabs__bar {
    position: absolute;
    inset: auto 0 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
  }
  .ios-safari-tabs__bar > .ios-barbutton {
    height: 48px;
    white-space: nowrap;
    text-decoration: none;
    min-width: 48px;
  }
  .ios-safari-tabs__bar > .ios-barbutton:has(> .ios-icon:only-child) {
    width: 48px;
  }
  .ios-safari-tabs__bar > .ios-barbutton[data-variant="prominent"] > .ios-icon {
    --w: 18px;
    --h: 17px;
  }

  /* ── Start page ── Favorites as a grid of tiles, then any sections of your own. */
  .ios-safari-start {
    padding: 0 20px;
    color: var(--ios-label);
    font-family: var(--ios-font);
  }
  .ios-safari-start__title {
    margin: 0 0 14px;
    font: 700 22px/28px var(--ios-font);
    letter-spacing: -0.26px;
  }
  .ios-safari-start__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 12px;
    margin-bottom: 30px;
  }
  .ios-safari-fav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }
  .ios-safari-fav > .ios-favicon {
    --size: 64px;
    border-radius: 16px;
    font-size: 28px;
    box-shadow: 0 0 0 0.5px var(--ios-separator);
  }
  .ios-safari-fav > span:last-child {
    max-width: 100%;
    overflow: hidden;
    color: var(--ios-secondary-label);
    font: 400 12px/15px var(--ios-font);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Keyframes live outside the layer. They mirror data-state="minimized". */
@keyframes ios-safari-bar {
  to { gap: 0; height: 30px; translate: 0 4px; }
}
@keyframes ios-safari-side {
  to { width: 0; min-width: 0; padding: 0; overflow: hidden; opacity: 0; scale: 0.5; }
}
@keyframes ios-safari-address {
  to { flex: 0 0 var(--minimized-w, 150px); height: 30px; }
}
@keyframes ios-safari-icon {
  to { width: 0; opacity: 0; }
}
@keyframes ios-safari-url {
  to { font-size: 13px; letter-spacing: -0.08px; }
}

/* ═══════════════════════ Part 2: new in iOS 27 and foldable layouts ═══════════════════════ */
/* ── ios27.css ── */
/* ── iOS 27: retuned Liquid Glass, Search or Ask, prominent tab, hard scroll edge, sidebar ──
   iOS 27 is opt-in. Add class="ios27" to a screen (or any ancestor, even <html>) and the glass under it
   takes the iOS 27 look: a darker outline, a brighter rim, lighter glass in dark mode, a darker tab lens
   in dark mode, and the solid battery. Everything else in the kit keeps working unchanged.
   Values follow Apple's iOS 27 Figma kit as transcribed by the ios27-design-system project, plus
   observations of the shipping OS; Apple publishes no numbers for the material, so treat them as close. */

/* Glass tokens. Unlayered like the base tokens, so they beat the base .dark rule.
   The Liquid Glass slider (Settings › Appearance) runs from ultra clear (1) to fully tinted (0);
   --ios-glass-transparency carries it, and data-transparency pins an element to one of five stops. */
.ios27,
.ios27 [data-transparency] {
  --ios-glass-t: var(--ios-glass-transparency, 0.5);
  --ios-glass-opacity-scale: calc(1.6 - 1.1 * var(--ios-glass-t));
  --ios-glass-blur-scale: calc(0.5 + 0.8 * var(--ios-glass-t));
  --ios-glass-bg: rgb(255 255 255 / min(0.96, calc(0.64 * var(--ios-glass-opacity-scale))));
  --ios-glass-clear-bg: rgb(255 255 255 / min(0.9, calc(0.12 * var(--ios-glass-opacity-scale) * var(--ios-glass-opacity-scale))));
  --ios-glass-blur: calc(9px * var(--ios-glass-blur-scale));
  --ios-glass-clear-blur: calc(3px * var(--ios-glass-blur-scale));
  /* rim light, top-left specular, bottom-right specular, darkened edge, a lighter float shadow */
  --ios-glass-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.7), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 1),
    inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.7), 0 0 0 0.5px rgb(0 0 0 / 0.14), 0 4px 16px rgb(0 0 0 / 0.06);
  --ios-glass-prominent-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.3), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.7),
    inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.35), 0 0 0 0.5px rgb(0 0 0 / 0.12), 0 4px 16px rgb(0 0 0 / 0.1);
}
.ios27.dark,
.ios27 .dark,
.dark .ios27,
.ios27.dark [data-transparency],
.ios27 .dark [data-transparency],
.dark .ios27 [data-transparency] {
  --ios-glass-bg: rgb(66 66 70 / min(0.96, calc(0.52 * var(--ios-glass-opacity-scale))));
  --ios-glass-clear-bg: rgb(0 0 0 / min(0.9, calc(0.16 * var(--ios-glass-opacity-scale) * var(--ios-glass-opacity-scale))));
  --ios-glass-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.2), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.55),
    inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.6), 0 6px 20px rgb(0 0 0 / 0.3);
  --ios-glass-prominent-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.22), inset 1.5px 1.5px 1px -1px rgb(255 255 255 / 0.5),
    inset -1px -1px 1px -0.5px rgb(255 255 255 / 0.22), 0 0 0 0.5px rgb(0 0 0 / 0.5), 0 6px 20px rgb(0 0 0 / 0.35);
  /* Dark glass is lighter now, so the selected tab lens is darker instead of lighter. */
  --ios-tab-selection: rgb(0 0 0 / 0.28);
}
/* The five stops of the slider. */
[data-transparency="ultra-clear"] { --ios-glass-transparency: 1; }
[data-transparency="clear"] { --ios-glass-transparency: 0.75; }
[data-transparency="default"] { --ios-glass-transparency: 0.5; }
[data-transparency="tinted"] { --ios-glass-transparency: 0.25; }
[data-transparency="fully-tinted"] { --ios-glass-transparency: 0; }
/* A .ios-glass-setting anywhere inside drives the whole .ios27 subtree. */
.ios27:has(.ios-glass-setting input[value="ultra-clear"]:checked) { --ios-glass-transparency: 1; }
.ios27:has(.ios-glass-setting input[value="clear"]:checked) { --ios-glass-transparency: 0.75; }
.ios27:has(.ios-glass-setting input[value="tinted"]:checked) { --ios-glass-transparency: 0.25; }
.ios27:has(.ios-glass-setting input[value="fully-tinted"]:checked) { --ios-glass-transparency: 0; }
/* Accessibility wins over the slider, as on the device. */
@media (prefers-reduced-transparency: reduce) {
  .ios27,
  .ios27 [data-transparency] {
    --ios-glass-transparency: 0 !important;
  }
}

@layer ios {
  /* ── Battery: one solid shape, the empty part dimmed (iOS 27 status bar) ── */
  .ios27 .ios-battery::before {
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ios-battery-fill, currentColor) calc(var(--level, 100) * 1%), color-mix(in srgb, currentColor 32%, transparent) 0);
    opacity: 1;
  }
  .ios27 .ios-battery > i {
    display: none;
  }
  .ios27 .ios-battery[data-low] { --ios-battery-fill: var(--ios-red); }
  .ios27 .ios-battery[data-charging] { --ios-battery-fill: var(--ios-green); }

  /* ── Liquid Glass setting ──
     <div class="ios-glass-setting" role="radiogroup" aria-label="Liquid Glass">
       <div class="ios-glass-setting__preview">…</div>
       <div class="ios-glass-setting__slider">
         <span>Clear</span>
         <div class="ios-glass-setting__stops">
           <input type="radio" name="glass" value="ultra-clear" aria-label="Ultra clear"> … five, left to right …
         </div>
         <span>Tinted</span>
       </div>
     </div>
     Five radios on a track: ultra-clear, clear, default, tinted, fully-tinted. Inside an .ios27 subtree the
     checked stop sets --ios-glass-transparency for everything under it, so the whole screen follows. */
  .ios-glass-setting {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px 16px;
    border-radius: 26px;
    background: var(--ios-secondary-grouped-background);
    color: var(--ios-label);
    font-family: var(--ios-font);
  }
  .ios-glass-setting__preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 132px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--preview, radial-gradient(circle at 20% 25%, #ff8a5c 0, transparent 45%), radial-gradient(circle at 80% 30%, #6c7bff 0, transparent 45%),
      radial-gradient(circle at 50% 100%, #2ed3b7 0, transparent 55%), #f0e6ff);
  }
  .ios-glass-setting__slider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ios-secondary-label);
    font: 400 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
  }
  .ios-glass-setting__stops {
    --i: 2;
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    height: 28px;
  }
  /* The track and the fill up to the thumb. */
  .ios-glass-setting__stops::before,
  .ios-glass-setting__stops::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    translate: 0 -50%;
    border-radius: 3px;
    pointer-events: none;
  }
  .ios-glass-setting__stops::before {
    right: 0;
    background: var(--ios-tertiary-fill);
  }
  .ios-glass-setting__stops::after {
    width: calc(var(--i) * 25%);
    background: var(--ios-tint);
    transition: width 0.35s cubic-bezier(0.3, 1.2, 0.4, 1);
  }
  .ios-glass-setting__stops:has(> input:nth-child(1):checked) { --i: 0; }
  .ios-glass-setting__stops:has(> input:nth-child(2):checked) { --i: 1; }
  .ios-glass-setting__stops:has(> input:nth-child(3):checked) { --i: 2; }
  .ios-glass-setting__stops:has(> input:nth-child(4):checked) { --i: 3; }
  .ios-glass-setting__stops:has(> input:nth-child(5):checked) { --i: 4; }
  .ios-glass-setting__stops > input {
    position: relative;
    z-index: 1;
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: var(--ios-gray2);
    appearance: none;
    cursor: pointer;
    transition: width 0.25s, height 0.25s, margin 0.25s, background-color 0.25s, box-shadow 0.25s;
  }
  /* The checked stop is the thumb. */
  .ios-glass-setting__stops > input:checked {
    width: 28px;
    height: 28px;
    margin: 0 -10px;
    background: #fff;
    box-shadow: 0 0 0 0.5px rgb(0 0 0 / 0.04), 0 3px 8px rgb(0 0 0 / 0.15), 0 3px 1px rgb(0 0 0 / 0.06);
  }
  .ios-glass-setting__stops > input:first-child:checked { margin-left: -10px; }
  .ios-glass-setting__stops > input:focus-visible {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }

  /* ── Prominent tab ──
     <button class="ios-tabbar__search" data-variant="prominent" aria-label="Add">…</button>
     iOS 27 generalizes the separate capsule next to the tab bar: any tab can take it, not just Search.
     data-variant="prominent" fills it with the tint. */
  .ios-tabbar__search[data-variant="prominent"] {
    background: var(--ios-tint);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: var(--ios-glass-prominent-shadow);
    color: #fff;
  }
  .ios-tabbar__search[data-variant="prominent"]:active {
    scale: 1.06;
  }

  /* ── Hard scroll edge ──
     <div class="ios-scrolledge" data-style="hard"></div>
     iOS 27's default: one uniform frosted bar with a hairline, instead of the soft fade. It covers the
     status bar and an inline navigation bar; --edge-h changes its height. */
  .ios-scrolledge[data-style="hard"] {
    height: var(--edge-h, calc(var(--ios-safe-top) + 54px));
    background: color-mix(in srgb, var(--ios-edge-color) 85%, transparent);
    -webkit-backdrop-filter: blur(6px) saturate(160%);
    backdrop-filter: blur(6px) saturate(160%);
    border-bottom: 0.5px solid var(--ios-separator);
  }
  .ios-scrolledge[data-style="hard"]::before {
    display: none;
  }
  /* iOS 27 draws no edge at the bottom by default. */
  .ios-scrolledge[data-style="hard"][data-edge="bottom"] {
    display: none;
  }

  /* ── Search or Ask (the assistant in the Dynamic Island) ──
     <label class="ios-assistant">
       <span class="ios-assistant__cursor"></span>
       <input class="ios-assistant__field" placeholder="Search or Ask" aria-label="Search or Ask">
       <span class="ios-assistant__status">Searching</span>
       <button class="ios-assistant__mic" type="button" aria-label="Talk to the assistant">…</button>
     </label>
     It sits where the island is (leave out .ios-island). Tap it and it grows into the dark field with a
     glowing cursor: it is a label, so a tap focuses the input inside. data-state="ask" keeps it open;
     data-state="searching" swaps the field for the glowing Searching label. The assistant's UI is dark in both modes. */
  .ios-assistant {
    --ios-assistant-glow: #f77bbd, #9b6bff 25%, #4a63e6 50%, #ff9d5c 75%, #f77bbd;
    position: absolute;
    top: 11px;
    left: 50%;
    z-index: 61;
    display: flex;
    align-items: center;
    gap: 8px;
    width: var(--ios-island-w, 126px);
    height: 37px;
    padding: 0 6px 0 18px;
    translate: -50% 0;
    border-radius: 999px;
    color: #fff;
    font-family: var(--ios-font);
    cursor: text;
    transition: width 0.5s cubic-bezier(0.25, 1.2, 0.4, 1), height 0.5s cubic-bezier(0.25, 1.2, 0.4, 1);
    @starting-style {
      width: var(--ios-island-w, 126px);
      height: 37px;
    }
  }
  /* The black body sits over a blurred, turning glow ring. */
  .ios-assistant::before,
  .ios-assistant::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
  }
  .ios-assistant::before {
    inset: -2px;
    z-index: -2;
    background: conic-gradient(from var(--ios-assistant-a, 0deg), var(--ios-assistant-glow));
    filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s;
    animation: ios-assistant-turn 4s linear infinite;
  }
  .ios-assistant::after {
    inset: 0;
    z-index: -1;
    background: #000;
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.12);
  }
  @property --ios-assistant-a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
  }
  @keyframes ios-assistant-turn {
    to { --ios-assistant-a: 360deg; }
  }
  .ios-assistant:focus-within,
  .ios-assistant[data-state],
  .ios-assistant:has(> .ios-assistant__field:not(:placeholder-shown)) {
    width: var(--assistant-w, 370px);
    height: 50px;
    @starting-style {
      width: var(--assistant-w, 370px);
      height: 50px;
    }
  }
  .ios-assistant:is(:focus-within, [data-state], :has(> .ios-assistant__field:not(:placeholder-shown)))::before {
    opacity: 0.85;
  }
  .ios-assistant__field {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: none;
    color: #fff;
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    caret-color: #f77bbd;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .ios-assistant__field::placeholder {
    color: rgb(255 255 255 / 0.5);
  }
  .ios-assistant:is(:focus-within, [data-state="ask"], :has(> .ios-assistant__field:not(:placeholder-shown))) > .ios-assistant__field {
    opacity: 1;
    transition-delay: 0.15s;
  }
  /* While the field is empty, a glowing cursor stands in for the caret. */
  .ios-assistant__cursor {
    flex: none;
    width: 3px;
    height: 22px;
    margin-right: -4px;
    border-radius: 2px;
    background: linear-gradient(#f77bbd, #9b6bff 50%, #4a63e6);
    box-shadow: 0 0 8px #f77bbd, 0 0 14px #9b6bff;
    opacity: 0;
    scale: 1 0;
    transition: opacity 0.2s, scale 0.3s;
  }
  .ios-assistant:is(:focus-within, [data-state="ask"]):has(> .ios-assistant__field:placeholder-shown) > .ios-assistant__cursor {
    opacity: 1;
    scale: 1;
    animation: ios-assistant-blink 1.1s 0.4s ease-in-out infinite;
  }
  .ios-assistant:has(> .ios-assistant__field:placeholder-shown) > .ios-assistant__field {
    caret-color: transparent;
  }
  @keyframes ios-assistant-blink {
    50% { opacity: 0.25; }
  }
  .ios-assistant__status {
    display: none;
    flex: 1;
    font: 600 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    background: linear-gradient(90deg, rgb(255 255 255 / 0.55) 20%, #fff, #f7a8d2, #b9a3ff, rgb(255 255 255 / 0.55) 80%) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ios-assistant-shimmer 1.6s linear infinite;
  }
  .ios-assistant__status::after {
    content: "…";
  }
  @keyframes ios-assistant-shimmer {
    to { background-position: -200% 0; }
  }
  .ios-assistant[data-state="searching"] > :is(.ios-assistant__field, .ios-assistant__cursor) {
    display: none;
  }
  .ios-assistant[data-state="searching"] > .ios-assistant__status {
    display: block;
  }
  .ios-assistant__mic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 0;
    height: 38px;
    margin-left: -8px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 0.14);
    color: #fff;
    opacity: 0;
    scale: 0.4;
    cursor: pointer;
    transition: opacity 0.2s, scale 0.4s cubic-bezier(0.25, 1.3, 0.4, 1), width 0.4s, margin 0.4s;
  }
  .ios-assistant:is(:focus-within, [data-state], :has(> .ios-assistant__field:not(:placeholder-shown))) > .ios-assistant__mic {
    width: 38px;
    margin-left: 0;
    opacity: 1;
    scale: 1;
    transition-delay: 0.12s;
  }
  .ios-assistant__mic .ios-icon {
    --w: 12px;
    --h: 17px;
  }
  /* A surface that shows the pill outside a phone. */
  .ios-surface:has(> .ios-assistant) {
    height: 74px;
  }
  @media (prefers-reduced-motion: reduce) {
    .ios-assistant::before,
    .ios-assistant__cursor,
    .ios-assistant__status { animation: none; }
  }

  /* ── Assistant answer panel ──
     <section class="ios-assistant-panel">
       <p class="ios-assistant-panel__source">…</p><h2 class="ios-assistant-panel__title">…</h2><p>…</p>
       <div class="ios-assistant-panel__actions"><button>…</button></div>
       <span class="ios-assistant-panel__grabber">Pull down to chat</span>
     </section>
     The translucent dark panel the assistant answers in, under the island. As a direct child of .ios-screen it
     hangs below the Search or Ask pill. */
  .ios-assistant-panel {
    position: relative;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 10px;
    padding: 18px 20px 12px;
    border-radius: 34px;
    background: rgb(16 16 20 / 0.74);
    -webkit-backdrop-filter: blur(30px) saturate(160%);
    backdrop-filter: blur(30px) saturate(160%);
    box-shadow: inset 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 20px 50px rgb(0 0 0 / 0.35);
    color: #fff;
    font: 400 16px/22px var(--ios-font);
    letter-spacing: -0.31px;
  }
  .ios-screen > .ios-assistant-panel {
    position: absolute;
    inset: 72px 0 auto;
  }
  .ios-assistant-panel > p {
    margin: 0;
    color: rgb(255 255 255 / 0.86);
  }
  .ios-assistant-panel__source {
    display: flex;
    align-items: center;
    gap: 6px;
    font: 600 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-assistant-panel > .ios-assistant-panel__source {
    color: rgb(255 255 255 / 0.55);
  }
  .ios-assistant-panel__title {
    margin: 0;
    font: 700 22px/28px var(--ios-font);
    letter-spacing: -0.26px;
  }
  .ios-assistant-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
  }
  .ios-assistant-panel__actions > :is(button, a) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    font: 600 15px/20px var(--ios-font);
    letter-spacing: -0.23px;
    text-decoration: none;
    cursor: pointer;
  }
  .ios-assistant-panel__actions .ios-icon {
    --w: 16px;
    --h: 16px;
  }
  .ios-assistant-panel__grabber {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: rgb(255 255 255 / 0.45);
    font: 500 12px/16px var(--ios-font);
  }
  .ios-assistant-panel__grabber::before {
    content: "";
    width: 36px;
    height: 5px;
    border-radius: 3px;
    background: rgb(255 255 255 / 0.3);
  }

  /* ── Sidebar ──
     <nav class="ios-sidebar">
       <h2 class="ios-sidebar__title">Health</h2>
       <label class="ios-sidebar__item" style="--c:var(--ios-pink)"><input type="radio" name="side" checked><i class="ios-icon ios-icon--heart"></i>Summary</label>
       <p class="ios-sidebar__header">Categories</p>
       …
     </nav>
     The tab bar shown as a sidebar, which iOS 27 brings to iPhone in landscape and to a foldable iPhone's
     inner display. It runs edge to edge, icons keep their color (--c), and the selected item is a glass
     capsule. Items are radios in labels (or links with aria-current="page"). As a direct child of
     .ios-screen it pins to the leading edge; --sidebar-w sets its width. */
  .ios-sidebar {
    position: relative;
    z-index: 42;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: var(--sidebar-w, 280px);
    height: 100%;
    padding: calc(var(--ios-safe-top, 0px) + 10px) 12px 16px;
    overflow-y: auto;
    background: color-mix(in srgb, var(--ios-secondary-background) 82%, transparent);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    backdrop-filter: blur(40px) saturate(180%);
    box-shadow: inset -0.5px 0 0 var(--ios-separator);
    color: var(--ios-label);
    font-family: var(--ios-font);
    scrollbar-width: none;
  }
  .ios-screen > .ios-sidebar {
    position: absolute;
    inset: 0 auto 0 0;
  }
  .ios-sidebar__title {
    margin: 0;
    padding: 6px 12px 10px;
    font: 700 28px/34px var(--ios-font);
    letter-spacing: 0.38px;
  }
  .ios-sidebar__header {
    margin: 0;
    padding: 14px 12px 4px;
    color: var(--ios-secondary-label);
    font: 600 13px/18px var(--ios-font);
    letter-spacing: -0.08px;
  }
  .ios-sidebar__item {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ios-label);
    font: 400 17px/22px var(--ios-font);
    letter-spacing: -0.43px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  .ios-sidebar__item > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-sidebar__item > .ios-icon {
    --w: 22px;
    --h: 22px;
    color: var(--c, var(--ios-tint));
  }
  .ios-sidebar__item > small {
    margin-left: auto;
    color: var(--ios-secondary-label);
    font: 400 15px/20px var(--ios-font);
  }
  .ios-sidebar__item:active {
    background: var(--ios-tertiary-fill);
  }
  .ios-sidebar__item:has(> input:checked),
  .ios-sidebar__item[aria-current="page"] {
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
    font-weight: 600;
  }
  .ios-sidebar__item:has(> input:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: -2px;
  }
}

/* ── foldable layouts ── */
/* ── Foldable iPhone: the side rail, corner status, vertical Dynamic Island, Split View, fold-aware layout ──
   On a foldable iPhone, iOS 27 moves what normally sits at the top and bottom of the screen into one column
   along the side, under the front camera: the status, the Dynamic Island, then the app's bar buttons and
   tab bar. Content gets the full height to its left. Device geometry is in devices.css. */
@layer ios {
  /* ── Side rail ──
     <nav class="ios-rail">
       <div class="ios-fold-island">…</div>          (only in the rail under the camera)
       <div class="ios-fold-status">…</div>
       <button class="ios-barbutton">…</button>    (top items: back or close first, then prominent actions)
       <span class="ios-rail__spacer"></span>
       <div class="ios-barbutton-group">…</div>     (bottom items)
       <div class="ios-rail__tabs">…</div>          (the tab bar, always last)
     </nav>
     Bars turned on their side: think of the nav bar, toolbar, and tab bar rotated 90° into one stack.
     Icon buttons go vertical; a text button or segmented control stays in a horizontal nav bar.
     As a direct child of .ios-screen it pins to the trailing edge, and the nav bar, toolbar, scroll view,
     and home indicator move over to make room. data-side="start" puts it on the leading edge (the left
     app in Split View). --ios-rail-w (66px) sets its width; set it on the screen. */
  .ios-rail {
    position: relative;
    z-index: 45;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: var(--ios-rail-w, 66px);
    padding: 12px 0 14px;
    color: var(--ios-label);
    font-family: var(--ios-font);
    pointer-events: none;
  }
  .ios-rail > * {
    pointer-events: auto;
  }
  .ios-screen > .ios-rail,
  .ios-surface > .ios-rail {
    position: absolute;
    inset: 0 0 0 auto;
  }
  :is(.ios-screen, .ios-surface) > .ios-rail[data-side="start"] {
    inset: 0 auto 0 0;
  }
  .ios-rail__spacer {
    flex: 1;
    min-height: 0;
  }
  .ios-rail > .ios-barbutton-group {
    flex-direction: column;
    width: 44px;
    height: auto;
  }
  .ios-rail .ios-barbutton[data-variant="prominent"] {
    width: 48px;
    height: 48px;
  }
  /* Everything else on the screen keeps out of the rail. */
  .ios-screen:has(> .ios-rail:not([data-side="start"])) {
    --ios-safe-right: var(--ios-rail-w, 66px);
  }
  .ios-screen:has(> .ios-rail[data-side="start"]) {
    --ios-safe-left: var(--ios-rail-w, 66px);
  }
  .ios-screen:has(> .ios-rail) > :is(.ios-navbar, .ios-toolbar, .ios-screen__scroll, .ios-home-indicator, .ios-scrolledge, .ios-accessory) {
    right: var(--ios-safe-right, 0px);
    left: var(--ios-safe-left, 0px);
  }
  .ios-screen:has(> .ios-rail) .ios-home__page {
    padding-right: var(--ios-safe-right, 0px);
  }
  .ios-screen:has(> .ios-rail) .ios-home__search {
    translate: calc(var(--ios-safe-right, 0px) / -2) 0;
  }

  /* ── Vertical tab bar ──
     <div class="ios-rail__tabs" style="--tabs:5">
       <label class="ios-tab"><input type="radio" name="tabs" checked><i class="ios-icon ios-icon--house"></i><span>Home</span></label>
       …
     </div>
     The tab bar inside the rail: the same radios as .ios-tabbar, stacked, with the lens sliding down. */
  .ios-rail__tabs {
    --tabs: 4;
    --i: 0;
    position: relative;
    isolation: isolate;
    display: flex;
    flex: none;
    flex-direction: column;
    width: 58px;
    padding: 4px;
    border-radius: 29px;
    background-color: var(--ios-glass-bg);
    -webkit-backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    backdrop-filter: blur(var(--ios-glass-blur)) saturate(var(--ios-glass-saturate));
    box-shadow: var(--ios-glass-shadow);
  }
  .ios-rail__tabs::before {
    content: "";
    position: absolute;
    inset: 4px 4px auto;
    z-index: -1;
    height: calc((100% - 8px) / var(--tabs));
    border-radius: 25px;
    background: var(--ios-tab-selection);
    transform: translateY(calc(var(--i) * 100%));
    transition: transform 0.45s cubic-bezier(0.3, 1.25, 0.4, 1);
  }
  .ios-rail__tabs:has(> .ios-tab:nth-child(2) > input:checked) { --i: 1; }
  .ios-rail__tabs:has(> .ios-tab:nth-child(3) > input:checked) { --i: 2; }
  .ios-rail__tabs:has(> .ios-tab:nth-child(4) > input:checked) { --i: 3; }
  .ios-rail__tabs:has(> .ios-tab:nth-child(5) > input:checked) { --i: 4; }
  .ios-rail__tabs > .ios-tab {
    flex: none;
    height: 52px;
    gap: 2px;
    font-size: 10px;
  }
  .ios-rail__tabs > .ios-tab > span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* The overflow menu opens beside the rail instead of below it. */
  .ios-menu[data-side="left"] {
    position-area: left span-bottom;
    position-try-fallbacks: flip-block;
    margin: 0 8px;
    transform-origin: top right;
  }
  .ios-menu[data-side="left"][data-align="end"] {
    position-area: left span-top;
    transform-origin: bottom right;
  }
  .ios-menu[data-side="right"] {
    position-area: right span-bottom;
    position-try-fallbacks: flip-block;
    margin: 0 8px;
    transform-origin: top left;
  }
  .ios-menu[data-side="right"][data-align="end"] {
    position-area: right span-top;
    transform-origin: bottom left;
  }

  /* ── Corner status ──
     <div class="ios-fold-status">
       <span class="ios-fold-status__time">9:41</span>
       <span class="ios-statusring" style="--level:80" data-signal="3"><i class="ios-icon ios-icon--wifi"></i></span>
     </div>
     A foldable iPhone folds Wi-Fi, cellular, and battery into one circle in the corner: battery on the right
     arc (--level 0–100, data-low, data-charging), signal bars on the left arc (data-signal 0–4),
     Wi-Fi in the middle. It takes its color from `color`. */
  .ios-fold-status {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    user-select: none;
  }
  .ios-fold-status__time {
    font: 600 15px/18px var(--ios-font);
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
  }
  .ios-statusring {
    --dim: color-mix(in srgb, currentColor 28%, transparent);
    --s1: currentColor;
    --s2: currentColor;
    --s3: currentColor;
    --s4: currentColor;
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
  }
  .ios-statusring[data-signal="3"] { --s4: var(--dim); }
  .ios-statusring[data-signal="2"] { --s3: var(--dim); --s4: var(--dim); }
  .ios-statusring[data-signal="1"] { --s2: var(--dim); --s3: var(--dim); --s4: var(--dim); }
  .ios-statusring[data-signal="0"] { --s1: var(--dim); --s2: var(--dim); --s3: var(--dim); --s4: var(--dim); }
  .ios-statusring[data-low] { --battery: var(--ios-red); }
  .ios-statusring[data-charging] { --battery: var(--ios-green); }
  /* Battery 0–156°, a gap, then four signal segments of 33° with 8° gaps. */
  .ios-statusring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
      from 12deg,
      var(--battery, currentColor) 0 calc(var(--level, 100) * 1.56deg),
      var(--dim) 0 156deg,
      transparent 0 180deg,
      var(--s1) 0 213deg,
      transparent 0 221deg,
      var(--s2) 0 254deg,
      transparent 0 262deg,
      var(--s3) 0 295deg,
      transparent 0 303deg,
      var(--s4) 0 336deg,
      transparent 0
    );
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.8px));
    mask: radial-gradient(closest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.8px));
  }
  .ios-statusring > .ios-icon {
    --w: 13px;
    --h: 9.5px;
  }

  /* ── Dynamic Island on a foldable iPhone ──
     <div class="ios-fold-island">
       <input type="checkbox" class="ios-fold-island__toggle" id="i1" aria-label="Expand Live Activity">
       <label class="ios-fold-island__hit" for="i1"></label>
       <span class="ios-fold-island__item">…</span>   (up to two Live Activities, stacked under the camera)
       <div class="ios-fold-island__expanded"><label class="ios-fold-island__hit" for="i1"></label>…</div>
     </div>
     A black capsule around the camera that grows down as Live Activities arrive. Clicking it opens the
     expanded card from the corner; clicking the card closes it. Put it first in the rail under the camera.
     --expanded-w (300px) and --expanded-h (148px) size the card. On the inner display the camera is under
     the screen, so the capsule only shows while it holds an activity. */
  .ios-fold-island {
    position: relative;
    z-index: 61;
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 38px;
    min-height: 38px;
    padding: 13px 0;
    border-radius: 19px;
    background: #000;
    color: #fff;
    font-family: var(--ios-font);
  }
  /* The camera lens. */
  .ios-fold-island::before {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, #2c3754, #0b0e16 62%);
    box-shadow: inset 0 0 0 1.5px #121a2b;
  }
  .ios-fold-island:has(> .ios-fold-island__item) {
    padding-bottom: 6px;
  }
  .ios-device[data-model="foldable-open"] .ios-fold-island::before {
    display: none;
  }
  .ios-device[data-model="foldable-open"] .ios-fold-island:not(:has(> .ios-fold-island__item)) {
    display: none;
  }
  .ios-device[data-model="foldable-open"] .ios-fold-island {
    padding-top: 6px;
  }
  .ios-fold-island__item {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
  }
  .ios-fold-island__toggle {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    pointer-events: none;
  }
  .ios-fold-island__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
  }
  .ios-fold-island:has(> .ios-fold-island__toggle:focus-visible) {
    outline: 2px solid var(--ios-tint);
    outline-offset: 2px;
  }
  .ios-fold-island__expanded {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: var(--expanded-w, 300px);
    height: var(--expanded-h, 148px);
    padding: 18px 56px 18px 20px;
    border-radius: 36px;
    background: #000;
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.3);
    opacity: 0;
    scale: 0.12;
    transform-origin: calc(100% - 19px) 19px;
    pointer-events: none;
    transition: opacity 0.25s, scale 0.5s cubic-bezier(0.25, 1.2, 0.4, 1);
    @starting-style {
      opacity: 0;
      scale: 0.12;
    }
  }
  /* The card covers the capsule, so it draws the lens again. */
  .ios-fold-island__expanded::before {
    content: "";
    position: absolute;
    top: 13px;
    right: 13px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, #2c3754, #0b0e16 62%);
    box-shadow: inset 0 0 0 1.5px #121a2b;
  }
  .ios-device[data-model="foldable-open"] .ios-fold-island__expanded::before {
    display: none;
  }
  .ios-fold-island__expanded > :not(.ios-fold-island__hit) {
    position: relative;
    z-index: 2;
  }
  .ios-fold-island__expanded > .ios-fold-island__hit {
    z-index: 1;
  }
  .ios-fold-island[data-presentation="expanded"] > .ios-fold-island__expanded,
  .ios-fold-island:has(> .ios-fold-island__toggle:checked) > .ios-fold-island__expanded {
    opacity: 1;
    scale: 1;
    pointer-events: auto;
    @starting-style {
      opacity: 1;
      scale: 1;
    }
  }

  /* ── Split View ──
     <div class="ios-split">
       <div class="ios-screen ios-split__pane">… <nav class="ios-rail" data-side="start">…</nav></div>
       <div class="ios-screen ios-split__pane">… <nav class="ios-rail">…</nav></div>
     </div>
     Two apps side by side on the open foldable in landscape, always 50/50. Each pane is its own .ios-screen,
     so bars pin inside it; the left app's rail goes on the left edge and the right app's on the right. */
  .ios-split {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    background: #000;
  }
  .ios-split > .ios-split__pane {
    --ios-safe-top: 14px;
    --ios-safe-bottom: 22px;
    --ios-screen-radius: 0px;
    flex: 1;
    width: auto;
    height: auto;
    min-width: 0;
    border-radius: 0;
  }
  /* One home indicator for the whole display. The panes meet on a square edge. */
  .ios-split > .ios-split__pane > .ios-home-indicator {
    display: none;
  }
  .ios-device:has(> .ios-screen > .ios-split) > .ios-screen::before {
    content: "";
    position: absolute;
    z-index: 50;
    bottom: 8px;
    left: 50%;
    width: 139px;
    height: 5px;
    translate: -50% 0;
    border-radius: 999px;
    background: var(--ios-label);
    pointer-events: none;
  }
  .ios-split__divider {
    position: relative;
    display: grid;
    flex: none;
    place-items: center;
    width: 12px;
    cursor: pointer;
  }
  .ios-split__divider::before {
    content: "";
    width: 4px;
    height: 44px;
    border-radius: 2px;
    background: rgb(255 255 255 / 0.36);
    transition: opacity 0.2s;
  }
  .ios-split__divider > input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    appearance: none;
    cursor: pointer;
  }
  .ios-split__divider:has(> input:focus-visible)::before {
    outline: 2px solid var(--ios-tint);
    outline-offset: 3px;
  }
  .ios-split__pair {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    translate: -50% -50%;
    border-radius: 50%;
    background: #3a3a3c;
    box-shadow: 0 0 0 3px #000;
    color: #fff;
    opacity: 0;
    scale: 0.4;
    pointer-events: none;
    transition: opacity 0.2s, scale 0.4s cubic-bezier(0.25, 1.4, 0.4, 1);
  }
  .ios-split__pair > .ios-icon {
    --w: 15px;
    --h: 15px;
  }
  .ios-split__divider:has(> input:checked)::before {
    opacity: 0;
  }
  .ios-split__divider:has(> input:checked) > .ios-split__pair {
    opacity: 1;
    scale: 1;
  }

  /* ── Fold-aware columns ──
     <div class="ios-columns">…text…</div>
     Two columns with the gutter on the fold of the open foldable in landscape. In the book pose
     (data-pose="book" on the device) --ios-fold-gap widens so no text sits in the curve. */
  .ios-columns {
    columns: 2;
    column-gap: var(--ios-fold-gap, 64px);
    transition: column-gap 0.4s;
  }
  .ios-columns > * {
    break-inside: avoid;
  }

  /* ── Vertical dock ──
     <div class="ios-dock" data-axis="vertical">…apps…</div>
     The Home Screen dock on a foldable iPhone stands up along the right edge, under the status. Put it in the
     rail (give the screen --ios-rail-w: 92px). */
  .ios-dock[data-axis="vertical"] {
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    width: 84px;
    height: auto;
    margin: 0;
    padding: 14px 0;
    border-radius: 34px;
  }
  .ios-rail > .ios-dock[data-axis="vertical"] {
    margin-bottom: 4px;
  }
}
