/* Skyline Glass — copied from ~/Developer/WebApp_Skyline/src/glass.css (lines 1–545). Keep in sync; SkyDrive additions are in app.css. */
/*
 * Skyline Glass — guest-facing phone screens (My Trip, the speaker form, the driver view).
 * Content is opaque; only chrome that floats while content scrolls under it is glass.
 * Glass is round, architecture is square. No accent hue: the prominent glass is
 * smoke by day and porcelain by night.
 */
.sg {
  --ground-top: #cfcfcb;
  --ground: #f2f2f0;
  --backdrop-ink: #0a0a0a;
  --card: #ffffff;
  --card-fill: #ececea;
  --separator: #d6d6d2;
  --ink: #0a0a0a;
  --ink-2: #4a4a47;
  --ink-3: #6b6b66;
  --glass: rgba(250, 250, 248, 0.68);
  --glass-clear: rgba(250, 250, 248, 0.3);
  --glass-prominent: rgba(10, 10, 10, 0.8);
  --on-glass-prominent: #ffffff;
  --glass-ink: #0a0a0a;
  --glass-ink-2: #3a3a38;
  --glass-spec: rgba(255, 255, 255, 0.85);
  --glass-rim: rgba(255, 255, 255, 0.55);
  --glass-edge: rgba(0, 0, 0, 0.08);
  --lens: rgba(10, 10, 10, 0.08);
  --dim: rgba(0, 0, 0, 0.18);
  --focus: var(--glass-ink);
  --positive: #1a6670;
  --caution: #8a5300;
  --critical: #b3261e;
  --shadow-glass: 0 1px 2px rgba(0, 0, 0, 0.1), 0 10px 28px -6px rgba(0, 0, 0, 0.24);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05);

  --r-plate: 2px;
  --r-badge: 6px;
  --r-card: 12px;
  --r-widget: 26px;
  --r-sheet: 34px;
  --r-capsule: 999px;
  --blur-glass: 32px;
  --blur-clear: 12px;
  --saturate-glass: 140%;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* the admin tokens the shared form components read */
  --surface: var(--card);
  --surface-muted: var(--card-fill);
  --line: var(--separator);
  --line-strong: #85857f;
  --action: #0a0a0a;
  --on-action: #ffffff;

  min-height: 100vh;
  color: var(--ink);
  font-size: 17px;
  line-height: 24px;
}
@media (prefers-color-scheme: dark) {
  .sg {
    --ground-top: #000000;
    --ground: #0d0d0d;
    --backdrop-ink: #ecece9;
    --card: #1a1a1a;
    --card-fill: #262626;
    --separator: #333333;
    --ink: #f5f5f3;
    --ink-2: #b4b4b0;
    --ink-3: #8c8c87;
    --glass: rgba(28, 28, 28, 0.74);
    --glass-clear: rgba(28, 28, 28, 0.34);
    --glass-prominent: rgba(245, 245, 243, 0.88);
    --on-glass-prominent: #0a0a0a;
    --glass-ink: #f5f5f3;
    --glass-ink-2: #c8c8c4;
    --glass-spec: rgba(255, 255, 255, 0.22);
    --glass-rim: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(0, 0, 0, 0.5);
    --lens: rgba(255, 255, 255, 0.14);
    --dim: rgba(0, 0, 0, 0.45);
    --positive: #7cc8d2;
    --caution: #f0b450;
    --critical: #ff8a80;
    --shadow-glass: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 36px -8px rgba(0, 0, 0, 0.72);
    --shadow-card: none;
    --line-strong: #6e6e6e;
    --action: #f5f5f3;
    --on-action: #0a0a0a;
  }
}

/* ---------- Backdrop: glass needs something to refract */
.sg-backdrop {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
.sg-backdrop::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--ground-top) 0%, var(--ground) 78%);
}
/* the logo's towers drawn huge, standing on the bottom edge */
.sg-backdrop__art {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: auto;
  max-height: 66vh;
  pointer-events: none;
}
/* faint enough that headers and footers on the ground stay readable as they scroll past */
.sg-backdrop__ink {
  fill: var(--backdrop-ink);
  opacity: 0.09;
}
.sg-backdrop__rule {
  stroke: var(--backdrop-ink);
  stroke-width: 0.35;
  opacity: 0.22;
}
.sg-backdrop__content {
  position: relative;
}
.sg-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 168px;
}

/* ---------- the material */
.glass {
  position: relative;
  isolation: isolate;
  color: var(--glass-ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--saturate-glass));
  backdrop-filter: blur(var(--blur-glass)) saturate(var(--saturate-glass));
  box-shadow:
    inset 0 1px 0 var(--glass-spec),
    inset 0 0 0 0.5px var(--glass-rim),
    inset 0 -1px 0 var(--glass-edge),
    var(--shadow-glass);
}
/* one horizon: a shallow arc of light across the top of every glass shape */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(140% 70% at 50% -38%, var(--glass-spec) 0%, transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}
.glass.prominent {
  background: var(--glass-prominent);
  color: var(--on-glass-prominent);
}
.glass.prominent::before {
  opacity: 0.3;
}
.glass.clear {
  background: var(--glass-clear);
  -webkit-backdrop-filter: blur(var(--blur-clear)) saturate(var(--saturate-glass));
  backdrop-filter: blur(var(--blur-clear)) saturate(var(--saturate-glass));
}
@media (prefers-reduced-transparency: reduce) {
  .glass,
  .glass.clear {
    background: var(--card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass.prominent {
    background: var(--glass-prominent);
  }
}

/* ---------- GlassButton */
.gbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-capsule);
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--spring);
}
.gbtn:active:not(:disabled) {
  transform: scale(0.94);
}
.gbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gbtn.icon {
  width: 44px;
  padding: 0;
}
.gbtn.lg {
  height: 52px;
  padding: 0 24px;
}

/* ---------- NavBar: glass buttons float, the large title sits on the ground */
.sg-nav {
  display: grid;
  gap: 4px;
  padding: 0 0 24px;
}
.sg-nav__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.sg-nav__side {
  display: flex;
  gap: 8px;
}
.sg-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
}
.sg .eyebrow {
  color: var(--ink-2);
}

/* ---------- TabBar and SegmentedControl: capsules with a sliding lens */
.sg-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 0 16px;
  pointer-events: none;
}
.sg-float > * {
  pointer-events: auto;
}
.sg-tabbar {
  display: flex;
  width: min(100%, 420px);
  height: 62px;
  padding: 4px;
  border-radius: var(--r-capsule);
}
.sg-lens {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: var(--r-capsule);
  background: var(--lens);
  box-shadow: inset 0 1px 0 var(--glass-spec);
  transition: transform 420ms var(--spring);
}
.sg-tabbar__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--glass-ink-2);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sg-tabbar__item.is-active {
  color: var(--glass-ink);
}
.sg-seg {
  display: flex;
  height: 40px;
  padding: 4px;
  border-radius: var(--r-capsule);
  margin-bottom: 20px;
}
.sg-seg__opt {
  position: relative;
  flex: 1 1 0;
  border: 0;
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--glass-ink-2);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.sg-seg__opt.is-active {
  color: var(--glass-ink);
}
@media (prefers-reduced-motion: reduce) {
  .sg-lens,
  .gbtn {
    transition: none;
  }
}

/* ---------- ListGroup / ListRow: where content lives (opaque) */
.sg-group {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}
.sg-group__header {
  margin: 0 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.sg-group__card {
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.sg-group__card.pad {
  padding: 16px;
  display: grid;
  gap: 16px;
}
.sg-group__footer {
  margin: 0 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
}
.sg-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.sg-row + .sg-row::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 64px;
  height: 1px;
  background: var(--separator);
}
.sg-row.badge-row + .sg-row::before,
.sg-row.badge-row::before {
  left: 80px;
}
a.sg-row,
button.sg-row {
  cursor: pointer;
}
a.sg-row:active,
button.sg-row:active {
  background: var(--card-fill);
}
.sg-row__tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-badge);
  background: var(--card-fill);
  color: var(--ink);
}
.sg-row__badge {
  flex: none;
  align-self: flex-start;
  width: 52px;
  padding-top: 1px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.sg-row__clock {
  display: block;
  font-size: 22px;
  line-height: 26px;
  font-weight: 200;
  letter-spacing: -0.01em;
}
.sg-row__mer {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  line-height: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sg-row__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
.sg-row__title {
  font-size: 17px;
  line-height: 22px;
  font-weight: 500;
}
.sg-row.hl .sg-row__title {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.sg-row__sub {
  font-size: 15px;
  line-height: 20px;
  color: var(--ink-2);
}
.sg-row__value {
  flex: none;
  font-size: 15px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.sg-row__chev {
  flex: none;
  color: var(--ink-3);
}
.sg-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--caution);
  border-radius: var(--r-plate);
  color: var(--caution);
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 2px;
  margin-left: 6px;
}
.sg-plate {
  flex: none;
  display: inline-block;
  padding: 1px 6px;
  border: 1.5px solid currentColor;
  border-radius: var(--r-plate);
  font-family: var(--font-label);
  font-size: 12px;
  line-height: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.sg-row__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sg-row__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}
.sg-row__line svg {
  flex: none;
  color: var(--ink-3);
}
.sg-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--separator);
  border-radius: var(--r-capsule);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.sg-mini:active {
  background: var(--card-fill);
}

/* ---------- LiveActivity: the next thing, in smoke glass */
