/* ========== Reset & base ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  background: #000;
}
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* ========== Device frame ==========
   On phones: fills the screen. On larger screens: phone-sized viewport centered;
   the wallpaper/black extends past the phone to the viewport edges. */
#device {
  position: relative;
  width: 100vw;
  height: 100vh; /* fallback */
  height: 100dvh; /* shrinks when mobile Safari URL bar is visible */
  overflow: hidden;
  background: transparent;
}
@media (min-width: 480px) {
  body { display: grid; place-items: center; }
  #device {
    width: 390px;
    height: 844px;
  }
}

/* ========== Status bar ==========
   iOS 1: 20px tall, subtle top-to-bottom near-black gradient, tight 12px Helvetica Bold.
   On lock screen the center shows a padlock + clock. */
#statusbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 20px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  z-index: 100;
  /* Translucent dark gradient — wallpaper shows through faintly, iOS 1/2 style */
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    linear-gradient(to bottom, rgba(30,30,30,.55) 0%, rgba(0,0,0,.82) 100%);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
}
.sb-left  { display: flex; align-items: center; gap: 5px; padding-left: 2px; }
.sb-center { display: flex; align-items: center; gap: 4px; justify-self: center; }
.sb-right { justify-self: end; display: flex; align-items: center; gap: 4px; padding-right: 2px; }
.signal { display: inline-flex; gap: 1px; align-items: flex-end; height: 9px; }
.signal .bar { width: 2.5px; background: #fff; border-radius: 0.5px; }
.signal .bar.off { background: rgba(255,255,255,.35); }
.carrier { letter-spacing: .1px; font-weight: 700; }
.padlock { display: inline-block; margin-top: -1px; }
/* Lock screen: show padlock only (time shown below as big lock clock). */
body[data-screen="lockscreen"] #clock { display: none; }
/* Home/app: show time only. */
body[data-screen="homescreen"] .padlock,
body[data-screen="appview"] .padlock { display: none; }
.battery {
  display: inline-block;
  position: relative;
  width: 20px; height: 9px;
  border: 1px solid #fff;
  border-radius: 2px;
}
.battery::after {
  content: ""; position: absolute; right: -3px; top: 2px;
  width: 2px; height: 4px; background: #fff; border-radius: 0 1px 1px 0;
}
.battery-level {
  display: block; position: absolute; top: 1px; left: 1px; bottom: 1px;
  width: 80%; background: #fff;
  border-radius: 1px;
}
#clock { font-variant-numeric: tabular-nums; }

/* Desktop: status bar spans the full viewport width (like iPad) */
@media (min-width: 480px) {
  #statusbar {
    position: fixed;
    left: 0; right: 0; top: 0;
    width: 100vw;
    padding: 0 14px;
    z-index: 200;
  }
}

/* ========== Screens (lock / home / app) ========== */
.screen {
  position: absolute; inset: 0;
  display: none;
}
.screen.active { display: block; }

/* ========== Wallpaper ==========
   iOS 1 lock wallpaper: NASA Blue Marble on black. On desktop the image is
   phone-sized and centered; the surrounding black extends to the viewport edges. */
#lockscreen {
  background-color: #000;
  background-image: url("../assets/wallpapers/earth.jpg");
  background-repeat: no-repeat;
  background-position: center 56%;
  background-size: 112% auto;
}
/* Top ombré: charcoal gradient sits above the wallpaper, fading into
   black behind the time/date — matches iOS 1/2 lock screen reference. */
#lockscreen::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 240px;
  background: linear-gradient(
    to bottom,
    rgba(80,80,80,.95) 0%,
    rgba(55,55,55,.85) 25%,
    rgba(25,25,25,.5)  60%,
    rgba(0,0,0,0)      100%);
  pointer-events: none;
  z-index: 1;
}
#homescreen { background: #000; }

/* ========== Lock screen ========== */
#lockscreen { padding-top: 20px; }
.lock-time {
  position: relative;
  z-index: 201;
  margin-top: 18px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,.7);
}
.lock-hour {
  /* iOS 1 lock clock is thin Helvetica at ~72px, weight 100 (Helvetica Neue UltraLight) */
  font-size: 72px;
  font-weight: 100;
  letter-spacing: -2px;
  line-height: 1;
}
.lock-date {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: .95;
}

/* .lock-slider is the GREY TRANSLUCENT OUTER BANNER — a rectangular
   edge-to-edge band (no border-radius) with a soft grey gradient.
   .lock-track sits inside as the rounded slide-control pill. This matches
   the iOS 1 layered look: outer band + recessed inner channel. */
.lock-slider {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(85,85,85,.55) 0%,
    rgba(45,45,45,.70) 100%);
  border-top: 1px solid rgba(255,255,255,.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 -1px 4px rgba(0,0,0,.45);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  z-index: 3;
}

/* Desktop: banner spans full viewport width and is fixed to bottom. */
@media (min-width: 480px) {
  .lock-slider {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
  }
  .lock-slider .lock-track {
    width: 340px;
  }
  /* At desktop the ombré is a fixed full-viewport bay matching the dock /
     slide-slider treatment — not a floating box clipped to the 390 frame. */
  #lockscreen::before {
    position: fixed;
    left: 0; right: 0; top: 0;
    width: 100vw;
    z-index: 199;
  }
}
.lock-track {
  position: relative;
  height: 46px;
  width: 100%;
  /* Transparent positioning wrapper — chevron and text sit directly on
     the .lock-slider grey banner (reference #2 has no inner pill). */
  overflow: hidden;
}
.lock-track-text {
  position: absolute; inset: 0;
  padding-left: 92px; /* clear the handle's resting position */
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 500;
  color: rgba(255,255,255,.92);
  /* Narrow bright sweep, slower — iOS 1 shimmer was a gentle pulse, not a fast flash. */
  background: linear-gradient(90deg,
    rgba(255,255,255,.22) 0%,
    rgba(255,255,255,.22) 42%,
    rgba(255,255,255,.95) 50%,
    rgba(255,255,255,.22) 58%,
    rgba(255,255,255,.22) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 400% 100%;
  animation: shimmer 5s linear infinite;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(0,0,0,.3);
}
@keyframes shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -100% 0; }
}
.lock-handle {
  position: absolute;
  top: 3px; left: 3px;
  width: 82px; height: 40px;
  display: grid; place-items: center;
  /* iOS 1: boxy rounded rectangle handle, not a full pill */
  border-radius: 6px;
  background:
    linear-gradient(to bottom,
      #ffffff 0%,
      #f4f4f4 45%,
      #cccccc 55%,
      #9e9e9e 100%);
  border: 1px solid rgba(0,0,0,.45);
  box-shadow:
    0 1px 2px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(0,0,0,.12);
  touch-action: none;
}

/* ========== Home screen ========== */
#homescreen { padding: 32px 14px 0; display: none; }
#homescreen.active { display: flex; flex-direction: column; }

.app-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  gap: 16px 4px;
  align-content: start;
  padding-top: 12px;
}
.dock {
  margin: 0 -14px;
  padding: 8px 14px 6px;
  /* iOS 1 silver-metallic dock: pinstripe + silver-top/dark-band-bottom gradient */
  background:
    /* top specular sheen */
    linear-gradient(to bottom,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,0) 30%),
    /* subtle vertical pinstripe (metallic texture) */
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 1px,
      transparent 1px,
      transparent 3px
    ),
    /* silver upper → darker band where labels sit */
    linear-gradient(to bottom,
      #a6abb3 0%,
      #858a92 52%,
      #555a62 62%,
      #2f3339 100%);
  border-top: 1px solid rgba(255,255,255,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(0,0,0,.3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
/* Dock labels sit on the darker band — add extra shadow to read on metal */
.dock .label {
  text-shadow: 0 1px 1px rgba(0,0,0,.8);
}

/* Desktop: dock becomes the edge-to-edge silver "bay" matching the
   lock-slider treatment. Apps spread wider at desktop to feel native. */
@media (min-width: 480px) {
  .dock {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 10px 16px 8px;
    /* fixed wider app columns, centered horizontally */
    grid-template-columns: repeat(4, 110px);
    justify-content: center;
    gap: 32px;
    z-index: 200;
  }
  /* Home screen at desktop breaks out of the 390 device frame and fills
     the viewport — 6×2 landscape grid with larger icons. */
  #homescreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: 48px 48px 130px;
  }
  #homescreen.active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  .app-grid {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    /* Match dock cadence: same 4-col footprint, same column width, same
       horizontal gap — keeps it feeling like iPhone, not iPad. */
    grid-template-columns: repeat(4, 110px);
    grid-auto-rows: min-content;
    gap: 28px 32px;
    justify-content: center;
    padding-top: 0;
  }
  .app-grid .icon {
    width: 88px;
    height: 88px;
    border-radius: 18px;
  }
  .app-grid .label {
    font-size: 14px;
  }
  .dock .icon {
    width: 72px;
    height: 72px;
    border-radius: 15px;
  }
  .dock .label {
    font-size: 13px;
  }
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  -webkit-tap-highlight-color: transparent;
}
.app:active .icon { transform: scale(.92); }
.icon {
  display: block;
  width: 57px; height: 57px;
  border-radius: 12px;
  background: transparent center/cover no-repeat;
  box-shadow: 0 1px 2px rgba(0,0,0,.4);
  position: relative;
  overflow: hidden;
  transition: transform .08s ease;
}
.label {
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,.7);
  letter-spacing: .1px;
}

/* ===== Icon art (SVGs in assets/icons/) ===== */
.icon-sms      { background-image: url("../assets/icons/sms.png"); }
.icon-calendar { background-image: url("../assets/icons/calendar.png"); }
.icon-photos   { background-image: url("../assets/icons/photos.png"); }
.icon-camera   { background-image: url("../assets/icons/camera.png"); }
.icon-youtube  { background-image: url("../assets/icons/youtube.png"); }
.icon-stocks   { background-image: url("../assets/icons/stocks.png"); }
.icon-maps     { background-image: url("../assets/icons/maps.png"); }
.icon-weather  { background-image: url("../assets/icons/weather.png"); }
.icon-clock    { background-image: url("../assets/icons/clock.png"); }
.icon-calc     { background-image: url("../assets/icons/calc.png"); }
.icon-notes    { background-image: url("../assets/icons/notes.png"); }
.icon-settings { background-image: url("../assets/icons/settings.png"); }
.icon-phone    { background-image: url("../assets/icons/phone.png"); }
.icon-mail     { background-image: url("../assets/icons/mail.png"); }
.icon-safari   { background-image: url("../assets/icons/safari.png"); }
.icon-ipod     { background-image: url("../assets/icons/ipod.png"); }

/* ========== App view ========== */
#appview { background: #000; color: #fff; display: none; flex-direction: column; }
#appview.active { display: flex; }
.appbar {
  height: 44px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  padding: 0 10px;
  margin-top: 20px;
  /* iOS 1 blue nav bar */
  background: linear-gradient(to bottom, #8aa4c8 0%, #5078ae 50%, #3e6499 100%);
  border-bottom: 1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.appbar-back {
  justify-self: start;
  padding: 3px 10px 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to bottom, #8aa4c8 0%, #3e6499 100%);
  border: 1px solid rgba(0,0,0,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  text-shadow: 0 -1px 0 rgba(0,0,0,.35);
}
.appbar-back::before {
  content: "◀";
  margin-right: 4px;
  font-size: 10px;
  position: relative;
  top: -1px;
}
.appbar-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0,0,0,.4);
}
.appbody { flex: 1; overflow: auto; background: #f2f2f2; color: #222; }

/* ===== QR (Text/SMS) ===== */
/* ===== Text Messages list — iOS 1 white-bg chat list ===== */
.sms-list { background: #fff; min-height: 100%; }
.sms-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #d3d6dc;
  background: #fff;
  gap: 12px;
}
.sms-row:last-child { border-bottom: none; }
.sms-row:active { background: #3e6499; color: #fff; }
.sms-row:active .sms-preview,
.sms-row:active .sms-time,
.sms-row:active .sms-chevron { color: #fff; }
.sms-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sms-name { font-weight: 700; font-size: 17px; color: #000; }
.sms-preview { font-size: 14px; color: #666; margin-top: 2px; line-height: 1.3; }
.sms-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.sms-time { color: #3062c9; font-size: 14px; font-weight: 500; }
.sms-chevron { color: #8a94a0; font-size: 18px; line-height: 1; }

/* ===== Mail picker — iOS 1 grouped table list ===== */
.mail-picker {
  padding: 18px 10px;
  background: #c7ced6;
  background-image:
    linear-gradient(to bottom, #c7ced6 0%, #b6bfc9 100%);
  min-height: 100%;
}
.mail-picker h2 {
  font-size: 13px; font-weight: 700;
  color: #3a4a5e;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 12px 6px;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.mail-picker p { display: none; }
.mail-group {
  background: #fff;
  border: 1px solid #939ba4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.55) inset;
}
.mail-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #c7ced6;
  background: #fff;
}
.mail-option .m-label,
.mail-option .m-addr,
.mail-option .m-chevron { text-decoration: none; }
.mail-option:last-child { border-bottom: none; }
.mail-option:active { background: #3e6499; color: #fff; }
.mail-option:active .m-addr { color: #dbe4f5; }
.mail-option .m-meta { display: flex; flex-direction: column; }
.mail-option .m-label { font-weight: 700; font-size: 16px; }
.mail-option .m-addr { color: #3062c9; font-size: 13px; margin-top: 2px; }
.mail-option .m-chevron {
  color: #8a94a0;
  font-size: 18px;
  line-height: 1;
}

/* ===== Notes — iOS 1 legal pad ===== */
.notes {
  min-height: 100%;
  padding: 0;
  background:
    /* thin blue ruled lines */
    repeating-linear-gradient(to bottom, transparent 0 25px, #9dbbe0 25px 26px),
    /* red margin line 32px from left */
    linear-gradient(to right, transparent 0 31px, #d88a8a 31px 32px, transparent 32px 100%),
    #fff4b8;
  color: #3b2f1f;
  font-family: "Marker Felt", "Noteworthy", "Chalkduster", "Comic Sans MS", cursive;
  padding: 10px 18px 40px 42px;
  line-height: 26px;
  box-shadow: inset 0 6px 10px -6px rgba(0,0,0,.25);
}
.notes .note-date {
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  color: #6b5836;
  text-align: center;
  padding: 6px 0 12px;
  line-height: 14px;
}
.notes h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 26px;
}
.notes p { line-height: 26px; }
.notes p + p { margin-top: 14px; }
.notes em { font-style: italic; opacity: .75; }

/* ===== Generic placeholder for stub apps ===== */
.stub { padding: 40px 24px; text-align: center; color: #666; background: #f2f2f2; min-height: 100%; }
.stub h2 { color: #222; font-size: 20px; margin-bottom: 8px; }
.stub p { font-size: 14px; line-height: 1.5; }

/* ===== Static (unwired) app icons — visible, not interactive ===== */
.app.static { cursor: default; }
.app.static:active .icon { transform: none; }

/* ===== Photos ===== */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: min-content;
  align-content: start;
  gap: 2px;
  padding: 2px;
  background: #000;
  min-height: 100%;
}
.photo-cell {
  position: relative;
  border: 0;
  padding: 0;
  background: #111;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}
.photo-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-cell:active img { opacity: .7; }

.photo-detail {
  position: relative;
  background: #000;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-detail img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.photo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 64px;
  border: 0;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
}
.photo-nav.prev { left: 0; }
.photo-nav.next { right: 0; }
.photo-nav:active { background: rgba(0,0,0,.6); }

/* ===== Desktop: app view fits to screen ===== */
@media (min-width: 480px) {
  #appview {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 150;
  }
  .appbar {
    /* Below the 20px fixed status bar */
    margin-top: 20px;
    height: 52px;
    padding: 0 24px;
    grid-template-columns: 90px 1fr 90px;
  }
  .appbar-back { font-size: 14px; padding: 5px 12px 5px 10px; }
  .appbar-title { font-size: 20px; }

  /* Mail picker — center the list, keep iOS 1 grouped-table feel */
  .mail-picker { padding: 32px 24px; }
  .mail-picker > h2,
  .mail-picker > .mail-group {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .mail-picker h2 { font-size: 14px; padding: 4px 14px 8px; }
  .mail-option { padding: 14px 18px; }
  .mail-option .m-label { font-size: 18px; }
  .mail-option .m-addr { font-size: 14px; }

  /* Text Messages — cap width on desktop so the list doesn't sprawl */
  .sms-list { max-width: 560px; margin: 0 auto; }
  .sms-row { padding: 18px 22px; }
  .sms-name { font-size: 19px; }
  .sms-preview { font-size: 15px; }
  .sms-time { font-size: 15px; }

  /* Notes — keep the legal-pad ruling but cap width so text stays readable */
  .notes {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px 28px 60px 56px;
    font-size: 19px;
    line-height: 30px;
    /* widen ruled-line gap to match larger font */
    background:
      repeating-linear-gradient(to bottom, transparent 0 29px, #9dbbe0 29px 30px),
      linear-gradient(to right, transparent 0 41px, #d88a8a 41px 42px, transparent 42px 100%),
      #fff4b8;
  }
  .notes h1 { font-size: 28px; line-height: 30px; }
  .notes p { line-height: 30px; }
  .notes .note-date { font-size: 13px; padding: 8px 0 14px; }

  /* Photos — denser landscape grid that uses the screen */
  .photos-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 4px;
  }
  .photo-detail img { max-height: calc(100vh - 72px); }
  .photo-nav { width: 56px; height: 88px; font-size: 40px; }
}

/* ========== Unlock transition ========== */
#lockscreen.unlocking { transform: translateY(-100%); transition: transform .35s ease-out; }

/* ===== Intro alert (iOS 1/2 UIAlertView — glass dark blue with glossy pills) ===== */
.alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: "Helvetica", "Helvetica Neue", Arial, sans-serif;
}
.alert-overlay.hidden { display: none; }

.alert-box {
  width: min(280px, calc(100vw - 40px));
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,.22);
  /* Dark glass — desaturated blue-gray, iOS 1/2 UIAlertView */
  background:
    /* subtle top gloss */
    linear-gradient(to bottom,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.04) 35%,
      rgba(255,255,255,0)   36%,
      rgba(255,255,255,.03) 100%),
    /* translucent dark blue-gray body */
    linear-gradient(to bottom,
      rgba(35,45,65,.78) 0%,
      rgba(18,26,42,.84) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -1px 0 rgba(0,0,0,.4),
    0 14px 40px rgba(0,0,0,.6);
}

.alert-body { padding: 18px 18px 14px; }
.alert-body h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  margin: 0 0 6px;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
}
.alert-body p {
  font-size: 13px;
  line-height: 17px;
  margin: 0;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 1px rgba(0,0,0,.45);
}

.alert-buttons {
  display: flex;
  gap: 10px;
  padding: 0 12px 12px;
}
.alert-btn {
  flex: 1;
  padding: 9px 0;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  text-shadow: 0 1px 1px rgba(0,0,0,.55);
  /* Subtle dark translucent pill with a faint top sheen */
  background:
    linear-gradient(to bottom,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,.08) 45%,
      rgba(0,0,0,.08)       52%,
      rgba(0,0,0,.18)       100%),
    linear-gradient(to bottom, rgba(70,85,115,.65), rgba(40,55,85,.75));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.35),
    0 1px 2px rgba(0,0,0,.35);
}
.alert-btn.primary { font-weight: 700; }
.alert-btn:active { filter: brightness(.85); }
