Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
Liquid Glass and Apple's springs across every app
Yashwanth Kamireddibe595bcd2613
diff --git a/probe/examples/ca_idle.rs b/probe/examples/ca_idle.rsindex 0445f0c..eafcc55 100644--- a/probe/examples/ca_idle.rs+++ b/probe/examples/ca_idle.rs@@ -44,7 +44,10 @@ async fn main() -> Result<()> {let mut state = state;for round in 0..3 {let t = now();- println!("round {round}: idle sent at {t:.3} with {} collections", state.len());+ println!(+ "round {round}: idle sent at {t:.3} with {} collections",+ state.len()+ );let r = http.post(format!("{root}/ca/idle")).query(&q).timeout(std::time::Duration::from_secs(wait)).json(&serde_json::json!({ "ClientState": { "Collection": state, "alarmRange": 60, "fullState": true, "userTime": t as i64 } })).send().await;@@ -52,14 +55,32 @@ async fn main() -> Result<()> {Ok(r) => {let st = r.status();let v: serde_json::Value = r.json().await.unwrap_or_default();- println!(" answered after {:.1}s: {st} {}", now() - t, v.to_string().chars().take(400).collect::<String>());- for c in v.pointer("/ChangeSet/inserts/Collection").and_then(|c| c.as_array()).cloned().unwrap_or_default()- .into_iter().chain(v.pointer("/ChangeSet/updates/Collection").and_then(|c| c.as_array()).cloned().unwrap_or_default()) {+ println!(+ " answered after {:.1}s: {st} {}",+ now() - t,+ v.to_string().chars().take(400).collect::<String>()+ );+ for c in v+ .pointer("/ChangeSet/inserts/Collection")+ .and_then(|c| c.as_array())+ .cloned()+ .unwrap_or_default()+ .into_iter()+ .chain(+ v.pointer("/ChangeSet/updates/Collection")+ .and_then(|c| c.as_array())+ .cloned()+ .unwrap_or_default(),+ )+ {state.retain(|s| s["guid"] != c["guid"]);state.push(serde_json::json!({ "guid": c["guid"], "ctag": c["ctag"] }));}}- Err(e) => { println!(" no answer after {:.1}s: {e}", now() - t); break; }+ Err(e) => {+ println!(" no answer after {:.1}s: {e}", now() - t);+ break;+ }}}Ok(())diff --git a/src/styles/app.css b/src/styles/app.cssindex 70a13ce..ca66afc 100644--- a/src/styles/app.css+++ b/src/styles/app.css@@ -94,19 +94,20 @@*/.primary {border: 0;- border-radius: var(--r-field);+ /* A capsule, as macOS 27's regular-size buttons are. */+ border-radius: var(--r-pill);background: var(--accent-deep);color: #fff;font: inherit;font-size: var(--t-13);font-weight: 550;- padding: 5px 14px;+ min-height: 28px;+ padding: 5px 16px;cursor: pointer;- transition: background 130ms var(--ease), transform 130ms var(--ease);}/* A Mac button keeps its colour under the pointer; pressing darkens its own colour. */-.primary:active:not(:disabled) { background: color-mix(in srgb, var(--accent-deep) 84%, #000); transform: scale(0.985); }+.primary:active:not(:disabled) { background: color-mix(in srgb, var(--accent-deep) 84%, #000); }.primary:disabled {background: color-mix(in srgb, var(--text) 11%, transparent);color: var(--text-3);@@ -114,37 +115,41 @@}.primary:focus-visible { outline: 3px solid var(--accent-ring); outline-offset: 2px; }-/* A secondary button, in the macOS shape: a hairline-bordered plateau with a quiet fill.- It used to be bare coloured text that underlined on hover, which reads as a link — so- "New note" and "New contact" looked like footnotes rather than the things you press. */+/* A secondary button, as macOS 27 draws one at regular size: a capsule of quiet fill and+ no outline (Button/Radius 1000 from Large up in Apple's kit). It used to be bare+ coloured text that underlined on hover, which reads as a link; then a hairline-bordered+ plateau, which is the pre-Tahoe shape. */.quiet {- border: 0.5px solid var(--field-edge);- background: var(--field);- box-shadow: var(--shadow-field);+ border: 0;+ background: color-mix(in srgb, var(--text) 7%, transparent);+ box-shadow: none;color: var(--text);font: inherit;font-size: var(--t-13);+ font-weight: 510;cursor: pointer;- padding: 4px 10px;- border-radius: var(--r-field);+ min-height: 28px;+ padding: 4px 14px;+ border-radius: var(--r-pill);white-space: nowrap;- transition: border-color 130ms var(--ease), background 130ms var(--ease);}.quiet:hover:not(:disabled) {- border-color: var(--field-edge-hover);- background: color-mix(in srgb, var(--field) 88%, var(--text) 8%);+ background: color-mix(in srgb, var(--text) 11%, transparent);+}+.quiet:active:not(:disabled) {+ background: color-mix(in srgb, var(--text) 16%, transparent);}.quiet:disabled { color: var(--text-3); cursor: default; }-.quiet:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }+.quiet:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }/* The sign-in screen's button is the one thing on the screen, so it takes the width andthe weight. Everywhere else it is one control among several. */.shell .primary { margin-top: 18px; width: 100%; font-size: var(--t-15); padding: 10px 16px; }.quiet.danger { color: var(--danger); }-.quiet.danger:hover:not(:disabled) { border-color: var(--danger); }+.quiet.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); }/* The sign-in screen's own buttons sit under a form and need the gap they had. */.shell .quiet { margin-top: 14px; }@@ -258,7 +263,7 @@top: 8px;bottom: 8px;width: 196px;- transition: width 260ms cubic-bezier(0.32, 0.72, 0, 1);+ transition: width var(--spring-quick-d) var(--spring-quick);overflow: hidden;background: var(--glass);-webkit-backdrop-filter: var(--glass-blur);@@ -490,7 +495,7 @@height: 100%;overflow-y: auto;padding: 28px 34px 28px var(--side, 236px);- transition: padding-left 260ms cubic-bezier(0.32, 0.72, 0, 1);+ transition: padding-left var(--spring-quick-d) var(--spring-quick);}.library { --side: 236px; }.library.is-rail { --side: 84px; }@@ -514,12 +519,12 @@box-shadow: var(--glass-specular), 0 0 0 0.5px var(--glass-edge), var(--shadow-sheet);transform: translateX(calc(-100% - 16px));visibility: hidden;- transition: transform 260ms var(--ease), visibility 0s linear 260ms;+ transition: transform var(--spring-quick-d) var(--spring-quick), visibility 0s linear var(--spring-quick-d);}.is-sidebar-open .sidebar {transform: none;visibility: visible;- transition: transform 260ms var(--ease), visibility 0s;+ transition: transform var(--spring-quick-d) var(--spring-quick), visibility 0s;}.sidebar-toggle {position: absolute;@@ -1276,16 +1281,19 @@font: inherit;font-size: var(--t-13);color: var(--text);- background: var(--field);- border: 0.5px solid var(--field-edge);- border-radius: var(--r-field);- box-shadow: var(--shadow-field);- padding: 4px 7px;+ /* macOS 27's pop-up button: a soft fill with no outline, rounded concentric with the+ popover or panel it sits in. */+ background: color-mix(in srgb, var(--text) 6%, transparent);+ border: 0;+ border-radius: 8px;+ box-shadow: none;+ min-height: 26px;+ padding: 4px 9px;cursor: pointer;text-align: left;}-.picker-button:hover:not(:disabled) { border-color: var(--field-edge-hover); }+.picker-button:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 10%, transparent); }.picker-button:disabled { color: var(--text-3); cursor: default; }.picker-button:focus-visible {@@ -1317,9 +1325,11 @@margin: 0;padding: 5px;list-style: none;- background: var(--sheet);border-radius: 12px;- box-shadow: var(--shadow-sheet), 0 0 0 0.5px var(--glass-edge);+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);color: var(--text);/* No opening animation, as a macOS menu has none: it is simply there. Animating it inmade WebKitGTK build a compositing layer on the first frame, and the menu flashed. */@@ -1473,10 +1483,10 @@z-index: 100;display: grid;place-items: center;- background: rgba(0, 0, 0, 0.32);- -webkit-backdrop-filter: blur(2px);- backdrop-filter: blur(2px);- animation: modal-veil-in 160ms var(--ease) both;+ /* A dim, not a blur: macOS dims the window behind a sheet, and a blur of the whole+ window under glass was glass on glass — and in WebKitGTK the costliest frame there is. */+ background: rgba(0, 0, 0, 0.2);+ animation: modal-veil-in 200ms var(--ease) both;}@keyframes modal-veil-in {@@ -1491,15 +1501,19 @@flex-direction: column;gap: 12px;padding: 20px 22px;- background: var(--sheet);border-radius: var(--r-window);- box-shadow: var(--shadow-sheet), 0 0 0 0.5px var(--glass-edge);- animation: modal-sheet-in 160ms ease-out both;+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);+ /* A sheet arrives on the smooth spring, growing the last few percent into place. */+ animation: modal-sheet-in 360ms var(--spring-smooth) both;}@keyframes modal-sheet-in {- from { opacity: 0; transform: scale(0.98); }- to { opacity: 1; transform: none; }+ from { opacity: 0; scale: 0.94; }+ 60% { opacity: 1; }+ to { opacity: 1; scale: 1; }}.modal-sheet h2 {@@ -1627,10 +1641,11 @@flex-direction: column;min-width: 150px;padding: 5px;- border: 1px solid var(--glass-edge);- border-radius: 10px;- background: var(--sheet);- box-shadow: var(--shadow-sheet);+ border-radius: 12px;+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);}.upload-menu button {padding: 6px 10px;@@ -1783,8 +1798,11 @@.row-menu {position: fixed; z-index: 60; min-width: 200px; padding: 5px;display: flex; flex-direction: column; outline: none;- background: var(--sheet); border-radius: 12px;- box-shadow: var(--shadow-sheet), 0 0 0 0.5px var(--glass-edge);+ border-radius: 12px;+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);}.row-menu-item {display: flex; align-items: center; gap: 12px; width: 100%; min-height: 24px; padding: 0 12px;@@ -1866,3 +1884,36 @@/* Recents' date headings, as Finder's and icloud.com's group them. */.drive-group { margin: 14px 0 4px; padding: 0 10px; color: var(--text); font-size: var(--t-13); font-weight: 700; }.drive-recents section:first-of-type .drive-group { margin-top: 4px; }++/* ── Liquid Glass, shared across the apps ──────────────────────────────────────────────+ macOS 27's search field is a capsule of soft fill (130×24/36, r100 in Apple's kit), in a+ sidebar or a toolbar alike — never a bordered box. */+:root :is(.notes-search, .rx-search, .contacts-search) {+ border: 0;+ border-radius: var(--r-pill);+ background: color-mix(in srgb, var(--text) 6%, transparent);+ min-height: 28px;+ padding-inline: 12px;+}+.contacts-search:focus { box-shadow: 0 0 0 3px var(--accent-ring); }++/* A toolbar's pop-up buttons are capsules beside the capsule buttons they sit with. */+:root :is(.cal-actions, .note-bar-actions) .picker-button {+ min-height: 28px;+ border-radius: var(--r-pill);+ padding-inline: 12px;+}++/* A note's tools float together in one glass capsule, as Notes on macOS 27 groups them. */+.note-bar-actions {+ gap: 2px;+ padding: 2px 4px;+ border-radius: var(--r-pill);+ background: var(--glass);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-specular), 0 0 0 0.5px var(--glass-edge), 0 1px 5px rgba(0, 0, 0, 0.06);+}+.note-bar-actions .notes-icon { border-radius: var(--r-pill); }+.note-bar-actions .picker-button { background: none; }+.note-bar-actions .picker-button:hover:not(:disabled) { background: color-mix(in srgb, var(--text) 8%, transparent); }diff --git a/src/styles/calendar.css b/src/styles/calendar.cssindex a561236..9fead19 100644--- a/src/styles/calendar.css+++ b/src/styles/calendar.css@@ -598,10 +598,11 @@gap: 8px;width: 300px;padding: 14px 14px 12px;- border: 1px solid var(--glass-edge);- border-radius: 12px;- background: var(--sheet);- box-shadow: var(--shadow-sheet);+ border-radius: 14px;+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);/* Opacity and a small lift only, on the compositor: scaling from the corner read as ajump toward the click, and re-ran on every re-anchor. *//* A short fade and nothing else — no movement, no layer hint — as a macOS popover. */@@ -634,13 +635,17 @@.cx-when input[type="time"] { flex: 0 0 auto; }.cx-pop-row input[type="time"],.cx-pop-row input[type="date"] {- padding: 3px 6px;- border: 1px solid var(--field-edge);- border-radius: 6px;- background: var(--field);+ min-height: 26px;+ padding: 3px 8px;+ border: 0;+ border-radius: 8px;+ background: color-mix(in srgb, var(--text) 6%, transparent);font-size: var(--t-13);+ font-variant-numeric: tabular-nums;color-scheme: light dark;}+.cx-pop-row input[type="time"]:focus-visible,+.cx-pop-row input[type="date"]:focus-visible { box-shadow: 0 0 0 3px var(--accent-ring); }/* Drawn, not left to the engine: WebKitGTK paints its own toolkit's white box here. */.cx-pop-row input[type="checkbox"] {justify-self: start;@@ -677,10 +682,11 @@gap: 14px;padding: 9px 10px 9px 16px;transform: translateX(-50%);- border: 1px solid var(--glass-edge);- border-radius: 12px;- background: var(--sheet);- box-shadow: var(--shadow-sheet);+ border-radius: var(--r-pill);+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);font-size: var(--t-13);}.cx-toast-undo {@@ -760,3 +766,28 @@.cx-reminder, .cx-item.is-reminder .cx-item-title, .cx-pane-reminder .cx-pane-title { color: color-mix(in srgb, var(--cal, var(--text)) 50%, #fff); }}.cx-reminder.is-done, .cx-item.is-reminder.is-done .cx-item-title { color: var(--text-3); }++/* ── The toolbar in Liquid Glass ────────────────────────────────────────────────────────+ As macOS 27's Calendar sets it: each group of controls is a capsule of glass floating+ over the window — the view switcher, New, the ‹ Today › stepper, search — rather than+ flat controls printed on it. Concentric: a segment's cap is the capsule's radius less+ its inset. */+.cx-bar .segmented,+.cx-step,+.cx-search,+.cx-tools > .cx-icon {+ height: 32px;+ border-radius: var(--r-pill);+ background: var(--glass);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-specular), 0 0 0 0.5px var(--glass-edge), 0 1px 5px rgba(0, 0, 0, 0.06);+}+.cx-bar .segmented { align-items: center; padding: 3px; gap: 0; }+.cx-bar .segment { height: 26px; padding: 0 12px; border-radius: var(--r-pill); font-size: var(--t-13); }+.cx-step { padding: 0 3px; gap: 0; }+.cx-step .cx-icon { height: 26px; min-width: 26px; border-radius: var(--r-pill); }+.cx-step .cx-today { height: 26px; border: 0; border-radius: var(--r-pill); background: none; padding: 0 8px; }+.cx-step .cx-today:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }+.cx-tools > .cx-icon { min-width: 32px; padding: 0; color: var(--text); }+.cx-search { padding: 0 12px; }diff --git a/src/styles/notes.css b/src/styles/notes.cssindex 7a62bd8..b8644a0 100644--- a/src/styles/notes.css+++ b/src/styles/notes.css@@ -372,9 +372,10 @@ textarea.note-title::placeholder { color: var(--text-3); }width: 276px;padding: 10px 8px 8px;border-radius: 12px;- background: var(--sheet);- border: 0.5px solid var(--glass-edge, var(--separator));- box-shadow: 0 11px 34px rgba(0, 0, 0, 0.18), 0 0 0 0.5px rgba(0, 0, 0, 0.06);+ background: var(--glass-thick);+ -webkit-backdrop-filter: var(--glass-blur);+ backdrop-filter: var(--glass-blur);+ box-shadow: var(--glass-float);color: var(--text);}.fp-marks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 4px 8px; border-bottom: 1px solid var(--separator); margin-bottom: 6px; }diff --git a/src/styles/tokens.css b/src/styles/tokens.cssindex fe478f7..99a415e 100644--- a/src/styles/tokens.css+++ b/src/styles/tokens.css@@ -49,12 +49,44 @@--t-28: 28px;- /* Liquid Glass. Apple's rules: glass is for CHROME only — never content layers, never- stacked on itself. Tint is reserved for the single primary action. */- --glass: rgba(255, 255, 255, 0.62);- --glass-blur: blur(28px) saturate(180%);- --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.75);- --glass-edge: rgba(0, 0, 0, 0.07);+ /* Liquid Glass, as macOS 26/27 builds it (docs/macos27-kit.md). Apple's rules: glass is+ for CHROME — sidebars, toolbars, menus, popovers, sheets — never the content beneath,+ and never glass laid on glass. Tint is for the single primary action.++ A glass surface is four things together: a thin tint that lets what is behind show,+ a heavy blur that keeps it unreadable, a saturation lift so colours behind glow rather+ than grey out, and a lit rim — a hairline of light all round with a brighter edge on+ top, where the light catches it. The rim is what makes it read as a material and not+ as a translucent rectangle. */+ --glass: rgba(255, 255, 255, 0.58);+ --glass-thick: rgba(250, 250, 252, 0.78);+ --glass-blur: blur(30px) saturate(190%);+ --glass-specular: inset 0 0.5px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 0.5px rgba(255, 255, 255, 0.45);+ --glass-edge: rgba(0, 0, 0, 0.08);+ /* Floating glass casts a soft, wide shadow — it sits above the window, not on it. */+ --glass-lift: 0 8px 30px rgba(0, 0, 0, 0.13), 0 1px 3px rgba(0, 0, 0, 0.08);+ /* A menu, popover or sheet: thick glass, rim, edge and lift — the whole recipe. */+ --glass-float: var(--glass-specular), 0 0 0 0.5px var(--glass-edge), var(--glass-lift);++ /* Motion. Apple's interface moves on springs, not curves: these are SwiftUI's own,+ computed from the spring itself (response and bounce) rather than eyeballed, and each+ duration is the time the spring takes to settle. */+ /* .smooth — no bounce: things that move a long way, a sidebar, a sheet. */+ --spring-smooth: linear(0, 0.0139, 0.0495, 0.0995, 0.1582, 0.2215, 0.2864, 0.3507, 0.4129, 0.472, 0.5273, 0.5786, 0.6256, 0.6685, 0.7073, 0.7423, 0.7736, 0.8015, 0.8263, 0.8483, 0.8677, 0.8848, 0.8998, 0.913, 0.9246, 0.9347, 0.9435, 0.9511, 0.9578, 0.9636, 0.9686, 0.9729, 0.9767, 0.98, 0.9828, 0.9852, 0.9873, 0.9891, 0.9906, 0.992, 0.9931, 0.9941, 0.995, 0.9957, 0.9963, 0.9968, 0.9973, 0.9977, 1);+ --spring-smooth-d: 560ms;+ /* The same spring, quicker (response 0.25): a sidebar sliding over, which a person waits+ on and should not watch. */+ --spring-quick: linear(0, 0.0141, 0.0502, 0.1007, 0.16, 0.2239, 0.2893, 0.354, 0.4165, 0.4758, 0.5313, 0.5826, 0.6296, 0.6724, 0.7111, 0.7459, 0.777, 0.8048, 0.8294, 0.8512, 0.8704, 0.8873, 0.9021, 0.9151, 0.9265, 0.9364, 0.945, 0.9525, 0.9591, 0.9647, 0.9696, 0.9739, 0.9775, 0.9807, 0.9834, 0.9858, 0.9878, 0.9895, 0.991, 0.9923, 0.9934, 0.9944, 0.9952, 0.9959, 0.9965, 0.997, 0.9974, 0.9978, 1);+ --spring-quick-d: 300ms;+ /* .snappy — a touch of bounce: a popover growing from its button, a control settling. */+ --spring-snappy: linear(0, 0.0129, 0.0468, 0.0957, 0.1547, 0.2197, 0.2878, 0.3564, 0.4238, 0.4885, 0.5498, 0.6068, 0.6593, 0.7072, 0.7503, 0.7888, 0.8229, 0.8529, 0.8791, 0.9017, 0.9211, 0.9376, 0.9515, 0.9632, 0.9729, 0.9808, 0.9872, 0.9923, 0.9964, 0.9995, 1.0019, 1.0036, 1.0048, 1.0056, 1.0061, 1.0063, 1.0063, 1.0061, 1.0058, 1.0055, 1.0051, 1.0047, 1.0042, 1.0038, 1.0034, 1.003, 1.0026, 1.0023, 1);+ --spring-snappy-d: 420ms;+ /* .bouncy — the one moment that earns it: something arriving, the library opening. */+ --spring-bouncy: linear(0, 0.0167, 0.0609, 0.1247, 0.2015, 0.2858, 0.3731, 0.4599, 0.5437, 0.6223, 0.6945, 0.7596, 0.817, 0.8669, 0.9092, 0.9446, 0.9734, 0.9963, 1.0139, 1.0269, 1.0361, 1.0419, 1.045, 1.046, 1.0452, 1.0432, 1.0403, 1.0368, 1.0329, 1.0289, 1.0249, 1.0211, 1.0174, 1.0141, 1.0111, 1.0085, 1.0062, 1.0042, 1.0026, 1.0012, 1.0002, 0.9994, 0.9988, 0.9983, 0.9981, 0.9979, 0.9979, 0.9979, 1);+ --spring-bouncy-d: 700ms;+ /* A press: in fast, so the control answers the finger; out on the snappy spring. */+ --press-scale: 0.96;+ --press-in: 90ms;/* Tahoe moved windows from Sequoia's 4px to 12px, and radii nest concentrically:an inner radius is the outer radius minus the gap between them. */@@ -65,7 +97,7 @@/* Apple's sheet-presentation curve. Decisive out, no bounce. */--ease: cubic-bezier(0.32, 0.72, 0, 1);- /* Reserved for the one moment that earns it: the unlock. */+ /* The library opening (kept by name; the bouncy spring is the same idea, computed). */--ease-spring: linear(0.0000 0.0%, 0.0230 2.5%, 0.0834 5.0%, 0.1694 7.5%, 0.2710 10.0%, 0.3800 12.5%, 0.4897 15.0%, 0.5951 17.5%, 0.6927 20.0%, 0.7800 22.5%, 0.8558 25.0%, 0.9194 27.5%, 0.9711 30.0%, 1.0115 32.5%, 1.0416 35.0%, 1.0625 37.5%, 1.0755 40.0%, 1.0821 42.5%, 1.0834 45.0%, 1.0808 47.5%, 1.0752 50.0%, 1.0677 52.5%, 1.0591 55.0%, 1.0499 57.5%, 1.0408 60.0%, 1.0321 62.5%, 1.0241 65.0%, 1.0170 67.5%, 1.0109 70.0%, 1.0058 72.5%, 1.0016 75.0%, 0.9985 77.5%, 0.9961 80.0%, 0.9945 82.5%, 0.9935 85.0%, 0.9931 87.5%, 0.9931 90.0%, 0.9933 92.5%, 0.9938 95.0%, 0.9945 97.5%, 0.9952 100.0%);--sf: "SF Pro Text", "SF Pro Display", Inter, "Inter Variable", system-ui,@@ -96,9 +128,11 @@--danger: #ff6b6b;--shadow-sheet: 0 18px 50px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);--shadow-field: inset 0 1px 1px rgba(0, 0, 0, 0.25);- --glass: rgba(44, 44, 48, 0.62);- --glass-specular: inset 0 1px 0 rgba(255, 255, 255, 0.10);- --glass-edge: rgba(255, 255, 255, 0.08);+ --glass: rgba(40, 40, 44, 0.56);+ --glass-thick: rgba(36, 36, 40, 0.8);+ --glass-specular: inset 0 0.5px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 0.5px rgba(255, 255, 255, 0.1);+ --glass-edge: rgba(0, 0, 0, 0.5);+ --glass-lift: 0 10px 36px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.35);}}@@ -129,6 +163,31 @@ body {::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--text) 40%, transparent); }::-webkit-scrollbar-button { display: none; }+/* Where the engine has no backdrop blur, glass would be a see-through panel over text.+ Opaque instead, as Reduce Transparency draws it. */+@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {+ :root { --glass: var(--bg); --glass-thick: var(--sheet); }+}++/* A control gives under a press and springs back, as Apple's do — buttons, icons, pop-up+ buttons, segments. Not a row of a list: Apple's rows take a highlight, they do not+ shrink. Only the pressed thing moves; hovering changes nothing but colour. */+:is(.quiet, .primary, .danger, .rx-icon-button, .notes-icon, .cx-icon, .cx-today, .cx-more,+ .sidebar-toggle, .segment, .picker-button, .notes-aa, .notes-new-folder, .rx-add-list,+ .info-done, .compact-back, .notice-close, .upload-tray-close, .with-glyph, .cx-toast-undo,+ .cx-pop-delete):not(:disabled) {+ /* `scale`, not `transform`: a control placed with a transform keeps it. */+ transition: scale var(--spring-snappy-d) var(--spring-snappy), background-color 120ms ease,+ background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 160ms ease;+}+:is(.quiet, .primary, .danger, .rx-icon-button, .notes-icon, .cx-icon, .cx-today, .cx-more,+ .sidebar-toggle, .segment, .picker-button, .notes-aa, .notes-new-folder, .rx-add-list,+ .info-done, .compact-back, .notice-close, .upload-tray-close, .with-glyph, .cx-toast-undo,+ .cx-pop-delete):not(:disabled):active {+ scale: var(--press-scale);+ transition-duration: var(--press-in), 0ms, 0ms, 0ms, 0ms, 160ms;+}+@media (prefers-reduced-motion: reduce) {*, *::before, *::after {animation-duration: 0.01ms !important;@@ -140,12 +199,13 @@ body {Increase Contrast. Matching that is the difference between using the design languageand merely copying its look. */@media (prefers-reduced-transparency: reduce) {- :root { --glass: var(--bg); --glass-blur: none; --glass-specular: none; }+ :root { --glass: var(--bg); --glass-thick: var(--sheet); --glass-blur: none; --glass-specular: none; }}@media (prefers-contrast: more) {:root {--glass: var(--bg);+ --glass-thick: var(--sheet);--glass-blur: none;--field-edge: rgba(0, 0, 0, 0.55);--separator: rgba(0, 0, 0, 0.42);