/* The web installer (install/index.html). Frames: Proposals C, installer. */

/* Local nav: the page's name and the steps */
.local { background: var(--surface-base); border-bottom: 1px solid var(--separator); }
.local-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-local-height); }
.local-title { font: var(--weight-semibold) 21px/1.2 var(--font-heading); letter-spacing: -0.3px; }
.steps { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-tertiary); }
.steps li { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.steps li + li::before { content: ""; width: 10px; height: 10px; background: var(--glyph-tertiary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
.steps .before { color: var(--text-secondary); }
.steps [aria-current="step"] { color: var(--text-primary); font-weight: var(--weight-semibold); }
.steps .after { color: var(--text-secondary); }

/* Page */
/* The page is drawn by install.js: leave room for it, so the footer stays put. */
main { min-height: max(900px, 85dvh); }
.center-note { padding: 160px 0; text-align: center; color: var(--text-secondary); font: inherit; } /* the h1 while loading */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 64px; padding-block: 72px 140px; }
.layout.alone { grid-template-columns: minmax(0, 1fr); }
.content { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.summary { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: var(--radius-card); background: var(--fill-tile); }
.summary h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.4px; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact { position: relative; padding-left: 24px; }
.fact .i { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; color: var(--text-secondary); }
.fact dt { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.fact dd { font-size: 15px; font-weight: var(--weight-semibold); line-height: 20px; }
.summary hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--separator); }
.size-block { display: flex; flex-direction: column; gap: 8px; }
.size-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-secondary); font-size: 15px; }
.size-row strong { color: var(--text-primary); font-size: 21px; font-weight: var(--weight-semibold); }
.space { height: 6px; overflow: hidden; border-radius: 3px; background: var(--switch-off); }
.space span { display: block; height: 100%; min-width: 6px; border-radius: 3px; background: var(--green-fill); }
.space.full span { background: var(--text-primary); }
.free { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.free.warn { color: var(--text-primary); font-weight: var(--weight-semibold); }
.keep { color: var(--text-secondary); font-size: 13px; line-height: 18px; text-align: center; }
.note { display: flex; gap: 8px; color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.note .i { width: 15px; height: 15px; margin-top: 1px; }
.btn-block { width: 100%; min-height: 50px; }

/* Head */
.head { display: flex; flex-direction: column; gap: 12px; }
.head .eyebrow { color: var(--green-text); font-size: 17px; font-weight: var(--weight-semibold); line-height: 1.3; }
.head h1 { font-size: 56px; line-height: 60px; letter-spacing: -1.4px; }
.head h1:focus { outline: none; }
.head .lead { color: var(--text-secondary); font-size: 21px; line-height: 30px; max-width: 640px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 2px; min-height: var(--target-min); margin-bottom: -12px; padding: 0; border: 0; background: none; color: var(--green-text); font-size: 17px; }
.back .i { width: 13px; height: 13px; stroke-width: 2.6; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-fill); color: var(--text-on-accent); }
.done-mark .i { width: 30px; height: 30px; stroke-width: 2.6; }

/* Inset grouped list */
.group { display: flex; flex-direction: column; gap: 8px; }
.group-head { padding-inline: 16px; color: var(--text-secondary); font-size: 13px; line-height: 18px; text-transform: uppercase; }
.group-foot { padding-inline: 16px; color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.list { margin: 0; padding: 0; list-style: none; overflow: hidden; border-radius: var(--radius-list); background: var(--fill-tile); }
.row { position: relative; display: flex; align-items: stretch; width: 100%; margin: 0; padding: 0 0 0 16px; border: 0; background: none; color: var(--text-primary); font: inherit; text-align: left; text-decoration: none; }
.row.lead { padding-left: 14px; }
.row:hover { text-decoration: none; }
button.row, a.row, label.row { cursor: pointer; }
button.row:active, a.row:active, label.row:active { background: var(--fill-control); }
.row:has(:focus-visible), button.row:focus-visible, a.row:focus-visible { outline: var(--focus-width) solid var(--focus-color); outline-offset: -2px; border-radius: var(--radius-list); }
.row :focus-visible { outline: none; }
.slot { display: grid; place-items: center; flex: none; width: 30px; align-self: center; margin-right: 12px; }
.tile-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-icon); color: #fff; }
.tile-icon .i { width: 16px; height: 16px; }
.inner { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--separator-list); }
.row.plain .inner { padding-block: 12px; }
.list > :last-child .inner, .list > li:last-child > .row .inner { border-bottom: 0; }
.txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.title { font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.title.strong { font-weight: var(--weight-semibold); }
.title.dim { color: var(--text-tertiary); }
.title.muted { color: var(--text-secondary); }
.sub { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.trail { display: flex; align-items: center; gap: 12px; flex: none; color: var(--text-secondary); font-size: 17px; font-variant-numeric: tabular-nums; }
.trail .i { width: 13px; height: 13px; color: var(--glyph-tertiary); stroke-width: 2.6; }
.trail .ok { width: 15px; height: 15px; color: var(--green-text); stroke-width: 3; }
.spacer { width: 44px; }
.pick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.circle { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--glyph-secondary); border-radius: 50%; color: var(--text-on-accent); }
.circle .i { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.pick:checked + .slot .circle { border-color: var(--green-fill); background: var(--green-fill); }
.pick:checked + .slot .circle .i { opacity: 1; }
.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: var(--switch-width); height: var(--switch-height); margin: 0; border-radius: 13px; background: var(--switch-off); cursor: pointer; transition: background-color var(--duration-fast) var(--ease); }
.switch::after { content: ""; position: absolute; top: var(--switch-inset); left: var(--switch-inset); width: var(--switch-thumb-size); height: var(--switch-thumb-size); border-radius: 50%; background: var(--switch-thumb); box-shadow: var(--shadow-thumb); transition: transform var(--duration-fast) var(--ease); }
.switch:checked { background: var(--switch-on); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.4; cursor: default; }
.size-in-sub { display: none; }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.actions .btn { min-height: 48px; }
.btn .i { width: 17px; height: 17px; }
.linkrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; min-height: var(--target-min); padding: 0; border: 0; background: none; color: var(--green-text); font-size: 17px; }
.linkrow .i { width: 11px; height: 11px; stroke-width: 2.6; }

/* Alerts and the update card */
.alert { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius-card); background: var(--fill-tile); }
.alert > .i { width: 20px; height: 20px; margin-top: 2px; color: var(--text-primary); }
.alert h2 { font: var(--weight-semibold) 17px/22px var(--font-body); }
.alert p { color: var(--text-secondary); font-size: 15px; line-height: 22px; }
.alert-body { display: flex; flex-direction: column; gap: 4px; }
.update { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-radius: var(--radius-card); background: var(--fill-tile); }
.update h2 { font-size: 21px; line-height: 1.3; letter-spacing: -0.3px; }
.update p { color: var(--text-secondary); font-size: 15px; line-height: 22px; }
.update .btn { flex: none; min-height: 48px; }

/* Progress */
.progress { display: flex; flex-direction: column; gap: 10px; }
.progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.progress-row strong { font-size: 21px; font-weight: var(--weight-semibold); }
.progress-row span { font-size: 17px; font-variant-numeric: tabular-nums; }
.bar { height: 8px; overflow: hidden; border-radius: 4px; background: var(--switch-off); }
.bar span { display: block; height: 100%; border-radius: 4px; background: var(--green-fill); }
.bar.stopped span { background: var(--text-tertiary); }
.speed { color: var(--text-secondary); font-size: 15px; line-height: 21px; font-variant-numeric: tabular-nums; }
.mini { display: block; width: 96px; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 2px; background: var(--switch-off); }
.mini span { display: block; height: 100%; background: var(--green-fill); }
.mini.stopped span { background: var(--text-tertiary); }
.part-now .mini { margin-top: 6px; }

/* Steps that come before the download on iPhone, iPad and desktop Safari */
.num-circle { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-fill); color: var(--text-on-accent); font-size: 15px; font-weight: var(--weight-semibold); }
.inline-icon { display: inline-block; width: 18px; height: 18px; margin-inline: 2px; vertical-align: -3px; color: var(--green-text); }

/* Messages (not supported, list did not load) */
.message { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 160px 0 200px; text-align: center; }
.message > .i { width: 48px; height: 48px; stroke-width: 1.6; }
.message h1 { max-width: 760px; font-size: 48px; line-height: 52px; letter-spacing: -1.2px; }
.message h1:focus { outline: none; }
.message p { max-width: 640px; color: var(--text-secondary); font-size: 21px; line-height: 30px; }
.message .actions { justify-content: center; padding-top: 12px; }

/* Sticky action bar (mobile and tablet) */
.actionbar {
  position: sticky; bottom: 0; z-index: 10; display: flex; flex-direction: column; gap: 10px;
  padding: 12px 16px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline-tab); background: var(--bar-tab);
  -webkit-backdrop-filter: blur(var(--blur-bar)); backdrop-filter: blur(var(--blur-bar));
}
.bar-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 8px; font-size: 13px; color: var(--text-secondary); }
.bar-line strong { color: var(--text-primary); font-size: 15px; font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.bar-line .warn { color: var(--text-primary); font-weight: var(--weight-semibold); }
.mobile-only { display: none; }

@media (max-width: 1023px) {
  .layout { gap: 40px; }
  .head h1 { font-size: 48px; line-height: 52px; letter-spacing: -1.2px; }
}
@media (min-width: 900px) { .actionbar { display: none; } }
@media (max-width: 899px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding-block: 48px 72px; }
  .summary { position: static; }
  .summary .btn-block, .summary .keep { display: none; }
}
@media (max-width: 599px) {
  .local .steps { display: none; }
  .local { display: none; }
  .layout { padding-block: 32px 56px; gap: 28px; }
  .content { gap: 28px; }
  .summary { display: none; }
  .head { gap: 8px; padding-inline: 8px; }
  .head .eyebrow { font-size: 15px; }
  .head h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.8px; }
  .head .lead { font-size: 17px; line-height: 25px; }
  .back { margin-inline: -8px 0; margin-bottom: -8px; padding-inline: 8px; }
  .trail .sz, .hide-mobile { display: none; }
  .size-in-sub { display: inline; }
  .mobile-only { display: flex; }
  .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .actions .btn { width: 100%; min-height: 50px; }
  .update { flex-direction: column; align-items: stretch; padding: 20px; gap: 14px; }
  .alert { padding: 16px; gap: 12px; }
  .alert p { line-height: 21px; }
  .progress { padding-inline: 8px; gap: 8px; }
  .progress-row strong { font-size: 17px; }
  .progress-row span { font-size: 15px; }
  .speed { font-size: 13px; }
  .mini { width: 64px; }
  .done-mark { width: 48px; height: 48px; }
  .message { padding: 96px 0 120px; gap: 16px; }
  .message h1 { font-size: 34px; line-height: 40px; letter-spacing: -0.8px; }
  .message p { font-size: 17px; line-height: 25px; }
  .linkrow { padding-inline: 8px; }
}
