/* /upload-help: animated "find your PDF, send it in Spruce" walkthrough.
   Page chrome uses the site tokens; the device drawings (.m-*) keep their own
   fixed colors in both themes, because they depict a phone or computer screen.
   Drawings never use CSS transforms on anything that holds a tap target: the
   player measures targets with offsetLeft/offsetTop, which ignore transforms. */

.uh-shell { width: 100%; }
.uh-page .content-box.uh-shell { max-width: 1000px; }
.uh-lede { font-size: 1.12rem; max-width: 62ch; }

/* Device picker. Fixed footprints: the pressed state changes color only. */
.uh-devices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}
.uh-device {
  width: auto;
  margin: 0;
  min-height: 3rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-strong);
  font: 600 1rem/1.2 var(--sans);
  cursor: pointer;
}
.uh-device[aria-pressed="true"] {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 2px var(--pine);
  background: var(--pine-soft);
}
.uh-device:focus-visible, .uh-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }

/* Player */
.uh-player {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--surface-1);
  padding: 1rem;
}
.uh-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #e9eef2;
  --m-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
html[data-theme="dark"] .uh-stage { background: #0b1820; }
.uh-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; text-align: left; }
.uh-layer, .uh-measure { position: absolute; inset: 0; z-index: 1; }
.uh-layer--front { z-index: 2; }
/* The pointer and its marks always paint above whatever a scene stacks. */
.uh-ring, .uh-ripple, .uh-pointer { z-index: 10; }
.uh-measure { visibility: hidden; pointer-events: none; }
.uh-ring {
  position: absolute;
  border: 4px solid #f4b400;
  border-radius: 12px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
  pointer-events: none;
  opacity: 0;
}
.uh-ripple {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  background: rgba(244, 180, 0, 0.55);
  pointer-events: none;
  opacity: 0;
}
.uh-pointer { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0; transform-origin: 0 0; }
.uh-pointer--phone::before {
  content: "";
  position: absolute;
  width: 34px; height: 34px; left: -17px; top: -17px;
  border-radius: 50%;
  background: rgba(20, 40, 58, 0.45);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.uh-canvas .uh-pointer--computer svg { position: absolute; max-width: none; left: -3px; top: -2px; width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

.uh-overlay {
  position: absolute; z-index: 5;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: auto; margin: 0;
  padding: 0.9rem 1.4rem;
  border: 0; border-radius: 999px;
  background: var(--ink); color: #fff;
  font: 700 1.1rem/1 var(--sans);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
html[data-theme="dark"] .uh-overlay { background: #f5f9ff; color: #14283a; }
.uh-overlay[hidden] { display: none; }

/* Caption: its own row, pinned (by JS) to the longest step, so buttons never move. */
.uh-captionbox { padding: 0.9rem 0.2rem 0.4rem; }
.uh-counter { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); }
html[data-theme="dark"] .uh-counter { color: var(--accent); }
.uh-player.is-branch .uh-counter { color: #a35b00; }
html[data-theme="dark"] .uh-player.is-branch .uh-counter { color: #ffc46b; }
.uh-caption { margin: 0.45rem 0 0.3rem; font: 700 1.3rem/1.35 var(--sans); color: var(--text-strong); }
.uh-detail { margin: 0; color: var(--text-muted); font-size: 1rem; }
.uh-progress { height: 6px; border-radius: 3px; background: var(--hairline); overflow: hidden; margin: 0.4rem 0 0.8rem; }
.uh-progress span { display: block; height: 100%; width: calc(var(--uh-progress, 0) * 100%); background: var(--pine); }

.uh-controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.uh-btn {
  width: auto; margin: 0;
  min-height: 2.9rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface-elevated);
  color: var(--text-strong);
  font: 600 1rem/1.1 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}
.uh-btn--primary { background: var(--ink); color: #fff; border-color: var(--ink); }
html[data-theme="dark"] .uh-btn--primary { background: #f5f9ff; color: #14283a; border-color: #f5f9ff; }
.uh-btn:disabled { opacity: 0.45; cursor: default; }
.uh-btn[data-uh-music][aria-pressed="false"] { color: var(--text-muted); }

.uh-note { margin: 0.9rem 0 1.5rem; color: var(--text-muted); font-size: 0.95rem; }

.uh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.uh-grid > * { width: 100%; min-width: 0; }
.uh-steps { padding-left: 1.4rem; margin: 0; }
.uh-steps li { margin: 0 0 0.7rem; padding: 0.2rem 0.4rem; border-radius: 6px; }
.uh-steps li.is-current { background: var(--pine-soft); }
.uh-steps li.is-branch { list-style: none; margin-left: -1.4rem; padding-left: 0.7rem; border-left: 3px solid #d98a1c; }
.uh-steps li.is-branch .uh-steps__do::before { content: "If this happens: "; color: #a35b00; }
html[data-theme="dark"] .uh-steps li.is-branch .uh-steps__do::before { color: #ffc46b; }
.uh-steps__do { display: block; color: var(--text-strong); font-weight: 600; }
.uh-steps__help { display: block; color: var(--text-muted); font-size: 0.95rem; }
.uh-checks { padding-left: 1.2rem; }
.uh-checks li { margin-bottom: 0.5rem; }
.uh-checks code { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .uh-devices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-controls .uh-btn--primary { grid-column: 1 / -1; order: -1; }
  .uh-grid { grid-template-columns: minmax(0, 1fr); }
  .uh-caption { font-size: 1.15rem; }
  .uh-player { padding: 0.7rem; }
}

/* ---------------------------------------------------------------- export
   ?export=1 : just the stage + caption, sized to the recording viewport. */
html.uh-export, html.uh-export body { background: #f3f6f8 !important; margin: 0; overflow: hidden; scrollbar-gutter: auto !important; }
html.uh-export body > *:not(main), html.uh-export .banner, html.uh-export .uh-lede,
html.uh-export .uh-devices, html.uh-export .uh-note, html.uh-export .uh-grid,
html.uh-export .uh-controls, html.uh-export .skip-link { display: none !important; }
html.uh-export main, html.uh-export .uh-shell { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100vw; border: 0 !important; box-shadow: none !important; background: transparent !important; }
/* Site rules cap content widths; the recording frame must be filled edge to edge. */
html.uh-export .uh-player { position: fixed; top: 0; left: 0; width: 100vw !important; max-width: none !important; height: 100vh; border: 0; border-radius: 0; padding: 0; margin: 0; display: flex; flex-direction: column; background: #f3f6f8; box-sizing: border-box; }
html.uh-export .uh-stage { flex: 1 1 auto; width: 100vw !important; max-width: none !important; border-radius: 0; background: #e3e9ee; }
html.uh-export .uh-captionbox { flex: 0 0 auto; min-height: 0; padding: 16px 28px 22px; background: #14283a; }
html.uh-export .uh-counter { color: #a9e6c3; font-size: 15px; }
html.uh-export .uh-player.is-branch .uh-counter { color: #ffc46b; }
html.uh-export .uh-caption { color: #fff; font-size: 27px; margin-top: 8px; }
html.uh-export .uh-detail { color: #c9d6e2; font-size: 19px; }
html.uh-export .uh-progress { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 7px; border-radius: 0; background: rgba(255, 255, 255, 0.14); z-index: 3; }
html.uh-export .uh-progress span { background: #a9e6c3; }
html.uh-export .uh-player[data-uh-kind="phone"] .uh-captionbox { height: 250px; }
html.uh-export .uh-player[data-uh-kind="computer"] .uh-captionbox { height: 140px; padding: 12px 28px 14px; }
html.uh-export .uh-player[data-uh-kind="computer"] .uh-caption { font-size: 24px; margin-top: 4px; }
html.uh-export .uh-player[data-uh-kind="computer"] .uh-detail { font-size: 17px; }
.uh-card { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px; text-align: center; background: #14283a; color: #fff; font-family: var(--sans); }
.uh-card[hidden] { display: none; }
.uh-card__title { font: 700 40px/1.2 var(--serif); }
.uh-card__line { font-size: 22px; color: #c9d6e2; max-width: 30ch; }
.uh-card__credit { position: absolute; left: 24px; right: 24px; bottom: 18px; max-width: none; font-size: 13px; color: #8fa3b5; }

/* ======================================================= device drawings */
.m-phone, .m-desk { font-family: var(--m-font); color: #1d1d1f; }
.m-phone svg, .m-desk svg { display: block; max-width: none; }
.is-pressed { filter: brightness(0.86); }

/* phone shell: 360 x 740. The bezel is an inset shadow, never a border
   (a border would throw off the offset measurements). */
.m-phone { position: absolute; inset: 0; border-radius: 46px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 10px #1b1d21, 0 10px 30px rgba(0,0,0,.25); }
.m-phone--android { border-radius: 34px; background: #f6f7fb; }
.m-phone--wall.m-phone--ios { background: #3a5f86; }
.m-phone--wall.m-phone--android { background: #2f4f6f; }
.m-island { position: absolute; z-index: 4; top: 16px; left: 131px; width: 98px; height: 28px; border-radius: 16px; background: #111; }
.m-punch { position: absolute; z-index: 4; top: 16px; left: 173px; width: 14px; height: 14px; border-radius: 50%; background: #111; }
.m-status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 52px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; font: 600 15px/1 var(--m-font); color: #111; }
.m-status--android { height: 44px; padding: 0 26px; font-size: 13px; }
.m-status.is-light { color: #fff; }
.m-status__icons { display: flex; gap: 4px; }
.m-status__icons i { width: 14px; height: 9px; border-radius: 2px; background: currentColor; opacity: .85; }
.m-body { position: absolute; top: 52px; left: 10px; right: 10px; bottom: 30px; overflow: hidden; }
.m-phone--android .m-body { top: 44px; bottom: 50px; }
.m-homebar { position: absolute; z-index: 3; bottom: 14px; left: 115px; width: 130px; height: 5px; border-radius: 3px; background: #1d1d1f; }
.m-homebar.is-light { background: #fff; }
.m-navbar { position: absolute; z-index: 3; bottom: 10px; left: 10px; right: 10px; height: 36px; display: flex; align-items: center; justify-content: space-around; color: #333; font-size: 15px; letter-spacing: -1px; }
.m-navbar.is-light { color: #fff; }
.m-navbar__home { width: 22px; height: 22px; border-radius: 50%; border: 2.4px solid currentColor; box-sizing: border-box; padding: 6px; }
.m-navbar__back svg { width: 22px; height: 22px; transform: none; }

/* our website in a phone browser */
.m-web { padding: 18px 14px; }
.m-web--wide { padding: 26px 40px; }
/* A computer's window is short: the box and Open Spruce Secure Upload are
   drawn scrolled into view (they sat behind the Mac Dock). */
.m-web--scrolled .m-web__label, .m-web--scrolled .m-web__file { display: none; }
.m-web--scrolled .m-web__card { padding-top: 12px; }
.m-web--scrolled .m-web__btn--ghost { margin-top: 4px; }
.m-web__site { font: 700 17px/1.2 Georgia, serif; color: #14283a; padding-bottom: 12px; border-bottom: 2px solid #2f6b4f; margin-bottom: 18px; }
.m-web__card { border: 1px solid #c9d3dc; border-radius: 12px; padding: 16px; background: #f6faf3; }
.m-web__h { font-weight: 700; font-size: 19px; color: #14283a; margin-bottom: 10px; }
.m-web__label { font-size: 13px; color: #555; margin-bottom: 6px; }
.m-web__file { font: 600 13px/1.35 Menlo, Consolas, monospace; background: #fff; border: 1px solid #b9c5cf; border-radius: 8px; padding: 9px 10px; overflow-wrap: anywhere; color: #14283a; }
.m-web__line { height: 10px; border-radius: 5px; background: #dfe6ec; margin-top: 14px; }
.m-web__line--s { width: 60%; margin-top: 10px; }
.m-web__btn { display: inline-block; margin-top: 16px; padding: 11px 16px; border-radius: 9px; font-weight: 700; font-size: 15px; }
.m-web__btn--danger { background: #b3261e; color: #fff; }
/* Our real page's buttons are navy pills (Ryan: the drawing should match). */
.m-web__btn--ghost { padding: 11px 22px; border-radius: 999px; background: #14283a; color: #fff; }
.m-safari-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 8px 6px; background: #f2f2f6; border-top: 1px solid #ddd; }
.m-safari-bar__addr, .m-chrome-bar__addr { display: flex; align-items: center; gap: 6px; padding: 11px 12px; border-radius: 13px; background: #fff; font-size: 15px; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.m-safari-bar__addr b { font-size: 13px; margin-right: 6px; }
.m-safari-bar__addr svg, .m-chrome-bar__addr svg, .m-win__addr svg { width: 13px; height: 13px; color: #666; }
.m-safari-bar__dl { margin-left: auto; color: #0a84ff; border-radius: 50%; }
.m-safari-bar__dl svg { width: 22px; height: 22px; color: #0a84ff; }
.m-chrome-bar { padding: 6px 6px 8px; background: #f1f3f4; }
.m-chrome-bar__addr { background: #e3e6e9; box-shadow: none; border-radius: 20px; }

/* iOS alert (download question) */
.m-scrim { position: absolute; inset: -60px -20px; background: rgba(0,0,0,.42); }
.m-scrim--soft { background: rgba(0,0,0,.3); }
.m-alert { position: absolute; left: 40px; right: 40px; top: 230px; border-radius: 16px; background: rgba(245,245,247,.98); text-align: center; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.m-alert__msg { padding: 20px 16px 16px; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.m-alert__btns { display: flex; border-top: 1px solid #d0d0d5; }
.m-alert__btns span { flex: 1; padding: 13px 0; color: #0a84ff; font-size: 17px; }
.m-alert__btns span + span { border-left: 1px solid #d0d0d5; }
.m-alert__btns .is-bold { font-weight: 700; }

/* home screens */
.m-home { position: absolute; inset: 0; padding: 22px 6px 0; }
.m-home__grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
.m-home__dots { position: absolute; left: 0; right: 0; bottom: 112px; display: flex; justify-content: center; gap: 7px; }
.m-home__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.m-home__dots i.is-on { background: #fff; }
.m-home__dock { position: absolute; left: 4px; right: 4px; bottom: 6px; display: grid; grid-template-columns: repeat(4, 1fr); padding: 12px 0 8px; border-radius: 30px; background: rgba(255,255,255,.24); }
.m-home__dock .m-app__name { display: none; }
.m-app { display: flex; flex-direction: column; align-items: center; gap: 6px; justify-self: center; padding: 2px; border-radius: 16px; }
.m-tile { display: block; width: 60px; height: 60px; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.22); flex: none; }
.m-tile svg { width: 100%; height: 100%; }
.m-tile--squircle { border-radius: 22px; }
.m-app__name { font-size: 12px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.5); white-space: nowrap; }
.m-shrink { position: absolute; inset: 0; background: #fff; border-radius: 30px; overflow: hidden; transform-origin: 50% 85%; }
.m-shrink--and { background: #f6f7fb; transform-origin: 50% 100%; }

/* iPhone Search (pull down from the middle) */
.m-home-blur { position: absolute; inset: 0; }
.m-spot { position: absolute; left: 6px; right: 6px; top: 14px; }
.m-spot__field { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.9); color: #8a8a8e; font-size: 17px; }
.m-spot__field svg { width: 18px; height: 18px; }
.m-spot__field .is-typed { color: #111; }
.m-caret { display: inline-block; width: 2px; height: 20px; background: #0a84ff; margin-left: -6px; }
.m-spot__sec { margin: 18px 6px 8px; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.m-spot__hit { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 16px; background: rgba(255,255,255,.25); color: #fff; font-size: 13px; }
.m-kb-wrap { position: absolute; left: -10px; right: -10px; bottom: -30px; }
.m-phone--android .m-kb-wrap { bottom: -50px; }
.m-kb { padding: 8px 4px 34px; background: #d1d4da; }
.m-kb--android { background: #e9ebef; padding-bottom: 52px; }
.m-kb__row { display: flex; justify-content: center; gap: 5px; margin-bottom: 9px; }
.m-kb__key { flex: 0 0 30px; height: 40px; border-radius: 6px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; color: #111; box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.m-kb__key--mod { flex-basis: 40px; background: #abb0ba; font-size: 16px; }
.m-kb--android .m-kb__key--mod { background: #d4d7dd; }
.m-kb__key--wide { flex-basis: 50px; font-size: 14px; }
.m-kb__key--space { flex: 1 1 auto; font-size: 14px; color: #555; }
.m-kb__key--go { flex-basis: 84px; background: #0a84ff; color: #fff; font-size: 15px; }
.m-kb--android .m-kb__key--go { flex-basis: 54px; border-radius: 20px; background: #3e7bfa; }
.m-kb__key--go svg { width: 20px; height: 20px; }

/* iPhone Files app + file picker */
.m-ios-page { padding: 4px 10px; }
.m-ios-title { font: 700 32px/1.2 var(--m-font); margin: 6px 0 12px; }
.m-ios-title--sm { font-size: 26px; }
.m-ios-back { display: flex; align-items: center; gap: 2px; color: #0a84ff; font-size: 17px; margin: 4px 0 0 -6px; }
.m-ios-back svg { width: 22px; height: 22px; }
.m-ios-search { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; background: #eeeef0; color: #8a8a8e; font-size: 16px; margin-bottom: 14px; }
.m-ios-search svg { width: 16px; height: 16px; }
.m-ios-sec { font: 700 20px/1.2 var(--m-font); margin: 10px 0 8px; }
.m-ios-list { border-radius: 12px; background: #f2f2f6; overflow: hidden; }
.m-ios-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 17px; border-bottom: 1px solid #e0e0e4; }
.m-ios-row:last-child { border-bottom: 0; }
.m-ios-row .i-folder { width: 30px; height: 24px; }
.m-tabbar { position: absolute; left: -10px; right: -10px; bottom: -30px; display: flex; justify-content: space-around; padding: 8px 0 34px; border-top: 1px solid #ddd; background: #f8f8fa; font-size: 11px; color: #8a8a8e; }
.m-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 10px; border-radius: 10px; }
.m-tabbar svg { width: 24px; height: 24px; }
.m-tabbar b { font-weight: 500; }
.m-tabbar .is-on { color: #0a84ff; }
.m-fgrid { display: flex; padding: 6px 0; }
.m-fitem { width: 132px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 6px; border-radius: 12px; }
.m-fitem b { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; margin-top: 6px; }
.m-fitem small { font-size: 11px; color: #8a8a8e; }
.m-thumb { display: flex; flex-direction: column; gap: 5px; width: 74px; height: 96px; padding: 10px 9px; box-sizing: border-box; background: #fff; border: 1px solid #d5d8dd; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.m-thumb i { display: block; height: 4px; border-radius: 2px; background: #c5ccd4; }
.m-thumb .m-thumb__t { height: 6px; width: 70%; background: #3b4a5a; margin-bottom: 3px; }
.m-thumb .m-thumb__s { width: 55%; }
.m-picker { position: absolute; left: -10px; right: -10px; top: 20px; bottom: -30px; border-radius: 16px 16px 0 0; background: #fff; padding: 12px 20px; }
.m-picker__bar { display: flex; justify-content: space-between; font-size: 17px; color: #0a84ff; margin-bottom: 6px; }
.m-picker__dim { color: #b0b4ba; }
.m-picker .m-tabbar { left: 0; right: 0; bottom: 0; }

/* Android (Samsung One UI) */
.m-home--and { padding-top: 20px; }
.m-and-clock { color: #fff; font: 300 54px/1 var(--m-font); text-align: center; margin: 30px 0 70px; }
.m-and-clock small { display: block; font-size: 15px; font-weight: 400; margin-top: 8px; }
.m-home__dock--and { background: transparent; }
.m-apps { position: absolute; inset: 0; padding: 10px 6px; background: rgba(20, 30, 45, .55); }
.m-apps__search { display: flex; align-items: center; gap: 8px; margin: 4px 6px 22px; padding: 12px 16px; border-radius: 24px; background: rgba(255,255,255,.92); color: #666; font-size: 15px; }
.m-apps__search svg { width: 18px; height: 18px; }
.m-apps__search .is-typed { color: #111; }
.m-apps__search.is-active { background: #fff; }
.m-home__grid--apps { row-gap: 18px; }
.m-and-results { padding: 0 8px; }
.m-and-results .m-and-sec { color: #fff; }
.m-and-hit { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 16px; color: #fff; font-size: 13px; }
.m-rise { position: absolute; inset: 0; }
.m-and-top { display: flex; align-items: center; gap: 14px; padding: 12px 10px 16px; }
.m-and-top svg { width: 24px; height: 24px; color: #333; }
.m-and-top__title { flex: 1; font: 600 24px/1.2 var(--m-font); }
.m-and-page { padding: 0 10px; }
.m-and-sec { font-size: 13px; font-weight: 700; color: #555; margin: 6px 4px 10px; }
.m-mf-recent { display: flex; gap: 10px; margin-bottom: 16px; }
.m-mf-recent .m-thumb { width: 64px; height: 82px; }
.m-mf-recent i { width: 64px; height: 82px; border-radius: 6px; background: #e3e6ea; }
.m-mf-list { background: #fff; border-radius: 22px; padding: 6px; }
.m-mf-row { display: flex; align-items: center; gap: 14px; padding: 10px 10px; border-radius: 14px; font-size: 16px; }
.m-mf-ico { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.m-mf-ico svg { width: 21px; height: 21px; }
.m-file { display: flex; align-items: center; gap: 12px; padding: 12px; background: #fff; border-radius: 14px; }
.m-file--and { border: 1px solid #e1e5ea; }
.m-and-top__menu { display: inline-flex; padding: 4px; border-radius: 50%; }
.m-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 74%; background: #fff; border-radius: 0 22px 22px 0; padding: 54px 10px 0; box-shadow: 4px 0 18px rgba(0, 0, 0, 0.18); }
.m-drawer__title { font: 600 15px/1.2 var(--m-font); color: #555; margin: 0 12px 12px; }
.m-drawer__row { display: flex; align-items: center; gap: 16px; padding: 13px 14px; border-radius: 26px; font: 500 17px/1.2 var(--m-font); color: #222; }
.m-drawer__row svg { width: 24px; height: 24px; color: #444; flex: none; }
.m-drawer__row.is-target { background: #e3ecfd; }
.m-file .i-pdf { width: 34px; height: 42px; flex: none; }
.m-file__meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-file__meta b { font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.m-file__meta small { color: #777; font-size: 12px; }

/* Spruce, drawn from the real app's layout */
.m-logo { display: inline-block; flex: none; border-radius: 50%; background: #fff url("/assets/images/netxpsych-icon-256.png") center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.m-sp-home { position: absolute; inset: -52px -10px -30px; background: #fff; }
.m-phone--android .m-sp-home { inset: -44px -10px -50px; }
.m-sp-hello { height: 150px; padding: 92px 22px 0; box-sizing: border-box; background: #cfe3fb; font: 400 34px/1.1 var(--m-font); color: #111; display: flex; align-items: flex-start; gap: 8px; }
.m-phone--android .m-sp-hello { padding-top: 84px; }
.m-wave svg { width: 34px; height: 34px; }
.m-sp-row { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 16px; border-bottom: 1px solid #e3e5e8; }
.m-sp-row__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-sp-row__txt b { font-size: 16px; font-weight: 500; }
.m-sp-row__txt small { font-size: 14px; color: #808489; line-height: 1.3; }
.m-sp-row__time { align-self: flex-start; font-size: 12px; color: #808489; }
.m-sp-row__chev { font-size: 26px; color: #b5b8bd; }
.m-sp-hint { padding: 26px 30px; text-align: center; color: #808489; font-size: 14px; }
.m-sp-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 10px 0 34px; border-top: 1px solid #e3e5e8; background: #fff; color: #9aa0a6; font-size: 12px; }
.m-phone--android .m-sp-tabs { padding-bottom: 54px; }
.m-sp-tabs span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.m-sp-tabs svg { width: 26px; height: 26px; }
.m-sp-tabs b { font-weight: 500; }
.m-sp-tabs .is-on { color: #14283a; }

.m-convo-screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.m-convo-head { display: flex; align-items: center; gap: 10px; padding: 6px 6px 10px; border-bottom: 1px solid #e3e6ea; flex: none; }
.m-convo-head > svg { width: 22px; height: 22px; color: #2d6cdf; flex: none; }
.m-convo-head b { flex: 1; font-size: 16px; font-weight: 600; }
.m-convo-head__info svg { width: 22px; height: 22px; color: #666; }
.m-convo { flex: 1; min-height: 0; overflow: hidden; padding: 14px 6px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.m-bubble { max-width: 82%; padding: 10px 12px 8px; border-radius: 16px; font-size: 15px; line-height: 1.35; }
.m-bubble__time { display: block; margin-top: 4px; font-size: 11.5px; opacity: .75; }
.m-bubble--in { align-self: flex-start; background: #ececf0; color: #1d1d1f; }
.m-bubble--out { align-self: flex-end; background: #2d6cdf; color: #fff; }
.m-bubble--file { padding: 8px; }
.m-attach { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; color: #1d1d1f; }
.m-attach .i-pdf { width: 30px; height: 38px; flex: none; }
.m-attach b { display: block; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.m-attach small { color: #777; font-size: 11.5px; }
.m-composer { flex: none; padding: 8px 6px 6px; background: #fff; border-top: 1px solid #eceef1; }
.m-composer__row { display: flex; align-items: center; gap: 8px; }
.m-cbox { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #c9ced4; border-radius: 10px; background: #fff; }
.m-cbox__ph { color: #8a8f98; font-size: 15px; }
.m-pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 8px 6px 10px; border-radius: 6px; background: #2d6cdf; color: #fff; font-size: 13px; line-height: 1.25; }
.m-pill span { overflow-wrap: anywhere; }
.m-pill i { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #6b6f76; color: #fff; display: flex; align-items: center; justify-content: center; }
.m-pill i svg { width: 12px; height: 12px; }
.m-sendbtn { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #c4cad2; color: #fff; display: flex; align-items: center; justify-content: center; }
.m-sendbtn.is-ready { background: #2d6cdf; }
.m-sendbtn svg { width: 22px; height: 22px; }
.m-composer__tools { display: flex; gap: 14px; padding: 8px 2px 2px; }
.m-plusbtn { width: 28px; height: 28px; border-radius: 6px; background: #2d6cdf; color: #fff; display: flex; align-items: center; justify-content: center; }
.m-plusbtn svg { width: 20px; height: 20px; }
.m-plusbtn.is-on { background: #1d4fae; }
.m-attach-panel { flex: none; padding: 12px 10px 14px; background: #f1f2f6; }
.m-attach-panel__title { font-size: 17px; font-weight: 700; margin: 2px 4px 12px; }
.m-attach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.m-attach-tile { display: flex; flex-direction: column; gap: 9px; padding: 11px 10px; border-radius: 10px; background: #fff; font-size: 13.5px; color: #1d1d1f; }
.m-attach-tile svg { width: 26px; height: 26px; color: #1d1d1f; }

/* the opened form */
.m-viewer { position: absolute; inset: 0; display: flex; flex-direction: column; background: #e8eaee; }
.m-viewer__bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; background: #f7f7f9; border-bottom: 1px solid #ddd; color: #0a84ff; font-size: 16px; }
.m-viewer__bar b { flex: 1; min-width: 0; color: #111; font-size: 13px; text-align: center; overflow-wrap: anywhere; }
.m-viewer__bar svg { width: 22px; height: 22px; }
.m-viewer__page { margin: 16px 14px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.m-viewer__desk { position: absolute; inset: 36px 0 0; background: #e8eaee; overflow: hidden; }
.m-viewer__page--wide { margin: 18px auto; width: 380px; height: calc(100% - 36px); overflow: hidden; }
.m-form { padding: 18px 16px 20px; }
.m-form__head { border-bottom: 2px solid #2f6b4f; padding-bottom: 8px; margin-bottom: 12px; }
.m-form__head b { display: block; font: 700 16px/1.2 Georgia, serif; color: #14283a; }
.m-form__head small { color: #555; font-size: 11px; }
.m-form__row { padding: 7px 0 8px; border-bottom: 1px solid #e2e6ea; }
.m-form__label { display: block; font-size: 11px; color: #5b6b79; margin-bottom: 5px; }
.m-form__ans { display: block; height: 7px; border-radius: 3px; background: #1f3b5c; margin-top: 4px; }

/* ---- joining us on Spruce: our page's box + button, Spruce's page, the
   app store, the sign-up (upload-help.js SPRUCE_JOIN / DESK_JOIN) */
.m-web__check { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 9px 10px; border: 1px solid #2f6b4f; border-radius: 9px; background: #e4ece6; font-size: 13px; font-weight: 600; line-height: 1.35; color: #14283a; }
.m-web__box { flex: none; width: 20px; height: 20px; border: 2px solid #5b6b7a; border-radius: 4px; background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; }
.m-web__box.is-on { background: #2f6b4f; border-color: #2f6b4f; }
.m-web__btn--go { display: block; text-align: center; border-radius: 999px; background: #14283a; color: #fff; }
.m-web__btn--go.is-dim { background: #7d8894; }
.m-store { padding: 14px 12px; }
.m-store__head { display: flex; gap: 14px; align-items: flex-start; }
.m-store__icon { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.m-store__icon svg { width: 100%; height: 100%; display: block; }
.m-store__meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.m-store__meta b { font-size: 20px; font-weight: 600; color: #111; }
.m-store__meta small { font-size: 14px; color: #6b7078; }
.m-store__btn { align-self: flex-start; margin-top: 10px; padding: 6px 20px; border-radius: 999px; background: #0a84ff; color: #fff; font-weight: 700; font-size: 15px; }
.m-store__btn--android { display: block; margin: 18px 0 0; padding: 11px; border-radius: 999px; background: #0b57d0; text-align: center; font-weight: 600; font-size: 15px; }
.m-store__shots { display: flex; gap: 10px; margin-top: 22px; }
.m-store__shots i { flex: 1; height: 300px; border-radius: 16px; background: linear-gradient(180deg, #d9e8fb, #eef4fc); }
/* Spruce's real web sign-up (computers), from Ryan's screenshots 2026-10-11. */
/* ...and on a phone (Android screenshots, 2026-10-11). */
.m-chrome-bar + .m-spcon { top: 56px; }
.m-spcon--phone .m-spcon__top { justify-content: space-between; align-items: center; padding: 10px 12px; }
.m-spcon__brand { font: 700 20px/1 var(--m-font); color: #102a43; letter-spacing: -.02em; }
.m-spcon--phone .m-spcon__btn { padding: 7px 9px; font-size: 10.5px; border-radius: 4px; }
.m-spcon--phone .m-spcon__card { margin: 10px 12px 0; }
.m-spcon--phone .m-spcon__card b { font-size: 21px; }
.m-spcon--phone .m-spcon__card--s b { font-size: 14px; }
.m-spcon__connect { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 13px; border-radius: 14px; background: #1a6ff2; color: #fff; text-align: center; font-size: 17px; font-weight: 600; }
.m-phone--ios .m-spcon__connect { bottom: 74px; }
.m-spm { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; padding: 0 18px; box-sizing: border-box; }
.m-spm__brand { display: flex; align-items: center; gap: 6px; margin-top: 70px; font: 700 22px/1 var(--m-font); color: #444; }
.m-spm__logo { width: 28px; height: 28px; }
.m-spm__col { align-self: stretch; margin-top: 150px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.m-spm__col--mid { align-items: center; margin-top: 170px; }
.m-spm__col--mid .m-spm__btn { align-self: stretch; }
.m-spm__h { font-size: 20px; font-weight: 700; line-height: 1.25; color: #111; }
.m-spm__p { font-size: 13px; line-height: 1.4; color: #444; }
.m-spm__field { display: flex; align-items: center; min-height: 20px; padding: 11px 12px; border: 1.5px solid #c9ced6; border-radius: 6px; font-size: 16px; color: #111; text-align: left; }
.m-spm__field .m-form__ans { height: 10px; margin: 0; }
.m-spm__fields { display: flex; flex-direction: column; gap: 10px; }
.m-spm__field--p { justify-content: space-between; }
.m-spm__end { color: #6b7078; font-size: 14px; }
.m-spm__col--top { margin-top: 70px; }
.m-spm__ph { color: #8a9099; font-size: 14px; }
.m-spm__btn { padding: 11px; border-radius: 4px; background: #1a6ff2; color: #fff; text-align: center; font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.m-spm__btn.is-dim { background: #e3e5e8; color: #8a9099; }
.m-spm__link { font-size: 13px; color: #1a6ff2; text-align: center; }
.m-spm__dlg { position: absolute; left: 34px; right: 34px; top: 190px; padding: 22px 20px 18px; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 12px; }
.m-spm__dlg--left { top: 230px; }
.m-spm__clip { align-self: center; color: #1a6ff2; }
.m-spm__dh { font-size: 19px; font-weight: 700; line-height: 1.25; color: #111; }
.m-spm__dp { font-size: 13.5px; line-height: 1.45; color: #333; }
.m-spm__dlogo { align-self: center; }
.m-spm__textbtn { align-self: flex-end; padding: 4px 2px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #1a6ff2; }
.m-spcon { position: absolute; inset: 0; overflow: hidden; background: #eceef2; }
.m-spcon__top { display: flex; justify-content: center; padding: 12px 0; background: #fff; }
.m-spcon__btn { padding: 9px 22px; border-radius: 5px; background: #1a6ff2; color: #fff; font-size: 14px; font-weight: 600; }
.m-spcon__card { margin: 10px 28px 0; padding: 14px 18px; border-radius: 12px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.m-spcon__card b { font-size: 22px; font-weight: 700; color: #111; }
.m-spcon__card--s b { font-size: 14px; }
.m-spcon__card--s .m-web__line { width: 70%; }
.m-spcon__card--s .m-web__line--s { width: 45%; }
.m-spcon__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-spcon__chips span { padding: 4px 9px; border-radius: 999px; background: #eef3fd; color: #1a6ff2; font-size: 10.5px; }
.m-spw { position: absolute; inset: 0; overflow: hidden; background: #fff; display: flex; flex-direction: column; align-items: center; }
.m-spw__brand { display: flex; align-items: center; gap: 6px; padding: 10px 0 0; font: 700 20px/1 var(--m-font); letter-spacing: -.02em; color: #111; }
.m-spw__logo { width: 24px; height: 24px; }
.m-spw__col { width: 300px; margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: center; }
.m-spw__invite { font-size: 14px; line-height: 1.3; color: #1a6ff2; }
.m-spw__h { font-size: 19px; font-weight: 700; line-height: 1.25; color: #111; }
.m-spw__p { font-size: 11.5px; line-height: 1.4; color: #555; }
.m-spw__field { display: flex; align-items: center; min-height: 18px; padding: 9px 11px; border: 1.5px solid #c9ced6; border-radius: 7px; font-size: 15px; color: #111; text-align: left; }
.m-spw__field .m-form__ans { height: 9px; margin: 0; }
.m-spw__fields { display: flex; flex-direction: column; gap: 7px; }
.m-spw__field--p { justify-content: space-between; }
.m-spw__ph { color: #9aa0a6; font-size: 13px; }
.m-spw__chev { color: #6b7078; font-size: 13px; }
.m-spw__code { display: flex; gap: 7px; }
.m-spw__code span { flex: 1; height: 40px; border: 1.5px solid #c9ced6; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: #111; }
.m-spw__btn { padding: 10px; border-radius: 7px; background: #1a6ff2; color: #fff; font-size: 14px; font-weight: 600; }
.m-spw__btn.is-dim { opacity: .45; }
.m-spw__link { font-size: 12px; color: #1a6ff2; }

/* Android Recent apps: the browser's window, showing our page, is the target. */
.m-recents { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding-top: 10px; background: #1c2531; overflow: hidden; }
.m-recents__col { flex: none; width: 66%; display: flex; flex-direction: column; gap: 8px; }
.m-recents__label { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 600; }
.m-recents__label .m-tile { width: 26px; height: 26px; }
.m-recents__label .m-tile svg { width: 100%; height: 100%; display: block; }
.m-recents__card { flex: none; position: relative; height: 430px; border-radius: 18px; overflow: hidden; background: #f6f8fa; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.m-recents__card--side { width: 66%; margin-left: -52%; margin-top: 34px; opacity: .85; }
.m-recents__thumb { position: absolute; left: 0; top: 0; width: 340px; height: 650px; transform: scale(0.7); transform-origin: top left; pointer-events: none; }

/* /send-help's "What are you sending?" (shown only with ?send=1). */
.uh-credit { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--text-muted); text-align: center; }
.uh-kinds__q { margin: 0 0 8px; font-weight: 700; color: var(--text-strong, #14283a); text-align: center; }
.uh-kinds .uh-devices { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; }
@media (max-width: 760px) { .uh-kinds .uh-devices { grid-template-columns: minmax(0, 1fr); } }

/* ---- /send-help's photo and document cuts: a photographed page, the photo
   picker, a picture bubble, an email with the file attached, the Share sheet. */
.m-photodoc { position: relative; display: flex; flex-direction: column; gap: 5px; width: 64px; height: 80px; padding: 9px 8px; box-sizing: border-box; overflow: hidden; flex: none; background: #fbfaf6; border-radius: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.m-photodoc i { display: block; height: 4px; border-radius: 2px; background: #b9b3a7; }
.m-photodoc .m-photodoc__t { height: 6px; width: 62%; background: #4a4a4a; margin-bottom: 2px; }
.m-photodoc .m-photodoc__s { width: 48%; }
.m-photodoc--mini { width: 22px; height: 28px; padding: 4px 3px; gap: 2px; }
.m-photodoc--mini i { height: 2px; flex: none; }
/* Ryan saw the badge's lines spill out of the little page: fewer lines at this size. */
.m-photodoc--mini i:nth-child(n+5) { display: none; }
.m-photodoc--mini .m-photodoc__t { height: 3px; }
.m-photodoc--big { width: 230px; height: 300px; padding: 26px 22px; gap: 12px; }
.m-photodoc--big i { height: 8px; }
.m-photodoc--big .m-photodoc__t { height: 12px; }
.m-pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 6px; }
.m-pgrid__cell { aspect-ratio: 1; border-radius: 2px; }
.m-pgrid__cell--doc { display: flex; align-items: center; justify-content: center; background: #8d8576; }
.m-picker--photos .m-picker__bar b { color: #111; font-size: 16px; }
.m-picker--photos .m-picker__bar svg { width: 20px; height: 20px; }
.m-bubble--photo { padding: 6px; }
.m-bubble--photo .m-photodoc { width: 110px; height: 140px; }
.m-convo--wide .m-bubble--photo .m-photodoc { width: 64px; height: 80px; }
.m-pill--photo { background: #e8ecf2; color: #1d1d1f; }
.m-viewer--photo { background: #111; }
.m-viewer__pic { flex: 1; display: flex; align-items: center; justify-content: center; margin: 14px; }
.m-viewer__pic--wide { position: absolute; inset: 0; margin: 0; background: #222; }
.m-imgico { display: inline-flex; width: 26px; justify-content: center; }
.m-mail { position: absolute; inset: 0; padding: 6px 12px; background: #fff; }
.m-mail__top { display: flex; align-items: center; gap: 6px; color: #2d6cdf; font-size: 16px; padding-bottom: 12px; }
.m-mail__top svg { width: 20px; height: 20px; }
.m-mail__subject i, .m-mail__body i { display: block; height: 10px; border-radius: 5px; background: #d5dae0; margin-bottom: 10px; }
.m-mail__subject i { height: 14px; width: 78%; background: #3b4a5a; }
.m-mail__subject .m-mail__s, .m-mail__body .m-mail__s { width: 55%; }
.m-mail__subject .m-mail__s { background: #9aa4ae; height: 10px; }
.m-mail__body { margin: 18px 0; }
.m-mail__att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #d5dae0; border-radius: 12px; background: #f7f8fa; }
.m-mail__att .i-pdf { width: 30px; height: 36px; flex: none; }
.m-mail__att > span:not(.m-mail__act) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-mail__att b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.m-mail__att small { font-size: 11.5px; color: #808489; }
.m-mail__act { flex: none; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #2d6cdf; background: #e7eefb; }
.m-mail__act svg { width: 20px; height: 20px; }
.m-mail--wide { padding: 20px 60px; }
.m-mail--wide .m-mail__att { max-width: 420px; }
.m-share { position: absolute; left: -10px; right: -10px; bottom: -30px; padding: 16px 16px 44px; border-radius: 16px 16px 0 0; background: #f2f2f6; }
.m-share__file { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #dcdce2; margin-bottom: 10px; font-size: 13px; }
.m-share__file .i-pdf { width: 26px; height: 32px; }
.m-share__row { padding: 13px 14px; margin-bottom: 8px; border-radius: 10px; background: #fff; font-size: 16px; }

/* --------------------------------------------------------- computers 880x550 */
.m-desk { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 10px #1b1d21, 0 12px 30px rgba(0,0,0,.25); }
.m-desk--win { background: #20507a; }
.m-desk--mac { background: #3f5b78; }
.m-desk__area { position: absolute; left: 0; right: 0; top: 0; bottom: 46px; }
.m-desk--mac .m-desk__area { top: 24px; bottom: 0; }
.m-menubar { position: absolute; top: 0; left: 0; right: 0; height: 24px; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: rgba(240,240,244,.94); font-size: 13px; }
.m-menubar__clock { margin-left: auto; }
.m-taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(238,242,247,.97); border-top: 1px solid #cdd5de; }
.m-taskbar__start { display: grid; grid-template-columns: repeat(2, 9px); gap: 2px; padding: 8px; }
.m-taskbar__start i { width: 9px; height: 9px; background: #1f7ae0; }
.m-taskbar__search { display: flex; align-items: center; gap: 6px; padding: 6px 40px 6px 10px; border-radius: 16px; background: #fff; border: 1px solid #d5dbe2; font-size: 13px; color: #555; }
.m-taskbar__search svg { width: 14px; height: 14px; }
.m-taskbar__app { width: 38px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.m-taskbar__app svg { width: 28px; height: 26px; border-radius: 6px; }
.m-taskbar__clock { position: absolute; right: 14px; font-size: 11px; line-height: 1.3; color: #333; text-align: right; }
.m-dock { position: absolute; left: 0; right: 0; width: max-content; margin: 0 auto; bottom: 18px; display: flex; gap: 12px; padding: 8px 12px; border-radius: 18px; background: rgba(255,255,255,.35); z-index: 4; }
.m-dock__app { position: relative; width: 50px; height: 50px; border-radius: 12px; display: flex; overflow: visible; }
.m-dock__app svg { width: 50px; height: 50px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.m-dock__app b { position: absolute; top: 100%; left: 0; right: 0; text-align: center; margin-top: 2px; font-size: 10px; color: #fff; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }

.m-win { position: absolute; left: 50px; right: 50px; top: 24px; bottom: 24px; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); display: flex; flex-direction: column; }
.m-desk--mac .m-win { bottom: 84px; }
.m-win__tabs { position: relative; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; background: #e8ebef; font-size: 13px; flex: none; }
.m-win__dots { display: flex; gap: 6px; }
.m-win__dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.m-win__dots i:nth-child(2) { background: #febc2e; }
.m-win__dots i:nth-child(3) { background: #28c840; }
.m-win__tab { padding: 6px 14px; border-radius: 8px 8px 0 0; background: #fff; align-self: flex-end; }
.m-win__title { font-weight: 600; overflow-wrap: anywhere; }
.m-win__ctrls { margin-left: auto; display: flex; gap: 22px; color: #333; }
.m-win__ctrls i { font-style: normal; }
.m-win__toolbar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #dde2e7; flex: none; }
.m-win__addr { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; background: #f1f3f4; font-size: 13px; color: #333; }
.m-win__dl { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #1f6fd0; border-radius: 6px; }
.m-win__dl svg { width: 20px; height: 20px; }
.m-win__body { position: relative; flex: 1; overflow: hidden; }
.m-pop { position: absolute; right: 10px; top: 76px; width: 360px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px rgba(0,0,0,.28); border: 1px solid #d5dbe2; }
.m-pop__h { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.m-pop__row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; background: #f3f6f9; }
.m-pop__row .i-pdf { width: 26px; height: 33px; flex: none; }
.m-pop__row b { display: block; font-size: 12.5px; overflow-wrap: anywhere; }
.m-pop__row small { color: #666; font-size: 11.5px; }
.m-macalert { position: absolute; left: 300px; top: 120px; width: 280px; z-index: 3; padding: 18px 18px 16px; border-radius: 12px; background: #f4f4f6; box-shadow: 0 12px 40px rgba(0,0,0,.35); text-align: center; }
.m-macalert__msg { font-weight: 700; font-size: 14px; line-height: 1.35; }
.m-macalert__sub { font-size: 11.5px; color: #555; margin: 8px 0 14px; line-height: 1.35; }
.m-macalert__btns { display: flex; gap: 10px; }
.m-macalert__btns .m-btn { flex: 1; text-align: center; }
.m-behind { position: absolute; inset: 0; opacity: .9; }
.m-win--folder, .m-win--dialog { left: 120px; right: 90px; top: 50px; bottom: 40px; z-index: 2; }
.m-desk--mac .m-win--folder, .m-desk--mac .m-win--dialog { bottom: 90px; }
.m-win--dialog { left: 150px; right: 120px; top: 60px; }
.m-win--viewer { left: 220px; right: 70px; top: 30px; bottom: 16px; z-index: 2; }
.m-desk--mac .m-win--viewer { bottom: 80px; }
.m-win__split { flex: 1; display: flex; min-height: 0; }
.m-side { width: 170px; flex: none; padding: 10px 8px; background: #f4f6f8; border-right: 1px solid #e1e5ea; }
.m-desk--mac .m-side { background: #eceef2; }
.m-side__row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; font-size: 14px; }
.m-side__row svg { width: 20px; height: 18px; color: #1f6fd0; flex: none; }
.m-side__row.is-on { background: #d6e6fa; font-weight: 600; }
.m-list { flex: 1; min-width: 0; padding: 10px 14px; }
.m-list__head, .m-list__row { display: grid; grid-template-columns: 28px 1fr 104px 60px; align-items: center; gap: 8px; font-size: 13px; }
.m-list__head { color: #666; padding: 4px 6px 8px; border-bottom: 1px solid #e3e7ec; }
.m-list__row { padding: 8px 6px; border-radius: 6px; margin-top: 4px; }
.m-list__row .i-pdf { width: 24px; height: 30px; }
.m-list__row span:nth-child(2) { overflow-wrap: anywhere; font-weight: 600; }
.m-list__row.is-sel { background: #cfe2fb; }
.m-folder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 12px; }
.m-folder-grid div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; }
.m-folder-grid svg { width: 54px; height: 44px; }
.m-dialog__foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 14px; border-top: 1px solid #e1e5ea; background: #f7f8fa; flex: none; }
.m-dialog__name { margin-right: auto; font-size: 12.5px; color: #333; overflow-wrap: anywhere; }
.m-btn { padding: 7px 18px; border-radius: 6px; border: 1px solid #c4ccd5; background: #fff; font-size: 14px; }
.m-btn--primary { background: #1f6fd0; border-color: #1f6fd0; color: #fff; font-weight: 600; }
.m-btn.is-dim { opacity: .5; }

.m-win--app { left: 40px; right: 40px; }
.m-sw { position: relative; flex: 1; display: flex; min-height: 0; }
.m-sw__list { width: 250px; flex: none; border-right: 1px solid #e1e5ea; background: #f7f8fa; padding: 12px 8px; }
.m-sw__search { display: flex; align-items: center; gap: 6px; padding: 7px 10px; margin-bottom: 10px; border-radius: 8px; background: #eceef1; color: #888; font-size: 13px; }
.m-sw__search svg { width: 14px; height: 14px; }
.m-sw__conv { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; font-size: 13px; }
.m-sw__conv b { display: block; font-size: 13px; font-weight: 600; }
.m-sw__conv small { color: #777; font-size: 11.5px; }
.m-sw__conv.is-on { background: #dce9fb; }
.m-sw__main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-sw__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #e1e5ea; font-size: 15px; flex: none; }
.m-sw__empty { margin: auto; color: #999; font-size: 14px; }
.m-convo--wide { padding: 14px 18px; }
.m-convo--wide .m-bubble { max-width: 62%; }
.m-sw .m-composer { padding: 8px 14px 8px; }
.m-sw .m-attach-panel { padding: 10px 14px 12px; }
.m-sw .m-attach-tile { flex-direction: row; align-items: center; padding: 9px 10px; }
.m-sw .m-attach-tile svg { width: 22px; height: 22px; }

/* Android's notification shade (the "Download complete" proof), from Ryan's Samsung, 2026-10-12. */
.m-shade { position: absolute; z-index: 6; left: 0; right: 0; top: -40px; padding: 70px 12px 16px; background: rgba(46, 74, 170, .96); color: #fff; border-radius: 0 0 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.m-shade__time { font-size: 30px; font-weight: 500; }
.m-shade__time small { font-size: 13px; margin-left: 6px; }
.m-shade__qs { display: flex; justify-content: space-between; padding: 0 4px; }
.m-shade__qs i { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.28); }
.m-shade__bar { height: 30px; border-radius: 15px; background: rgba(255,255,255,.22); }
.m-shade__note { display: flex; align-items: center; gap: 10px; padding: 12px 12px; border-radius: 22px; background: rgba(255,255,255,.14); }
.m-shade__ico { width: 34px; height: 34px; flex: none; }
.m-shade__note span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-shade__note b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-shade__note small { font-size: 12px; opacity: .9; }
.m-shade__when { font-size: 11px; opacity: .8; align-self: flex-start; }
.m-shade__note--dim { opacity: .55; }
.m-shade__blank { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.3); flex: none; }
.m-shade__note--dim i { display: block; height: 8px; width: 70%; border-radius: 4px; background: rgba(255,255,255,.5); }
.m-shade__note--dim i.m-shade__s { width: 45%; }
