/* ClipNest live demo: a desktop (macOS or Windows) with the ClipNest panel at the left edge and the
   sticky-note dots at the right edge. Everything is scoped under .dm. */
.dm { --dm-r: 18px; --cn-acc: #4f7bff; position: relative; margin-top: var(--s-6); border-radius: var(--dm-r); overflow: hidden;
  background: #0b0d12; box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 10%, transparent), 0 40px 90px -50px rgb(0 0 0 / .6);
  font: 400 13px/1.4 -apple-system, "Segoe UI Variable", "Segoe UI", "Chivo", system-ui, sans-serif; color: #fff;
  user-select: none; -webkit-user-select: none; isolation: isolate; }
.dm.fill { min-height: 420px; }
.dm__wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: opacity .5s ease; }
.dm__wall[hidden] { display: block; opacity: 0; }
.dm::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .08), rgb(0 0 0 / .22)); z-index: 0; pointer-events: none; }
.dm button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dm button:focus-visible { outline: 2px solid #8fb0ff; outline-offset: 2px; }

/* ---- system chrome */
.dm__menubar { position: absolute; z-index: 5; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 18px; padding: 0 14px;
  background: rgb(20 22 28 / .42); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); font-weight: 500; font-size: 13px; }
.dm__menubar span:not(.dm__apple) { opacity: .92; } .dm__menubar .dm__sp { flex: 1; }
.dm__apple { width: 14px; height: 16px; display: inline-block; background: #fff; -webkit-mask: url(assets/icons/apple.svg) center / contain no-repeat; mask: url(assets/icons/apple.svg) center / contain no-repeat; }
.dm__trayorb { width: 16px; height: 16px; border-radius: 50%; }
.dm__taskbar { position: absolute; z-index: 5; inset: auto 0 0 0; height: 44px; display: none; align-items: center; justify-content: center; gap: 6px;
  background: rgb(28 30 38 / .72); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid rgb(255 255 255 / .08); }
.dm__taskbar .dm__tb { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; }
.dm__taskbar .dm__tb.is-on { background: rgb(255 255 255 / .1); }
.dm__taskbar .dm__tb img { width: 22px; height: 22px; }
.dm__tray { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; text-align: right; line-height: 1.25; }
.dm__dock { position: absolute; z-index: 5; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 8px; border-radius: 16px;
  background: rgb(255 255 255 / .18); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); }
.dm__dock i { width: 34px; height: 34px; border-radius: 9px; display: block; background: var(--c); }
.dm[data-os="win"] .dm__menubar, .dm[data-os="win"] .dm__dock { display: none; }
.dm[data-os="win"] .dm__taskbar { display: flex; }

/* ---- the document window the visitor copies from and pastes into */
.dm__win { position: absolute; z-index: 2; left: 50%; top: 52px; width: min(560px, 54%); transform: translateX(-46%); border-radius: 12px; overflow: hidden;
  background: #fbfbfc; color: #16181a; box-shadow: 0 0 0 1px rgb(0 0 0 / .1), 0 30px 70px -24px rgb(0 0 0 / .6); user-select: text; -webkit-user-select: text; }
.dm[data-os="win"] .dm__win { top: 36px; border-radius: 8px; }
.dm__winbar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 12.5px; color: #5d6268; user-select: none; }
.dm__lights { display: flex; gap: 7px; } .dm__lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .dm__lights i:nth-child(2) { background: #febc2e; } .dm__lights i:nth-child(3) { background: #28c840; }
.dm__winctl { display: none; margin-left: auto; gap: 18px; color: #333; font-size: 14px; }
.dm[data-os="win"] .dm__lights { display: none; }
.dm[data-os="win"] .dm__winctl { display: flex; }
.dm[data-os="win"] .dm__winbar { flex-direction: row; }
.dm__wintitle { flex: 1; text-align: center; } .dm[data-os="win"] .dm__wintitle { text-align: left; }
.dm__doc { padding: 16px 20px 18px; display: grid; gap: 4px; font-size: 14px; line-height: 1.5; max-height: 320px; overflow: hidden; }
.dm__doc h4 { margin: 0 0 6px; font: 600 16px/1.3 inherit; }
.dm__line { display: flex; align-items: center; gap: 10px; padding: 4px 8px; margin: 0 -8px; border-radius: 6px; transition: background .2s; }
.dm__line:hover, .dm__line.is-hl { background: rgb(47 95 245 / .1); }
.dm__line.is-hl .dm__txt { background: rgb(47 95 245 / .22); border-radius: 2px; }
.dm__line .dm__txt { flex: 1; }
.dm__copy { height: 26px; padding: 0 10px !important; border-radius: 99px; font-size: 12px !important; color: #2f5ff5 !important; background: rgb(47 95 245 / .1) !important; opacity: 0; transition: opacity .2s; user-select: none; }
.dm__line:hover .dm__copy, .dm__line.is-hl .dm__copy, .dm__copy:focus-visible { opacity: 1; }
.dm__paste { margin-top: 8px; padding: 10px 12px; border-radius: 8px; border: 1px dashed rgb(0 0 0 / .16); color: #5d6268; min-height: 44px; display: grid; gap: 4px; }
.dm__paste b { font-weight: 500; color: #16181a; font-size: 12px; }
.dm__paste p { margin: 0; color: #16181a; animation: dmIn .4s cubic-bezier(.22,1,.36,1); }
.dm__paste img { width: 120px; border-radius: 6px; animation: dmIn .4s cubic-bezier(.22,1,.36,1); }
@keyframes dmIn { from { opacity: 0; transform: translateY(6px); } }

/* ---- the edge: hot zone, resting notch, copy flare */
.dm__hot { position: absolute; z-index: 6; top: 22%; bottom: 22%; width: 18px; left: 0; }
.dm[data-side="right"] .dm__hot { left: auto; right: 0; }
.dm__notch { position: absolute; z-index: 6; left: 0; top: 50%; width: 6px; height: 64px; transform: translateY(-50%); border-radius: 0 6px 6px 0; background: rgb(255 255 255 / .55);
  box-shadow: 0 0 12px rgb(143 176 255 / .7); transition: opacity .3s; }
.dm[data-side="right"] .dm__notch { left: auto; right: 0; border-radius: 6px 0 0 6px; }
.dm.is-open .dm__notch { opacity: 0; }
.dm__flare { position: absolute; z-index: 7; left: -40px; top: 50%; width: 80px; height: 80px; margin-top: -40px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: url(brand/orb-160.png) center / 56px no-repeat, radial-gradient(circle, rgb(120 150 255 / .55), transparent 66%); }
.dm[data-side="right"] .dm__flare { left: auto; right: -40px; }
.dm__flare.is-on { animation: dmFlare 1.4s cubic-bezier(.22,1,.36,1); }
@keyframes dmFlare { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1) translateX(36px); } 78% { opacity: 1; transform: scale(1) translateX(36px); } 100% { opacity: 0; transform: scale(.8); } }
.dm[data-side="right"] .dm__flare.is-on { animation-name: dmFlareR; }
@keyframes dmFlareR { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1) translateX(-36px); } 78% { opacity: 1; transform: scale(1) translateX(-36px); } 100% { opacity: 0; transform: scale(.8); } }

/* ---- the ClipNest panel */
.dmp { position: absolute; z-index: 8; left: 10px; top: 50%; width: min(312px, 78%); height: min(440px, calc(100% - 72px)); transform: translate(calc(-100% - 24px), -50%);
  transition: transform .5s cubic-bezier(.22,1,.36,1); background: #000; border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .07), 0 30px 80px rgb(0 0 0 / .55); }
.dm[data-side="right"] .dmp { left: auto; right: 10px; transform: translate(calc(100% + 24px), -50%); }
.dm.is-open .dmp { transform: translate(0, -50%); }
.dm[data-os="win"] .dmp { top: calc(50% - 22px); }
.dmp__tabs { display: flex; gap: 4px; align-items: center; }
.dmp__tab { height: 30px; min-width: 30px; padding: 0 9px !important; border-radius: 99px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: rgb(255 255 255 / .66) !important; transition: background .25s, color .25s; }
.dmp__tab .lbl { display: none; }
.dmp__tab[aria-selected="true"] { background: #fff !important; color: #000 !important; font-weight: 500; }
.dmp__tab[aria-selected="true"] .lbl { display: inline; }
.dmp__tab svg, .dmp svg.g { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dmp__tabs .sp { flex: 1; }
.dmp__view { display: none; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.dmp__view.is-on { display: flex; }
.dmp__search { height: 34px; border-radius: 12px; background: rgb(255 255 255 / .07); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: rgb(255 255 255 / .6); }
.dmp__search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: inherit; outline: none; }
.dmp__search input::placeholder { color: rgb(255 255 255 / .5); }
.dmp__chips { display: flex; gap: 5px; }
.dmp__chip { height: 26px; padding: 0 9px !important; border-radius: 99px; color: rgb(255 255 255 / .7) !important; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); font-size: 12px !important; }
.dmp__chip[aria-pressed="true"] { background: rgb(255 255 255 / .16) !important; color: #fff !important; box-shadow: none; }
.dmp__list { display: grid; gap: 6px; overflow: auto; min-height: 0; flex: 1; align-content: start; scrollbar-width: none; }
.dmp__list::-webkit-scrollbar { display: none; }
.dmp__item { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 9px !important; border-radius: 14px; background: rgb(255 255 255 / .055) !important; text-align: left; transition: background .2s, transform .2s; }
.dmp__item:hover, .dmp__item.is-hover { background: rgb(255 255 255 / .11) !important; }
.dmp__item.is-new { animation: dmNew .9s cubic-bezier(.22,1,.36,1); }
@keyframes dmNew { 0% { opacity: 0; transform: translateY(-10px) scale(.97); box-shadow: inset 0 0 0 1px rgb(79 123 255 / 0); } 30% { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgb(79 123 255 / .9); } 100% { box-shadow: inset 0 0 0 1px rgb(79 123 255 / 0); } }
.dmp__g { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgb(255 255 255 / .08); overflow: hidden; }
.dmp__g img { width: 100%; height: 100%; object-fit: cover; } .dmp__g img.f { width: 26px; height: 26px; object-fit: contain; }
.dmp__t { min-width: 0; } .dmp__t b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.dmp__t span { display: block; color: rgb(255 255 255 / .6); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmp__m { color: rgb(255 255 255 / .55); font-size: 11.5px; display: flex; gap: 6px; align-items: center; }
.dmp__pin { width: 7px; height: 7px; border-radius: 50%; background: var(--cn-acc); }
.dmp__acts { display: none; gap: 4px; }
.dmp__item:hover .dmp__acts, .dmp__item.is-hover .dmp__acts { display: flex; } .dmp__item:hover .dmp__time, .dmp__item.is-hover .dmp__time { display: none; }
.dmp__act { height: 24px; padding: 0 8px !important; border-radius: 99px; background: rgb(255 255 255 / .12) !important; font-size: 11.5px !important; }
.dmp__act.is-hot { background: #fff !important; color: #000 !important; }
.dmp__empty { color: rgb(255 255 255 / .55); text-align: center; padding: 24px 8px; }
.dmp__paused { display: none; height: 26px; align-items: center; gap: 6px; padding: 0 10px; border-radius: 99px; background: rgb(242 163 58 / .18); color: #ffc574; font-size: 12px; align-self: start; }
.dm.is-paused .dmp__paused { display: inline-flex; }

/* notes, to-do, pulse, settings views */
.dmp__note { padding: 10px 12px; border-radius: 12px; color: #1c1a14; background: var(--c); text-align: left; display: grid; gap: 2px; }
.dmp__note b { font-weight: 600; } .dmp__note span { font-size: 12px; opacity: .8; }
.dmp__todo { display: flex; gap: 10px; align-items: center; padding: 10px !important; border-radius: 12px; background: rgb(255 255 255 / .055) !important; text-align: left; }
.dmp__box { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .5); flex: none; display: grid; place-items: center; transition: background .2s; }
.dmp__todo[aria-checked="true"] .dmp__box { background: var(--cn-acc); box-shadow: none; }
.dmp__todo[aria-checked="true"] .dmp__box::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.dmp__todo[aria-checked="true"] span { color: rgb(255 255 255 / .5); text-decoration: line-through; }
.dmp__todo .w { margin-left: auto; color: rgb(255 255 255 / .5); font-size: 12px; }
.dmp__pulse { display: grid; gap: 12px; padding: 4px 2px; }
.dmp__pr { display: grid; grid-template-columns: 70px minmax(0, 1fr) 54px; gap: 10px; align-items: center; }
.dmp__pr span { color: rgb(255 255 255 / .66); } .dmp__pr b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.dmp__bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .08); overflow: hidden; }
.dmp__bar i { display: block; height: 100%; width: var(--w, 30%); border-radius: inherit; background: var(--cn-acc); transition: width 1s cubic-bezier(.22,1,.36,1); }
.dmp__bar i.hot { background: #f2a33a; }
.dmp__proc { display: grid; gap: 4px; margin-top: 6px; font-size: 12px; color: rgb(255 255 255 / .7); }
.dmp__proc div { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: rgb(255 255 255 / .05); }
.dmp__set { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px !important; border-radius: 12px; background: rgb(255 255 255 / .055) !important; text-align: left; }
.dmp__set b { display: block; font-weight: 500; } .dmp__set span { display: block; font-size: 11.5px; color: rgb(255 255 255 / .58); }
.dmp__sw { width: 36px; height: 22px; border-radius: 99px; background: rgb(255 255 255 / .2); position: relative; transition: background .25s; }
.dmp__sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.dmp__set[aria-checked="true"] .dmp__sw { background: var(--cn-acc); }
.dmp__set[aria-checked="true"] .dmp__sw::after { transform: translateX(14px); }
.dmp__set.is-flash { animation: dmFlash 1s ease; }
@keyframes dmFlash { 30% { box-shadow: inset 0 0 0 1px rgb(79 123 255 / .9); } }
.dmp__seg { display: inline-flex; border-radius: 99px; background: rgb(255 255 255 / .1); padding: 2px; }
.dmp__seg i { font-style: normal; height: 22px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 11.5px; }
.dmp__seg i.is-on { background: #fff; color: #000; }

/* light panel (the app's light appearance) */
.dm.is-light-panel .dmp { background: #f5f6f8; color: #111; box-shadow: 0 0 0 1px rgb(0 0 0 / .08), 0 30px 80px rgb(0 0 0 / .4); }
.dm.is-light-panel .dmp :is(.dmp__item, .dmp__todo, .dmp__set, .dmp__proc div) { background: rgb(0 0 0 / .045) !important; }
.dm.is-light-panel .dmp :is(.dmp__t span, .dmp__m, .dmp__set span, .dmp__pr span, .dmp__search, .dmp__tab, .dmp__chip, .dmp__proc) { color: rgb(0 0 0 / .6) !important; }
.dm.is-light-panel .dmp .dmp__tab[aria-selected="true"] { background: #111 !important; color: #fff !important; }
.dm.is-light-panel .dmp .dmp__chip[aria-pressed="true"] { background: rgb(0 0 0 / .1) !important; color: #111 !important; }
.dm.is-light-panel .dmp .dmp__search, .dm.is-light-panel .dmp .dmp__g, .dm.is-light-panel .dmp .dmp__bar { background: rgb(0 0 0 / .06); }
.dm.is-light-panel .dmp .dmp__search input { color: #111; }
.dm.is-light-panel .dmp .dmp__act { background: rgb(0 0 0 / .08) !important; }
.dm.is-light-panel .dmp .dmp__g svg { color: #111; }
.dm.is-light-panel .dmp .dmp__sw { background: rgb(0 0 0 / .22); }
.dm.is-light-panel .dmp .dmp__set[aria-checked="true"] .dmp__sw { background: var(--cn-acc); }
.dm.is-light-panel .dmp .dmp__seg { background: rgb(0 0 0 / .08); }
.dm.is-light-panel .dmp .dmp__seg i.is-on { background: #111; color: #fff; }

/* ---- convert dialog */
.dmc { position: absolute; z-index: 3; inset: 0; border-radius: 22px; background: rgb(0 0 0 / .72); display: none; place-items: center; padding: 12px; }
.dmc.is-on { display: grid; animation: dmIn .3s ease; }
.dmc__box { width: 100%; background: #141416; border-radius: 16px; padding: 14px; display: grid; gap: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / .08); color: #fff; }
.dmc__head { display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.dmc__img { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; object-fit: cover; }
.dmc__fmts { display: flex; gap: 6px; }
.dmc__fmt { flex: 1; height: 30px; border-radius: 8px; background: rgb(255 255 255 / .08) !important; font-weight: 500 !important; }
.dmc__fmt[aria-pressed="true"] { background: #fff !important; color: #000 !important; }
.dmc__q { display: grid; grid-template-columns: auto 1fr 40px; gap: 10px; align-items: center; font-size: 12px; color: rgb(255 255 255 / .7); }
.dmc__q input { accent-color: var(--cn-acc); width: 100%; }
.dmc__size { display: flex; justify-content: space-between; font-size: 12px; color: rgb(255 255 255 / .7); }
.dmc__size b { color: #7ee2a8; font-weight: 500; }
.dmc__save { height: 34px; border-radius: 10px; background: var(--cn-acc) !important; color: #fff; font-weight: 500 !important; }
.dmc__save.is-press, .dmc__fmt.is-press { transform: scale(.97); }

/* ---- sticky-note dots at the opposite edge */
.dmn { position: absolute; z-index: 7; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 12px 6px 12px 16px; transition: opacity .35s; }
.dm[data-side="right"] .dmn { right: auto; left: 0; align-items: flex-start; padding: 12px 16px 12px 6px; }
.dm.no-dots .dmn { opacity: 0; pointer-events: none; }
.dmn__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgb(0 0 0 / .18); transition: width .35s cubic-bezier(.22,1,.36,1), height .35s, border-radius .35s; }
.dmn__tab { display: none; height: 30px; max-width: 150px; padding: 0 12px !important; border-radius: 10px 0 0 10px; background: var(--c) !important; color: #1c1a14 !important; font-weight: 500 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 8px 20px -10px rgb(0 0 0 / .6); }
.dm[data-side="right"] .dmn__tab { border-radius: 0 10px 10px 0; }
.dmn.is-fan .dmn__dot { display: none; }
.dmn.is-fan .dmn__tab { display: block; animation: dmTab .35s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes dmTab { from { opacity: 0; transform: translateX(20px); } }
.dmn__add { display: none; width: 30px; height: 30px; border-radius: 50%; background: rgb(255 255 255 / .9) !important; color: #000 !important; font-size: 18px !important; line-height: 1 !important; }
.dmn.is-fan .dmn__add { display: grid; place-items: center; }
.dmn__note { position: absolute; z-index: 9; right: 176px; top: 50%; width: min(250px, 60%); transform: translateY(-50%); border-radius: 14px; padding: 14px 16px 16px; color: #1c1a14; background: var(--c);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); display: none; gap: 6px; user-select: text; -webkit-user-select: text; }
.dm[data-side="right"] .dmn__note { right: auto; left: 176px; }
@media (max-width: 639px) { .dmn__note { right: 40px; top: 30%; } .dm[data-side="right"] .dmn__note { left: 40px; } }
.dmn__note.is-on { display: grid; animation: dmIn .35s cubic-bezier(.22,1,.36,1); }
.dmn__note h5 { margin: 0; font: 600 15px/1.3 inherit; outline: none; }
.dmn__note div { outline: none; font-size: 13.5px; line-height: 1.5; min-height: 60px; }
.dmn__close { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgb(0 0 0 / .08) !important; font-size: 15px !important; }

/* ---- the tour: a pointer and a key hint */
.dm__cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform .9s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .4)); }
.dm.is-touring .dm__cursor { opacity: 1; }
.dm__cursor.is-click::after { content: ""; position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; animation: dmClick .5s ease-out forwards; }
@keyframes dmClick { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.dm__keys { position: absolute; z-index: 21; left: 50%; bottom: 64px; transform: translateX(-50%); display: none; gap: 6px; }
.dm__keys.is-on { display: flex; animation: dmIn .3s ease; }
.dm__keys kbd { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; background: rgb(20 22 28 / .85); color: #fff; display: grid; place-items: center; font: 500 15px/1 inherit; box-shadow: inset 0 -2px 0 rgb(255 255 255 / .12), 0 10px 24px -10px rgb(0 0 0 / .6); }
.dm__hint { position: absolute; z-index: 9; left: 26px; top: 50%; transform: translateY(-50%); padding: 8px 12px; border-radius: 10px; background: rgb(255 255 255 / .94); color: #16181a; font-size: 12.5px; font-weight: 500;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .5); pointer-events: none; animation: dmHint 2.4s ease-in-out infinite; white-space: nowrap; }
.dm__hint::before { content: "←"; margin-right: 6px; }
.dm__hint--r { left: auto; right: 30px; } .dm__hint--r::before { content: none; } .dm__hint--r::after { content: "→"; margin-left: 6px; }
.dm.is-open .dm__hint, .dm.is-touring .dm__hint, .dm.seen-panel .dm__hint--l, .dm.seen-notes .dm__hint--r, .dm.no-dots .dm__hint--r { display: none; }
.dm[data-side="right"] .dm__hint { display: none; }
@keyframes dmHint { 50% { transform: translate(6px, -50%); } }
.dm__toast { position: absolute; z-index: 21; left: 50%; top: 40px; transform: translateX(-50%); height: 32px; padding: 0 14px; border-radius: 99px; background: rgb(14 15 18 / .9); color: #fff; display: none; align-items: center; gap: 8px; font-size: 12.5px; }
.dm__toast.is-on { display: inline-flex; animation: dmIn .3s ease; }

/* ---- controls above the frame: the page's own secondary buttons (site.css) */

@media (max-width: 1023px) {
  .dm__win { width: 60%; transform: translateX(-30%); }
}
@media (max-width: 639px) {
  .dm.fill { min-height: 520px; }
  .dm__win { left: 12px; right: 12px; width: auto; transform: none; top: 40px; }
  .dm[data-os="win"] .dm__win { top: 12px; }
  .dm__doc { max-height: 240px; font-size: 13px; }
  .dmp { width: calc(100% - 52px); height: calc(100% - 84px); }
  .dm__dock { display: none; }
  .dm__menubar span.m { display: none; }
  .dm__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dm *, .dm *::before, .dm *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* ================================================================ the panel as the real app draws it (recorded on macOS, 2026-11):
   flush to the edge with curved shoulders, a pill tab bar with a grey active tab, filled filter chips,
   clip cards with a type badge, the age above the content, and a tool bar with the item count */
.dmp { left: 0; border-radius: 0 26px 26px 0; padding: 12px 12px 8px; gap: 10px; overflow: visible; }
.dm[data-side="right"] .dmp { right: 0; border-radius: 26px 0 0 26px; }
.dmp::before, .dmp::after { content: ""; position: absolute; left: 0; width: 26px; height: 26px; pointer-events: none; }
.dmp::before { top: -26px; background: radial-gradient(circle at 100% 0, transparent 25.5px, #000 26px); }
.dmp::after { bottom: -26px; background: radial-gradient(circle at 100% 100%, transparent 25.5px, #000 26px); }
.dm[data-side="right"] .dmp::before, .dm[data-side="right"] .dmp::after { left: auto; right: 0; }
.dm[data-side="right"] .dmp::before { background: radial-gradient(circle at 0 0, transparent 25.5px, #000 26px); }
.dm[data-side="right"] .dmp::after { background: radial-gradient(circle at 0 100%, transparent 25.5px, #000 26px); }
.dmp { box-shadow: 18px 30px 70px -30px rgb(0 0 0 / .6); }

.dmp__tabs { padding: 4px; border-radius: 99px; background: #1c1c1e; gap: 2px; }
.dmp__tab { flex: 0 0 auto; height: 32px; color: rgb(255 255 255 / .62) !important; }
.dmp__tab[aria-selected="true"] { flex: 1 1 auto; background: rgb(255 255 255 / .16) !important; color: #fff !important; font-weight: 600; }
.dmp__search { background: #1c1c1e; border-radius: 12px; height: 36px; }
.dmp__kbd { font: 500 10.5px/1 inherit; padding: 3px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .18); color: rgb(255 255 255 / .55); }
.dmp__chip { background: #2a2a2c !important; box-shadow: none; color: rgb(255 255 255 / .82) !important; height: 26px; }
.dmp__chip[aria-pressed="true"] { background: #fff !important; color: #000 !important; font-weight: 600 !important; }

.dmp__item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px 12px !important; border-radius: 16px; background: #1c1c1e !important; position: relative; }
.dmp__item:hover, .dmp__item.is-hover { background: #262629 !important; }
.dmp__h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgb(255 255 255 / .55); min-width: 0; }
.dmp__k { color: rgb(255 255 255 / .82); font-weight: 600; }
.dmp__time { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmp__badge { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; flex: none; }
.dmp__badge svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dmp__badge b { font: 700 11px/1 Georgia, serif; }
.dmp__badge--text { background: rgb(255 107 61 / .18); color: #ff7a4f; }
.dmp__badge--link { background: rgb(64 196 255 / .16); color: #5cc8ff; }
.dmp__badge--image { background: rgb(140 110 255 / .2); color: #a594ff; }
.dmp__badge--file { background: rgb(52 199 89 / .18); color: #4cd471; }
.dmp__body { display: block; font-size: 13px; line-height: 1.4; color: #fff; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dmp__body b { font-weight: 500; color: #8fc3ff; }
.dmp__thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 8; }
.dmp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dmp__file { display: flex; align-items: center; gap: 10px; }
.dmp__file img { width: 30px; height: 30px; flex: none; }
.dmp__file b { display: block; font-weight: 500; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dmp__file span span { display: block; font-size: 11.5px; color: rgb(255 255 255 / .55); }
.dmp__acts { position: absolute; right: 8px; top: 6px; padding: 3px; border-radius: 99px; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / .1); }
.dmp__item:hover .dmp__time, .dmp__item.is-hover .dmp__time { display: inline-flex; }
.dmp__foot { display: flex; align-items: center; gap: 12px; padding: 8px 4px 2px; border-top: 1px solid rgb(255 255 255 / .08); color: rgb(255 255 255 / .55); }
.dmp__foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dmp__count { margin-left: auto; font-size: 11.5px; }
@media (max-width: 639px) { .dmp__foot svg:nth-child(-n+5) { display: none; } }

.dm.is-light-panel .dmp::before { background: radial-gradient(circle at 100% 0, transparent 25.5px, #f5f6f8 26px); }
.dm.is-light-panel .dmp::after { background: radial-gradient(circle at 100% 100%, transparent 25.5px, #f5f6f8 26px); }
.dm.is-light-panel .dmp :is(.dmp__tabs, .dmp__search, .dmp__item) { background: rgb(0 0 0 / .05) !important; }
.dm.is-light-panel .dmp .dmp__chip { background: rgb(0 0 0 / .07) !important; color: rgb(0 0 0 / .7) !important; }
.dm.is-light-panel .dmp .dmp__chip[aria-pressed="true"] { background: #111 !important; color: #fff !important; }
.dm.is-light-panel .dmp :is(.dmp__body, .dmp__file b, .dmp__k) { color: #111; }
.dm.is-light-panel .dmp :is(.dmp__h, .dmp__foot, .dmp__kbd) { color: rgb(0 0 0 / .55); }
.dm.is-light-panel .dmp .dmp__tab[aria-selected="true"] { background: rgb(0 0 0 / .1) !important; color: #111 !important; }
.dm.is-light-panel .dmp .dmp__acts { background: #fff; }

/* ---- notes canvas: sticky cards on a dotted board */
.dmp__ntools { display: flex; align-items: center; gap: 6px; }
.dmp__nseg { display: inline-flex; padding: 3px; border-radius: 12px; background: #1c1c1e; font-size: 11.5px; }
.dmp__nseg b, .dmp__nseg span { padding: 5px 9px; border-radius: 9px; font-weight: 600; color: rgb(255 255 255 / .55); }
.dmp__nseg b { background: rgb(255 255 255 / .14); color: #fff; }
.dmp__nfind { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 12px; background: #1c1c1e; color: rgb(255 255 255 / .45); font-size: 11.5px; }
.dmp__ntools i { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-style: normal; font-size: 17px; }
.dmp__board { border-radius: 16px; padding: 10px; background: #161618 radial-gradient(rgb(255 255 255 / .09) 1px, transparent 1.2px) 0 0 / 14px 14px;
  display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.dmp__note { position: relative; padding: 18px 10px 10px !important; border-radius: 12px; background: var(--c) !important; color: #1c1a14 !important; text-align: left; display: grid; gap: 4px;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 18px -10px rgb(0 0 0 / .7); transition: transform .25s cubic-bezier(.22,1,.36,1); min-height: 96px; align-content: start; }
.dmp__note:hover { transform: rotate(0) translateY(-2px); }
.dmp__grip { position: absolute; left: 10px; top: 8px; width: 18px; height: 3px; border-radius: 3px; background: rgb(0 0 0 / .18); }
.dmp__note b { font-weight: 700; font-size: 12.5px; }
.dmp__note span { font-size: 11px; line-height: 1.35; opacity: .82; }
.dmp__note small { font-size: 10px; opacity: .55; margin-top: auto; }

/* ---- to-do: open/done chips, round checks, a play button per task, the streak */
.dmp__tdhead { display: flex; gap: 6px; font-size: 12px; }
.dmp__tdhead span { padding: 5px 11px; border-radius: 99px; background: #1c1c1e; color: rgb(255 255 255 / .7); font-weight: 600; }
.dmp__tdhead span.is-on { background: #fff; color: #000; }
.dmp__tdhead b { font-weight: 500; opacity: .6; margin-left: 2px; }
.dmp__todo { border-radius: 16px !important; background: #1c1c1e !important; padding: 10px 10px 10px 12px !important; }
.dmp__box { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); }
.dmp__todo[aria-checked="true"] .dmp__box { background: #34c759; }
.dmp__play { margin-left: auto; width: 34px; height: 24px; border-radius: 99px; background: #2f6bff; position: relative; flex: none; }
.dmp__play::after { content: ""; position: absolute; left: 14px; top: 7px; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.dmp__todo[aria-checked="true"] .dmp__play { opacity: .35; }
.dmp__addtask { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: #1c1c1e; color: rgb(255 255 255 / .55); font-size: 12.5px; }
.dmp__addtask i { width: 22px; height: 22px; border-radius: 50%; background: #2f6bff; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 600; }
.dmp__streak { padding: 10px 12px; border-radius: 14px; background: #1c1c1e; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 12px; color: rgb(255 255 255 / .7); }
.dmp__streak b { color: #fff; }
.dmp__streak div { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dmp__streak div i { height: 8px; border-radius: 3px; background: rgb(255 255 255 / .08); }
.dmp__streak div i.on { background: #2f6bff; }

/* ---- system pulse: the disk row, a status line and six gauges */
.dmp__phead { display: flex; align-items: center; gap: 6px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .55); font-weight: 600; }
.dmp__phead span { flex: 1; }
.dmp__phead em { font-style: normal; letter-spacing: 0; text-transform: none; font-size: 11.5px; padding: 5px 10px; border-radius: 99px; background: #1c1c1e; color: rgb(255 255 255 / .85); }
.dmp__disk { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #1c1c1e; }
.dmp__disk > i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px #2f6bff; flex: none; }
.dmp__disk b { display: block; font-size: 12.5px; } .dmp__disk small { display: block; font-size: 11px; color: rgb(255 255 255 / .5); }
.dmp__disk strong { margin-left: auto; color: #5d8cff; font-size: 14px; font-weight: 700; }
.dmp__state { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgb(255 255 255 / .8); }
.dmp__state i { width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.dmp__pulse { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0; }
.dmp__pr { display: grid; grid-template-columns: none; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: #1c1c1e; }
.dmp__ring { width: 44px; height: 44px; border-radius: 50%; display: block; position: relative; margin-bottom: 4px; }
.dmp__ring i { position: absolute; inset: 0; border-radius: 50%; width: auto !important; height: auto; background: conic-gradient(var(--g, #ff7a45) calc(var(--w, 30%) * 1), rgb(255 255 255 / .1) 0) !important;
  -webkit-mask: radial-gradient(circle, transparent 15px, #000 16px); mask: radial-gradient(circle, transparent 15px, #000 16px); transition: --w 1s; }
.dmp__pr:nth-child(2) .dmp__ring i { --g: #ffd23f; } .dmp__pr:nth-child(3) .dmp__ring i { --g: #8a8a8e; } .dmp__pr:nth-child(4) .dmp__ring i { --g: #3d7bff; }
.dmp__pr:nth-child(5) .dmp__ring i { --g: #36c2b4; } .dmp__pr:nth-child(6) .dmp__ring i { --g: #ff5a5f; }
.dmp__pr b { font-size: 13px; text-align: center; }
.dmp__pr > span:last-child { font-size: 10.5px; color: rgb(255 255 255 / .55); }
.dmp__view[data-view="pulse"] { overflow: hidden; }

/* ---- settings: a title, the Behaviour / Position / Appearance switcher, grouped rows */
.dmp__stitle { margin: 2px 2px 0; font-size: 15px; font-weight: 700; }
.dmp__sseg { display: flex; padding: 3px; border-radius: 14px; background: #1c1c1e; font-size: 11.5px; }
.dmp__sseg span { flex: 1; text-align: center; padding: 6px 4px; border-radius: 11px; color: rgb(255 255 255 / .55); font-weight: 600; }
.dmp__sseg span.is-on { background: rgb(255 255 255 / .14); color: #fff; }
.dmp__sets { gap: 0 !important; padding: 4px; border-radius: 16px; background: #1c1c1e; }
.dmp__sets .dmp__set { background: transparent !important; border-radius: 12px; }
.dmp__sets .dmp__set + .dmp__set { box-shadow: inset 0 1px 0 rgb(255 255 255 / .07); border-radius: 0; }
.dmp__set[aria-checked="true"] .dmp__sw { background: #34c759; }

/* ---- the note deck on the far edge: a black strip of dots that opens into lettered circles */
.dmn { padding: 8px 5px; gap: 7px; background: #000; border-radius: 12px 0 0 12px; box-shadow: -6px 10px 24px -12px rgb(0 0 0 / .6); }
.dm[data-side="right"] .dmn { border-radius: 0 12px 12px 0; padding: 8px 5px; }
.dmn__dot { width: 7px; height: 7px; box-shadow: none; }
.dmn.is-fan { padding: 9px 8px; gap: 8px; border-radius: 22px 0 0 22px; }
.dm[data-side="right"] .dmn.is-fan { border-radius: 0 22px 22px 0; }
.dmn__tab, .dm[data-side="right"] .dmn__tab { width: 34px; height: 34px; max-width: none; padding: 0 !important; border-radius: 50%; display: none; place-items: center; font: 700 13px/1 inherit !important; color: #1c1a14 !important; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .25); }
.dmn.is-fan .dmn__tab { display: grid; }
@keyframes dmTab { from { opacity: 0; transform: scale(.4); } }
.dmn__add { width: 34px; height: 34px; background: #1c1c1e !important; color: #fff !important; }
.dmn__note { right: 70px; }
.dm[data-side="right"] .dmn__note { left: 70px; }
