/* © 2026 Achala Labs. All rights reserved. Proprietary. */
/* Shared by every team app. Black on white, the Achala look. */
/* Arial stretched to Inter's metrics, so text does not reflow when Inter arrives (display=swap). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107.06%; ascent-override: 90.49%; descent-override: 22.56%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fallback"; src: local("Menlo"), local("Courier New"); size-adjust: 100%; ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }
:root {
  color-scheme: light;
  /* Achala Labs: black on white, greys are black at lower opacity, one display face. */
  --aq-ground: #FFFFFF; --aq-panel: #F7F7F7; --aq-paper: #FFFFFF; --aq-white: #FFFFFF;
  --aq-ink: #111111; --aq-ink-soft: rgba(17,17,17,.64); --aq-ink-mute: rgba(17,17,17,.5); --aq-ink-faint: rgba(17,17,17,.28);
  --aq-rule: rgba(17,17,17,.09); --aq-rule-strong: rgba(17,17,17,.18);
  --aq-accent: #111111; --aq-accent-soft: rgba(17,17,17,.06); --aq-accent-mid: rgba(17,17,17,.12);
  --aq-live: #1A6B4C; --aq-warn: #9A6A1E; --aq-down: #B3291F;
  --aq-serif: "Faculty Glyphic", Georgia, serif;
  --aq-label: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Plex Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-pop: 0 18px 40px -18px rgba(17,17,17,.35);
  --rail: 236px;
  /* The spectrum, for covers only. */
  --aq-rainbow: linear-gradient(155deg, #C88A28 0%, #B86828 20%, #904830 38%, #604040 55%, #304858 72%, #186060 88%, #0A6858 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--aq-ground); color: var(--aq-ink); font: 13.5px/1.45 var(--aq-label); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--aq-accent); }
:focus-visible { outline: 2px solid var(--aq-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wordmark { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--aq-ink); text-decoration: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--aq-rule); background: var(--aq-paper); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--aq-rule-strong); }
.btn.primary { background: var(--aq-ink); border-color: var(--aq-ink); color: #fff; }
.btn.primary:hover { background: #333; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--aq-ink-soft); }
.btn.ghost:hover { background: rgba(17,17,17,.06); color: var(--aq-ink); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.iconbtn { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--aq-ink-soft); }
.iconbtn:hover { background: rgba(17,17,17,.07); color: var(--aq-ink); }
.field { width: 100%; height: 34px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--aq-rule); background: var(--aq-white); }
.field:focus { outline: none; border-color: var(--aq-accent); box-shadow: 0 0 0 3px var(--aq-accent-soft); }
textarea.field { height: auto; padding: 9px 11px; resize: vertical; line-height: 1.5; }

/* App shell: a rail on the left, the work on the right. */
.shell { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); height: 100vh; height: 100dvh; } /* dvh: the iPhone toolbar does not cover the bottom */
.rail { background: var(--aq-white); border-right: 1px solid var(--aq-rule); display: flex; flex-direction: column; min-height: 0; }
.rail .brand { padding: 18px 18px 6px; display: flex; align-items: baseline; justify-content: space-between; }
.rail .appname { padding: 2px 18px 16px; font-family: var(--aq-serif); font-size: 26px; font-weight: 400; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.rail nav { overflow: auto; flex: 1; padding: 4px 10px 16px; }
.rail .group { margin: 18px 8px 6px; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--aq-ink-mute); display: flex; justify-content: space-between; align-items: center; }
.rail .item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border-radius: 7px; color: var(--aq-ink-soft); text-align: left; text-decoration: none; }
.rail .item:hover { background: rgba(17,17,17,.06); color: var(--aq-ink); }
.rail .item.on { background: var(--aq-ink); color: #fff; font-weight: 500; box-shadow: none; }
.rail .item.on .i { color: #fff; }
.rail .item.on .count { color: rgba(255,255,255,.7); }
.rail .item .count { margin-left: auto; font-size: 11.5px; color: var(--aq-ink-mute); font-weight: 500; }
.rail .me { border-top: 1px solid var(--aq-rule); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.rail .me .who { min-width: 0; flex: 1; }
.rail .me .who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .me .who span { color: var(--aq-ink-mute); font-size: 11.5px; }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--aq-paper); }
/* min-height: an app's header is often filled after its first fetch; empty, it must not be shorter. */
.head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--aq-rule); flex-wrap: wrap; min-height: 59px; }
.head h1 { margin: 0; font-family: var(--aq-serif); font-size: 21px; font-weight: 400; letter-spacing: -.02em; text-transform: uppercase; }
.head .spacer { flex: 1; }
.menuToggle { display: none; }

.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10px; font-weight: 600; flex: none; letter-spacing: .02em; }
.avatar.lg { width: 30px; height: 30px; font-size: 11.5px; }
.avatar.nobody { background: transparent; border: 1.5px dashed var(--aq-ink-faint); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--aq-rule); background: var(--aq-white); font-size: 12px; color: var(--aq-ink-soft); white-space: nowrap; }
.chip.on { border-color: var(--aq-accent); color: var(--aq-accent); background: var(--aq-accent-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kbd { font: 11px var(--mono); color: var(--aq-ink-mute); border: 1px solid var(--aq-rule); border-radius: 4px; padding: 0 4px; }

/* Menus and dialogs are added to <body>, so they set their own ink: on a dark page (Meet's call)
   they must not inherit its white text onto their white ground. */
.menu { position: fixed; z-index: 80; background: var(--aq-white); color: var(--aq-ink); border: 1px solid var(--aq-rule); border-radius: 10px; box-shadow: var(--shadow-pop); padding: 5px; min-width: 200px; max-height: min(420px, 80vh); overflow: auto; }
.menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 6px 10px; border-radius: 6px; }
.menu button:hover, .menu button.focus { background: var(--aq-accent-soft); }
.menu button:disabled { opacity: .4; cursor: default; background: none; }
.menu button .check { margin-left: auto; color: var(--aq-accent); }
.menu button kbd { margin-left: auto; font: 11px var(--mono); color: var(--aq-ink-mute); }
.menu hr { border: 0; border-top: 1px solid var(--aq-rule); margin: 4px 2px; }
.menu .danger { color: var(--aq-down); }
.menu input { width: 100%; height: 30px; border: 0; border-bottom: 1px solid var(--aq-rule); padding: 0 8px; margin-bottom: 4px; outline: none; }

.note { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--aq-ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; z-index: 90; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); display: flex; gap: 14px; align-items: center; }
.note.bad { background: var(--aq-down); }
.note button { color: #fff; text-decoration: underline; font-weight: 600; }

.scrim { position: fixed; inset: 0; background: rgba(17,17,17,.28); z-index: 60; display: grid; place-items: start center; padding: 12vh 16px 16px; }
/* One column as wide as the screen: a long unbroken line inside a dialog cannot widen it off-screen. */
.scrim { grid-template-columns: minmax(0, 1fr); }
.modal { min-width: 0; overflow-wrap: anywhere; }
.modal { background: var(--aq-white); color: var(--aq-ink); border-radius: 14px; box-shadow: var(--shadow-pop); width: min(600px, 100%); padding: 18px; }
.modal h2 { margin: 2px 0 14px; font-family: var(--aq-serif); font-size: 24px; font-weight: 400; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.modal .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
/* Wraps on a phone: three buttons in a row are wider than a 390px dialog. */
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

.empty { padding: 64px 24px; text-align: center; color: var(--aq-ink-soft); }
.empty h3 { margin: 0 0 10px; font-family: var(--aq-serif); font-weight: 400; font-size: 28px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; color: var(--aq-ink); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.gate h1 { font-family: var(--aq-serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; margin: 0 0 14px; }
.gate p { color: var(--aq-ink-soft); margin: 0 0 22px; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 70; transform: translateX(-100%); transition: transform .2s ease; }
  .rail.open { transform: none; box-shadow: var(--shadow-pop); }
  .menuToggle { display: inline-grid; }
  .head { padding: 12px 14px; min-height: 55px; }
}

/* The bell */
.rail .brand { align-items: center; }
.bellbtn { position: relative; width: 30px; height: 30px; }
.bellbtn .bb { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--aq-down); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.bellbox { width: min(370px, calc(100vw - 16px)); padding: 0; display: flex; flex-direction: column; max-height: min(560px, 80vh); }
.bellhead { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--aq-rule); }
.belllist { overflow: auto; flex: 1; }
.bellempty { padding: 22px 16px; color: var(--aq-ink-mute); font-size: 13px; text-align: center; }
.bellbox .bi { display: grid; gap: 2px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--aq-rule); text-decoration: none; color: var(--aq-ink-soft); position: relative; }
.bellbox .bi:hover { background: var(--aq-paper); }
.bellbox .bi.unread { color: var(--aq-ink); }
.bellbox .bi.unread::before { content: ""; position: absolute; left: 9px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--aq-accent); }
.bellbox .bi .ba { font-size: 11px; color: var(--aq-ink-mute); }
.bellbox .bi b { font-weight: 600; font-size: 13px; }
.bellbox .bi .bt { font-size: 12.5px; color: var(--aq-ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bellbox .bc { font-size: 11px; background: var(--aq-accent-soft); color: var(--aq-accent); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.bellfoot { padding: 10px 12px; border-top: 1px solid var(--aq-rule); font-size: 12.5px; color: var(--aq-ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bellfoot button:not(.btn) { color: var(--aq-accent); font-weight: 600; text-decoration: underline; }
/* The bell's tabs (For you, Team) and team activity rows. .act-row is also drawn on the hub home. */
.bellhead { gap: 8px; padding: 8px 10px 8px 8px; }
.act-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--aq-accent-soft); }
.menu .act-tab { width: auto; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--aq-ink-soft); }
.menu .act-tab:hover { background: transparent; color: var(--aq-ink); }
.menu .act-tab[aria-selected="true"] { color: #fff; }
.act-tabs:not(.m-slid) .act-tab[aria-selected="true"] { background: var(--aq-ink); }
.act-pane { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.act-pane[hidden] { display: none; }
.act-pref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--aq-rule); font-size: 12.5px; color: var(--aq-ink-soft); }
.menu .act-switch { position: relative; flex: none; width: 30px; height: 18px; padding: 0; border-radius: 999px; background: var(--aq-rule-strong); transition: background .2s ease; }
.menu .act-switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(17,17,17,.25); }
.menu .act-switch:disabled { opacity: .5; background: var(--aq-rule-strong); }
.menu .act-switch[aria-checked="true"] { background: var(--aq-ink); }
.menu .act-switch[aria-checked="true"]::after { transform: translateX(12px); }
.menu .act-switch:hover { background: var(--aq-ink-faint); }
.menu .act-switch[aria-checked="true"]:hover { background: #333; }
.act-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-bottom: 1px solid var(--aq-rule); text-decoration: none; color: var(--aq-ink-soft); }
.act-row:hover { background: var(--aq-panel); }
.act-row .act-av { margin-top: 1px; }
.act-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.act-line { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.act-line b { font-weight: 600; color: var(--aq-ink); }
.act-detail { font-size: 12.5px; color: var(--aq-ink-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.act-meta { font-size: 11px; color: var(--aq-ink-mute); }
.act-more { padding: 8px; display: flex; justify-content: center; }
.rail .me { cursor: pointer; }
.rail .me:hover { background: rgba(17,17,17,.04); }
/* Attachments panel */
.att-list { display: grid; gap: 6px; margin-bottom: 8px; }
.att { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--aq-rule); border-radius: 9px; background: var(--aq-white); }
.att img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; display: block; }
.att-ic { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--aq-panel); color: var(--aq-ink-soft); flex: none; }
.att-name { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.att-name b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-name small { color: var(--aq-ink-mute); font-size: 11.5px; }
.att-empty { color: var(--aq-ink-mute); font-size: 12.5px; padding: 4px 0; }
.att-busy { margin-left: 8px; font-size: 12px; color: var(--aq-ink-soft); }
.att-drop { outline: 2px dashed var(--aq-accent); outline-offset: 4px; border-radius: 8px; }
/* A real button inside a menu (the bell's footer) keeps its pill shape. */
.menu .btn { display: inline-flex; width: auto; height: 28px; padding: 0 12px; border-radius: 999px; }
.menu .btn.primary:hover { background: #333; }
a.btn { text-decoration: none; color: var(--aq-ink); }
a.btn.primary { color: #fff; }
select.field { -webkit-appearance: none; appearance: none; padding: 0 30px 0 11px; cursor: pointer; background: var(--aq-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23111' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center / 11px; }

/* Phones zoom into any field under 16px when it is tapped; keep fields at 16px on touch screens. */
@media (pointer: coarse) { input, select, textarea, [contenteditable] { font-size: max(16px, 1em); } }
.modal .btn.danger { color: var(--aq-down); }
.modal .btn.primary.danger, .btn.primary.danger { background: var(--aq-down); border-color: var(--aq-down); color: #fff; }
.modal .btn.primary.danger:hover, .btn.primary.danger:hover { filter: brightness(.92); }

/* ── Motion ── The tokens, and the CSS half of ui/motion.js. Only transform and opacity move.
   Ease-out for what the person did, a spring for what arrives, closing quicker than opening. */
:root {
  --m-press: 80ms; --m-fast: 120ms; --m-base: 180ms; --m-slow: 240ms; --m-enter: 320ms;
  --m-ease: cubic-bezier(.2, .8, .2, 1);
  --m-spring: cubic-bezier(.34, 1.36, .64, 1);
}
/* A damped spring, about 4% overshoot. */
@supports (animation-timing-function: linear(0, 1)) {
  :root { --m-spring: linear(0, 0.061, 0.203, 0.376, 0.547, 0.698, 0.82, 0.912, 0.975, 1.015, 1.037, 1.045, 1.045, 1.04, 1.032, 1.024, 1.017, 1.011, 1.006, 1.002, 1); }
}
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; scale: .96; } }
@keyframes m-grow { from { scale: .94; } }
@keyframes m-rise { from { opacity: 0; translate: 0 6px; } }
@keyframes m-toast { from { opacity: 0; translate: 0 14px; scale: .96; } }
@keyframes m-ring { from { outline-offset: 6px; outline-color: transparent; } }
@keyframes m-ring-fade { from { outline-color: transparent; } }
@keyframes m-draw { from { stroke-dashoffset: 1; } }
@keyframes m-spin { to { rotate: 360deg; } }
@keyframes m-shimmer { to { background-position: -200% 0; } }

/* Menus open from their trigger (motion: transform-origin is set where it was pressed). */
.menu { animation: m-pop var(--m-base) var(--m-ease) backwards; transform-origin: top left; }
/* Dialogs: the backdrop fades, the dialog springs up from .94 (out of its button, see motion.js). */
.scrim { animation: m-fade var(--m-base) var(--m-ease) backwards; }
.scrim > .modal { animation: m-grow var(--m-enter) var(--m-spring) backwards, m-fade var(--m-base) var(--m-ease) backwards; }
.note { animation: m-toast var(--m-slow) var(--m-spring) backwards; touch-action: none; }
/* Side drawers (a task, a person, a deal) slide in from the edge they sit on. */
@keyframes m-drawer { from { opacity: 0; translate: 36px 0; } }
body > .drawer { animation: m-drawer var(--m-slow) var(--m-ease) backwards; }
/* Swapped for another of its kind in the same instant, or a leaving copy: no entrance. */
.m-swap, .m-swap > .modal, .m-ghost, .m-ghost * { animation: none !important; transition: none !important; }

/* Buttons: a quick press, a lift on primary ones, a focus ring that settles in. */
.btn, .iconbtn, .chip, .pick { transition: scale var(--m-base) var(--m-ease), translate var(--m-base) var(--m-ease), background-color var(--m-fast) var(--m-ease), border-color var(--m-fast) var(--m-ease), color var(--m-fast) var(--m-ease), box-shadow var(--m-base) var(--m-ease), opacity var(--m-fast) var(--m-ease); }
.btn:not(:disabled):active, button.chip:active, .pick:not(:disabled):active { scale: .97; transition-duration: var(--m-press); }
.iconbtn:not(:disabled):active { scale: .9; transition-duration: var(--m-press); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:not(:disabled):hover { translate: 0 -1px; box-shadow: 0 6px 14px -8px rgba(17,17,17,.55); }
  .btn.primary:not(:disabled):active { translate: 0 0; box-shadow: none; }
}
:where(button, a, [role="button"], [role="tab"], [role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible { animation: m-ring var(--m-base) var(--m-ease); }

/* busy(btn): a spinner where the label was, at the same size. success(btn): a tick draws in. */
.m-rel { position: relative; }
.m-busy, .m-done { color: transparent !important; }
.m-busy > :not(.m-ov):not(.m-sr), .m-done > :not(.m-ov):not(.m-sr) { visibility: hidden; }
.m-busy { pointer-events: none; }
.m-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--m-fg, currentColor); pointer-events: none; white-space: nowrap; overflow: hidden; border-radius: inherit; font-weight: inherit; }
.m-wait { animation: m-fade var(--m-fast) var(--m-ease) backwards; }
.m-spin { width: 14px; height: 14px; border-radius: 50%; border: 1.75px solid currentColor; border-right-color: transparent; animation: m-spin .7s linear infinite; }
.m-ok { animation: m-pop var(--m-base) var(--m-spring) backwards; }
.m-ok > span { animation: m-fade var(--m-base) var(--m-ease) 60ms backwards; }
.m-tick { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: m-draw var(--m-slow) var(--m-ease) 40ms backwards; }
.m-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A checkbox whose tick draws (an svg path with pathLength="1" inside .m-check). */
.m-check path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--m-slow) var(--m-ease); }
.m-check.on path, [aria-checked="true"] > .m-check path, :checked + .m-check path { stroke-dashoffset: 0; }

/* slider(bar): the pill behind the selected tab, moved by a transform. */
.m-ind { position: absolute; pointer-events: none; z-index: 0; border-radius: 999px; background: var(--aq-ink); transform-origin: left center; transition: opacity var(--m-fast) var(--m-ease); }
.m-slid > :not(.m-ind) { position: relative; z-index: 1; }

/* Switches: the thumb travels on the spring. Opt in with .m-switch on the track. */
.m-switch::after, .m-switch > i::after { transition: transform var(--m-slow) var(--m-spring), translate var(--m-slow) var(--m-spring), left var(--m-slow) var(--m-spring) !important; }

/* Skeletons, for a first load. */
.m-skel-list { display: grid; gap: 12px; }
.m-skel { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--aq-panel) 0, rgba(17,17,17,.04) 40%, var(--aq-panel) 80%) 0 0 / 200% 100%; animation: m-shimmer 1.6s linear infinite; }

/* Reduced motion: nothing travels or scales, things only fade. */
@media (prefers-reduced-motion: reduce) {
  .menu, .note, body > .drawer { animation-name: m-fade; }
  .scrim > .modal { animation: m-fade var(--m-base) ease-out backwards; }
  .btn:active, .iconbtn:active, .chip:active, .pick:active, .btn.primary:hover { scale: none !important; translate: none !important; }
  :where(button, a, [role="button"], [role="tab"], [role="switch"], input[type="checkbox"], input[type="radio"]):focus-visible { animation: m-ring-fade var(--m-fast) ease-out; }
  .m-spin { animation-duration: 1.6s; }
  .m-ok, .m-ok > span { animation: m-fade var(--m-base) ease-out backwards; }
  .m-tick { animation: m-fade var(--m-base) ease-out backwards; stroke-dasharray: none; }
  .m-check path { transition: opacity var(--m-base) ease-out; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; }
  .m-check.on path, [aria-checked="true"] > .m-check path, :checked + .m-check path { opacity: 1; }
  .m-switch::after, .m-switch > i::after { transition: none !important; }
  .m-skel { animation: none; }
}
/* ── Objects ── Anything that IS a thing you could pick up (a document, a sheet, a deck, a board,
   a file, a clip, a link preview, a quoted message, an event): a crisp paper edge at rest, lifted
   a couple of pixels on hover or keyboard focus, set back down on press. Only translate, rotate
   and box-shadow move. .obj-tilt (covers and thumbnails, never text) also leans a fraction of a
   degree toward the pointer (motion.js sets --obj-rx/--obj-ry). .obj-sm is the quiet one for
   dense grids: a 1px lift and no tilt. Rows in a list are never objects. */
:root {
  --obj-ring: 0 0 0 1px rgba(17,17,17,.075);
  --obj-rest: 0 1px 1px rgba(17,17,17,.035), 0 2px 5px -2px rgba(17,17,17,.07);
  --obj-up: 0 2px 3px -1px rgba(17,17,17,.05), 0 14px 26px -12px rgba(17,17,17,.2);
  --obj-down: 0 1px 1px rgba(17,17,17,.06), 0 1px 3px -1px rgba(17,17,17,.1);
  --obj-lift: -3px; --obj-press: -1px;
}
.obj { box-shadow: var(--obj-ring), var(--obj-rest); transition: translate var(--m-base) var(--m-ease), box-shadow var(--m-base) var(--m-ease), transform var(--m-base) var(--m-ease), opacity var(--m-fast) var(--m-ease); }
/* A card that already draws its own border keeps it; the ring would double it. */
.obj.obj-edged { --obj-ring: 0 0 #0000; }
.obj-sm { --obj-lift: -1px; --obj-press: 0px; --obj-rest: 0 1px 1px rgba(17,17,17,.03); --obj-up: 0 1px 2px rgba(17,17,17,.05), 0 6px 12px -8px rgba(17,17,17,.22); }
@media (hover: hover) and (pointer: fine) {
  .obj:hover { translate: 0 var(--obj-lift); box-shadow: var(--obj-ring), var(--obj-up); will-change: translate; }
  .obj-tilt:hover { transform: perspective(900px) rotateX(var(--obj-rx, 0deg)) rotateY(var(--obj-ry, 0deg)); will-change: translate, transform; }
}
.obj:focus-visible { translate: 0 var(--obj-lift); box-shadow: var(--obj-ring), var(--obj-up); }
/* Set down: back to a 1px lift with the shadow pulled in, quicker than it rose. */
.obj:active:not(:has(:is(button, .btn, input, select, textarea, [contenteditable]):active)) { translate: 0 var(--obj-press); box-shadow: var(--obj-ring), var(--obj-down); transform: none; transition-duration: var(--m-press); }
/* On dark ground (the Meet call, dark sections) a shadow cannot be seen: the edge glows instead. */
:is(.incall, .dark, [data-surface="dark"]) .obj, .obj.on-dark {
  --obj-ring: 0 0 0 1px rgba(255,255,255,.1);
  --obj-rest: 0 0 0 #0000, 0 0 0 #0000;
  --obj-up: 0 0 0 1px rgba(255,255,255,.12), 0 10px 28px -14px rgba(255,255,255,.22);
  --obj-down: 0 0 0 1px rgba(255,255,255,.06), 0 0 0 #0000;
}
/* Being moved (drag): the copy that follows the pointer, lifted and a little larger. */
.m-drag-proxy { position: fixed !important; left: 0; top: 0; margin: 0 !important; z-index: 95; pointer-events: none !important; box-sizing: border-box; transform-origin: var(--m-gx, 50%) var(--m-gy, 50%); will-change: transform; box-shadow: 0 0 0 1px rgba(17,17,17,.08), 0 4px 8px -2px rgba(17,17,17,.1), 0 26px 44px -18px rgba(17,17,17,.42) !important; transition: none !important; animation: none !important; }
.m-lifted { scale: 1.02; z-index: 5; box-shadow: 0 0 0 1px rgba(17,17,17,.08), 0 18px 32px -16px rgba(17,17,17,.4) !important; transition: scale var(--m-fast) var(--m-ease), box-shadow var(--m-fast) var(--m-ease); }
.m-drag-proxy.m-drag-bare { box-shadow: none !important; background: transparent !important; }
.m-drag-face { box-shadow: 0 0 0 1px rgba(17,17,17,.08), 0 4px 8px -2px rgba(17,17,17,.1), 0 22px 38px -16px rgba(17,17,17,.42) !important; }
/* Where it came from: a faint place-holder with a dashed edge, so the gap reads as its slot. */
.m-drag-src { opacity: .45 !important; outline: 1px dashed rgba(17,17,17,.35) !important; outline-offset: -1px; transition: opacity var(--m-fast) var(--m-ease) !important; }
/* Grab where a thing can be moved, copy where a click copies. */
[draggable="true"] { cursor: grab; }
[draggable="true"]:active, .m-dragging, .m-dragging * { cursor: grabbing !important; }
[data-copy], .m-copy, input.m-copy { cursor: copy; }

/* ── Saving ── A thing made shows at once, faint, then firms up when the server has it. A failure
   shakes it twice (3px) and puts things back. */
.m-settling { opacity: .55; pointer-events: none; transition: opacity var(--m-base) var(--m-ease); }
@keyframes m-firm { from { opacity: .55; scale: .992; } }
.m-settled { animation: m-firm var(--m-slow) var(--m-ease); }
@keyframes m-shake { 0%, 100% { translate: 0 0; } 15% { translate: -3px 0; } 35% { translate: 3px 0; } 55% { translate: -3px 0; } 75% { translate: 3px 0; } }
.m-shake { animation: m-shake 320ms var(--m-ease); }

/* ── Numbers ── Counts and totals roll to their new value, in figures of one width. */
.m-num { font-variant-numeric: tabular-nums; }
.m-roll { display: inline-grid; overflow: hidden; vertical-align: bottom; line-height: inherit; }
.m-roll > span { grid-area: 1 / 1; white-space: nowrap; }

/* ── Empty states ── Type, one quiet moving detail, one action. The detail: a hairline that
   draws in under the heading (every .empty), a caret that blinks after it (.m-caret), or a
   dot that breathes (.m-breathe). */
@keyframes m-rule { from { scale: 0 1; opacity: 0; } }
@keyframes m-blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: 0; } }
@keyframes m-breathe { 0%, 100% { opacity: .35; scale: .8; } 50% { opacity: 1; scale: 1; } }
.empty h3::after { content: ""; display: block; width: 44px; height: 1px; margin: 14px auto 0; background: currentColor; opacity: .35; transform-origin: center; animation: m-rule 640ms var(--m-ease) 160ms backwards; }
.empty.m-caret h3::after { display: inline-block; width: 2px; height: .8em; margin: 0 0 0 6px; vertical-align: -.04em; opacity: 1; background: currentColor; animation: m-blink 1.1s steps(1) infinite; }
.empty.m-breathe h3::after { width: 7px; height: 7px; border-radius: 50%; animation: m-breathe 2.4s var(--m-ease) infinite; opacity: 1; }
.empty .btn { margin-top: 18px; }
.empty p { max-width: 380px; margin-left: auto; margin-right: auto; }

/* ── Focus ── Every field's ring settles in instead of snapping. */
.field { transition: border-color var(--m-fast) var(--m-ease), box-shadow var(--m-base) var(--m-ease); }
:where([tabindex]:not([tabindex="-1"]), .obj, summary):focus-visible { animation: m-ring var(--m-base) var(--m-ease); }

@media (prefers-reduced-motion: reduce) {
  .obj, .obj:hover, .obj:focus-visible, .obj:active, .obj-tilt:hover { translate: none !important; transform: none !important; }
  .m-settled, .m-shake { animation: none; }
  .m-lifted { scale: none; }
  .empty h3::after { animation: none !important; }
  :where([tabindex]:not([tabindex="-1"]), .obj, summary):focus-visible { animation: m-ring-fade var(--m-fast) ease-out; }
}
/* The layer leaving copies are drawn in never prints. */
@media print { .m-ghosts, [data-motion-layer] { display: none !important; } }
/* ── /Motion ── */
