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
.app-ground {
position: fixed;
inset: 0;
z-index: 0;
pointer-events: none;
/* Painted once, on a layer of its own that never moves: behind a scrolling page, WebKit
otherwise painted both gradients again on every frame. (A still layer, never animated.) */
transform: translateZ(0);
contain: strict;
background:
radial-gradient(110% 80% at 8% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%),
radial-gradient(90% 70% at 100% 108%, color-mix(in srgb, var(--text) 5%, transparent), transparent 52%);
}
/* ---- shell ------------------------------------------------------------------ */
/*
* Signed out. The sheet hangs from a fixed point a little above the middle rather than being
* centred: centred, every line that came or went — an error, the disclosure opening — moved
* the whole sheet, the icon included. Anchored, things below a change move and nothing above.
*/
.shell {
height: 100%;
/* Always a scroll box, so a sheet that grows past the window (the disclosure open, in a
short window) does not jump sideways as a scrollbar arrives. The track is transparent
and there is no thumb until there is something to scroll; the 10px it takes on the
right is given back on the left, so the sheet stays centred. (scrollbar-gutter would
say this in one line, but WebKit does not support it.) */
overflow-y: scroll;
display: grid;
justify-items: center;
align-content: start;
padding: clamp(28px, calc(50vh - 260px), 24vh) 24px 32px 34px;
/* The one filled control takes the app's own accent — the same blue the app it opens into
uses, as Apple's own sign-in sheets do. Said outright here: with no app open yet,
tokens.css hands :root the brand gold in light (white on it is 2.8:1), and a custom
property resolves where it is declared, so the ring is re-derived too. The fill is the
deeper blue, which carries white at 5.6:1 where the bright one manages 3.5:1. */
--accent: #0088ff;
--accent-strong: #0068d6;
--accent-ring: color-mix(in srgb, #0088ff 34%, transparent);
--go: #0068d6;
--go-text: #fff;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .shell {
--accent: #0091ff;
--accent-strong: #0091ff;
--accent-ring: color-mix(in srgb, #0091ff 34%, transparent);
}
}
:root[data-theme="dark"] .shell {
--accent: #0091ff;
--accent-strong: #0091ff;
--accent-ring: color-mix(in srgb, #0091ff 34%, transparent);
}
/* "Not Now", under the primary when signing in again can wait: the same capsule and height
in the quiet fill, so the pair reads as one choice with one default. */
.sheet > .quiet {
width: 100%;
height: 40px;
margin-top: 8px;
font-size: var(--t-15);
}
/* ---- the sign-in sheet ------------------------------------------------------- */
.sheet {
width: 100%;
max-width: 320px;
text-align: center;
}
/* The icon's own grid leaves a margin round the tile, so it is drawn a little larger than
the tile is meant to look. */
.mark {
width: 80px;
height: 80px;
margin: 0 auto 14px;
display: block;
user-select: none;
}
/* Type scale: 22 title, 15 fields and the button, 13 lede and messages, 12 footnotes,
11 the disclosure. Weights are 600 and 400 only — Segoe UI and the Linux fallbacks
all have both, and nothing is synthesised. */
.sheet h1 {
margin: 0;
font-size: var(--t-22);
font-weight: 600;
letter-spacing: -0.012em;
line-height: 1.25;
text-wrap: balance;
}
.lede {
margin: 6px auto 24px;
max-width: 34ch;
color: var(--text-2);
font-size: var(--t-13);
line-height: 1.45;
text-wrap: balance;
}
/* macOS groups related fields into one bordered block with a hairline between them,
rather than floating separate inputs. */
.field-group {
border: 1px solid var(--field-edge);
border-radius: 10px;
background: var(--field);
box-shadow: var(--shadow-field);
overflow: hidden;
text-align: left;
transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease), opacity 140ms var(--ease);
}
.field-group:hover { border-color: var(--field-edge-hover); }
.field-group:focus-within {
border-color: var(--accent);
box-shadow: var(--shadow-field), 0 0 0 3px var(--accent-ring);
}
.field-group.is-invalid { border-color: var(--danger); }
.field-group.is-invalid:focus-within {
box-shadow: var(--shadow-field), 0 0 0 3px color-mix(in srgb, var(--danger) 26%, transparent);
}
.field-group input {
display: block;
width: 100%;
height: 42px;
border: 0;
margin: 0;
background: transparent;
color: var(--text);
font: inherit;
font-size: var(--t-15);
padding: 0 13px;
outline: none;
}
.field-group input::placeholder { color: var(--text-3); opacity: 1; }
.field-group input + input { border-top: var(--hairline) solid var(--separator); }
/* Held while Apple answers: the fields stay put and simply quieten. */
.field-group input:disabled { color: var(--text-2); }
.sheet[aria-busy="true"] .field-group { opacity: 0.6; }
/* ---- the sign-in sheet's own buttons ------------------------------------------- */
/* The one thing on the screen, so it takes the width. Its height never changes: the busy
spinner and the countdown sit inside the same 40px. */
.sheet .primary {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
height: 40px;
margin-top: 16px;
padding: 0 16px;
background: var(--go);
color: var(--go-text);
font-size: var(--t-15);
font-weight: 600;
font-variant-numeric: tabular-nums;
transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.sheet .primary:active:not(:disabled) { background: color-mix(in srgb, var(--go) 86%, #000); }
/* Nothing to send yet, or Apple asked for a wait: plainly not pressable. */
.sheet .primary:disabled {
background: color-mix(in srgb, var(--text) 8%, transparent);
color: var(--text-3);
}
/* Signing in is not "unavailable": the button keeps its colour and only softens. */
.sheet[aria-busy="true"] .primary:disabled {
background: color-mix(in srgb, var(--go) 72%, transparent);
color: var(--go-text);
}
/* The secondary ways out of a sheet: the kit's text button, a little roomier. */
.sheet .link { padding: 4px 8px; }
/* ---- footnotes --------------------------------------------------------------- */
/* The line under the sheet's main control. Its height is kept whether it is empty, says
"Checking", or holds a two-line error, so nothing under it moves when it changes. */
.sheet-status {
min-height: 38px;
margin-top: 12px;
display: flex;
justify-content: center;
align-items: flex-start;
}
.sheet-status > p { margin: 0; max-width: 34ch; font-size: var(--t-13); line-height: 1.4; }
.assurance {
margin: 0 auto;
max-width: 40ch;
color: var(--text-2);
font-size: var(--t-12);
line-height: 1.5;
}
.sheet-status > .assurance { max-width: none; font-size: var(--t-12); line-height: 1.6; }
.sheet-foot { margin-top: 28px; display: grid; justify-items: center; gap: 4px; }
/* Recovery options stay folded away until asked for: the code field is the task. */
.help {
margin: -6px auto 0;
text-align: left;
padding: 14px 16px;
border-radius: 12px;
background: color-mix(in srgb, var(--text) 4.5%, transparent);
}
.help p {
margin: 0;
/* A step darker than secondary text: on the panel's tint, --text-2 falls just short of
4.5:1. */
color: color-mix(in srgb, var(--text) 74%, var(--bg));
font-size: var(--t-12);
line-height: 1.5;
}
.help strong { color: var(--text); font-weight: 600; }
.help .help-warn { color: var(--danger); margin-bottom: 8px; }
.help > :first-child { margin-top: 0; }
.help-actions {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 12px 0 0;
}
.help-actions .quiet { font-variant-numeric: tabular-nums; }
.help .help-tip {
margin-top: 12px;
padding-top: 12px;
border-top: var(--hairline) solid var(--separator);
}
/* ---- six-digit code ---------------------------------------------------------- */
.code {
display: flex;
gap: 8px;
justify-content: center;
}
.code .gap { width: 10px; }
.code input {
width: 42px;
height: 52px;
padding: 0;
text-align: center;
font: inherit;
font-size: var(--t-24);
font-weight: 500;
font-variant-numeric: tabular-nums;
color: var(--text);
background: var(--field);
border: 1px solid var(--field-edge);
border-radius: 10px;
box-shadow: var(--shadow-field);
caret-color: var(--accent);
outline: none;
transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease), opacity 140ms var(--ease);
}
.code input:hover:not(:disabled) { border-color: var(--field-edge-hover); }
.code input:focus {
border-color: var(--accent);
box-shadow: var(--shadow-field), 0 0 0 3px var(--accent-ring);
}
.code.is-invalid input { border-color: var(--danger); }
.code.is-invalid input:focus {
box-shadow: var(--shadow-field), 0 0 0 3px color-mix(in srgb, var(--danger) 26%, transparent);
}
.code input:disabled { opacity: 0.55; }
/* ---- library ----------------------------------------------------------------- */
.library {
position: relative;
height: 100%;
overflow: hidden;
}
/* Chrome, so it gets glass. The content pane deliberately does not — Apple forbids glass
on content layers, and a photo grid is exactly the thing it would fight. */
.sidebar {
position: absolute;
z-index: 2;
left: 8px;
top: 8px;
bottom: 8px;
width: 196px;
/* Folding is a single step, with no animation. While the sidebar's width moved, every frame
laid out its rows again, and the content beside it, already in its new place, showed
through and then hid behind it. WebKitGTK drew that as a flicker of text on his machine. */
/* Its own width changing lays out only itself. */
contain: layout paint;
overflow: hidden;
/* Frosted to opaque, without a live blur: folding animates its width, and a blurred layer
has its blur worked out again on every frame of that — a stutter in WebKitGTK, which
does not draw the blur on many machines in any case. Content still passes under it. */
background: var(--glass-frost);
box-shadow: var(--glass-specular), 0 0 0 var(--hairline) var(--glass-edge);
border-radius: var(--r-plateau);
padding: 12px 9px;
overflow-y: auto;
/* The foot holds the one global control, so the list above it takes the slack rather
than the status floating mid-column on a short account. */
display: flex;
flex-direction: column;
}
.sidebar-foot {
margin-top: auto;
padding-top: 10px;
display: flex;
flex-direction: column;
gap: 2px;
}
/* One statement of freshness for the whole library, and the one control that refreshes it.
Quiet by default — it is status, not an action anyone has to take. */
.sync-row {
display: flex;
align-items: center;
gap: 7px;
width: 100%;
border: 0;
background: none;
padding: 5px 8px;
border-radius: var(--r-field);
font: inherit;
font-size: var(--t-11);
color: var(--text-2);
cursor: pointer;
text-align: left;
transition: background 140ms var(--ease);
}
.sync-row:hover:not(:disabled) { background: var(--fill-hover); }
.sync-row:disabled { cursor: default; }
.sync-dot {
flex: none;
width: 6px;
height: 6px;
border-radius: var(--r-pill);
background: var(--sys-green);
}
.sync-dot.working { background: var(--accent); }
.sync-dot.trouble { background: var(--sys-orange); }
/* Nothing to vouch for yet — never synced, or not available: grey, not the all-clear green. */
.sync-dot.idle { background: var(--sys-gray); }
.sync-label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sync-glyph {
flex: none;
color: var(--text-3);
line-height: 1;
}
.sync-glyph.spinning { animation: sync-spin 800ms linear infinite; }
@keyframes sync-spin {
to { transform: rotate(360deg); }
}
.sync-disclose,
.sync-trouble {
margin: 0;
padding: 2px 8px 4px;
border: 0;
background: none;
font: inherit;
font-size: var(--t-11);
color: var(--danger);
text-align: left;
cursor: pointer;
}
.sync-trouble { cursor: default; }
.sync-trouble-list {
margin: 0;
padding: 0 8px 4px;
list-style: none;
font-size: var(--t-11);
color: var(--text-2);
display: flex;
flex-direction: column;
gap: 4px;
}
.sidebar h2 {
margin: 6px 8px 10px;
font-size: var(--t-11);
font-weight: 600;
color: var(--text-3);
}
.nav-item {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
min-height: 34px;
white-space: nowrap;
/* No transition here: what the base state is reached by — the current app changing, the
pointer leaving — happens at once, so the selection moves crisply, as in a Mac sidebar. */
width: 100%;
border: 0;
background: none;
color: var(--text);
font: inherit;
font-size: var(--t-13);
text-align: left;
padding: 6px 8px;
border-radius: var(--r-field);
cursor: pointer;
}
/* Each app's mark: one symbol in the app's colour (AppIcon), as a Mac sidebar draws its places.
The tints are the system's own hues, a shade deeper in light mode so they hold on white —
3:1 or better on the sidebar and on its selected row (WCAG 1.4.11), since folded to icons
the glyph is all that names the app. */
.app-icon { display: inline-grid; place-items: center; flex: none; }
:root {
--app-notes: #a06c00; --app-reminders: #c94a08; --app-calendar: #e0313f;
--app-contacts: #6e7480; --app-drive: #1f7ae0; --app-photos: #b34fd6;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--app-notes: #ffd23f; --app-reminders: #ff8a4c; --app-calendar: #ff5a5f;
--app-contacts: #aab1bd; --app-drive: #5ab0ff; --app-photos: #d38bff;
}
}
:root[data-theme="dark"] {
--app-notes: #ffd23f; --app-reminders: #ff8a4c; --app-calendar: #ff5a5f;
--app-contacts: #aab1bd; --app-drive: #5ab0ff; --app-photos: #d38bff;
}
.nav-name { overflow: hidden; text-overflow: ellipsis; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 6px; min-height: 28px; }
.sidebar-head h2 { margin: 0 8px; }
/* Folded: the icons alone, centred, names gone; the foot keeps only its status dot. */
@media (min-width: 901px) {
.is-rail .sidebar { width: 60px; }
.is-rail .sidebar-head { flex-direction: column; }
.is-rail .sidebar-head h2, .is-rail .nav-name { opacity: 0; width: 0; margin: 0; transition: none; }
.is-rail .nav-item { justify-content: center; gap: 0; padding-inline: 0; }
.is-rail .sidebar-foot { display: none; }
}
@media (max-width: 900px) { .sidebar-fold { display: none; } }
@media (prefers-reduced-motion: reduce) { .content, .sidebar, .nav-item { transition: none; } }
.nav-item:hover { background: var(--fill-hover); transition: background-color var(--motion-hover) var(--motion-ease-out); }
/* Pressed: a shade deeper at once, as a Mac sidebar row darkens under the click. */
.nav-item:active:not([aria-current="true"]) { background: var(--fill-press); transition: none; }
/* The current app: a neutral highlight, as a Tahoe sidebar draws one, the label unchanged in
colour. Tinting it with the app's accent made three apps — Reminders, Drive, Contacts —
select in the same blue; the icon is what tells them apart. */
.nav-item[aria-current="true"] { background: var(--fill-selected); color: var(--text); font-weight: 590; transition: none; }
.nav-item:focus-visible { outline: var(--focus-ring); outline-offset: -1px; }
.badge {
font-size: var(--t-11);
color: var(--text-3);
flex: none;
opacity: 0.85;
}
/* Full-bleed, so it passes under the floating sidebar as it scrolls. */
.content {
height: 100%;
overflow-y: auto;
padding: var(--pane-top) 34px 28px var(--side, 220px);
/* No transition: folding the sidebar slides the content on the compositor instead
(Library's slideContent) — a padding animated here re-laid out the whole screen on
every frame. */
}
/* The content begins 16px past the sidebar's card (8px in, 196px wide), open or folded alike:
a wider gutter here left a band of nothing between the sidebar and every app. */
.library { --side: 220px; }
.library.is-rail { --side: 84px; }
.sidebar-toggle, .sidebar-scrim, .compact-back { display: none; }
/*
* A narrow window, as iPadOS does it: the sidebar steps aside and the content takes the whole
* width, with a button at the top left to bring the sidebar back over it. Picking a screen,
* Escape or a click outside puts it away again. From 900px down: beside the sidebar an 800px
* window left the content 520px, and a phone number wrapped over four lines.
*/
@media (max-width: 900px) {
/* Outranks each screen's own `.content[data-screen]` padding. */
.library > main.content { padding: 54px 16px 16px; }
.sidebar {
z-index: 30;
/* Over content, so nearly opaque: a list read through another list is two lists. */
background: color-mix(in srgb, var(--bg) 94%, transparent);
/* Room at the top for the button that opened it, which stays where it was. */
padding-top: 52px;
box-shadow: var(--glass-specular), 0 0 0 var(--hairline) var(--glass-edge), var(--shadow-sheet);
/* Out and back at once, as the scrim is: a full-height, shadowed layer sliding over the
content is the large-layer motion that flickered on his WebKitGTK (tokens.css). */
visibility: hidden;
}
.is-sidebar-open .sidebar {
visibility: visible;
}
.sidebar-toggle {
position: absolute;
z-index: 35;
top: 12px;
left: 12px;
display: grid;
place-items: center;
width: 32px;
height: 32px;
padding: 0;
border: 0;
border-radius: 50%;
background: var(--glass);
-webkit-backdrop-filter: var(--glass-blur);
backdrop-filter: var(--glass-blur);
box-shadow: var(--glass-specular), 0 0 0 var(--hairline) var(--glass-edge);
color: var(--text);
cursor: default;
}
.sidebar-toggle:focus-visible { outline: var(--focus-ring); }
.is-sidebar-open .sidebar-scrim {
position: absolute;
z-index: 25;
inset: 0;
display: block;
background: rgba(0, 0, 0, 0.35);
}
}
/* Narrower again, where a screen shows one column at a time and needs a way back. */
@media (max-width: 720px) {
/* Back to the list a detail was opened from, in the accent, as iOS writes it. */
.compact-back {
display: inline-flex;
align-items: center;
gap: 1px;
min-width: 0;
max-width: 55%;
height: 28px;
margin-left: -6px;
padding: 0 6px 0 0;
border: 0;
border-radius: 7px;
background: none;
color: var(--accent-strong);
font: inherit;
font-size: var(--t-15);
cursor: default;
}
.compact-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-back:focus-visible { outline: var(--focus-ring); }
}
.content h1 { margin: 0 0 6px; font-size: var(--t-28); font-weight: 600; letter-spacing: -0.022em; }
/*
* Prose only — a paragraph nobody has given a job to.
*
* Without the :not this reads as `.content p`, which outranks every single-class rule in the
* app and quietly took the margin, colour, size and measure off all of them: the "My Lists"
* heading came out at 15px with an 18px gap under it instead of 11px with 4px, and the same
* went for every error line, empty state, note timestamp and saved-to confirmation. A rule
* meant to set the tone of body copy was overruling components that had asked for something
* else.
*/
.content p:not([class]) { margin: 0 0 18px; color: var(--text-2); font-size: var(--t-15); max-width: 62ch; }
/* ---- the one orchestrated moment: sign-in dissolving into the library ---------- */
/* Opacity only, short, and not held afterwards ("backwards", not "both"): a sheet that moved
or scaled in sat in an animated compositor layer, and WebKitGTK on Hyprland flickers those. */
.enter-sheet { animation: sheet-in 160ms ease-out backwards; }
@media (prefers-reduced-motion: reduce) { .enter-sheet { animation: none; } }
/* The library simply appears: a whole-window animation, held at its last frame forever by
"both", kept the entire app inside an animated layer of WebKitGTK's — and every animation
handed to the compositor glitched on his screen. */
@keyframes sheet-in {
from { opacity: 0; }
}
/* ---- contacts -------------------------------------------------------------------
Apple Contacts: a searchable list, then the person. */
.contacts {
display: grid;
/* The lists' column is the other apps' source list: the same inset either side of its rows. */
grid-template-columns: 202px minmax(230px, 300px) minmax(0, 1fr);
height: 100%;
min-height: 0;
}
/* The lists, as Contacts' sidebar has them — the same rows as Notes' folders. */
.contacts-lists {
display: flex;
flex-direction: column;
gap: 1px;
min-height: 0;
overflow-y: auto;
padding: var(--source-pad);
margin-right: 14px;
border-right: var(--hairline) solid var(--separator);
}
.contacts-list-glyph { flex: none; color: var(--text-2); }
.contacts-head { margin-bottom: 8px; }
.contacts-head-actions { display: flex; gap: 2px; }
.contacts-search { margin-bottom: 8px; }
.contact-none { margin: 14px 0 0; color: var(--text-2); }
.contacts-list-picker { display: none; margin-bottom: 8px; }
.contacts-list-picker .picker { width: 100%; }
/* The lists fold into a picker above the people first. */
@media (max-width: 1000px) {
.contacts { grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); }
.contacts-lists { display: none; }
.contacts-list-picker { display: block; }
}
/* One column at a time in a narrow window: the list, or the person picked from it. */
@media (max-width: 720px) {
.contacts { grid-template-columns: minmax(0, 1fr); }
.contacts.is-detail .contacts-list,
.contacts:not(.is-detail) .contact-detail { display: none; }
.contacts .compact-back { margin-bottom: 8px; }
/* Scoped, to outrank the card's own padding further down. */
.contacts .contact-detail { padding: 0 0 24px; }
}
.contacts-list {
display: flex;
flex-direction: column;
min-height: 0;
min-width: 0;
border-right: var(--hairline) solid var(--separator);
padding: 0 14px 0 0;
}
/* The list and the letter index beside it share what is left of the column's height. */
.contact-rows-wrap { position: relative; display: flex; flex: 1 1 auto; min-height: 0; }
/* With no one to show, the line saying so takes the column, centred as Notes centres its own —
after the rows' wrapper, which otherwise took the height and left it at the foot. */
.contact-rows-wrap:has(~ .empty-state) { flex: none; }
.contacts-list > .empty-state { flex: 1; justify-content: center; padding-bottom: 18vh; }
.contact-rows { position: relative; flex: 1 1 auto; min-width: 0; list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 0; }
/* A long address book lays out and paints only the rows in view. */
.contact-rows > li:not(.contact-letter) { content-visibility: auto; contain-intrinsic-size: auto 38px; }
/* The letters ride the list's own trailing edge, as the phone and icloud.com draw them: one
narrow strip over the rows' inset, not a column of its own beside the list's scroll bar.
As its own column, with the bar between, it took about thirty pixels from every name. The
strip is how a long list is travelled, so the bar gives way to it while it is there. */
.contact-rows.has-index { padding-right: 15px; scrollbar-width: none; }
.contact-rows.has-index::-webkit-scrollbar { display: none; }
.contact-index {
position: absolute; top: 0; right: 0; bottom: 0; z-index: 2;
display: flex; flex-direction: column; justify-content: center;
width: 15px; padding: 4px 0;
touch-action: none; user-select: none; -webkit-user-select: none;
}
.contact-index button {
flex: 0 1 15px; min-height: 0; padding: 0; border: 0; background: none;
color: var(--accent-strong); font: inherit; font-size: var(--t-10); font-weight: 600; line-height: 1;
cursor: pointer;
}
.contact-index button:hover { color: var(--text); }
.contact-row {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
border: 0;
background: none;
color: var(--text);
font: inherit;
font-size: var(--t-13);
text-align: left;
padding: 6px 9px;
border-radius: var(--r-field);
cursor: pointer;
}
.contact-row:hover { background: var(--fill-hover); }
/* As macOS selects: the accent with white text while the list has focus, grey after. */
.contact-row[aria-selected="true"] { background: var(--fill-selected); }
.contact-rows.is-focused .contact-row[aria-selected="true"] { background: var(--accent-fill); color: var(--on-accent); }
.contact-rows.is-focused .contact-row[aria-selected="true"] .avatar:not(:has(img)) { background: rgba(255, 255, 255, 0.28); color: #fff; }
.contact-row:focus-visible { outline: var(--focus-ring); outline-offset: -1px; }
.contact-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-row-name b { font-weight: 600; }
/* Several picked: their faces fanned, the count, and what can be done to all of them. */
.contact-many { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 48px; text-align: center; }
.contact-many-faces { display: flex; }
.contact-many-faces .avatar + .avatar { margin-left: -22px; box-shadow: 0 0 0 3px var(--bg); }
.contact-many h2 { margin: 0; font-size: var(--t-17); }
/* "me" beside this person's own card, as Contacts marks it. */
.contact-me { margin-left: auto; color: var(--text-3); font-size: var(--t-11); }
.contact-rows.is-focused .contact-row[aria-selected="true"] .contact-me { color: var(--on-accent-2); }
.avatar {
width: 26px;
height: 26px;
border-radius: var(--r-pill);
background: color-mix(in srgb, var(--text) 12%, transparent);
color: var(--text-2);
font-size: var(--t-11);
font-weight: 600;
display: grid;
place-items: center;
flex: none;
overflow: hidden;
}
/* Cropped to the circle and filling it, the way a picture sits in Contacts. */
.avatar img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.avatar.large {
width: 68px;
height: 68px;
min-width: 68px;
font-size: var(--t-22);
}
.contact-detail {
overflow-y: auto;
min-height: 0;
padding: 8px 40px 40px;
display: flex;
flex-direction: column;
/* One block, left-aligned. Centring the card while the avatar was pinned left is what
left a photo alone in the corner and a name floating in the middle of the pane. */
align-items: flex-start;
}
.contact-detail > * { width: 100%; max-width: min(56ch, 100%); }
.contact-head {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.contact-head-names { min-width: 0; }
.contact-detail h2 { margin: 0 0 2px; font-size: var(--t-22); font-weight: 600; letter-spacing: -0.021em; }
.contact-company { margin: 0; color: var(--text-2); font-size: var(--t-13); }
.contact-methods { margin: 0; }
.contact-methods > div {
display: grid;
grid-template-columns: 92px 1fr;
gap: 12px;
padding: 8px 0;
border-top: var(--hairline) solid var(--separator);
}
/* Labels right-aligned against their values, grey and small, as Contacts on the Mac sets a card. */
.contact-methods dt { color: var(--text-2); font-size: var(--t-11); padding-top: 3px; text-align: right; }
.contact-copy {
display: inline-grid; justify-items: end; padding: 0; border: 0; background: none;
color: inherit; font: inherit; text-align: right; cursor: copy;
}
/* The two words swap at once: a CSS fade is the kind WebKitGTK glitches (lib/fade.ts). */
.contact-copy > span { grid-area: 1 / 1; }
.contact-copy > span.is-hidden { opacity: 0; }
.contact-copy > span:last-child { color: var(--accent-strong); }
.contact-copy:hover > span:first-child { color: var(--text); }
.contact-copy:focus-visible { outline: var(--focus-ring); outline-offset: 2px; border-radius: 3px; }
.contact-methods dd { margin: 0; font-size: var(--t-15); overflow-wrap: anywhere; }
/* A postal address is several lines and reads as several lines. */
.contact-address { white-space: pre-line; }
/* A detail this app can show but not safely write: present, plainly not editable. */
.contact-method-fixed {
display: grid;
grid-template-columns: 96px minmax(0, 1fr) auto;
gap: 6px;
align-items: start;
font-size: var(--t-13);
color: var(--text-2);
padding: 4px 0;
}
.contact-methods a { color: var(--accent-strong); text-decoration: none; }
.contact-methods a:hover { text-decoration: underline; }
.contact-notes { margin-top: 20px; color: var(--text-2); white-space: pre-wrap; }
.content[data-screen="contacts"] { display: flex; flex-direction: column; overflow: hidden; }
/* ---- iCloud Drive ---------------------------------------------------------------
A file browser: a path you can walk back along, then rows of what is here. */
.drive { display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* The list fills the pane, as Finder's does; held to 96ch it left most of a wide window empty. */
.drive > * { width: 100%; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; min-width: 0; }
.crumb {
border: 0;
background: none;
color: var(--text-2);
font: inherit;
font-size: var(--t-13);
padding: 0 4px;
border-radius: 5px;
cursor: pointer;
}
.crumb:hover { background: var(--fill); color: var(--text); }
/* The folder open is the pane's title (PaneTitle); the path back sits small above it. */
.pane-title h1 > .crumb { padding: 0; font: inherit; letter-spacing: inherit; color: var(--text); text-align: start; cursor: default; }
.pane-title h1 > .crumb:hover { background: none; }
.crumb:focus-visible { outline: var(--focus-ring); outline-offset: 1px; }
.crumb-sep { color: var(--text-3); padding: 0 1px; }
.drive-rows { list-style: none; margin: 8px 0 0; padding: 0; overflow-y: auto; min-height: 0; }
/* A folder of thousands lays out and paints only the rows in view. */
.drive-rows:not(.is-grid) > li[data-id] { content-visibility: auto; contain-intrinsic-size: auto 39px; }
.drive-col-turn { white-space: pre; }
/* Quick Look: Apple's picture of the file, large, on a sheet that fades in (lib/fade.ts). */
.drive-peek { width: min(520px, 92vw); max-height: 88vh; align-items: center; text-align: center; gap: 6px; }
.drive-peek-face {
display: grid; place-items: center; width: 160px; height: 160px; margin: 6px auto 10px;
border-radius: 22px; background: color-mix(in srgb, var(--text) 6%, transparent);
}
.drive-peek-face > svg { transform: scale(4); }
.drive-peek-face.has-thumb { width: auto; height: auto; max-width: 100%; background: none; }
.drive-peek-face.has-thumb img {
display: block; max-width: min(460px, 84vw); max-height: 52vh; min-width: 160px; object-fit: contain;
border-radius: 8px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 0 var(--hairline) rgba(0, 0, 0, 0.2);
}
.drive-peek-name { margin: 0; font-size: var(--t-15); font-weight: 600; overflow-wrap: anywhere; }
.drive-peek-facts { margin: 0; color: var(--text-2); font-size: var(--t-13); }
.drive-peek-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
/* Grid, as icloud.com and Finder's icon view lay it out: a large mark, the name under it in
two lines at most, the size and date left to List. Actions stay on hover, over the tile. */
.drive-rows.is-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
gap: 8px;
align-content: start;
}
.drive-rows.is-grid .drive-row { position: relative; flex-direction: column; border-bottom: 0; height: 100%; }
.drive-rows.is-grid .drive-row:hover { background: var(--fill-hover); }
.drive-rows.is-grid .drive-row-hit {
display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
gap: 8px; padding: 14px 8px 10px; text-align: center; height: 100%;
}
.drive-rows.is-grid .drive-badge { height: 52px; transform: scale(2.1); transform-origin: center; }
.drive-rows.is-grid .drive-name {
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; white-space: normal; word-break: break-word; font-size: var(--t-13); line-height: 1.3;
}
.drive-rows.is-grid .drive-meta { display: none; }
.drive-rows.is-grid .drive-row-actions {
position: absolute; top: 6px; right: 6px; padding: 0; background: none;
}
/* In Grid the ⋯ is a small round button at the tile's corner, never a bar across its face. */
.drive-rows.is-grid .drive-action {
width: 22px; height: 22px; padding: 0; border-radius: 50%;
background: color-mix(in srgb, var(--sheet, var(--bg)) 88%, transparent);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* A row is the clickable hit area plus a strip of actions that only earn their space on
hover — the same shape reminders and lists already use, so Drive reads as one app rather
than a bolted-on browser. */
.drive-row {
position: relative;
display: flex;
align-items: center;
gap: 6px;
width: 100%;
border-radius: var(--r-field);
}
/* The line under a row is drawn apart from it, inset from its rounded ends: as a border of the
rounded row it curved up into both corners. None under a selection, which has its own edge. */
.drive-rows:not(.is-grid) .drive-row:not(.drive-head, .drive-row-new)::after {
content: "";
position: absolute;
left: 10px;
right: 10px;
bottom: 0;
height: var(--hairline);
background: var(--separator);
pointer-events: none;
}
.drive-rows:not(.is-grid) .drive-row.is-selected::after { visibility: hidden; }
.drive-row:hover { background: var(--fill-hover); }
.drive-row.is-busy { opacity: 0.6; }
.drive-row-hit {
display: grid;
grid-template-columns: 40px minmax(0, 1fr) minmax(0, 170px) 80px 120px;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
border: 0;
background: none;
color: var(--text);
font: inherit;
font-size: var(--t-13);
text-align: left;
padding: 8px 10px;
cursor: pointer;
}
.drive-row-hit:disabled { cursor: default; }
.drive-row-hit:focus-visible { outline: var(--focus-ring); outline-offset: -1px; }
/* One width for every row, whether it has three actions or four, so the columns before it
line up down the list — a file's extra Download had pushed its size and date left. */
.drive-row-actions {
display: flex;
flex: none;
justify-content: flex-end;
gap: 1px;
width: calc(4 * 26px + 3px + 6px);
padding-right: 6px;
opacity: 0;
}
.drive-row:hover .drive-row-actions,
.drive-row-actions:focus-within { opacity: 1; }
.drive-row-actions.is-shown { opacity: 1; gap: 6px; }
/* Renaming in place, and creating a folder, share the same field treatment. */
.drive-rename-input,
.drive-row-new input {
flex: 1;
font: inherit;
font-size: var(--t-13);
color: var(--text);
background: var(--field);
border: 1px solid var(--accent);
border-radius: var(--r-field);
padding: 4px 8px;
outline: none;
box-shadow: 0 0 0 3px var(--accent-ring);
}
.drive-row-new {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 10px;
border-bottom: var(--hairline) solid var(--separator);
}
/* The icon carries its own colour and needs no plate behind it. */
.drive-badge {
display: grid;
place-items: center;
height: 22px;
}
/* A button whose icon sits with its label rather than replacing it. */
.with-glyph {
display: inline-flex;
align-items: center;
gap: 6px;
}
/*
* Files dragged over the window land in the folder that is open, so the whole surface says so
* rather than asking the person to find a target.
*/
.drive.is-dropping::after {
content: "Drop to upload here";
position: absolute;
inset: 8px;
z-index: 3;
display: grid;
place-items: center;
border-radius: var(--r-plateau);
border: 2px dashed var(--accent-ring);
/* A tint, not a blur: a window-sized backdrop blur is WebKitGTK's costliest frame. */
background: color-mix(in srgb, var(--accent-tint) 80%, transparent);
color: var(--accent-strong);
font-size: var(--t-13);
font-weight: 600;
pointer-events: none;
}
.drive { position: relative; }
.drive-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-meta { color: var(--text-2); font-size: var(--t-11); font-variant-numeric: tabular-nums; }
.content[data-screen="drivews"] { display: flex; flex-direction: column; overflow: hidden; }
/*
* A narrow window, as Files on iPhone sets a row: the name gets the width, with its size and
* date beneath it, and the row's actions float over its far end when it is pointed at rather
* than holding a strip of the width empty when it is not.
*/
@container (max-width: 560px) {
.drive-row { position: relative; }
/* Set as Files on iPhone sets a row: name, then size and date; the kind has no place. */
.drive-row-hit > .drive-kind { display: none; }
.drive-row-hit {
grid-template-columns: 28px auto minmax(0, 1fr);
grid-template-areas: "badge name name" "badge size date";
/* Spacing on the cells rather than the grid, so a row with no size (an app's folder)
starts its date where the name starts instead of a gap further on. */
column-gap: 0;
row-gap: 1px;
padding: 7px 8px;
}
.drive-row-hit > .drive-badge { margin-right: 10px; }
.drive-row-hit > .drive-meta:not(.drive-kind):not(:last-child):not(:empty) { margin-right: 4px; }
.drive-row-hit > .drive-badge { grid-area: badge; }
.drive-row-hit > .drive-name { grid-area: name; }
.drive-row-hit > .drive-meta:not(.drive-kind):not(:last-child) { grid-area: size; }
.drive-row-hit > .drive-meta:last-child { grid-area: date; }
.drive-row-hit > .drive-meta:not(.drive-kind):not(:last-child):not(:empty)::after { content: " ·"; }
.drive-row-actions {
width: auto;
position: absolute;
top: 50%;
right: 4px;
padding: 2px;
border-radius: 8px;
background: var(--bg);
transform: translateY(-50%);
pointer-events: none;
}
.drive-row:hover .drive-row-actions,
.drive-row-actions:focus-within { pointer-events: auto; }
}
.cal-form-actions {
grid-column: 1 / -1;
display: flex;
align-items: center;
gap: 8px;
margin-top: 2px;
}
/* ── Pop-up button ──────────────────────────────────────────────────────────────────────
A native select renders its menu from the operating system, which on Linux is a square
grey list with a blue band through it. This is the macOS shape instead: a compact
control, a menu that belongs to the window, and a checkmark against the current choice. */
.picker { position: relative; display: inline-flex; min-width: 0; }
.picker-button {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
min-width: 0;
font: inherit;
font-size: var(--t-13);
color: var(--text);
/* macOS 27's pop-up button: a soft fill with no outline, rounded concentric with the
popover or panel it sits in. */
background: var(--fill);
border: 0;
border-radius: 8px;
box-shadow: none;
min-height: var(--h-control);
padding: 4px 9px;
cursor: pointer;
text-align: left;
}
.picker-button:hover:not(:disabled) { background: var(--fill-raised-hover); }
.picker-button:disabled { color: var(--text-3); cursor: default; }
/* The shell's one focus ring (tokens.css): the translucent accent glow it had read at 1.5:1. */
.picker-button:focus-visible { outline: var(--focus-ring); outline-offset: 1px; }
.picker-value {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.picker-chevron {
flex: none;
color: var(--text-3);
font-size: var(--t-11);
line-height: 1;
margin-top: -3px;
}
.picker-menu {
position: fixed;
z-index: 80;
overflow-y: auto;
margin: 0;
padding: 5px;
list-style: none;
border-radius: var(--r-float);
background: var(--glass-thick);
-webkit-backdrop-filter: var(--glass-regular-filter);
backdrop-filter: var(--glass-regular-filter);
box-shadow: var(--glass-float);
color: var(--text);
/* No opening animation, as a macOS menu has none: it is simply there. Animating it in
made WebKitGTK build a compositing layer on the first frame, and the menu flashed. */
}
@keyframes picker-in {
from { opacity: 0; transform: translateY(-3px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .picker-menu { animation: none; } }
/* Rows as macOS 27 draws a menu's: 24px, the highlight rounded to 8. */
.picker-menu li {
display: flex;
align-items: center;
gap: 6px;
min-height: 24px;
padding: 0 12px 0 4px;
border-radius: 8px;
font-size: var(--t-13);
white-space: nowrap;
cursor: pointer;
outline: none;
}
/* A menu's highlight is the system's, whichever app it is in — as every Mac menu's is. */
.picker-menu li.is-active { background: var(--sys-blue-deep); color: #fff; }
.picker-menu li.is-active .picker-check { color: #fff; }
/* A rule between groups of choices, as Reminders' Repeat menu sets Never and Custom apart. */
.picker-menu li.has-divider { position: relative; margin-top: 11px; }
.picker-menu li.is-disabled { color: var(--text-3); cursor: default; }
.picker-menu li.has-divider::before {
content: "";
position: absolute;
top: -6px;
left: 8px;
right: 8px;
height: var(--hairline);
background: var(--separator);
pointer-events: none;
}
.picker-check {
flex: none;
width: 14px;
text-align: center;
color: var(--accent-strong);
font-size: var(--t-11);
}
.picker-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* ── Editing a contact ──────────────────────────────────────────────────────────────────
The card and the editor are the same surface: the same measure, the same rhythm, so
pressing Edit changes what you can do rather than where you are. */
.contact-form {
display: flex;
flex-direction: column;
gap: 12px;
max-width: 460px;
}
.contact-form h2 { margin: 0; font-size: var(--t-17); }
.contact-names {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
gap: 8px 10px;
}
.contact-form label,
.contact-notes-field {
display: flex;
flex-direction: column;
gap: 3px;
font-size: var(--t-11);
color: var(--text-2);
min-width: 0;
}
.contact-form input,
.contact-form textarea {
font: inherit;
font-size: var(--t-13);
color: var(--text);
background: var(--field);
border: var(--hairline) solid var(--field-edge);
border-radius: var(--r-field);
box-shadow: var(--shadow-field);
padding: 5px 7px;
min-width: 0;
outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-ring);
}
.contact-form textarea { resize: vertical; }
.contact-method-rows {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
/* Kind, label, value, remove — the shape of one line of a card. */
.contact-method-rows li {
display: grid;
grid-template-columns: 112px 112px minmax(0, 1fr) auto;
gap: 6px;
align-items: center;
}
.contact-kind, .contact-label-pick { width: 100%; }
/* Apple's label picked from a list; a custom one typed under it, in the same column. */
.contact-label-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* A postal address being written: its kind and label on the line of every other detail, the
parts beneath under the label, as Contacts on the Mac sets them — street over as many lines
as it takes, then town, region and postcode side by side, then the country. */
.contact-address-rows { padding-top: 6px; border-top: var(--hairline) solid var(--separator); }
.contact-method-rows li.contact-address-edit {
grid-template-columns: 112px 112px minmax(0, 1fr) auto;
row-gap: 6px;
align-items: center;
}
.contact-address-kind { font-size: var(--t-13); color: var(--text-2); padding-left: 8px; }
.contact-address-fields {
grid-column: 2 / 4;
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.contact-form .contact-address-street { resize: none; line-height: 1.35; }
.contact-address-line {
display: grid;
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
gap: 6px;
}
.contact-address-rows li + li { padding-top: 10px; border-top: var(--hairline) solid var(--separator); }
.contact-form-adds { display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* Under an address, the one way to see it on a map. */
.contact-maps {
display: inline-block;
margin-top: 3px;
font-size: var(--t-13);
}
.contact-postal dd { display: flex; flex-direction: column; align-items: flex-start; }
.move-sheet-list {
flex: 1;
min-height: 120px;
overflow-y: auto;
margin: 0;
padding: 0;
list-style: none;
border: var(--hairline) solid var(--separator);
border-radius: var(--r-plateau);
}
.move-sheet-none { padding: 10px 12px; color: var(--text-2); }
.move-sheet-row {
grid-template-columns: 28px 1fr;
padding: 7px 9px;
}
/*
* What Reminders says on an account with no lists — a new one, or one emptied out.
*
* Before this the add field simply vanished and the pane sat blank, which reads as broken
* rather than as a thing with an obvious next step.
*/
.rem-nolists {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
padding: 18px 2px 10px;
}
.rem-nolists-line {
margin: 0;
color: var(--text-2);
font-size: var(--t-13);
}
/* Read aloud but not drawn — the full wording of a repeat, where the row shows the short one. */
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
/*
* What Quince is, folded away under the sign-in button.
*
* Shut, it is the one line that was there before. Open, it is the four things somebody ought
* to know before typing an Apple ID into software a stranger wrote. A wall of warnings across
* the screen is not read, and a page nobody reads discloses nothing.
*/
.disclosure {
margin-top: 6px;
font-size: var(--t-11);
color: var(--text-2);
text-align: left;
}
.disclosure > summary {
cursor: pointer;
list-style: none;
width: fit-content;
margin: 0 auto;
padding: 4px 8px;
border-radius: 6px;
user-select: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
/* Drawn, not a ⌄ character: Segoe UI has no such glyph and Windows put a comma there. */
.disclosure > summary::after {
content: "";
display: inline-block;
width: 5px;
height: 5px;
margin: 0 0 3px 7px;
border-right: 1.5px solid currentColor;
border-bottom: 1.5px solid currentColor;
transform: rotate(45deg);
opacity: 0.7;
}
.disclosure[open] > summary::after { transform: rotate(-135deg); margin-bottom: 0; }
.disclosure > summary:hover { color: var(--text); }
.disclosure > summary:focus-visible {
outline: var(--focus-ring);
outline-offset: 1px;
}
.disclosure-body {
margin-top: 8px;
padding: 12px 14px;
border-radius: 12px;
color: var(--text-2);
font-size: var(--t-12);
background: color-mix(in srgb, var(--text) 4%, transparent);
max-height: min(210px, 34vh);
overflow-y: auto;
}
.disclosure-body p { margin: 0 0 8px; line-height: 1.5; }
.disclosure-body p:last-child { margin-bottom: 0; }
.disclosure-body strong { color: var(--text); font-weight: 600; }
.disclosure-body code {
font-size: 0.95em;
padding: 1px 4px;
border-radius: 4px;
background: color-mix(in srgb, var(--text) 8%, transparent);
}
/* ---- uploads ---------------------------------------------------------------- */
.upload-menu-wrap { position: relative; display: inline-flex; }
/* A menu, not a sheet: two choices under the button that opened them. */
.upload-menu {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 20;
display: flex;
flex-direction: column;
min-width: 150px;
padding: 5px;
border-radius: var(--r-float);
background: var(--glass-thick);
-webkit-backdrop-filter: var(--glass-regular-filter);
backdrop-filter: var(--glass-regular-filter);
box-shadow: var(--glass-float);
}
.upload-menu button {
padding: 6px 10px;
border: 0;
/* A menu's line, rounded as every menu's is (.row-menu-item). */
border-radius: 8px;
background: none;
color: var(--text);
font: inherit;
font-size: var(--t-13);
text-align: left;
cursor: default;
}
.upload-menu button:hover,
.upload-menu button:focus-visible { background: var(--accent-fill); color: var(--on-accent); outline: none; }
/* The corner list of files going up, like a browser's downloads. */
.upload-tray {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 30;
width: min(360px, calc(100vw - 32px));
max-height: min(420px, 60vh);
display: flex;
flex-direction: column;
border: 1px solid var(--glass-edge);
border-radius: var(--r-float);
/* Frosted, never blurred: it stays up over Drive's list as it scrolls (tokens.css). */
background: var(--glass-frost);
box-shadow: var(--shadow-sheet), var(--glass-specular);
overflow: hidden;
}
.upload-tray-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 12px 14px 8px;
}
.upload-tray-title { font-size: var(--t-13); font-weight: 600; }
.upload-tray-percent { color: var(--text-2); font-size: var(--t-13); font-variant-numeric: tabular-nums; }
.upload-tray > .upload-bar { margin: 0 14px 8px; }
.upload-bar.small { height: 3px; margin: 4px 0 0; }
.upload-rows { margin: 0; padding: 0 6px 8px; list-style: none; overflow-y: auto; }
.upload-row {
padding: 6px 8px;
/* Concentric with the tray: its 12px corner less the list's 6px inset. */
border-radius: calc(var(--r-float) - 6px);
}
/* A file, or a whole folder counted as one: glyph, name over its bar, how far, and its
controls — the folder's ▸ to see what in it did not upload, and ✕ while it can stop. */
.upload-line {
display: grid;
grid-template-columns: 22px minmax(0, 1fr) auto auto auto;
gap: 8px;
align-items: center;
}
.upload-state { font-variant-numeric: tabular-nums; white-space: nowrap; }
.upload-failures { margin: 6px 0 2px 30px; padding: 0; list-style: none; font-size: var(--t-11); color: var(--text-2); max-height: 160px; overflow: auto; }
.upload-failures li { padding: 2px 0; }
.upload-failures b { color: var(--text); font-weight: 600; }
.upload-glyph { display: grid; place-items: center; }
.upload-text { display: flex; flex-direction: column; min-width: 0; }
.upload-name,
.upload-where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-name { font-size: var(--t-13); }
.upload-where { color: var(--text-3); font-size: var(--t-11); }
.upload-state { color: var(--text-2); font-size: var(--t-11); font-variant-numeric: tabular-nums; }
.upload-row.is-done .upload-state { color: var(--accent-strong); font-size: var(--t-13); font-weight: 700; }
.upload-row.is-failed .upload-state,
.upload-row.is-failed .upload-where { color: var(--danger); }
/* Downloads and uploads at once: stacked in the one corner, downloads above, never over each
other. The column takes no clicks of its own, so the list behind its gaps still does. */
.trays {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 30;
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 10px;
pointer-events: none;
}
.trays > .upload-tray { position: static; pointer-events: auto; }
.trays > .upload-tray:not(:only-child) { max-height: min(320px, 40vh); }
.download-actions { display: flex; gap: 4px; }
.download-show { font-size: var(--t-11); padding: 2px 8px; white-space: nowrap; }
/* A screen that failed to draw, in place of the screen — the rest of the app carries on. */
.screen-failed { max-width: 46ch; margin: 64px auto 0; text-align: center; color: var(--text-2); }
.screen-failed p { margin: 0 0 12px; font-size: var(--t-13); }
/* The birthday sits on a line of its own shape: its name where a kind goes, the date across
the label and value columns. */
.contact-birthday-field {
display: grid;
grid-template-columns: 112px minmax(0, 1fr) auto;
gap: 6px;
align-items: center;
}
/* File Info: a calm sheet, the mark large, the facts in two aligned columns. */
.info-sheet { width: min(400px, calc(100vw - 32px)); padding: 0 0 8px; }
.info-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px 16px; border-bottom: var(--hairline) solid var(--separator); }
.info-head h2 { margin: 0; font-size: var(--t-15); font-weight: 600; }
.info-done { position: absolute; right: 10px; font-weight: 600; }
.info-mark { display: grid; place-items: center; margin: 18px auto 10px; width: 96px; height: 96px; border-radius: 16px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.info-mark > * { transform: scale(2.6); }
.info-name { margin: 0 20px 14px; text-align: center; font-weight: 600; word-break: break-word; }
.info-rows { margin: 0 20px; }
.info-rows > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: var(--hairline) solid var(--separator); font-size: var(--t-13); }
.info-rows dt { color: var(--text-2); }
.info-rows dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
/* Row menus: macOS's own shape — a rounded sheet, items the width of it, a hairline between
groups, the highlight in the accent, Delete in red. */
/* Menus as macOS 27 draws them: 12px corners, 24px lines with an 8px highlight in the
system blue, ▸ beside a line that leads on to a submenu. */
.row-menu {
position: fixed; z-index: 60; min-width: 200px; padding: 5px;
display: flex; flex-direction: column; outline: none;
border-radius: var(--r-float);
background: var(--glass-thick);
-webkit-backdrop-filter: var(--glass-regular-filter);
backdrop-filter: var(--glass-regular-filter);
box-shadow: var(--glass-float);
/* Opens and closes at once, as a macOS menu does, and as the pop-up's menu and search's
results do — one rule for every menu. A 120ms fade-and-drop was tried here and flashed on
his WebKitGTK (the compositor layer it needs is built on the first frame). */
}
.row-menu-item {
display: flex; align-items: center; gap: 12px; width: 100%; min-height: 24px; padding: 0 12px;
border: 0; border-radius: 8px; background: none; box-shadow: none; color: var(--text);
font: inherit; font-size: var(--t-13); text-align: left; cursor: default; white-space: nowrap;
}
.row-menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* The check column: a Mac menu marks a choice that is on with a check before its name. */
.row-menu-check { flex: none; width: 12px; margin: 0 -6px 0 -4px; font-size: var(--t-12); font-weight: 600; text-align: center; }
.row-menu-chevron { flex: none; margin-right: -4px; font-size: var(--t-15); line-height: 1; color: var(--text-2); }
.row-menu-item.is-active { background: var(--sys-blue-deep, #0068d6); color: #fff; }
.row-menu-item.is-active .row-menu-chevron { color: #fff; }
/* The danger red that reads on a menu at 4.5:1; the system red read at 3.6:1. */
.row-menu-item.is-danger { color: var(--danger); }
.row-menu-item.is-danger.is-active { background: var(--danger-deep, #c1121f); color: #fff; }
.row-menu-sep { height: var(--hairline); margin: 4px 8px; background: var(--separator); }
.drive-more { font-size: 0.5625rem; letter-spacing: 1px; }
.drive-row.is-menu { background: var(--fill-hover); }
.drive-row.is-menu .drive-row-actions { opacity: 1; }
/* Selected, as Finder marks it: the accent behind the row, its text in white. */
/* The deep accent: white names on the system blue read at 3.5:1. */
.drive-row.is-selected { background: var(--accent-fill, #0068d6); }
.drive-row.is-selected .drive-name, .drive-row.is-selected .drive-meta { color: #fff; }
.drive-rows.is-grid .drive-row.is-selected { background: color-mix(in srgb, var(--sys-blue, #0a84ff) 28%, transparent); box-shadow: inset 0 0 0 2px var(--sys-blue, #0a84ff); }
.drive-rows.is-grid .drive-row.is-selected .drive-name { color: var(--text); }
/* With focus elsewhere the selection stays, quietly — grey, the text its own colour. */
/* "Focused" is a class the list sets as the focus comes into it and leaves, not :focus-within:
WebKit restyled every row under a :focus-within ancestor at each move of the focus between
rows — 130 ms an arrow press in a folder of thousands. The same for Contacts' list. */
.drive-rows:not(.is-grid):not(.is-focused) .drive-row.is-selected { background: var(--fill-selected); }
.drive-rows:not(.is-grid):not(.is-focused) .drive-row.is-selected .drive-name { color: var(--text); }
.drive-rows:not(.is-grid):not(.is-focused) .drive-row.is-selected .drive-meta { color: var(--text-2); }
.drive-rows:not(.is-grid):not(.is-focused) .drive-row.is-selected .drive-more { color: var(--text); }
.drive-rows:not(.is-grid):not(.is-focused) .drive-row.is-selected .drive-badge > svg { filter: none; }
/* Apple's own picture of a file: small in a list, the tile's face in Grid, as icloud.com. */
.drive-thumb { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 var(--hairline) rgba(0,0,0,0.25); background: #fff; }
.drive-rows.is-grid .drive-badge:has(.drive-thumb) { transform: none; height: 76px; }
.drive-rows.is-grid .drive-thumb { width: 88px; height: 72px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.35), 0 0 0 var(--hairline) rgba(0,0,0,0.2); }
.info-mark.has-thumb { background: none; width: auto; height: auto; }
.info-mark.has-thumb > * { transform: none; }
.info-mark.has-thumb img { max-width: 160px; max-height: 140px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
/* On the selection's blue an icon turns white, as Finder's do; a blue folder on blue vanished. */
.drive-rows:not(.is-grid) .drive-row.is-selected .drive-badge > svg { filter: brightness(0) invert(1); }
.drive-rows:not(.is-grid) .drive-row.is-selected .drive-more { color: #fff; }
/* In Grid the ⋯ sits on its own light or dark disc, so its dots take the text colour. */
.drive-rows.is-grid .drive-more { color: var(--text); }
/* A time typed as said: the width of "12:45 PM", right-aligned figures, as macOS's. */
.time-field { width: 10.5ch; text-align: center; font-variant-numeric: tabular-nums; }
/* The letter a run of names begins with, as Contacts heads its list. */
.contact-letter {
position: sticky; top: 0; z-index: 1; padding: 10px 10px 4px;
background: var(--bg); color: var(--text-3);
font-size: var(--t-13); font-weight: 600;
border-bottom: var(--hairline) solid var(--separator);
}
/* The column headings, in the rows' own grid, quiet until one is the order. */
.drive-head { border-bottom: var(--hairline) solid var(--separator); border-radius: 0; }
.drive-head:hover { background: none; }
.drive-head .drive-row-hit { cursor: default; padding-block: 4px; }
.drive-col { padding: 0; border: 0; background: none; box-shadow: none; color: var(--text-3); font: inherit; font-size: var(--t-13); text-align: left; cursor: pointer; }
.drive-col.is-on { color: var(--text-2); font-weight: 600; }
.drive-col:hover { color: var(--text); }
.drive-kind { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Drive's bar: the title takes what room there is; the controls wrap beneath only when the
window is too narrow for both. */
.drive-bar { flex-wrap: wrap; row-gap: 10px; margin-bottom: 10px; }
.drive-bar .crumbs { display: flex; flex-wrap: wrap; margin-left: -4px; }
.drive-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.drive-tools .primary { min-height: var(--h-tool); }
/* Sized by Drive's own width, not the window's: half a screen, a folded sidebar, a wide
one — each lays out the same for the same room. */
.drive { container-type: inline-size; }
@container (max-width: 880px) {
/* Too narrow for the named controls beside the name: icons alone, their names kept for
anyone who cannot see them (title, aria). */
.drive-bar .with-glyph:not(.primary) { font-size: 0; gap: 0; padding-inline: 7px; }
.drive-bar .with-glyph:not(.primary) svg { font-size: initial; }
}
/* Narrower, the kind column goes (above the narrowest, which sets rows as Files on iPhone). */
@container (min-width: 561px) and (max-width: 640px) {
.drive-kind, .drive-col:nth-of-type(2) { display: none; }
.drive-row-hit { grid-template-columns: 40px minmax(0, 1fr) 80px 110px; }
}
@container (max-width: 560px) {
/* Too narrow for both: the controls go under the name, starting at its edge. */
.drive-tools { width: 100%; justify-content: flex-start; }
/* Rows set as Files on iPhone sets them have no columns to head; the sort menu stays. */
.drive-head { display: none; }
}
/* In the text red: the system red as 11px text read at 3.4:1 on the window. */
.drive-meta.is-soon { color: var(--danger); }
/* A folder or a folder up the path with something held over it, as Finder lights one. */
.drive-row.is-drop { background: color-mix(in srgb, var(--sys-blue, #0a84ff) 16%, transparent); box-shadow: inset 0 0 0 2px var(--sys-blue, #0a84ff); }
.crumb.is-drop { background: color-mix(in srgb, var(--sys-blue, #0a84ff) 16%, transparent); border-radius: 5px; }
/* 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; }
/* ── The account, at the foot of the sidebar ──────────────────────────────────────────── */
.sidebar-account {
display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px;
padding: 6px 8px; border: 0; border-radius: var(--r-field); background: none;
color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.sidebar-account:hover { background: var(--fill-hover); transition: background-color var(--motion-hover) var(--motion-ease-out); }
.sidebar-account:active:not([aria-current="true"]) { background: var(--fill-press); transition: none; }
.sidebar-account[aria-current="true"] { background: var(--fill-selected); transition: none; }
.sidebar-account:focus-visible { outline: var(--focus-ring); outline-offset: -1px; }
.sidebar-account-name { font-size: var(--t-13); font-weight: 590; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Apple's monogram: initials on a soft grey gradient disc. */
.account-avatar {
flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
background: linear-gradient(180deg, #a5a5ab, #85858b); color: #fff;
font-size: var(--t-12); font-weight: 600; letter-spacing: 0.02em;
box-shadow: inset 0 var(--hairline) 0 rgba(255, 255, 255, 0.35);
}
.account-avatar.is-large { width: 56px; height: 56px; font-size: 1.3125rem; }
.account-avatar { overflow: hidden; position: relative; }
/* A face over its initials (components/Face): the photo fades in once decoded, or is simply
there when it was already to hand. */
.avatar { position: relative; overflow: hidden; }
.face-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.face-photo.is-loading { opacity: 0; }
/* Shown the moment it is ready, never faded: a fade here was an animation, and an animation
starts again whenever its screen comes back into view — every face in Contacts faded in
anew on every visit, a flicker (and fades flicker on WebKitGTK's compositor anyway). */
.face-photo.is-ready, .face-photo.is-instant { opacity: 1; }
@media (min-width: 901px) {
.is-rail .sidebar-foot { display: flex; }
.is-rail .sidebar-account { justify-content: center; padding-inline: 0; }
.is-rail .sidebar-account-text { display: none; }
}
/* ── Settings, as System Settings lays it out ─────────────────────────────────────────── */
.settings { max-width: 640px; margin: 0 auto; padding-bottom: 40px; }
.content .settings-title { margin: 0 0 18px; font-size: var(--t-28); font-weight: 700; letter-spacing: -0.02em; }
.settings-heading { margin: 22px 12px 6px; font-size: var(--t-13); font-weight: 600; color: var(--text-2); }
.settings-group {
border-radius: 12px;
background: color-mix(in srgb, var(--text) 4%, transparent);
/* Edges and hairlines as borders, not inset shadows: WebKit repainted every shadow on each
frame of a scroll, and Settings stuttered (25ms frames, 16ms without). */
border: var(--hairline) solid color-mix(in srgb, var(--text) 8%, transparent);
overflow: hidden;
}
.settings-row {
display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 14px;
font-size: var(--t-13);
}
/* Separators inset past the icon, as Apple draws them between rows of a group. */
.settings-row + .settings-row { border-top: var(--hairline) solid color-mix(in srgb, var(--text) 7%, transparent); }
.settings-row.is-stacked { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
.settings-row-line { display: flex; justify-content: space-between; gap: 10px; }
.settings-label { flex: 1; min-width: 0; }
.settings-hint { color: var(--text-2); font-size: var(--t-11); line-height: 1.4; }
.settings-value { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; }
.settings-value.is-trouble { color: var(--danger); max-width: 60%; }
/* A section whose figure belongs to all of it carries it on its heading's line. */
.settings-heading-line { display: flex; justify-content: space-between; gap: 10px; margin-right: 14px; }
.settings-heading-value { font-weight: 400; font-variant-numeric: tabular-nums; }
/* The mark of a row no app's icon fits: a plain tile the apps' icons' size and shape. */
.settings-glyph {
flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
color: #fff; background: linear-gradient(#a1a1a6, #8e8e93);
}
.settings-stack .settings-hint.settings-hint-wrap { white-space: normal; }
.settings-row > .quiet { flex: none; }
.settings-value { flex: none; }
.settings-note { margin: 8px 12px 0; color: var(--text-2); font-size: var(--t-11); }
.settings-account { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.settings-account-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.settings-account-text strong { font-size: var(--t-17); font-weight: 600; }
.settings-account-text span { color: var(--text-2); font-size: var(--t-13); overflow: hidden; text-overflow: ellipsis; }
.settings-account-text .settings-account-note { font-size: var(--t-12); overflow: visible; text-overflow: clip; text-wrap: pretty; }
.storage-bar { height: 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.storage-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
/* Advanced Data Protection with web access off: one plain answer, Apple's own switch. */
.web-access-off { max-width: 520px; margin: 12vh auto 0; text-align: center; }
.web-access-off h1 { font-size: var(--t-22); font-weight: 700; margin: 0 0 12px; }
.web-access-off p { color: var(--text-2); font-size: var(--t-15); line-height: 1.5; margin: 0 0 12px; }
.web-access-off b { color: var(--text); font-weight: 600; }
/* Advanced Data Protection waiting on an approval (components/DeviceApproval): the same calm
page, with the device it is waiting on above it and where it stands under it. */
.device-approval-glyph { display: block; margin: 0 auto 14px; color: var(--accent); }
.web-access-off .device-approval-status { display: flex; align-items: center; justify-content: center; gap: 8px;
min-height: 1.5em; color: var(--text-2); font-size: var(--t-13); margin: 4px 0 18px; }
.device-approval-notice .spinner { flex: none; margin-top: 2px; }
/* A new folder in the grid, named as Finder names one: the field fits its cell under the
icon, its text centred. At the field's own width it overflowed the 112px cell and was cut
off at the left. */
.drive-rows.is-grid .drive-row-new { flex-direction: column; justify-content: flex-start; gap: 8px; padding: 10px 6px; border-bottom: 0; }
.drive-rows.is-grid .drive-row-new input { flex: none; width: 100%; min-width: 0; text-align: center; font-size: var(--t-11); padding: 3px 4px; }
/* Uploads that can still be stopped have a ✕; the tray's Cancel stops every one of them. */
.upload-tray-actions { display: flex; align-items: center; gap: 10px; }
.upload-row.is-cancelled .upload-name { color: var(--text-3); }
/* A kept screen's box is the screen's own (it lays out as before, straight in the content);
one out of sight is not drawn at all. */
.screen-slot { display: contents; }
.screen-slot[hidden] { display: none !important; }
/* A label with a line under it: what the row is, then where or why. */
.settings-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-stack .settings-hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A line to copy into another program's startup: selected whole with one click. */
.settings-command { display: block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; font-size: var(--t-11);
background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); user-select: all;
white-space: normal; word-break: break-all; cursor: text; }
.settings-hint.is-trouble { color: var(--danger); white-space: normal; }
/* ---- Search across everything (components/GlobalSearch) ---------------------------------
A field at the head of the sidebar, as Finder's; what it finds over the window under it,
grouped by app as Spotlight groups it. */
.gsearch { margin: 0 0 8px; }
.gsearch-panel {
position: fixed; z-index: 70; width: min(440px, calc(100vw - 24px)); overflow: hidden; border-radius: 12px;
/* Solid, as a menu of results must be: what lies under it must never read through. */
background: var(--sheet, var(--bg)); color: var(--text);
/* One soft shadow and a drawn edge — not --glass-float's five layers with an inset
highlight: WebKit painted those again on every frame the list scrolled (16 ms a frame
here, 20–23 with them). */
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--separator);
}
/* What scrolls is inside the shadow, never the surface that casts it. */
.gsearch-results { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; }
.gsearch-group + .gsearch-group { margin-top: 6px; padding-top: 6px; border-top: var(--hairline) solid var(--separator); }
.gsearch-group h3 {
display: flex; align-items: center; gap: 6px; height: 28px; margin: 0 0 2px; padding: 0 6px 0 8px;
font-size: var(--t-11); font-weight: 600; color: var(--text-2);
}
/* Show All: the app's heading stays at the top of the list as it scrolls under it. */
.gsearch-group h3.is-stuck {
position: sticky; top: -6px; z-index: 1; height: 34px; margin: -6px -6px 0; padding: 6px 12px 0 14px;
background: var(--sheet, var(--bg)); border-bottom: var(--hairline) solid var(--separator);
}
.gsearch-group h3 .app-icon { width: 16px; height: 16px; }
.gsearch-count { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.gsearch-more {
margin-left: auto; padding: 2px 7px; border: 0; border-radius: 5px; background: none;
font: inherit; font-weight: 500; color: var(--accent-strong, var(--accent)); cursor: default;
}
.gsearch-more:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.gsearch-more:focus-visible { outline: var(--focus-ring); outline-offset: 1px; }
.gsearch-row {
display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 10px; border: 0;
/* Concentric with the panel: its 12px corner less the results' 6px inset. */
border-radius: calc(var(--r-float) - 6px); background: none; color: inherit; font: inherit; text-align: start; cursor: default;
}
/* White on the deep accent, as a filled control is drawn (tokens.css): --on-accent is the text
for the bright fill, and on Notes' gold-deep its near-black read at 3.3:1. */
.gsearch-row.is-at { background: var(--accent-deep); color: #fff; }
.gsearch-more.is-at { background: var(--accent-deep); color: #fff; }
.gsearch-row.is-waiting { pointer-events: none; }
.gsearch-pic { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; flex: none; background: var(--fill, color-mix(in srgb, var(--text) 6%, transparent)); }
.gsearch-pic.is-round { border-radius: 50%; }
.gsearch-initials {
display: grid; place-items: center; font-size: var(--t-11); font-weight: 600; letter-spacing: 0.02em;
color: #fff; background: linear-gradient(180deg, #a5abb6, #858b96);
}
.gsearch-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.gsearch-title { font-size: var(--t-13); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsearch-detail { font-size: var(--t-11); line-height: 1.3; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsearch-when { flex: none; max-width: 40%; font-size: var(--t-11); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Where the typed words fall: bold, as Spotlight marks them, in the row's own colour. */
.gsearch-row mark { background: none; color: inherit; font-weight: 650; }
.gsearch-detail mark { color: var(--text); }
.gsearch-row.is-at :is(.gsearch-detail, .gsearch-when) { color: rgba(255, 255, 255, 0.92); }
.gsearch-row.is-at mark { color: #fff; }
/* Folded to icons: a magnifier in the rail; the field comes out over the window beside it,
drawn in the top layer (the sidebar clips what leaves it). */
.gsearch.is-folded { display: flex; justify-content: center; }
.gsearch-out {
position: fixed; z-index: 70; width: 240px; border-radius: var(--r-field, 8px);
background: var(--sheet, var(--bg)); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--separator);
}
.gsearch-none { margin: 0; padding: 14px 10px; font-size: var(--t-13); color: var(--text-2); text-align: center; }
/* ---- a session Apple signed out -------------------------------------------- */
/* One line across the top of the window, over the library — never in place of it: a toast
(kit.css) that stays, at the top since it is about the whole window, not one app. */
/* Centred by auto margins, not translate(-50%): half an odd width put every letter of it on a
half pixel. */
.lapsed { position: fixed; top: 10px; left: 0; right: 0; width: fit-content; margin-inline: auto; z-index: 50; max-width: calc(100vw - 32px); padding-right: 5px; }
.lapsed > button { min-height: 26px; padding-inline: 12px; }
/* ---- the sidebar's foot: freshness, then the account ------------------------- */
.sidebar-foot-stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* The freshness line is the update control, as a whole: quiet text that, under the pointer,
says what a click does — no extra glyph standing apart in the corner. */
.sidebar-sync {
/* Lined up with the account below: the dot on the avatar's centre (8px in, 30px wide), the
words on the name's edge (8 + 30 + 9). */
position: relative; display: flex; align-items: center; gap: 21px; min-width: 0;
min-height: 24px; min-width: 24px;
padding: 4px 8px 4px 20px; border: 0; border-radius: var(--r-field); background: none; text-align: left;
color: var(--text-2); font: inherit; font-size: var(--t-11); cursor: default;
}
.sidebar-sync-text, .sidebar-sync-now { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-sync-now { position: absolute; left: 47px; right: 8px; opacity: 0; color: var(--text); }
.sidebar-sync:hover:not(:disabled) { background: var(--fill-hover); }
.sidebar-sync:hover:not(:disabled) .sidebar-sync-text { opacity: 0; }
.sidebar-sync:hover:not(:disabled) .sidebar-sync-now { opacity: 1; }
.sidebar-sync:active:not(:disabled) { background: var(--fill-press); }
.sidebar-sync:focus-visible { outline: var(--focus-ring); outline-offset: -1px; }
.sidebar-sync.is-trouble { color: var(--danger); }
/* Working: the dot becomes a small ring turning in place — the same spot, the same size. */
.sidebar-sync.is-working .sync-dot {
background: none; border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent);
border-top-color: var(--text-2); animation: sync-spin 800ms linear infinite;
}
@media (prefers-reduced-motion: reduce) { .sidebar-sync.is-working .sync-dot { animation: none; opacity: 0.6; } }
.sidebar-foot-stack .sidebar-account { align-items: center; }
.sidebar-foot-stack .sidebar-account-name { flex: 1; min-width: 0; }
.is-rail .sidebar-sync { justify-content: center; padding-inline: 0; }
.is-rail .sidebar-sync-text, .is-rail .sidebar-sync-now { display: none; }
.is-rail .sidebar-foot-stack .sidebar-account-name { display: none; }
/* A session no keyring would keep: one quiet line under who is signed in, the whole sentence
in Settings. */
.sidebar-not-kept {
margin: 0; padding: 0 8px 0 47px; color: var(--text-2); font-size: var(--t-11);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.is-rail .sidebar-not-kept { display: none; }
.sidebar .status-line { padding: 4px 8px; font-size: var(--t-11); }
.drive-bar .drive-title { flex: 1 1 14ch; }
/* Photos Cache: the cap as a ruler of the sizes offered — the native slider for the hand and the
keys, its stops named under it, each placed under the slider's own position for it. */
.cap-ruler { --thumb: 18px; display: flex; flex-direction: column; gap: 2px; }
.cap-ruler input[type="range"] { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cap-ruler-stops { position: relative; height: 16px; margin: 0 calc(var(--thumb) / 2); }
.cap-ruler-stops button {
position: absolute; top: 0; transform: translateX(-50%);
padding: 0 2px; border: 0; background: none; cursor: pointer;
color: var(--text-2); font: inherit; font-size: var(--t-11); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cap-ruler-stops button.is-here { color: var(--text); font-weight: 600; }
/* ── Contacts: every field, the photo, duplicates ─────────────────────────────────────────
The editor grows by what a card holds — a nickname or a job title appears only once it is
there or asked for — so the common card stays as short as it was. */
.contact-form-head { display: flex; align-items: center; gap: 14px; }
.contact-photo-edit {
position: relative; padding: 0; border: 0; background: none; border-radius: var(--r-pill);
cursor: pointer; flex: none;
}
.contact-photo-edit:focus-visible { outline: var(--focus-ring); outline-offset: 3px; }
.contact-photo-badge {
position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; display: grid;
place-items: center; border-radius: var(--r-pill); background: var(--bg); color: var(--text-2);
box-shadow: 0 0 0 var(--hairline) var(--separator), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.contact-photo-edit:hover .contact-photo-badge { color: var(--text); }
.contact-kind-fixed { font-size: var(--t-13); color: var(--text-2); padding-left: 8px; }
.date-field { display: flex; gap: 6px; min-width: 0; }
.date-field .date-field-month { flex: 1 1 auto; min-width: 0; }
.contact-form .date-field-day { flex: none; width: 2.9em; }
.contact-form .date-field-year { flex: none; width: 3.9em; }
.contact-method-rows li .date-field { grid-column: 3; }
/* In a narrow pane the value column is what gives way first, so the kind and label columns
narrow, and a date — three fields — takes the line under its label, as an address does. */
.contact-form { container-type: inline-size; }
@container (max-width: 440px) {
.contact-method-rows li,
.contact-method-rows li.contact-address-edit { grid-template-columns: 84px 104px minmax(0, 1fr) auto; }
.contact-birthday-field { grid-template-columns: 84px minmax(0, 1fr) auto; }
.contact-method-rows li .date-field { grid-column: 2 / 4; grid-row: 2; }
.contact-method-rows li > .quiet.danger { grid-column: 4; }
.contact-kind-fixed, .contact-address-kind { line-height: 1.2; }
}
.contact-phonetic { margin: 0; color: var(--text-3); font-size: var(--t-11); }
.contact-nickname { margin: 0; color: var(--text-2); font-size: var(--t-13); }
/* At the top of the list: a quiet line, not an alert. */
.dupes-banner {
display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 8px; padding: 8px 10px;
border: 0; border-radius: var(--r-field); background: var(--fill); color: var(--text);
font: inherit; text-align: left; cursor: pointer;
}
.dupes-banner:hover { background: color-mix(in srgb, var(--text) 9%, transparent); }
.dupes-banner:focus-visible { outline: var(--focus-ring); outline-offset: 1px; }
.dupes-banner > svg:first-child { flex: none; color: var(--text-2); }
.dupes-banner-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dupes-banner-title { font-size: var(--t-13); font-weight: 600; }
.dupes-banner-sub { font-size: var(--t-11); color: var(--text-2); }
.dupes-banner-go { flex: none; color: var(--text-3); }
.dupes-head { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 14px; }
.dupes-head p { margin: 0 0 4px; color: var(--text-2); font-size: var(--t-13); max-width: 52ch; }
.dupes-list { list-style: none; margin: 0; padding: 0; }
.dupes-group {
display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
padding: 12px 0; border-top: var(--hairline) solid var(--separator);
}
.dupes-faces { display: flex; padding-left: 4px; }
.dupes-faces .avatar { width: 32px; height: 32px; font-size: var(--t-11); }
.dupes-faces .avatar + .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg); }
.dupes-who { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.dupes-name { font-size: var(--t-15); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dupes-why { font-size: var(--t-12); color: var(--text-2); }
.dupes-cards { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.dupes-cards button {
padding: 0; border: 0; background: none; font: inherit; font-size: var(--t-12);
color: var(--accent-strong); cursor: pointer; text-align: left;
}
.dupes-cards button:hover { text-decoration: underline; }
.dupes-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 64px; color: var(--text-2); }
/* Choosing a photo: the picture moves under a fixed circle, nothing animates. */
.photo-sheet { width: min(320px, 92vw); align-items: center; }
.photo-sheet h2 { align-self: flex-start; }
.photo-frame {
position: relative; overflow: hidden; border-radius: 12px; flex: none;
background: color-mix(in srgb, var(--text) 8%, transparent); touch-action: none; user-select: none;
}
.photo-frame.has-photo { cursor: grab; background: #000; }
.photo-frame.has-photo:active { cursor: grabbing; }
.photo-frame-image { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.photo-frame-ring {
position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%;
box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.5); outline: 2px solid rgba(255, 255, 255, 0.9);
pointer-events: none;
}
.photo-frame-pick {
position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
justify-content: center; gap: 10px; padding: 24px; border: 0; background: none;
color: var(--text-2); font: inherit; font-size: var(--t-13); cursor: pointer;
}
.photo-frame-pick:hover { color: var(--text); }
.photo-zoom { display: flex; align-items: center; gap: 10px; width: 100%; font-size: var(--t-12); color: var(--text-2); }
.photo-zoom input { flex: 1; }
.photo-problem { margin: 0; font-size: var(--t-12); color: var(--danger, #d70015); }
.photo-sheet-actions { display: flex; align-items: center; gap: 8px; width: 100%; }
.photo-sheet-gap { flex: 1; }
/* What Skykeep talks to (Settings): each source a label over its hosts, the hosts as written. */
.settings-reach .settings-row.is-stacked { gap: 2px; }
.settings-reach code { font: inherit; color: var(--text); }