/* OneNotch interactive demo (assets/demo.js). A Mac in the middle of a workday.
   The notch is one black shape that morphs between real states: closed, a compact live activity, a
   wider wing, a Slack message peeking out, a dashed drop target, and the open panel. Every screen in the
   panel is themed with the tool's own colours (Linear, Slack, GitHub), taken from OneNotch's app code
   (Sources/OneNotch/Features/*). Sizes are in em; the screen's font size is 1% of its width (.nx).
   Motion: springs for shape, a short blur dissolve for content, and nothing at all with Reduce Motion. */

.dm {
  --dm-spring: cubic-bezier(0.2, 0.95, 0.25, 1.08);
  --dm-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dm-in: cubic-bezier(0.55, 0, 0.75, 0.3);
}

/* ---------- Controls above the Mac ---------- */
.dm-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 16px; }
.dm-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.dm-control { display: flex; align-items: center; gap: 10px; color: var(--mk-ink-2); font-size: 13px; font-weight: 500; }
.dm-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mk-fill); box-shadow: inset 0 0 0 1px var(--mk-hairline); }
.dm-seg button { height: 30px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--mk-ink-2); font: 500 13px var(--mk-font); cursor: pointer; transition: color 160ms ease, background-color 200ms ease, box-shadow 200ms ease; }
.dm-seg button:hover { color: var(--mk-ink); }
.dm-seg button[aria-pressed="true"] { background: var(--mk-surface); color: var(--mk-ink); box-shadow: 0 0 0 1px var(--mk-hairline), 0 1px 3px var(--mk-shadow-3); }
.dm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-actions .mk-btn { --mk-btn-h: 36px; padding: 0 16px; font-size: 13.5px; }

/* ---------- The Mac ---------- */
.dm-frame .media__screen { border-radius: clamp(10px, 1.1vw, 13px); }
.dm-screen {
  --ink: #f5f5f7; --ink2: rgba(255, 255, 255, 0.62); --ink3: rgba(255, 255, 255, 0.4); --hair: rgba(255, 255, 255, 0.09);
  --chip: rgba(255, 255, 255, 0.08); --chip2: rgba(255, 255, 255, 0.14); --blue: #2f80ed; --mint: #2fd8ae; --amber: #f2c94c; --green: #4cb782; --red: #eb5757;
  cursor: default; outline: none; user-select: none;
}
.dm-screen:focus-visible { box-shadow: inset 0 0 0 0.2em rgba(41, 151, 255, 0.8); }
.dm-screen .nx-bar { z-index: 40; }
.dm-bar__app { font-weight: 700 !important; }
.dm-bar__icon { display: inline-grid; place-items: center; width: 2em; height: 1.7em; margin: 0 -0.3em; padding: 0; border: 0; border-radius: 0.4em; background: transparent; color: #fff; cursor: pointer; }
.dm-bar__icon:hover, .dm-bar__icon[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); }
.dm-bar__icon svg { width: 1.3em; height: 1.3em; }
.dm-clock { font-variant-numeric: tabular-nums; }

/* Menu-bar menu */
.dm-mbmenu { position: absolute; z-index: 60; top: 2.5em; right: 12em; width: 22em; padding: 0.45em; border-radius: 0.9em; background: rgba(36, 36, 42, 0.86); -webkit-backdrop-filter: blur(2em) saturate(160%); backdrop-filter: blur(2em) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1.4em 3em -0.8em rgba(0, 0, 0, 0.6); color: var(--ink); transform-origin: top right; }
.dm-mbmenu[hidden] { display: none; }
.dm-mbmenu button { display: flex; align-items: center; width: 100%; height: 2.3em; padding: 0 0.8em; border: 0; border-radius: 0.45em; background: transparent; color: inherit; font: inherit; font-size: 1.05em; text-align: left; cursor: pointer; }
.dm-mbmenu button:hover { background: #0a84ff; }
.dm-mbmenu button span { margin-left: auto; color: var(--ink3); }
.dm-mbmenu button:hover span { color: rgba(255, 255, 255, 0.8); }
.dm-mbmenu hr { margin: 0.35em 0.6em; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.dm-mbmenu__title { padding: 0.4em 0.8em 0.3em; color: var(--ink3); font-size: 0.92em; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .dm-mbmenu:not([hidden]) { animation: dm-pop 200ms var(--dm-out); } }
@keyframes dm-pop { from { opacity: 0; transform: scale(0.96) translateY(-0.3em); } }

/* Windows: drag them by the title bar */
.dm-win { position: absolute; z-index: 2; display: flex; flex-direction: column; overflow: hidden; border-radius: 0.95em; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 1.8em 4.5em -1em rgba(10, 6, 30, 0.6); }
.dm-win[hidden] { display: none; }
.dm-win__bar { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 0.5em; height: 2.5em; padding: 0 0.9em; cursor: grab; touch-action: none; }
.dm-win__bar:active { cursor: grabbing; }
.dm-lights { display: flex; gap: 0.45em; }
.dm-lights i, .dm-lights button { width: 0.85em; height: 0.85em; padding: 0; border: 0; border-radius: 50%; background: #ff5f57; }
.dm-lights > :nth-child(2) { background: #febc2e; }
.dm-lights > :nth-child(3) { background: #28c840; }
.dm-lights button { cursor: pointer; }
.dm-win__title { position: absolute; left: 50%; font-size: 0.95em; font-weight: 600; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.dm-win--editor { background: #1d1e23; color: #d7d8de; }
.dm-win--editor .dm-win__bar { background: #26272d; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); color: #9a9ba6; }
.dm-code { flex: 1 1 auto; padding: 1em 1.2em; font: 1em/1.7 var(--mk-mono); white-space: pre; }
.dm-code .k { color: #ff7ab2; } .dm-code .t { color: #5dd8ff; } .dm-code .c { color: #6c7986; } .dm-code .f { color: #67b7a4; } .dm-code .n { color: #d0bf69; }
.dm-win--docs { background: #f7f7f9; color: #1d1d1f; }
.dm-win--docs .dm-win__bar { background: #ececf0; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); color: #6e6e73; }
.dm-doc { flex: 1 1 auto; padding: 1.6em 2em; overflow: hidden; }
.dm-doc h4 { margin: 0 0 0.8em; font-size: 1.5em; letter-spacing: -0.02em; }
.dm-doc p { margin: 0 0 0.7em; color: #48484d; font-size: 1em; line-height: 1.5; }
.dm-doc .dm-line { height: 0.7em; margin: 0.6em 0; border-radius: 1em; background: #e2e2e7; }
.dm-doc .dm-line--s { width: 62%; } .dm-doc .dm-line--m { width: 84%; }
.dm-doc .dm-pr { display: flex; align-items: center; gap: 0.6em; margin-bottom: 1em; padding: 0.7em 0.9em; border-radius: 0.6em; background: #fff; box-shadow: inset 0 0 0 1px #d0d7de; }
.dm-doc .dm-pr svg { width: 1.4em; height: 1.4em; color: #1a7f37; }
/* A meeting window that opens when you press Join */
.dm-win--call { background: #111214; color: var(--ink); }
.dm-win--call .dm-win__bar { background: #1b1c1f; color: var(--ink2); }
.dm-call { display: grid; flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em; padding: 0.6em; }
.dm-tile { position: relative; display: grid; place-items: center; border-radius: 0.7em; background: radial-gradient(120% 120% at 30% 20%, var(--c1, #3b3f73), var(--c2, #16172b)); }
.dm-tile span { display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 1.1em; font-weight: 700; }
.dm-tile small { position: absolute; bottom: 0.5em; left: 0.6em; padding: 0.15em 0.5em; border-radius: 0.4em; background: rgba(0, 0, 0, 0.45); font-size: 0.85em; }
.dm-tile.is-talking { box-shadow: inset 0 0 0 0.18em #2fd8ae; }
.dm-tile--b { --c1: #6a3f73; --c2: #2b1630; } .dm-tile--c { --c1: #2f6b5e; --c2: #10261f; } .dm-tile--d { --c1: #6b5a2f; --c2: #2a2210; }
.dm-callbar { display: flex; justify-content: center; gap: 0.6em; padding: 0.6em; background: #1b1c1f; }
.dm-callbar button { height: 2.4em; padding: 0 1em; border: 0; border-radius: 99em; background: rgba(255, 255, 255, 0.1); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.dm-callbar button:hover { background: rgba(255, 255, 255, 0.18); }
.dm-callbar button.is-off { background: rgba(235, 87, 87, 0.2); color: #ff8a8a; }
.dm-callbar .dm-leave { background: #eb5757; color: #fff; }
.dm-callbar .dm-leave:hover { background: #f06a6a; }
/* Settings window (real tabs: General, Focus, Clipboard, Accounts, About) */
.dm-win--settings { background: #1e1e22; color: var(--ink); }
.dm-win--settings .dm-win__bar { background: #26262b; color: var(--ink2); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.dm-set { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.dm-set__tabs { display: flex; justify-content: center; gap: 0.3em; padding: 0.6em; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); }
.dm-set__tabs button { display: flex; flex-direction: column; align-items: center; gap: 0.2em; min-width: 5.4em; padding: 0.4em 0.6em; border: 0; border-radius: 0.6em; background: transparent; color: var(--ink2); font: inherit; font-size: 0.92em; cursor: pointer; }
.dm-set__tabs button svg { width: 1.4em; height: 1.4em; }
.dm-set__tabs button.is-on { background: rgba(255, 255, 255, 0.1); color: #0a84ff; }
.dm-set__body { flex: 1 1 auto; overflow: auto; padding: 0.9em 1.3em 1.2em; scrollbar-width: none; }
.dm-set__row { display: flex; align-items: center; gap: 1em; min-height: 2.9em; padding: 0.3em 0; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06); font-size: 1.02em; }
.dm-set__row:last-child { box-shadow: none; }
.dm-set__row > :last-child { margin-left: auto; }
.dm-set__row small { display: block; color: var(--ink3); font-size: 0.85em; }
.dm-switch { position: relative; width: 2.6em; height: 1.5em; padding: 0; border: 0; border-radius: 99em; background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: background-color 200ms ease; }
.dm-switch::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #fff; box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.35); transition: transform 260ms var(--dm-spring); }
.dm-switch[aria-checked="true"] { background: #30d158; }
.dm-switch[aria-checked="true"]::after { transform: translateX(1.1em); }
.dm-stepper { display: inline-flex; align-items: center; gap: 0.5em; }
.dm-stepper button { width: 1.8em; height: 1.8em; border: 0; border-radius: 0.45em; background: rgba(255, 255, 255, 0.1); color: var(--ink); font: inherit; cursor: pointer; }
.dm-stepper b { min-width: 3.6em; text-align: center; font-variant-numeric: tabular-nums; }
.dm-keycap { padding: 0.25em 0.6em; border-radius: 0.45em; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); font-weight: 600; }
.dm-pick { display: inline-flex; gap: 0.2em; padding: 0.2em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.08); }
.dm-pick button { height: 1.9em; padding: 0 0.8em; border: 0; border-radius: 0.45em; background: transparent; color: var(--ink2); font: inherit; font-size: 0.95em; cursor: pointer; }
.dm-pick button.is-on { background: #0a84ff; color: #fff; }
.dm-acct { display: flex; align-items: center; gap: 0.8em; }
.dm-acct img, .dm-acct svg { width: 1.6em; height: 1.6em; }
.dm-acct__status { display: inline-flex; align-items: center; gap: 0.35em; color: var(--ink3); font-size: 0.88em; }
.dm-acct__status::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--ink3); }
.dm-acct__status.is-on::before { background: #30d158; }
.dm-sbtn { height: 2em; padding: 0 0.9em; border: 0; border-radius: 0.5em; background: rgba(255, 255, 255, 0.12); color: var(--ink); font: inherit; font-size: 0.95em; font-weight: 600; cursor: pointer; }
.dm-sbtn:hover { background: rgba(255, 255, 255, 0.18); }
.dm-sbtn--blue { background: #0a84ff; color: #fff; }
.dm-sbtn--blue:hover { background: #2a94ff; }

/* Files on the desktop */
.dm-files { position: absolute; z-index: 3; top: 11%; right: 2.2%; display: flex; flex-direction: column; gap: 1.2em; }
.dm-file { display: flex; flex-direction: column; align-items: center; gap: 0.45em; width: 7.6em; padding: 0.5em 0.3em; border: 0; border-radius: 0.7em; background: transparent; color: #fff; font: inherit; cursor: grab; touch-action: none; }
.dm-file:hover { background: rgba(255, 255, 255, 0.12); }
.dm-file > span:last-child { max-width: 100%; overflow: hidden; padding: 0.1em 0.45em; border-radius: 0.3em; font-size: 0.92em; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); white-space: nowrap; text-overflow: ellipsis; }
.dm-file.is-dragging { opacity: 0.35; }
.dm-file.is-gone { visibility: hidden; }
.dm-ghost { position: absolute; z-index: 70; pointer-events: none; transform: translate(-50%, -50%) rotate(-5deg) scale(1.08); filter: drop-shadow(0 0.8em 1.4em rgba(0, 0, 0, 0.45)); transition: transform 180ms var(--dm-out); }
.dm-ghost.is-over { transform: translate(-50%, -50%) scale(0.75); }
/* File thumbnails, used on the desktop and in the tray */
.dm-thumb { position: relative; display: grid; place-items: end center; width: 3.6em; height: 4.4em; padding-bottom: 0.5em; border-radius: 0.35em 1em 0.35em 0.35em; background: #fff; box-shadow: 0 0.25em 0.8em -0.2em rgba(0, 0, 0, 0.45); }
.dm-thumb::before { content: ""; position: absolute; top: 0.8em; left: 0.6em; right: 0.9em; height: 1.5em; background: repeating-linear-gradient(#d9dbe3 0 0.18em, transparent 0.18em 0.42em); }
.dm-thumb b { position: relative; padding: 0.1em 0.4em; border-radius: 0.25em; background: #eb5757; color: #fff; font-size: 0.7em; font-weight: 800; letter-spacing: 0.03em; }
.dm-thumb--img { border-radius: 0.5em; background: linear-gradient(160deg, #4b3f8f 0%, #c7869a 60%, #f1b694 100%); }
.dm-thumb--img::before { top: auto; bottom: 1.4em; left: 0; right: 0; height: 1.5em; background: linear-gradient(170deg, transparent 40%, #2b2552 41%); }
.dm-thumb--img b { background: #2f6fd6; }
.dm-thumb--zip { background: linear-gradient(180deg, #d6d8de, #b9bcc5); }
.dm-thumb--zip::before { left: 45%; right: 45%; top: 0.3em; height: 2.4em; background: repeating-linear-gradient(#6b6f7a 0 0.25em, #f2f3f5 0.25em 0.5em); }
.dm-thumb--zip b { background: #555a66; }

/* Dock, with magnification */
.dm-dock { position: absolute; z-index: 42; bottom: 1em; left: 50%; display: flex; align-items: flex-end; gap: 0.5em; height: 5.2em; padding: 0.55em 0.7em; border-radius: 1.5em; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(1.4em) saturate(170%); backdrop-filter: blur(1.4em) saturate(170%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 1em 2.6em -1em rgba(0, 0, 0, 0.5); transform: translateX(-50%); }
.dm-dock > button { position: relative; display: grid; place-items: center; width: 3.9em; height: 3.9em; padding: 0; border: 0; border-radius: 0.95em; background: none; cursor: pointer; transform-origin: bottom center; transition: transform 160ms var(--dm-out); }
.dm-dock > button.is-bounce { animation: dm-bounce 700ms var(--dm-out); }
.dm-dock > button.is-running::after { content: ""; position: absolute; bottom: -0.5em; left: 50%; width: 0.32em; height: 0.32em; border-radius: 50%; background: rgba(255, 255, 255, 0.85); transform: translateX(-50%); }
.dm-dock > button .dm-tip { position: absolute; bottom: calc(100% + 0.7em); left: 50%; padding: 0.25em 0.7em; border-radius: 0.45em; background: rgba(30, 30, 34, 0.85); color: #fff; font-size: 0.8em; white-space: nowrap; opacity: 0; transform: translateX(-50%); pointer-events: none; transition: opacity 140ms ease; }
.dm-dock > button:hover .dm-tip { opacity: 1; }
.dm-sep { align-self: center; width: 1px; height: 3.2em; margin: 0 0.2em; background: rgba(255, 255, 255, 0.3); }
@keyframes dm-bounce { 30% { translate: 0 -1.2em; } 55% { translate: 0 0; } 75% { translate: 0 -0.5em; } }
.dm-icon { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 0.95em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0.3em 0.8em -0.2em rgba(0, 0, 0, 0.4); }
.dm-icon img, .dm-icon svg { width: 56%; height: 56%; }
.dm-icon--white { background: linear-gradient(180deg, #ffffff, #e9e9ee); }
.dm-icon--code { background: linear-gradient(180deg, #3e8bff, #1d5fe0); color: #fff; }
.dm-icon--term { background: linear-gradient(180deg, #3b3b40, #151518); color: #e8e8ea; }
.dm-icon--web { background: linear-gradient(180deg, #ffffff, #e9eef7); color: #2c7af6; }
.dm-icon--set { background: linear-gradient(180deg, #8e8e93, #5a5a5f); color: #fff; }
.dm-icon--cal { display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #1d1d1f; }
.dm-icon--cal small { align-self: stretch; padding: 0.15em 0; background: #ff453a; color: #fff; font-size: 0.7em; font-weight: 700; text-align: center; letter-spacing: 0.06em; }
.dm-icon--cal b { font-size: 1.55em; font-weight: 400; line-height: 1.25; }
.dm-icon--mark { background: linear-gradient(180deg, #43474f, #121317); color: #2fd8ae; }

/* First-time hint, written by hand above the Mac (Caveat Bold, SIL Open Font License, self-hosted
   with only the letters it needs): a note, an arrow curving down to the notch, and a dashed ring
   around the notch. All three go away once the panel has been opened. */
@font-face { font-family: "OneNotch Hand"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/caveat-700.woff2") format("woff2"); }
.dm-frame { position: relative; margin-top: clamp(64px, 7vw, 92px); }
.dm-hand { position: absolute; z-index: 6; bottom: calc(100% - 4px); left: calc(50% + clamp(36px, 4vw, 60px)); color: var(--mk-ink); pointer-events: none; transition: opacity 500ms ease, transform 500ms var(--dm-out); }
.dm-hand__text { display: block; margin: 0 0 clamp(26px, 3.2vw, 40px) clamp(30px, 3.4vw, 46px); font: 700 clamp(28px, 3.1vw, 42px)/1 "OneNotch Hand", "Bradley Hand", "Segoe Print", cursive; letter-spacing: 0.01em; white-space: nowrap; transform: rotate(-5deg); transform-origin: left bottom; }
.dm-hand__arrow { position: absolute; left: clamp(-58px, -4.6vw, -40px); bottom: clamp(-18px, -1.4vw, -12px); width: clamp(84px, 8.6vw, 118px); height: auto; }
.dm-ringhint { position: absolute; z-index: 47; top: -1.2em; left: 50%; width: 20em; height: 4.6em; border: 0.2em dashed rgba(255, 255, 255, 0.85); border-radius: 0 0 2.6em 2.6em; pointer-events: none; transform: translateX(-50%); transition: opacity 400ms ease; }
.dm-screen.no-notch .dm-ringhint { top: -0.6em; width: 16em; height: 3.8em; border-radius: 99em; }
.dm.dm-opened .dm-hand { opacity: 0; transform: translateY(-6px); }
.dm.dm-opened .dm-ringhint, .dm-island.is-open ~ .dm-ringhint, .dm-island.is-peek ~ .dm-ringhint, .dm-island.is-drop ~ .dm-ringhint { opacity: 0; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .dm-hand__text { animation: dm-hand-in 900ms var(--dm-out) 400ms both; }
  .dm-hand__arrow path { stroke-dasharray: 160; animation: dm-draw 900ms var(--dm-out) 800ms both; }
  .dm-ringhint { animation: dm-ring 2.2s ease-in-out 1.2s infinite; }
}
@keyframes dm-hand-in { from { opacity: 0; transform: rotate(-5deg) translateY(8px); } }
@keyframes dm-draw { from { stroke-dashoffset: 160; } }
@keyframes dm-ring { 50% { opacity: 0.45; } }

/* ---------- The notch ---------- */
.dm-hw { position: absolute; z-index: 46; top: 0; left: 50%; width: 15em; height: 2.5em; border-radius: 0 0 1.05em 1.05em; background: #000; pointer-events: none; transform: translateX(-50%); }
.dm-hw::after { content: ""; position: absolute; top: 0.75em; left: 50%; width: 0.7em; height: 0.7em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3d63, #07080c 70%); transform: translateX(-50%); }
.dm-screen.no-notch .dm-hw { display: none; }

.dm-island {
  --bg: #000;
  position: absolute; z-index: 45; top: 0; left: 50%; width: 15em; height: 2.5em;
  border-radius: 0 0 1.05em 1.05em; background: var(--bg); color: var(--ink);
  transform: translateX(-50%) scale(var(--s, 1)); transform-origin: top center;
  transition: width 620ms var(--dm-spring), height 620ms var(--dm-spring), border-radius 460ms var(--dm-out), top 460ms var(--dm-out), background-color 300ms ease, box-shadow 460ms ease, transform 260ms var(--dm-out);
}
.dm-island__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
/* The two small inward curves where the shape meets the top of the screen. */
.dm-island::before, .dm-island::after { content: ""; position: absolute; top: 0; width: 1.1em; height: 1.1em; pointer-events: none; }
.dm-island::before { left: -1.1em; background: radial-gradient(circle at 0 100%, transparent 1.05em, var(--bg) 1.1em); }
.dm-island::after { right: -1.1em; background: radial-gradient(circle at 100% 100%, transparent 1.05em, var(--bg) 1.1em); }
.dm-screen.no-notch .dm-island::before, .dm-screen.no-notch .dm-island::after { display: none; }
.dm-island.is-hover { --s: 1.04; }
.dm-island.is-live { width: 23em; height: 2.9em; border-radius: 0 0 1.2em 1.2em; }
.dm-island.is-wing { width: 38em; height: 3.3em; border-radius: 0 0 1.5em 1.5em; }
.dm-island.is-peek { width: 42em; border-radius: 0 0 2.2em 2.2em; box-shadow: 0 1.6em 3.6em -1em rgba(0, 0, 0, 0.6); }
.dm-island.is-drop { width: 34em; border-radius: 0 0 2.2em 2.2em; box-shadow: 0 1.6em 3.6em -1em rgba(0, 0, 0, 0.6); }
.dm-island.is-open { width: 62em; border-radius: 0 0 2.6em 2.6em; box-shadow: 0 2.6em 6.5em -1.6em rgba(0, 0, 0, 0.7); }
.dm-screen.no-notch .dm-island { top: 0.45em; border-radius: 2.2em; }
.dm-screen.no-notch .dm-island.is-closed { width: 11em; height: 2.2em; border-radius: 99em; }
.dm-screen.no-notch .dm-island.is-live, .dm-screen.no-notch .dm-island.is-wing { border-radius: 99em; }
.dm-screen.no-notch .dm-island.is-open { border-radius: 2.6em; }
.dm-island.style-glass.is-open, .dm-island.style-glass.is-peek { --bg: rgba(20, 18, 36, 0.72); -webkit-backdrop-filter: blur(2em) saturate(180%); backdrop-filter: blur(2em) saturate(180%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.1), 0 2.6em 6.5em -1.6em rgba(0, 0, 0, 0.6); }
.dm-island.style-frosted.is-open, .dm-island.style-frosted.is-peek { --bg: rgba(44, 44, 52, 0.82); -webkit-backdrop-filter: blur(2.8em) saturate(120%); backdrop-filter: blur(2.8em) saturate(120%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2.6em 6.5em -1.6em rgba(0, 0, 0, 0.65); }
.dm-island.style-glass.is-open::before, .dm-island.style-glass.is-open::after, .dm-island.style-frosted.is-open::before, .dm-island.style-frosted.is-open::after { display: none; }

/* Layers: one per state, centred, at the width of their state (so the shape can measure its height). */
.dm-layer { position: absolute; top: 0; left: 50%; display: none; transform: translateX(-50%); }
.dm-island.is-live .dm-layer--live, .dm-island.is-wing .dm-layer--wing, .dm-island.is-peek .dm-layer--peek, .dm-island.is-drop .dm-layer--drop, .dm-island.is-open .dm-layer--open { display: block; }
.dm-layer--live { width: 23em; } .dm-layer--wing { width: 38em; } .dm-layer--peek { width: 42em; } .dm-layer--drop { width: 34em; } .dm-layer--open { width: 62em; }
@media (prefers-reduced-motion: no-preference) {
  .dm-layer { animation: dm-dissolve 460ms var(--dm-out) 140ms both; }
  /* Only while the panel is opening (is-entering) or a screen is switching (is-switch): a click that
     just updates the panel redraws it without replaying any of this. */
  .dm-island.is-entering .dm-col, .dm-island.is-entering .dm-tabs { animation: dm-rise 520ms var(--dm-out) both; }
  .dm-island.is-entering .dm-tabs { animation-delay: 160ms; }
  .dm-island.is-entering .dm-col:nth-child(1) { animation-delay: 190ms; }
  .dm-island.is-entering .dm-col:nth-child(2) { animation-delay: 240ms; }
  .dm-island.is-entering .dm-col:nth-child(3) { animation-delay: 290ms; }
  .dm-body.is-switch .dm-col { animation: dm-dissolve 380ms var(--dm-out) both !important; }
  .dm-body.is-switch .dm-col:nth-child(2) { animation-delay: 50ms !important; }
  .dm-body.is-switch .dm-col:nth-child(3) { animation-delay: 100ms !important; }
}
@keyframes dm-dissolve { from { opacity: 0; filter: blur(0.6em); } }
@keyframes dm-rise { from { opacity: 0; filter: blur(0.5em); transform: translateY(-0.5em) scale(0.98); } }

/* Live activity: an icon on the left, a value on the right, the hardware notch in between. */
.dm-live { display: flex; align-items: center; justify-content: space-between; height: 2.9em; padding: 0 1em 0 0.9em; }
.dm-live__side { display: flex; align-items: center; gap: 0.45em; min-width: 0; font-size: 1.1em; font-weight: 650; font-variant-numeric: tabular-nums; }
.dm-live__side img { width: 1.35em; height: 1.35em; }
.dm-live__dot { width: 1.5em; height: 1.5em; border-radius: 0.45em; display: grid; place-items: center; background: var(--blue); color: #fff; }
.dm-live__dot svg { width: 0.95em; height: 0.95em; }
.dm-live .amber { color: var(--amber); }
.dm-live__dot--on { background: var(--green); }
.dm-live .mint { color: var(--mint); }
.dm-ring-s { width: 1.5em; height: 1.5em; border-radius: 50%; background: conic-gradient(var(--mint) 0 var(--p, 0%), rgba(255, 255, 255, 0.14) var(--p, 0%)); -webkit-mask: radial-gradient(circle, transparent 0.43em, #000 0.47em); mask: radial-gradient(circle, transparent 0.43em, #000 0.47em); }
.dm-screen.no-notch .dm-live { height: 2.9em; }
/* Wing: the meeting, about to start */
.dm-wing { display: flex; align-items: center; justify-content: space-between; height: 3.3em; padding: 0 0.6em 0 1em; }
.dm-wing__side { display: flex; align-items: center; gap: 0.6em; min-width: 0; }
.dm-wing__title { overflow: hidden; font-size: 1.12em; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.dm-wing__soon { color: var(--amber); font-size: 1.12em; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; height: 2.2em; padding: 0 1em; border: 0; border-radius: 99em; background: rgba(255, 255, 255, 0.12); color: var(--ink); font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, transform 120ms var(--dm-out), filter 160ms ease; }
.dm-btn:hover { background: rgba(255, 255, 255, 0.2); }
.dm-btn:active { transform: scale(0.96); }
.dm-btn svg { width: 1em; height: 1em; }
.dm-btn--blue { background: var(--blue); color: #fff; }
.dm-btn--blue:hover { background: #4a92f2; }
.dm-btn--white { background: #fff; color: #000; }
.dm-btn--white:hover { background: #e9e9ee; }

/* Peek: a Slack message, in Slack's dark theme */
.dm-layer--peek { padding: 2.8em 1.3em 1.2em; }
.dm-peek__top { display: flex; align-items: center; gap: 0.5em; color: #868686; font-size: 0.95em; font-weight: 600; }
.dm-peek__top img { width: 1.1em; height: 1.1em; }
.dm-peek__top span:last-child { margin-left: auto; font-weight: 500; }
.dm-peek__msg { display: flex; align-items: flex-start; gap: 0.8em; margin-top: 0.8em; }
.dm-peek__body { flex: 1 1 auto; min-width: 0; }
.dm-peek__who { color: #fff; font-size: 1.1em; font-weight: 800; }
.dm-peek__who small { margin-left: 0.4em; color: #868686; font-size: 0.82em; font-weight: 500; }
.dm-peek__text { margin-top: 0.15em; color: #d1d2d3; font-size: 1.05em; line-height: 1.4; }
.dm-peek__actions { display: flex; gap: 0.5em; margin-top: 0.9em; }

/* Drop target: a dashed tray */
.dm-layer--drop { padding: 3em 1.2em 1.2em; }
.dm-drop { display: grid; place-items: center; gap: 0.35em; height: 7.4em; border: 0.14em dashed rgba(255, 255, 255, 0.35); border-radius: 1.3em; color: var(--ink2); }
.dm-drop svg { width: 2em; height: 2em; color: var(--mint); }
.dm-drop b { color: var(--ink); font-size: 1.12em; }
@media (prefers-reduced-motion: no-preference) { .dm-island.is-drop .dm-drop { animation: dm-breathe 1.4s ease-in-out infinite; } }
@keyframes dm-breathe { 50% { border-color: rgba(47, 216, 174, 0.8); background: rgba(47, 216, 174, 0.06); } }

/* ---------- Open panel ---------- */
.dm-panel { padding: 3.3em 1.3em 0; font-size: 1.04em; }
.dm-screen.no-notch .dm-panel, .dm-screen.no-notch .dm-layer--peek, .dm-screen.no-notch .dm-layer--drop { padding-top: 1.3em; }
.dm-top { display: flex; align-items: center; gap: 0.8em; margin-bottom: 1em; }
.dm-tabs { display: flex; gap: 0.2em; }
.dm-tabs button { position: relative; display: inline-flex; align-items: center; gap: 0.45em; height: 2.3em; padding: 0 0.65em; border: 0; border-radius: 99em; background: transparent; color: var(--ink2); font: inherit; font-weight: 600; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, padding 300ms var(--dm-out); }
.dm-tabs button:hover { color: var(--ink); background: var(--chip); }
.dm-tabs button.is-on { padding: 0 0.95em 0 0.75em; background: var(--chip2); color: var(--ink); }
.dm-tabs button img, .dm-tabs button svg { width: 1.25em; height: 1.25em; }
.dm-tabs button b { display: none; font-size: 1em; }
.dm-tabs button.is-on b { display: inline; }
.dm-tabs .dm-badge { position: absolute; top: 0.1em; right: 0.05em; min-width: 1.15em; height: 1.15em; padding: 0 0.3em; border-radius: 99em; background: #e01e5a; color: #fff; font-size: 0.7em; font-weight: 800; line-height: 1.15em; text-align: center; box-shadow: 0 0 0 0.18em #000; }
.dm-top__end { display: flex; align-items: center; gap: 0.4em; margin-left: auto; }
.dm-stat { display: inline-flex; align-items: center; gap: 0.35em; height: 2em; padding: 0 0.7em; border-radius: 99em; background: var(--chip); color: var(--ink2); font-size: 0.9em; font-weight: 600; font-variant-numeric: tabular-nums; }
.dm-stat svg { width: 1.1em; height: 1.1em; }
.dm-iconbtn { display: inline-grid; place-items: center; width: 2.1em; height: 2.1em; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 300ms var(--dm-out); }
.dm-iconbtn:hover { background: var(--chip2); color: var(--ink); }
.dm-iconbtn:hover svg.spin { transform: rotate(45deg); }
.dm-iconbtn svg { width: 1.15em; height: 1.15em; transition: transform 400ms var(--dm-out); }

/* Columns with hairlines between them */
.dm-body { display: flex; align-items: stretch; min-height: 16em; }
.dm-col { min-width: 0; padding: 0 1.1em; }
.dm-col:first-child { padding-left: 0; }
.dm-col:last-child { padding-right: 0; }
.dm-col + .dm-col { box-shadow: -1px 0 0 var(--hair); }
.dm-col--grow { flex: 1 1 0; }
.dm-col--w14 { flex: 0 0 15em; }
.dm-col--w18 { flex: 0 0 19em; }
.dm-col--w22 { flex: 0 0 23em; }
.dm-label { margin-bottom: 0.7em; color: var(--ink3); font-size: 0.82em; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dm-foot { display: flex; align-items: center; gap: 1em; min-height: 2.9em; margin: 1.1em -1.3em 0; padding: 0 1.3em; box-shadow: 0 -1px 0 var(--hair); }
.dm-hint { display: flex; flex: 1 1 auto; align-items: center; gap: 0.5em; min-width: 0; overflow: hidden; color: var(--ink3); font-size: 0.95em; white-space: nowrap; text-overflow: ellipsis; }
.dm-hint svg { flex: 0 0 auto; width: 1em; height: 1em; }
.dm-toast { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.5em; color: var(--ink); font-size: 0.95em; font-weight: 600; opacity: 0; transform: translateY(0.4em); transition: opacity 260ms ease, transform 320ms var(--dm-out); }
.dm-toast.is-on { opacity: 1; transform: none; }
.dm-toast svg { width: 1.1em; height: 1.1em; color: var(--mint); }
.dm-float { position: absolute; z-index: 44; top: 4.1em; left: 50%; display: inline-flex; align-items: center; gap: 0.6em; height: 2.6em; padding: 0 1.1em; border-radius: 99em; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); font-size: 1em; white-space: nowrap; opacity: 0; transform: translate(-50%, -0.5em); transition: opacity 260ms ease, transform 320ms var(--dm-out); pointer-events: none; }
.dm-float.is-on { opacity: 1; transform: translate(-50%, 0); }
.dm-float svg { width: 1.05em; height: 1.05em; color: var(--mint); }

/* Shared */
.dm-ring { position: relative; display: grid; place-items: center; width: 8.4em; height: 8.4em; margin: 0.3em auto 0; border-radius: 50%; background: conic-gradient(var(--mint) 0 var(--p, 0%), rgba(255, 255, 255, 0.1) var(--p, 0%)); }
.dm-ring::before { content: ""; position: absolute; inset: 0.55em; border-radius: 50%; background: var(--ring-bg, #0b0b0c); }
.dm-ring > * { position: relative; }
.dm-ring b { font-size: 1.9em; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dm-ring small { display: block; margin-top: -0.2em; color: var(--ink3); font-size: 0.85em; text-align: center; }
.dm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; margin-top: 0.9em; }
.dm-chip { height: 2em; padding: 0 0.85em; border: 0; border-radius: 99em; background: var(--chip); color: var(--ink2); font: inherit; font-size: 0.95em; font-weight: 600; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.dm-chip:hover, .dm-chip.is-on { background: var(--chip2); color: var(--ink); }
.dm-av { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; color: #fff; font-size: 0.85em; font-weight: 700; }
.dm-input { display: flex; align-items: center; gap: 0.6em; min-height: 2.6em; padding: 0 0.35em 0 0.85em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hair); }
.dm-input:focus-within { box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.6), 0 0 0 0.2em rgba(138, 180, 255, 0.14); }
.dm-input input, .dm-input textarea { flex: 1 1 auto; min-width: 0; padding: 0.6em 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; resize: none; }
.dm-input input::placeholder { color: var(--ink3); }
.dm-scroll { overflow: auto; scrollbar-width: none; }
.dm-scroll::-webkit-scrollbar { display: none; }
.dm-empty { display: grid; place-items: center; gap: 0.6em; height: 100%; min-height: 12em; color: var(--ink3); text-align: center; }
.dm-empty img { width: 2.4em; height: 2.4em; opacity: 0.9; }
.dm-flash { animation: dm-flash 1.3s ease; }
@keyframes dm-flash { 0% { background-color: rgba(47, 216, 174, 0.22); } }

/* ---------- Home ---------- */
.dm-next__when { color: var(--amber); font-size: 0.9em; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dm-next__title { margin-top: 0.3em; font-size: 1.7em; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.dm-next__meta { display: flex; align-items: center; gap: 0.5em; margin-top: 0.4em; color: var(--ink2); }
.dm-next__meta img { height: 0.95em; width: auto; }
.dm-next__people { display: flex; margin-top: 0.9em; }
.dm-next__people .dm-av { width: 2em; height: 2em; box-shadow: 0 0 0 0.18em #000; font-size: 0.75em; }
.dm-next__people .dm-av + .dm-av { margin-left: -0.45em; }
.dm-next__actions { display: flex; gap: 0.5em; margin-top: 1.1em; }
.dm-glance { display: flex; flex-direction: column; gap: 0.35em; }
.dm-glance button { display: flex; align-items: center; gap: 0.8em; width: 100%; padding: 0.6em 0.7em; border: 0; border-radius: 0.8em; background: rgba(255, 255, 255, 0.04); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 160ms ease; }
.dm-glance button:hover { background: rgba(255, 255, 255, 0.09); }
.dm-glance img { width: 1.5em; height: 1.5em; }
.dm-glance b { font-size: 1.55em; font-weight: 650; font-variant-numeric: tabular-nums; }
.dm-glance span { display: block; min-width: 0; overflow: hidden; color: var(--ink2); font-size: 0.92em; white-space: nowrap; text-overflow: ellipsis; }
.dm-glance div { min-width: 0; flex: 1 1 auto; }
.dm-glance svg { width: 0.9em; height: 0.9em; color: var(--ink3); }

/* ---------- Linear (Linear's dark palette and glyphs) ---------- */
.dm-ln { --ln-text: #f7f8f8; --ln-text2: #8a8f98; --ln-line: #23252a; --ln-indigo: #5e6ad2; }
.dm-ln__bar { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.6em; }
.dm-ln__tabs { display: flex; gap: 0.2em; }
.dm-ln__tabs button { white-space: nowrap; height: 2em; padding: 0 0.8em; border: 0; border-radius: 0.45em; background: transparent; color: var(--ln-text2); font: inherit; font-size: 0.95em; font-weight: 550; cursor: pointer; }
.dm-ln__tabs button.is-on { background: #1c1d21; color: var(--ln-text); box-shadow: inset 0 0 0 1px var(--ln-line); }
.dm-ln__tabs i { margin-left: 0.35em; color: var(--ln-text2); font-style: normal; }
.dm-ln__search { display: flex; flex: 1 1 4em; min-width: 0; align-items: center; gap: 0.45em; height: 2em; padding: 0 0.7em; border-radius: 0.45em; background: #141518; box-shadow: inset 0 0 0 1px var(--ln-line); color: var(--ln-text2); }
.dm-ln__search svg { width: 0.95em; height: 0.95em; }
.dm-ln__search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ln-text); font: inherit; font-size: 0.95em; outline: none; }
.dm-ln__new { flex: 0 0 auto; white-space: nowrap; height: 2em; padding: 0 0.8em; border: 0; border-radius: 0.45em; background: var(--ln-indigo); color: #fff; font: inherit; font-size: 0.95em; font-weight: 600; cursor: pointer; }
.dm-ln__new:hover { background: #6e79d8; }
.dm-ln__list { max-height: 19.5em; }
.dm-ln__group { display: flex; align-items: center; gap: 0.55em; height: 2.2em; margin-top: 0.3em; padding: 0 0.6em; border-radius: 0.45em; background: #16171a; color: var(--ln-text); font-size: 0.95em; font-weight: 600; }
.dm-ln__group i { color: var(--ln-text2); font-style: normal; font-weight: 500; }
.dm-ln__row { position: relative; display: flex; align-items: center; gap: 0.7em; width: 100%; height: 2.6em; padding: 0 0.6em; border: 0; border-radius: 0.45em; background: transparent; color: var(--ln-text); font: inherit; text-align: left; cursor: pointer; }
.dm-ln__row:hover { background: rgba(255, 255, 255, 0.035); }
.dm-ln__row.is-sel { background: #1c1d22; box-shadow: inset 0 0 0 1px #2c2e35; }
.dm-ln__id { flex: 0 0 4.6em; color: var(--ln-text2); font-size: 0.92em; font-variant-numeric: tabular-nums; }
.dm-ln__title { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 1em; white-space: nowrap; text-overflow: ellipsis; }
.dm-ln__meta { flex: 0 0 auto; color: var(--ln-text2); font-size: 0.88em; }
.dm-ln__label { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 0.4em; height: 1.75em; padding: 0 0.6em; border-radius: 99em; box-shadow: inset 0 0 0 1px #2c2e35; color: #d0d3d8; font-size: 0.85em; }
.dm-ln__label::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--c, #bb87fc); }
.dm-ln__label--bug { --c: #eb5757; } .dm-ln__label--feature { --c: #bb87fc; } .dm-ln__label--design { --c: #4ea7fc; }
/* Status: Linear's glyphs, drawn the way OneNotch draws them */
.dm-st { position: relative; flex: 0 0 auto; width: 1.05em; height: 1.05em; border-radius: 50%; box-shadow: inset 0 0 0 0.12em var(--c); --c: #e2e2e2; }
.dm-st--backlog { box-shadow: none; border: 0.12em dashed #bec2c8; }
.dm-st--prog { --c: #f2c94c; background: conic-gradient(#f2c94c 0 50%, transparent 50%); background-clip: content-box; padding: 0.24em; }
.dm-st--review { --c: #4cb782; background: conic-gradient(#4cb782 0 75%, transparent 75%); background-clip: content-box; padding: 0.24em; }
.dm-st--done { box-shadow: none; background: #5e6ad2; }
.dm-st--done::after { content: ""; position: absolute; top: 28%; left: 34%; width: 0.22em; height: 0.4em; border: solid #000; border-width: 0 0.12em 0.12em 0; transform: rotate(45deg); }
.dm-stbtn { display: inline-grid; place-items: center; width: 1.8em; height: 1.8em; margin: -0.35em; border-radius: 0.4em; }
.dm-stbtn:hover { background: rgba(255, 255, 255, 0.08); }
.dm-pri { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 0.12em; width: 1.1em; height: 0.95em; }
.dm-pri i { flex: 1; border-radius: 0.08em; background: rgba(255, 255, 255, 0.85); }
.dm-pri i:nth-child(1) { height: 45%; } .dm-pri i:nth-child(2) { height: 72%; } .dm-pri i:nth-child(3) { height: 100%; }
.dm-pri--3 i:nth-child(3), .dm-pri--4 i:nth-child(2), .dm-pri--4 i:nth-child(3) { background: rgba(255, 255, 255, 0.2); }
.dm-pri--1 { align-items: center; justify-content: center; border-radius: 0.2em; background: #f2994a; color: #000; font-size: 0.75em; font-weight: 900; width: 1.45em; height: 1.45em; }
.dm-pri--0 { align-items: center; } .dm-pri--0 i { height: 0.12em !important; background: rgba(255, 255, 255, 0.25); }
.dm-menu { position: absolute; z-index: 6; top: 2.4em; left: 5.4em; width: 15em; padding: 0.35em; border-radius: 0.7em; background: #1c1d21; box-shadow: inset 0 0 0 1px #2c2e35, 0 1.2em 2.6em -0.6em rgba(0, 0, 0, 0.8); }
.dm-menu__head { padding: 0.35em 0.6em 0.45em; color: var(--ln-text2); font-size: 0.85em; }
.dm-menu button { display: flex; align-items: center; gap: 0.65em; width: 100%; height: 2.3em; padding: 0 0.6em; border: 0; border-radius: 0.45em; background: transparent; color: var(--ln-text); font: inherit; font-size: 0.98em; text-align: left; cursor: pointer; }
.dm-menu button:hover { background: #26272d; }
.dm-menu button .k { margin-left: auto; color: var(--ln-text2); font-size: 0.88em; }
.dm-menu button svg { width: 0.95em; height: 0.95em; margin-left: auto; color: var(--ln-text2); }
@media (prefers-reduced-motion: no-preference) { .dm-menu { animation: dm-pop 180ms var(--dm-out); } }
/* Issue detail */
.dm-ln__detail { display: flex; flex-direction: column; height: 100%; }
.dm-ln__crumb { display: flex; align-items: center; gap: 0.5em; color: var(--ln-text2); font-size: 0.9em; }
.dm-ln__crumb button { margin-left: auto; }
.dm-ln__h { margin: 0.4em 0 0.6em; font-size: 1.3em; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
.dm-ln__props { display: flex; flex-wrap: wrap; gap: 0.35em; }
.dm-ln__prop { display: inline-flex; align-items: center; gap: 0.45em; height: 1.9em; padding: 0 0.6em; border: 0; border-radius: 0.45em; background: #1c1d21; box-shadow: inset 0 0 0 1px var(--ln-line); color: var(--ln-text); font: inherit; font-size: 0.88em; cursor: pointer; }
.dm-ln__prop:hover { background: #24252a; }
.dm-ln__desc { margin: 0.8em 0 0; color: #c9ccd1; font-size: 0.95em; line-height: 1.5; }
.dm-ln__comments { flex: 1 1 auto; min-height: 0; max-height: 8.6em; margin: 0.6em 0; }
.dm-ln__comment { display: flex; gap: 0.6em; padding: 0.45em 0; font-size: 0.92em; }
.dm-ln__comment b { color: var(--ln-text); }
.dm-ln__comment span { color: #c9ccd1; }
.dm-ln__comment .dm-av { width: 1.9em; height: 1.9em; font-size: 0.72em; }

/* ---------- Slack (Slack's dark theme, from SlackTheme.swift) ---------- */
.dm-sl { --sl-text: #d1d2d3; --sl-text2: #ababad; --sl-text3: #868686; --sl-surface: #1a1d21; --sl-hover: #222529; --sl-border: #3a3b3e; --sl-blue: #1d9bd1; --sl-green: #2bac76; --sl-send: #007a5a; --sl-badge: #e01e5a; }
.dm-sl__list { display: flex; flex-direction: column; gap: 0.1em; max-height: 20.5em; }
.dm-sl__row { display: flex; align-items: center; gap: 0.7em; width: 100%; height: 3.4em; padding: 0 0.55em; border: 0; border-radius: 0.55em; background: transparent; color: var(--sl-text); font: inherit; text-align: left; cursor: pointer; }
.dm-sl__row:hover { background: var(--sl-hover); }
.dm-sl__row.is-sel { background: #1164a3; }
.dm-sl__row.is-sel .dm-sl__prev, .dm-sl__row.is-sel .dm-sl__time { color: rgba(255, 255, 255, 0.8); }
.dm-sl__av { position: relative; display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.5em; color: #fff; font-size: 0.95em; font-weight: 800; }
.dm-sl__av.is-online::after { content: ""; position: absolute; right: -0.2em; bottom: -0.2em; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--sl-green); box-shadow: 0 0 0 0.18em #000; }
.dm-sl__chan { background: var(--sl-border); color: var(--sl-text2); font-weight: 700; }
.dm-sl__meta { flex: 1 1 auto; min-width: 0; }
.dm-sl__name { display: flex; align-items: baseline; gap: 0.4em; font-size: 0.98em; font-weight: 600; }
.dm-sl__name.is-unread { color: #fff; font-weight: 800; }
.dm-sl__time { margin-left: auto; color: var(--sl-text3); font-size: 0.82em; font-weight: 500; }
.dm-sl__prev { overflow: hidden; color: var(--sl-text3); font-size: 0.9em; white-space: nowrap; text-overflow: ellipsis; }
.dm-sl__prev.is-unread { color: var(--sl-text); }
.dm-sl__badge { flex: 0 0 auto; min-width: 1.5em; height: 1.5em; padding: 0 0.4em; border-radius: 99em; background: var(--sl-badge); color: #fff; font-size: 0.8em; font-weight: 800; line-height: 1.5em; text-align: center; }
.dm-sl__thread { display: flex; flex-direction: column; height: 100%; }
.dm-sl__head { display: flex; align-items: center; gap: 0.6em; padding-bottom: 0.6em; box-shadow: 0 1px 0 var(--hair); }
.dm-sl__head b { color: #fff; font-size: 1.05em; }
.dm-sl__head small { color: var(--sl-text3); }
.dm-sl__msgs { flex: 1 1 auto; max-height: 14.2em; padding: 0.4em 0; }
.dm-sl__msg { display: flex; gap: 0.7em; padding: 0.35em 0.3em; border-radius: 0.45em; }
.dm-sl__msg:hover { background: var(--sl-hover); }
.dm-sl__msg .dm-sl__av { width: 2.2em; height: 2.2em; font-size: 0.85em; }
.dm-sl__who { color: #fff; font-size: 0.95em; font-weight: 800; }
.dm-sl__who small { margin-left: 0.4em; color: var(--sl-text3); font-size: 0.82em; font-weight: 500; }
.dm-sl__text { color: var(--sl-text); font-size: 0.97em; line-height: 1.45; }
.dm-sl__mention { padding: 0 0.15em; border-radius: 0.2em; background: rgba(29, 155, 209, 0.18); color: var(--sl-blue); font-weight: 600; }
.dm-sl__reacts { display: flex; gap: 0.35em; margin-top: 0.3em; }
.dm-sl__reacts button { display: inline-flex; align-items: center; gap: 0.3em; height: 1.75em; padding: 0 0.55em; border: 0; border-radius: 99em; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--sl-border); color: var(--sl-text2); font: inherit; font-size: 0.85em; cursor: pointer; }
.dm-sl__reacts button.is-on { background: rgba(29, 155, 209, 0.15); box-shadow: inset 0 0 0 1px var(--sl-blue); color: #fff; }
.dm-sl__typing { display: flex; align-items: center; gap: 0.5em; height: 1.5em; color: var(--sl-text3); font-size: 0.85em; }
.dm-dots { display: inline-flex; gap: 0.2em; }
.dm-dots i { width: 0.35em; height: 0.35em; border-radius: 50%; background: var(--sl-text2); animation: dm-dot 1s infinite ease-in-out; }
.dm-dots i:nth-child(2) { animation-delay: 0.15s; } .dm-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dm-dot { 40% { transform: translateY(-0.25em); opacity: 1; } 0%, 80%, 100% { opacity: 0.4; } }
.dm-sl__composer { border-radius: 0.6em; background: var(--sl-surface); box-shadow: inset 0 0 0 1px var(--sl-border); }
.dm-sl__composer:focus-within { box-shadow: inset 0 0 0 1px #6b6b6f; }
.dm-sl__composer input { width: 100%; padding: 0.75em 0.8em 0.3em; border: 0; background: transparent; color: #fff; font: inherit; font-size: 0.97em; outline: none; }
.dm-sl__composer input::placeholder { color: var(--sl-text3); }
.dm-sl__tools { display: flex; align-items: center; gap: 0.5em; padding: 0.3em 0.5em 0.45em 0.8em; color: var(--sl-text3); font-size: 0.85em; }
.dm-sl__tools b { font-weight: 800; } .dm-sl__tools i { font-style: italic; } .dm-sl__tools s { text-decoration: line-through; }
.dm-sl__send { display: inline-grid; place-items: center; width: 2.1em; height: 1.8em; margin-left: auto; border: 0; border-radius: 0.35em; background: var(--sl-send); color: #fff; cursor: pointer; }
.dm-sl__send:disabled { background: transparent; color: var(--sl-text3); cursor: default; }
.dm-sl__send svg { width: 1em; height: 1em; }

/* ---------- Today ---------- */
.dm-meet { position: relative; display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.5em 0.55em 0.75em; border-radius: 0.7em; }
.dm-meet + .dm-meet { margin-top: 0.2em; }
.dm-meet::before { content: ""; position: absolute; left: 0; top: 0.5em; bottom: 0.5em; width: 0.25em; border-radius: 1em; background: var(--c, #4285f4); }
.dm-meet.is-now { background: rgba(255, 255, 255, 0.05); }
.dm-meet.is-past { opacity: 0.42; }
.dm-meet__body { flex: 1 1 auto; min-width: 0; }
.dm-meet__title { overflow: hidden; font-size: 1em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dm-meet__time { color: var(--ink3); font-size: 0.88em; font-variant-numeric: tabular-nums; }
.dm-meet__time .soon { color: var(--amber); font-weight: 650; }
.dm-meet__time .live { color: var(--green); font-weight: 650; }
.dm-meet__svc { flex: 0 0 auto; width: 1.4em; height: 1.4em; object-fit: contain; }
.dm-meet__svc--word { width: 3.2em; height: auto; }
.dm-meet .dm-btn { height: 1.9em; padding: 0 0.8em; font-size: 0.9em; }
.dm-rem { display: flex; align-items: center; gap: 0.65em; width: 100%; min-height: 2.3em; padding: 0 0.2em; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dm-rem__box { position: relative; flex: 0 0 auto; width: 1.15em; height: 1.15em; border-radius: 50%; box-shadow: inset 0 0 0 0.12em rgba(255, 255, 255, 0.38); transition: background-color 200ms ease, box-shadow 200ms ease; }
.dm-rem:hover .dm-rem__box { box-shadow: inset 0 0 0 0.12em #ff9f0a; }
.dm-rem.is-done { color: var(--ink3); text-decoration: line-through; }
.dm-rem.is-done .dm-rem__box { background: #ff9f0a; box-shadow: none; }
.dm-rem.is-done .dm-rem__box::after { content: ""; position: absolute; top: 22%; left: 36%; width: 0.22em; height: 0.45em; border: solid #000; border-width: 0 0.13em 0.13em 0; transform: rotate(45deg); }
.dm-status { display: flex; align-items: center; gap: 0.6em; margin-top: 1em; padding: 0.6em 0.7em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.05); font-size: 0.92em; }
.dm-status b { display: block; }
.dm-status span { color: var(--ink3); font-size: 0.92em; }

/* ---------- GitHub (GitHub's dark palette) ---------- */
.dm-gh { --gh-bg: #0d1117; --gh-line: #30363d; --gh-text: #e6edf3; --gh-muted: #7d8590; --gh-green: #3fb950; --gh-red: #f85149; --gh-yellow: #d29922; --gh-btn: #238636; }
.dm-gh__tabs { display: flex; gap: 0.3em; margin-bottom: 0.7em; }
.dm-gh__tabs button { display: inline-flex; align-items: center; gap: 0.4em; height: 2em; padding: 0 0.8em; border: 0; border-radius: 0.45em; background: transparent; color: var(--gh-muted); font: inherit; font-size: 0.95em; font-weight: 600; cursor: pointer; }
.dm-gh__tabs button.is-on { background: #161b22; box-shadow: inset 0 0 0 1px var(--gh-line); color: var(--gh-text); }
.dm-gh__tabs i { min-width: 1.4em; padding: 0 0.4em; border-radius: 99em; background: rgba(110, 118, 129, 0.4); color: var(--gh-text); font-size: 0.85em; font-style: normal; }
.dm-gh__list { overflow: hidden; border-radius: 0.6em; box-shadow: inset 0 0 0 1px var(--gh-line); background: var(--gh-bg); }
.dm-gh__pr { padding: 0.75em 0.9em; }
.dm-gh__pr + .dm-gh__pr { box-shadow: 0 -1px 0 var(--gh-line); }
.dm-gh__main { display: flex; align-items: flex-start; gap: 0.7em; }
.dm-gh__icon { flex: 0 0 auto; width: 1.15em; height: 1.15em; margin-top: 0.15em; color: var(--gh-green); }
.dm-gh__icon--draft { color: var(--gh-muted); }
.dm-gh__icon--merged { color: #a371f7; }
.dm-gh__info { flex: 1 1 auto; min-width: 0; }
.dm-gh__title { overflow: hidden; color: var(--gh-text); font-size: 1em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.dm-gh__sub { display: flex; flex-wrap: wrap; gap: 0.2em 0.7em; margin-top: 0.2em; color: var(--gh-muted); font-size: 0.85em; }
.dm-gh__end { display: flex; flex: 0 0 auto; align-items: center; gap: 0.45em; }
.dm-gh__check { display: inline-flex; align-items: center; gap: 0.3em; height: 1.9em; padding: 0 0.6em; border: 0; border-radius: 99em; background: transparent; font: inherit; font-size: 0.88em; font-weight: 600; cursor: pointer; }
.dm-gh__check:hover { background: rgba(255, 255, 255, 0.06); }
.dm-gh__check svg { width: 0.95em; height: 0.95em; }
.dm-gh__check--pass { color: var(--gh-green); } .dm-gh__check--fail { color: var(--gh-red); } .dm-gh__check--run { color: var(--gh-yellow); }
@media (prefers-reduced-motion: no-preference) { .dm-gh__check--run svg { animation: dm-spin 1.1s linear infinite; } }
@keyframes dm-spin { to { transform: rotate(360deg); } }
.dm-gh__btn { height: 2em; padding: 0 0.85em; border: 0; border-radius: 0.45em; background: #21262d; box-shadow: inset 0 0 0 1px rgba(240, 246, 252, 0.1); color: #c9d1d9; font: inherit; font-size: 0.88em; font-weight: 600; cursor: pointer; }
.dm-gh__btn:hover { background: #30363d; }
.dm-gh__btn--approve { background: var(--gh-btn); box-shadow: inset 0 0 0 1px rgba(240, 246, 252, 0.1); color: #fff; }
.dm-gh__btn--approve:hover { background: #2ea043; }
.dm-gh__btn--confirm { background: #2ea043; color: #fff; box-shadow: 0 0 0 0.22em rgba(46, 160, 67, 0.35); }
.dm-gh__done { display: inline-flex; align-items: center; gap: 0.35em; color: var(--gh-green); font-size: 0.88em; font-weight: 700; }
.dm-gh__done svg { width: 1em; height: 1em; }
.dm-gh__checks { margin: 0.6em 0 0 1.85em; padding: 0.3em 0.6em; border-radius: 0.5em; background: #161b22; box-shadow: inset 0 0 0 1px var(--gh-line); }
.dm-gh__checkrow { display: flex; align-items: center; gap: 0.55em; height: 1.9em; color: var(--gh-text); font-size: 0.88em; }
.dm-gh__checkrow svg { width: 0.95em; height: 0.95em; }
.dm-gh__checkrow span { margin-left: auto; color: var(--gh-muted); }

/* ---------- Shelf ---------- */
.dm-clip { display: flex; align-items: center; gap: 0.7em; width: 100%; min-height: 2.8em; padding: 0.3em 0.55em; border: 0; border-radius: 0.65em; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dm-clip:hover { background: rgba(255, 255, 255, 0.06); }
.dm-clip__icon { display: grid; flex: 0 0 auto; place-items: center; width: 2em; height: 2em; border-radius: 0.5em; background: var(--chip); color: var(--ink2); }
.dm-clip__icon svg { width: 1em; height: 1em; }
.dm-clip__swatch { width: 2em; height: 2em; border-radius: 0.5em; background: #2fd8ae; }
.dm-clip__text { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: 0.97em; white-space: nowrap; text-overflow: ellipsis; }
.dm-clip__text code { font-family: var(--mk-mono); font-size: 0.92em; }
.dm-clip__meta { flex: 0 0 auto; color: var(--ink3); font-size: 0.85em; }
.dm-clip.is-private { cursor: default; }
.dm-clip.is-private .dm-clip__text { color: var(--ink3); font-style: italic; }
.dm-tray { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.9em; min-height: 10.5em; padding: 1em; border: 0.14em dashed rgba(255, 255, 255, 0.22); border-radius: 1.2em; }
.dm-tray__file { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.4em; width: 6.6em; }
.dm-tray__file span { max-width: 100%; overflow: hidden; color: var(--ink2); font-size: 0.85em; white-space: nowrap; text-overflow: ellipsis; }
.dm-tray__x { position: absolute; top: -0.4em; right: 0.6em; display: grid; place-items: center; width: 1.4em; height: 1.4em; border: 0; border-radius: 50%; background: #3a3a40; color: #fff; opacity: 0; cursor: pointer; transition: opacity 160ms ease; }
.dm-tray__file:hover .dm-tray__x { opacity: 1; }
.dm-tray__x svg { width: 0.7em; height: 0.7em; }
.dm-tray__empty { display: grid; width: 100%; place-items: center; gap: 0.5em; color: var(--ink3); text-align: center; }
.dm-tray__empty svg { width: 1.8em; height: 1.8em; }
.dm-airdrop { margin-top: 0.8em; padding: 0.8em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.06); }
.dm-airdrop__people { display: flex; gap: 1.2em; margin-top: 0.6em; }
.dm-airdrop__dev { display: flex; flex-direction: column; align-items: center; gap: 0.35em; border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 0.85em; cursor: pointer; }
.dm-airdrop__dev .dm-av { position: relative; width: 3.2em; height: 3.2em; font-size: 1em; }
.dm-airdrop__dev .dm-av::after { content: ""; position: absolute; inset: -0.25em; border-radius: 50%; background: conic-gradient(#0a84ff 0 var(--p, 0%), transparent var(--p, 0%)); -webkit-mask: radial-gradient(circle, transparent 1.62em, #000 1.66em); mask: radial-gradient(circle, transparent 1.62em, #000 1.66em); }

/* Caption under the Mac */
.dm-caption { max-width: 940px; margin: clamp(20px, 2.4vw, 28px) auto 0; color: var(--mk-ink-2); font-size: 14.5px; line-height: 1.9; text-align: center; text-wrap: balance; }
.dm-caption kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin: 0 1px; padding: 0 6px; border-radius: 7px; background: linear-gradient(180deg, var(--mk-surface), var(--mk-surface-2)); box-shadow: inset 0 0 0 1px var(--mk-hairline-strong), 0 2px 0 var(--mk-hairline-strong); color: var(--mk-ink); font: 600 12px/1 var(--mk-font); vertical-align: 1px; }
.dm-caption__phone { display: none; }
.dm-noscript { padding: 24px; color: var(--mk-ink-2); text-align: center; }
.dm-section .lf-head .mk-lead { margin-top: 4px; }
.dm-section .dm { margin-top: clamp(36px, 4.5vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  .dm-island, .dm-dock > button, .dm-toast, .dm-float, .dm-switch::after { transition: none; }
  .dm-layer, .dm-col, .dm-tabs, .dm-dock > button.is-bounce, .dm-dots i, .dm-menu, .dm-mbmenu, .dm-hand__text, .dm-hand__arrow path, .dm-ringhint { animation: none !important; }
}

/* Phones: the panel on its own, always open, readable and tappable. */
@media (max-width: 760px) {
  .dm-toolbar { flex-direction: column; align-items: stretch; }
  .dm-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .dm-control { justify-content: space-between; }
  .dm-control--mac { display: none; }
  .dm-actions .mk-btn { flex: 1 1 auto; }
  .dm-screen { aspect-ratio: auto; padding: 3.3em 0.8em 1.4em; font-size: 2.7cqw; }
  .dm-screen .nx-bar__menus span:nth-child(n+3), .dm-win, .dm-files, .dm-dock, .dm-hand, .dm-ringhint, .dm-hw, .dm-float, .dm-mbmenu { display: none !important; }
  .dm-frame { margin-top: 0; }
  .dm-island, .dm-screen.no-notch .dm-island { position: relative; top: auto; left: auto; width: auto !important; height: auto !important; border-radius: 1.6em !important; transform: none; }
  .dm-island::before, .dm-island::after { display: none; }
  .dm-island__clip { position: relative; inset: auto; }
  .dm-island .dm-layer { display: none !important; }
  .dm-island .dm-layer--open { position: relative; left: auto; display: block !important; width: auto; transform: none; }
  .dm-panel { padding: 1.1em 1em 0; }
  .dm-top { flex-wrap: wrap; }
  .dm-top__end .dm-stat { display: none; }
  .dm-body { flex-direction: column; min-height: 0; }
  .dm-col { padding: 0.9em 0 0 !important; }
  .dm-col + .dm-col { box-shadow: 0 -1px 0 var(--hair); margin-top: 0.9em; }
  .dm-col--w14, .dm-col--w18, .dm-col--w22 { flex: 1 1 auto; }
  .dm-ln__id, .dm-ln__label, .dm-ln__meta, .dm-gh__sub span:nth-child(n+3) { display: none; }
  .dm-gh__main { flex-wrap: wrap; }
  .dm-gh__end { width: 100%; justify-content: flex-end; }
  .dm-caption__keys, .dm-caption__desk { display: none; }
  .dm-caption__phone { display: inline; }
}
