/* Focus on iPhone, as the app draws it: a black screen, the session's colour rising from the bottom and
   fading to darkness as it runs, a thick ring of what's left, big rounded digits with raised seconds, the
   round's dots. Pieces are placed by the morph engine (engine/morph.js); this styles their insides. */
.app-focus { background: #000; color: #fff; font-family: var(--sf); letter-spacing: -0.01em; }
.app-focus .mp { visibility: hidden; }
.fa-under { position: absolute; left: 0; top: 0; width: 393px; height: 886px; overflow: hidden; transform-origin: 50% 0; background: #000; }
.fa-dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 8; }

/* the session's colour: a tall gradient whose height is what's left, and the next session's flooding in */
.fa-fill { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fa-fill i { position: absolute; left: 0; right: 0; top: 0; height: 200%; will-change: transform, opacity; }
.fa-fill i {
  background: linear-gradient(to bottom, rgba(var(--fc), 0) 0%, rgba(var(--fc), 0) 40%, rgba(var(--fc), 0.12) 50%, rgba(var(--fc), 0.45) 56%,
    rgba(var(--fc), 0.78) 62%, rgba(var(--fc), 0.95) 68%, rgba(var(--fc), 1) 74%, rgba(var(--fc), 1) 100%);
}

/* status bar */
.fa-sb { display: flex; align-items: center; justify-content: space-between; padding: 17px 34px 0 52px; font-size: 16.5px; font-weight: 600; }
.fa-sb .t { opacity: var(--lkhide, 1); font-variant-numeric: tabular-nums; }
.fa-sb .ic { display: flex; align-items: center; gap: 6px; }
.fa-sb svg { height: 11.5px; fill: currentColor; }
.fa-batt { width: 25px; height: 12px; border-radius: 3.6px; box-shadow: inset 0 0 0 1.2px rgba(255, 255, 255, 0.55); padding: 2px; position: relative; }
.fa-batt::after { content: ""; position: absolute; right: -3px; top: 4px; width: 1.6px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, 0.55); }
.fa-batt i { display: block; width: 74%; height: 100%; border-radius: 1.6px; background: #fff; }

/* the round's dots: done ones filled, upcoming ones grey (a cup for an upcoming break), the current one ringed */
.fa-dots { display: flex; align-items: center; justify-content: center; gap: 3px; }
.fa-slot { position: relative; width: 30px; height: 40px; flex: none; }
.fa-slot > * { position: absolute; left: 50%; top: 50%; }
.fa-d { width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.85), inset 0 -2px 3px rgba(0, 0, 0, 0.25); }
.fa-dc { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 19px; line-height: 24px; text-align: center; }
.fa-c { width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 2px currentColor; }
.fa-c b { width: 27px; height: 27px; border-radius: 50%; background: currentColor; opacity: 0.62; box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.3); }
.fa-c span { font-size: 26px; line-height: 1; margin-top: 1px; }

.fa-label { position: relative; }
.fa-label span { position: absolute; left: 0; right: 0; top: 0; text-align: center; font-size: 17px; font-weight: 750; letter-spacing: 0.05em; white-space: nowrap; word-spacing: 0.22em; }

/* the ring: what's left of the session, from twelve o'clock, clockwise; soft depth when Shadows is on */
.fa-ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.fa-ring circle { fill: none; stroke-linecap: round; }
.fa-ring .sh { stroke: rgba(0, 0, 0, 0.55); stroke-width: 31; transform: translate(4px, -1px); opacity: var(--shd, 1); }
.fa-ring .arc { stroke: var(--rc, #ff453a); stroke-width: 28; }
.fa-ring .hi { stroke: rgba(255, 255, 255, 0.32); stroke-width: 3.5; transform-origin: 50% 50%; transform: scale(0.955); opacity: var(--shd, 1); }

.fa-digits { position: relative; }
.fa-dg { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-family: var(--sf-round); font-variant-numeric: tabular-nums; color: var(--dc, #fff); }
.fa-dg b { font-size: 118px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.fa-dg sup { align-self: flex-start; margin: 22px 0 0 7px; font-size: 42px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.fa-dg b, .fa-dg sup { text-shadow: 0 calc(var(--shd, 1) * 3px) calc(var(--shd, 1) * 12px) rgba(0, 0, 0, calc(var(--shd, 1) * 0.45)); }

/* play / pause: two halves that are bars or a triangle */
.fa-play { border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--pc, #fff); }
.fa-play svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fa-play path { fill: var(--pc, #fff); }
.fa-gear { width: 28px; height: 28px; color: var(--pc, #8e8e93); }
.fa-gear svg { width: 100%; height: 100%; }

/* a finger's tap: a soft disc that presses and lets go */
.fa-tap { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; z-index: 40; pointer-events: none; visibility: hidden;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18) 55%, rgba(255, 255, 255, 0) 72%); }

/* ——— the lock screen ——— */
.fa-wall { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse 90% 60% at 20% 18%, #3c2f73, transparent 70%), radial-gradient(ellipse 80% 55% at 90% 72%, #193a63, transparent 70%), #0b0c18; }
.fa-lk-date { text-align: center; font-size: 21px; font-weight: 600; color: rgba(255, 255, 255, 0.86); white-space: nowrap; opacity: var(--lkdim, 1); }
.fa-lk-clock { text-align: center; font-family: var(--sf-round); font-size: 108px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.94); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fa-lk-clock span { display: inline-block; }
.fa-notes { overflow: visible; }
.fa-note {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px; border-radius: 23px; padding: 12px 14px 0 58px;
  background: rgba(54, 54, 60, 0.94); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); transform-origin: 50% 100%;
}
.fa-note .ap { position: absolute; left: 12px; top: 13px; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; }
.fa-note .ap svg { width: 22px; height: 22px; }
.fa-note p { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.25; }
.fa-note p small { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.55); flex: none; }
.fa-note span { display: block; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, 0.86); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fa-lk-btn { border-radius: 50%; background: rgba(36, 36, 42, 0.72); display: grid; place-items: center; }
.fa-lk-btn svg { width: 22px; height: 22px; color: #fff; opacity: var(--lkdim, 1); }
.fa-lk-bar { border-radius: 3px; background: #fff; }

/* ——— Siri: the edge of the screen lights up, your words appear, and its answer ——— */
.fa-siri { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; }
.fa-siri i { position: absolute; inset: 0; border-radius: 52px;
  border: 7px solid transparent; border-image: conic-gradient(from 200deg, #ff6aa0, #a36bff, #39c4ff, #6cf2d0, #ffd25c, #ff8a5c, #ff6aa0) 1;
  background:
    linear-gradient(to bottom, rgba(163, 107, 255, 0.4), transparent) top / 100% 90px no-repeat,
    linear-gradient(to top, rgba(255, 138, 92, 0.38), transparent) bottom / 100% 110px no-repeat,
    linear-gradient(to right, rgba(57, 196, 255, 0.34), transparent) left / 64px 100% no-repeat,
    linear-gradient(to left, rgba(255, 106, 160, 0.34), transparent) right / 64px 100% no-repeat; }
.fa-say { position: absolute; left: 24px; right: 24px; bottom: 150px; z-index: 31; text-align: center; font-size: 25px; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; color: #fff; opacity: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.fa-say em { font-style: normal; opacity: 0.35; }
.fa-snip {
  position: absolute; left: 12px; right: 12px; top: 58px; z-index: 31; height: 76px; border-radius: 26px; display: flex; align-items: center; gap: 13px; padding: 0 18px 0 14px;
  background: rgba(36, 36, 40, 0.97); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 18px rgba(0, 0, 0, 0.4); opacity: 0;
}
.fa-snip img { width: 46px; height: 46px; border-radius: 11px; flex: none; }
.fa-snip p { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fa-snip b { font-size: 16.5px; font-weight: 650; white-space: nowrap; }
.fa-snip small { font-size: 13.5px; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.fa-snip .st { margin-left: auto; font-family: var(--sf-round); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--snc, #ff453a); }

/* ——— the durations sheet (a page sheet: the timer steps back as a card behind it) ——— */
.fa-dur { border-radius: 14px 14px 0 0; overflow: hidden; padding: 58px 22px 0; background: linear-gradient(180deg, #352325 0%, #2c1c1d 26%, #201612 58%, #170807 100%); box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06); z-index: 10; }
.fa-dur::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
.fa-dur h4 { font-size: 41px; font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; color: #ff3b30; }
.fa-dur .rows { margin: 46px 6px 0; display: grid; gap: 30px; }
.fa-row p { display: flex; justify-content: space-between; align-items: baseline; font-size: 21px; font-weight: 650; color: #e2dcdc; }
.fa-row em { font-style: normal; font-size: 23px; font-weight: 500; color: var(--c); font-variant-numeric: tabular-nums; }
.fa-trk { position: relative; display: block; height: 3px; margin-top: 22px; border-radius: 2px; background: rgba(255, 255, 255, 0.13); }
.fa-trk i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: var(--c); transform-origin: 0 50%; }
.fa-trk b { position: absolute; left: -15px; top: -14px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.fa-begin { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; justify-content: center; align-items: center; gap: 10px; color: #ff3b30; font-size: 28px; font-weight: 850; letter-spacing: 0.03em; }
.fa-begin svg { width: 30px; height: 30px; }

/* ——— the settings sheet: General · Colors · Preview, and Done ——— */
.fa-set { background: #151515; border-radius: 20px 20px 0 0; overflow: hidden; z-index: 10; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05); }
.fa-pane { position: absolute; left: 0; right: 0; top: 0; padding: 0 9px; }
.fa-tabs { position: absolute; left: 9px; bottom: 26px; width: 304px; height: 33px; border-radius: 9px; background: #252527; display: flex; }
.fa-tabs span { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; font-size: 13.5px; font-weight: 500; color: #ececee; }
.fa-tabs i { position: absolute; top: 2px; bottom: 2px; left: 2px; width: 100px; border-radius: 7px; background: #5c5b60; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.fa-done { position: absolute; right: 9px; bottom: 25px; width: 60px; height: 35px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px #ff3b30; display: grid; place-items: center; font-size: 14px; font-weight: 900; letter-spacing: 0.02em; color: #ff3b30; font-stretch: 85%; }
.fa-ttl { font-size: 21px; font-weight: 800; letter-spacing: 0.005em; color: var(--tc, #ffd60a); white-space: nowrap; }
.fa-sess { position: relative; height: 31px; margin-top: 14px; border-radius: 9px; background: #2c2c2e; display: flex; }
.fa-sess span { position: relative; z-index: 1; flex: 1; display: grid; place-items: center; font-size: 13.5px; color: #ececee; }
.fa-sess i { position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: 7px; background: #4a4a4e; }
.fa-sw { display: grid; grid-template-columns: repeat(8, 32px); justify-content: space-between; row-gap: 12px; margin: 20px 13px 0; }
.fa-sw i { width: 32px; height: 32px; border-radius: 50%; background: var(--s); }
.fa-swr { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -6px 0 0 -6px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--rcl, #ffd60a); pointer-events: none; }
.fa-txt { display: flex; align-items: center; margin: 22px 14px 0; gap: 12px; font-size: 17px; color: #d6d6d8; }
.fa-txt .o { position: relative; width: 33px; height: 33px; border-radius: 50%; }
.fa-txt .o.t1 { background: var(--tt, #f7e697); }
.fa-txt .o.t0 { background: #8e8e93; overflow: hidden; }
.fa-txt .o.t0::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2.5px; margin-left: -1.25px; background: #fff; transform: rotate(-45deg); }
.fa-txt .o::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: inset 0 0 0 2px #d8d1a0; opacity: var(--on, 0); }
.fa-txt .sp { flex: 1; }
.fa-txt .sh { position: relative; width: 33px; height: 33px; border-radius: 50%; background: #fff; }
.fa-txt .sh::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; opacity: var(--on, 1); }
.fa-txt .sh::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3a3a3c; opacity: calc(1 - var(--on, 1)); }
.fa-prev .fa-ttl { margin-top: 10px; font-size: 22px; }
.fa-pv { position: relative; height: 3px; margin: 22px 32px 0 36px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.fa-pv i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 2px; background: var(--tc, #00c8c8); transform-origin: 0 50%; }
.fa-pv b { position: absolute; left: -16px; top: -15px; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.fa-gen { color: #e6e6e8; }
.fa-gen .mins { margin: 40px 14px 0; padding-bottom: 20px; text-align: center; font-size: 19px; font-weight: 300; letter-spacing: 0.02em; color: #9a9a9e; box-shadow: inset 0 -1px 0 #9a9a9e; }
.fa-gen h5 { margin: 34px 0 0 0; font-size: 27px; font-weight: 800; color: #c9c9cc; letter-spacing: 0.01em; }
.fa-gen ul { list-style: none; margin: 30px 8px 0 14px; display: grid; gap: 15px; }
.fa-gen li { display: flex; align-items: center; justify-content: space-between; height: 32px; font-size: 16.5px; }
.fa-gen .lang { color: #b9b9bd; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.fa-gen .lang svg { width: 11px; height: 14px; }
.fa-tg { position: relative; width: 51px; height: 31px; border-radius: 16px; background: #39393d; flex: none; }
.fa-tg::before { content: ""; position: absolute; inset: 0; border-radius: 16px; background: #34c759; opacity: var(--on, 1); }
.fa-tg b { position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 1px 1px rgba(0, 0, 0, 0.16); transform: translateX(calc(var(--on, 1) * 20px)); }

/* the language menu, popped up from the picker */
.fa-menu { position: absolute; left: 22px; width: 268px; z-index: 20; border-radius: 14px; overflow: hidden; background: #2a2a2d; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); transform-origin: 30% 0; visibility: hidden; }
.fa-menu ul { list-style: none; }
.fa-menu li { position: relative; height: 41px; padding-left: 40px; display: flex; align-items: center; font-size: 16.5px; color: #ececee; box-shadow: inset 0 -0.5px 0 rgba(255, 255, 255, 0.12); }
.fa-menu li svg { position: absolute; left: 14px; width: 14px; height: 14px; }

/* ——— Shortcuts, opened over Focus ——— */
.fa-sc { position: absolute; inset: 0; z-index: 25; background: #000; overflow: hidden; visibility: hidden; transform-origin: 50% 50%; }
.sc-h { position: absolute; left: 20px; top: 92px; font-size: 34px; font-weight: 700; letter-spacing: 0.005em; }
.sc-tabs { position: absolute; left: 20px; right: 20px; bottom: 30px; height: 62px; border-radius: 31px; background: #232326; display: flex; align-items: center; justify-content: space-around; font-size: 11px; font-weight: 600; color: #8e8e93; }
.sc-tabs span { display: grid; justify-items: center; gap: 3px; }
.sc-tabs span.on { color: #fff; }
.sc-tabs svg { width: 22px; height: 22px; }
.sc-grid { position: absolute; left: 16px; right: 16px; top: 150px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sc-tile { height: 104px; border-radius: 18px; padding: 13px 14px; display: flex; flex-direction: column; justify-content: space-between; font-size: 15px; font-weight: 650; line-height: 1.15; }
.sc-tile svg { width: 26px; height: 26px; }
.sc-ed { position: absolute; inset: 0; background: #000; }
.sc-ed .bar { position: absolute; left: 0; right: 0; top: 54px; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 17px; color: #0a84ff; }
.sc-ed .bar b { color: #fff; font-weight: 650; display: inline-flex; align-items: center; gap: 9px; }
.sc-ed .bar b i { width: 28px; height: 28px; border-radius: 7px; background: #5e5ce6; display: grid; place-items: center; }
.sc-ed .bar b i svg { width: 17px; height: 17px; }
.sc-act { position: absolute; left: 16px; right: 16px; min-height: 60px; border-radius: 14px; background: #1c1c1e; padding: 12px 14px 12px 54px; font-size: 15.5px; line-height: 1.35; color: #ebebf0; }
.sc-act .ai { position: absolute; left: 13px; top: 13px; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.sc-act .ai svg, .sc-act .ai img { width: 30px; height: 30px; border-radius: 8px; }
.sc-act .ai svg { width: 18px; height: 18px; }
.sc-act em { font-style: normal; color: #5e9bff; }
.sc-auto { position: absolute; left: 16px; right: 16px; border-radius: 14px; background: #1c1c1e; padding: 14px 16px; font-size: 15px; line-height: 1.4; color: #ebebf0; }
.sc-auto small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: #8e8e93; text-transform: uppercase; margin-bottom: 6px; }

/* Shortcuts, as iOS draws it: tiles of shortcuts, and an editor of actions */
.sc-home, .sc-ed { position: absolute; inset: 0; }
.sc-sb { position: absolute; left: 52px; top: 17px; font-size: 16.5px; font-weight: 600; }
.sc-tile { position: relative; color: #fff; }
.sc-tile span { font-size: 16px; font-weight: 650; }
.sc-tile em { position: absolute; right: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; font-style: normal; font-size: 12px; letter-spacing: -0.05em; line-height: 1; }
.sc-zoom { position: absolute; left: 0; top: 0; visibility: hidden; }
.sc-auto b { font-weight: 650; }
.sc-auto em { font-style: normal; color: #5e9bff; }

/* the Home Screen the app closes into: the studio's six apps and a dock */
.fa-home { position: absolute; inset: 0; visibility: hidden; opacity: 0;
  background: radial-gradient(ellipse 90% 60% at 30% 20%, #2f7a45, transparent 70%), radial-gradient(ellipse 80% 60% at 80% 90%, #134a5c, transparent 70%), #0b1d10; }
.hm-sb { position: absolute; left: 52px; top: 17px; font-size: 16.5px; font-weight: 600; }
.hm-app { position: absolute; width: 62px; display: grid; justify-items: center; gap: 6px; }
.hm-app img { width: 62px; height: 62px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.hm-app small { font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.hm-dock { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 92px; border-radius: 34px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: space-around; }
.hm-dock i { width: 62px; height: 62px; border-radius: 14px; display: grid; place-items: center; }
.hm-dock svg { width: 38px; height: 38px; }
