/* window: the sample Mailwell window, styled after the Mac app's Theme.swift.
   Everything is scoped under #try so the older base layers don't reach in. */

#try {
  --tw-ground: #ececeb; --tw-side: #e6e6e5; --tw-list: #ececeb; --tw-card: #f8f8f7; --tw-raised: #fff;
  --tw-hover: rgb(255 255 255 / .3); --tw-press: rgb(0 0 0 / .045);
  --tw-ink: #111; --tw-2: #6a6a6a; --tw-3: #8d8d8d; --tw-hair: rgb(0 0 0 / .08);
  --tw-pill: #e0e0de; --tw-pill-h: #d6d6d4; --tw-accent: #4d61c4; --tw-gold: #d89a1e;
  --tw-cream: #f7f2e8; --tw-cream-ink: #4f3400;
  --tw-ring: 0 0 0 .5px rgb(0 0 0 / .1);
  --tw-float: 0 0 0 .5px rgb(0 0 0 / .1), 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -10px rgb(0 0 0 / .18);
  --tw-shadow: 0 0 0 1px rgb(0 0 0 / .07), 0 2px 6px rgb(20 22 40 / .04), 0 34px 80px -34px rgb(20 22 40 / .38);
  --tw-spring: cubic-bezier(.22, .82, .22, 1);
  --tw-font: "Geist", -apple-system, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #try {
    --tw-ground: #1c1c1d; --tw-side: #19191a; --tw-list: #1c1c1d; --tw-card: #303031; --tw-raised: #333334;
    --tw-hover: rgb(255 255 255 / .04); --tw-press: rgb(255 255 255 / .06);
    --tw-ink: #f2f2f0; --tw-2: rgb(255 255 255 / .56); --tw-3: rgb(255 255 255 / .42); --tw-hair: rgb(255 255 255 / .08);
    --tw-pill: rgb(255 255 255 / .1); --tw-pill-h: rgb(255 255 255 / .15); --tw-accent: #9da8e8;
    --tw-cream: #2e2a22; --tw-cream-ink: #e8d7b0;
    --tw-ring: 0 0 0 .5px rgb(255 255 255 / .1);
    --tw-float: 0 0 0 .5px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .06), 0 10px 26px -10px rgb(0 0 0 / .7);
    --tw-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 34px 80px -30px rgb(0 0 0 / .8);
  }
}
:root[data-theme="dark"] #try {
  --tw-ground: #1c1c1d; --tw-side: #19191a; --tw-list: #1c1c1d; --tw-card: #303031; --tw-raised: #333334;
  --tw-hover: rgb(255 255 255 / .04); --tw-press: rgb(255 255 255 / .06);
  --tw-ink: #f2f2f0; --tw-2: rgb(255 255 255 / .56); --tw-3: rgb(255 255 255 / .42); --tw-hair: rgb(255 255 255 / .08);
  --tw-pill: rgb(255 255 255 / .1); --tw-pill-h: rgb(255 255 255 / .15); --tw-accent: #9da8e8;
  --tw-cream: #2e2a22; --tw-cream-ink: #e8d7b0;
  --tw-ring: 0 0 0 .5px rgb(255 255 255 / .1);
  --tw-float: 0 0 0 .5px rgb(255 255 255 / .1), inset 0 1px 0 rgb(255 255 255 / .06), 0 10px 26px -10px rgb(0 0 0 / .7);
  --tw-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 34px 80px -30px rgb(0 0 0 / .8);
}

/* ───── The section: no frame, just the window on the page ───── */
body.letterpress #try.stage-win {
  position: relative; max-width: 1060px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 0;
  background: none; border-radius: 0; overflow: visible; isolation: isolate;
}
body.letterpress #try.stage-win::before { display: none; }
body.letterpress #try .desk { position: relative; margin: 0; padding: 0; }
/* a quiet light behind the window, in the wax seal's colors */
body.letterpress #try .desk::before {
  display: block; content: ""; position: absolute; inset: 8% 4% -6%; z-index: -1; pointer-events: none; filter: blur(80px); opacity: .32;
  background: radial-gradient(42% 52% at 20% 34%, rgb(91 112 214 / .55), #0000 70%), radial-gradient(34% 44% at 62% 18%, rgb(143 178 255 / .6), #0000 70%), radial-gradient(40% 50% at 80% 88%, rgb(255 208 178 / .9), #0000 70%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.letterpress #try .desk::before { opacity: .14; } }
:root[data-theme="dark"] body.letterpress #try .desk::before { opacity: .14; }

#try .tw { container: tw / inline-size; font-family: var(--tw-font); color: var(--tw-ink); -webkit-font-smoothing: antialiased; }
#try :where(.tw button) { font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#try :where(.tw ul) { list-style: none; margin: 0; padding: 0; }
#try .tw [hidden] { display: none !important; }
#try .tw :focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
#try .tw .ic { width: 17px; height: 17px; }

#try .tw-win {
  position: relative; display: grid; grid-template-columns: 196px 340px minmax(0, 1fr); height: 620px;
  background: var(--tw-ground); border-radius: 14px; overflow: hidden; box-shadow: var(--tw-shadow);
}

/* shared bits */
#try .tw-bar { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px 0 18px; flex: none; }
#try .tw-lights { display: flex; gap: 8px; margin-right: auto; }
#try .tw-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / .12); }
#try .tw-lights i:nth-child(2) { background: #febc2e; } #try .tw-lights i:nth-child(3) { background: #28c840; }
#try .tw-ib { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--tw-2); transition: background .15s, color .15s; }
#try .tw-ib:hover { background: var(--tw-press); color: var(--tw-ink); }
#try .tw-ib:active { transform: scale(.94); }
#try .tw-ib[aria-expanded="true"], #try .tw-ib[aria-pressed="true"] { background: var(--tw-pill); color: var(--tw-ink); }
#try .tw-ib.gold { color: var(--tw-gold); }
#try .tw-ib.gold[aria-pressed="true"] { background: var(--tw-cream); color: var(--tw-gold); }
#try .tw-sp { flex: 1; }
#try .tw-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--tw-pill); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .12s; }
#try button.tw-pill:hover { background: var(--tw-pill-h); }
#try button.tw-pill:active { transform: scale(.97); }
#try .tw-pill.quiet { background: none; box-shadow: inset 0 0 0 1px var(--tw-hair); color: var(--tw-2); }
#try .tw-pill.acc { background: var(--tw-ink); color: var(--tw-ground); }
#try .tw-pill.acc:hover { background: var(--tw-ink); opacity: .86; }
#try .tw-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--tw-2); }
#try .tw-ok .ic { width: 14px; height: 14px; color: var(--tw-accent); }
#try .tw-lab { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--tw-pill); font: 500 11.5px/1 var(--tw-font); color: var(--tw-2); white-space: nowrap; }

/* ───── Sidebar ───── */
#try .tw-side { background: var(--tw-side); padding-bottom: 12px; box-shadow: inset -1px 0 0 var(--tw-hair); }
#try .tw-places { padding: 6px 10px; display: grid; gap: 2px; }
#try .tw-place { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 9px; font-size: 13.5px; text-align: left; color: var(--tw-ink); transition: background .15s; }
#try .tw-place .ic { color: var(--tw-2); }
#try .tw-place span { flex: 1; }
#try .tw-place b { font-weight: 500; font-size: 12.5px; color: var(--tw-2); font-variant-numeric: tabular-nums; }
#try .tw-place:hover { background: var(--tw-press); }
#try .tw-place[aria-current] { background: var(--tw-card); box-shadow: 0 0 0 .5px rgb(0 0 0 / .04), 0 1px 2px rgb(0 0 0 / .05); font-weight: 500; }
#try .tw-place[aria-current] .ic { color: var(--tw-ink); }

/* ───── List ───── */
#try .tw-list { position: relative; display: flex; flex-direction: column; min-height: 0; background: var(--tw-list); }
#try .tw-list .tw-lights { visibility: hidden; }
#try .tw-head { padding: 0 22px 6px; flex: none; }
#try .tw-title { margin: 0; font: 700 28px/1.1 var(--tw-font); letter-spacing: -.035em; color: var(--tw-ink); }
#try .tw-sub { margin: 3px 0 0; min-height: 18px; font-size: 13px; color: var(--tw-2); }
#try .tw-find { display: flex; align-items: center; gap: 8px; height: 34px; margin: 10px 0 2px; padding: 0 12px; border-radius: 10px; background: var(--tw-card); box-shadow: var(--tw-ring); color: var(--tw-2); animation: tw-in .2s var(--tw-spring); }
#try .tw-find[hidden] { display: none; }
#try .tw-find .ic { width: 15px; height: 15px; }
#try .tw-find input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font: 400 13.5px var(--tw-font); color: var(--tw-ink); }
#try .tw-find input::-webkit-search-cancel-button { display: none; }
#try .tw-find:focus-within { box-shadow: 0 0 0 2px var(--tw-accent); }

#try .tw-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 8px 84px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); }
#try .tw-rows::-webkit-scrollbar { display: none; }
#try .tw-side ~ .tw-list .tw-rows { padding-bottom: 24px; -webkit-mask-image: none; mask-image: none; }
#try .tw-day { padding: 12px 14px 6px; font-size: 12.5px; font-weight: 500; color: var(--tw-3); }
#try .tw-r { position: relative; border-radius: 14px; transition: height .26s var(--tw-spring); }
#try .tw-slide { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 11px 12px; border-radius: inherit; background: transparent; transition: background .16s, box-shadow .16s, transform .26s var(--tw-spring), opacity .26s; }
#try .tw-r::after { content: ""; position: absolute; left: 64px; right: 12px; bottom: 0; height: 1px; background: var(--tw-hair); transition: opacity .16s; }
#try .tw-r:last-child::after, #try .tw-r.sel::after, #try .tw-r:has(+ .tw-r.sel)::after, #try .tw-r:has(+ .tw-day)::after { opacity: 0; }
@media (hover: hover) {
  #try .tw-r:hover::after, #try .tw-r:has(+ .tw-r:hover)::after { opacity: 0; }
  #try .tw-r:not(.sel):hover .tw-slide { background: var(--tw-hover); }
}
#try .tw-r.sel .tw-slide { background: var(--tw-card); box-shadow: 0 0 0 .5px rgb(0 0 0 / .04), 0 1px 3px rgb(0 0 0 / .06); }
#try .tw-r:has(.tw-open:active) .tw-slide { transform: scale(.992); }
#try .tw-r:has(.tw-open:focus-visible) .tw-slide { box-shadow: 0 0 0 2px var(--tw-accent); }
#try .tw-open { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
#try .tw-open:focus-visible { outline: 0; }
#try .tw-txt { min-width: 0; display: grid; gap: 2px; }
#try .tw-top, #try .tw-subj { display: flex; align-items: center; gap: 8px; min-width: 0; }
#try .tw-top .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--tw-2); }
#try .tw-top .who i { font-style: normal; font-weight: 400; color: var(--tw-3); margin-left: 6px; font-size: 12.5px; }
#try .tw-top time { font-size: 12px; color: var(--tw-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
#try .tw-fl { display: inline-grid; color: var(--tw-gold); }
#try .tw-fl .ic { width: 13px; height: 13px; fill: currentColor; }
#try .tw-subj > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
#try .tw-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--tw-2); }
#try .tw-r.unread .who, #try .tw-r.unread time { font-weight: 650; color: var(--tw-ink); }
#try .tw-pills { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; margin-top: 5px; }
#try .tw-pills .tw-pill { height: 26px; font-size: 12px; padding: 0 10px; }

/* hover actions sit over the time and label, as in the app */
#try .tw-acts { position: absolute; z-index: 2; top: 7px; right: 8px; display: flex; gap: 1px; padding: 2px; border-radius: 10px; background: var(--tw-list);
  opacity: 0; pointer-events: none; transform: translateX(4px); transition: opacity .14s, transform .18s var(--tw-spring); }
#try .tw-r.sel .tw-acts { background: var(--tw-card); }
#try .tw-acts button { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--tw-2); transition: background .12s, color .12s; }
#try .tw-acts button:hover { background: var(--tw-press); color: var(--tw-ink); }
#try .tw-acts button:active { transform: scale(.92); }
#try .tw-acts button.on { color: var(--tw-gold); }
#try .tw-acts button.on .ic { fill: currentColor; }
#try .tw-acts .ic { width: 16px; height: 16px; }
@media (hover: hover) { #try .tw-r:hover .tw-acts { opacity: 1; pointer-events: auto; transform: none; } }
#try .tw-r:focus-within .tw-acts { opacity: 1; pointer-events: auto; transform: none; }
@media (hover: none) { #try .tw-r:focus-within .tw-acts { opacity: 0; pointer-events: none; } }

/* leaving, coming back, swiping */
#try .tw-r.gone { overflow: hidden; }
#try .tw-r.gone .tw-slide { opacity: 0; transform: translateX(-14px); }
#try .tw-r.gone::after { opacity: 0; }
#try .tw-r.back .tw-slide { animation: tw-back .42s var(--tw-spring); }
#try .tw-reveal { position: absolute; inset: 0; display: none; align-items: center; justify-content: flex-end; padding-right: 22px; border-radius: inherit; background: var(--tw-pill); color: var(--tw-2); }
#try .tw-r.swiping, #try .tw-r.gone { overflow: hidden; }
#try .tw-r.swiping .tw-reveal, #try .tw-r.gone .tw-reveal { display: flex; }
#try .tw-r.swiping .tw-slide { transition: none; background: var(--tw-list); }
#try .tw-r.armed .tw-reveal { background: var(--tw-ink); color: var(--tw-ground); }
#try .tw-r.armed .tw-reveal .ic { transform: scale(1.12); }
#try .tw-reveal .ic { transition: transform .18s var(--tw-spring); }
#try .tw-rows .tw-r { touch-action: pan-y; }

/* empty states */
#try .tw-empty { display: grid; justify-items: center; gap: 6px; padding: 72px 24px; text-align: center; font-size: 13px; color: var(--tw-2); animation: tw-in .35s var(--tw-spring); }
#try .tw-empty b { font-size: 15px; font-weight: 600; color: var(--tw-ink); }
#try .tw-empty.zero img { width: 56px; height: 56px; margin-bottom: 8px; filter: drop-shadow(0 6px 10px rgb(49 62 144 / .25)); animation: tw-seal .6s var(--tw-spring); }
#try .tw-empty .tw-pill { margin-top: 10px; }

/* avatars */
#try .tw-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font: 600 14px/1 var(--tw-font); letter-spacing: -.01em; flex: none; }
#try .tw-av.sm { width: 22px; height: 22px; font-size: 9px; }
#try .tw-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
#try .tw-av.duo img { position: absolute; width: 28px; height: 28px; box-shadow: 0 0 0 2px var(--tw-list); }
#try .tw-r.sel .tw-av.duo img { box-shadow: 0 0 0 2px var(--tw-card); }
#try .tw-av.duo img:first-child { left: -2px; top: -2px; } #try .tw-av.duo img:last-child { right: -2px; bottom: -2px; }
#try .tw-av.tile { border-radius: 12px; background: var(--tw-pill); color: var(--tw-2); }
#try .tw-av.tile .ic { width: 19px; height: 19px; }
#try .tw-av.tile b { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tw-ink); color: var(--tw-ground); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--tw-list); }
#try .tw-av.me { background: var(--tw-pill); padding: 7px; }
#try .tw-av.me.sm { padding: 3px; }
#try .tw-av.me img { border-radius: 0; object-fit: contain; }
#try .t-sage { background: #e2e8df; color: #4e6148; } #try .t-slate { background: #dfe3ec; color: #46506a; } #try .t-sand { background: #eee6d8; color: #6e5a33; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #try .t-sage { background: #2f392c; color: #b8caaf; } :root:not([data-theme="light"]) #try .t-slate { background: #2c3240; color: #b6c0da; } :root:not([data-theme="light"]) #try .t-sand { background: #3a3326; color: #e0cfa8; } }
:root[data-theme="dark"] #try .t-sage { background: #2f392c; color: #b8caaf; } :root[data-theme="dark"] #try .t-slate { background: #2c3240; color: #b6c0da; } :root[data-theme="dark"] #try .t-sand { background: #3a3326; color: #e0cfa8; }

/* the dock, when there's no sidebar */
#try .tw-dock { position: absolute; z-index: 3; left: 50%; bottom: 16px; display: none; align-items: center; gap: 2px; padding: 5px; border-radius: 26px;
  transform: translateX(-50%); background: color-mix(in srgb, var(--tw-raised) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--tw-float); }
#try .tw-dk { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--tw-2); transition: background .15s, color .15s, transform .12s; }
#try .tw-dk:hover { color: var(--tw-ink); background: var(--tw-press); }
#try .tw-dk:active { transform: scale(.92); }
#try .tw-dk[aria-current] { background: var(--tw-pill); color: var(--tw-ink); }
#try .tw-dk b { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--tw-ink); color: var(--tw-ground); font-size: 10px; font-weight: 600; box-shadow: 0 0 0 2px var(--tw-raised); }
#try .tw-dk.new { margin-left: 4px; background: var(--tw-ink); color: var(--tw-ground); }
#try .tw-dk.new:hover { background: var(--tw-ink); opacity: .86; }
#try .tw-dk .ic { width: 19px; height: 19px; }

/* the toast */
#try .tw-toast { position: absolute; z-index: 4; left: 50%; bottom: 18px; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 6px 0 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--tw-raised) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--tw-float);
  font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 10px) scale(.97);
  transition: opacity .18s, transform .3s var(--tw-spring); }
#try .tw-toast.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#try .tw-toast button { height: 30px; padding: 0 12px; border-radius: 15px; color: var(--tw-accent); font-weight: 600; }
#try .tw-toast button:hover { background: var(--tw-press); }
#try .tw-toast button[hidden] { display: none; }
#try .tw-toast:has(button[hidden]) { padding-right: 16px; }

/* ───── Reader ───── */
#try .tw-read { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; margin: 8px 8px 8px 0; border-radius: 12px; background: var(--tw-card); box-shadow: 0 0 0 .5px rgb(0 0 0 / .05); overflow: hidden; }
#try .tw-tools { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px 0 28px; flex: none; }
/* Crisp under the toolbar, as in the app: no fade. */
#try .tw-back { display: none; margin-left: -18px; flex: none; }
#try .tw-back .ic { width: 20px; height: 20px; }
#try .tw-mini { display: flex; align-items: center; gap: 9px; min-width: 0; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .25s var(--tw-spring); pointer-events: none; }
#try .tw-mini b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
#try .tw-read.scrolled .tw-mini { opacity: 1; transform: none; }
#try .tw-mini + .tw-lab { position: absolute; left: 28px; transition: opacity .2s; }
#try .tw-read.scrolled .tw-mini + .tw-lab { opacity: 0; }
#try .tw-tb { display: flex; align-items: center; gap: 2px; }
#try .tw-tb .tw-ib:nth-child(2) { margin-right: 10px; }
#try .tw-more { position: relative; }
#try .tw-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; min-width: 196px; padding: 5px; border-radius: 12px; background: var(--tw-raised); box-shadow: var(--tw-float); animation: tw-pop .18s var(--tw-spring); transform-origin: top right; }
#try .tw-menu[hidden] { display: none; }
#try .tw-menu button { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 7px; text-align: left; font-size: 13px; }
#try .tw-menu button .ic { width: 15px; height: 15px; opacity: .7; }
#try .tw-menu button:hover, #try .tw-menu button:focus-visible { background: var(--tw-press); outline: 0; }

#try .tw-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 28px 110px 28px; scrollbar-width: thin; }
#try .tw-scroll.arrive { animation: tw-in .28s var(--tw-spring); }
#try .tw-scroll h2 { margin: 0 0 18px; font: 700 26px/1.15 var(--tw-font); letter-spacing: -.03em; color: var(--tw-ink); text-wrap: balance; }
#try .tw-sum { display: flex; align-items: flex-start; gap: 12px; margin: -4px 0 20px; font-size: 13.5px; line-height: 1.5; }
#try .tw-sum[hidden] { display: none; }
#try .tw-sum.in { animation: tw-in .24s var(--tw-spring); }
#try .tw-star { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tw-cream); color: var(--tw-gold); }
#try .tw-star .ic { width: 15px; height: 15px; }
#try .tw-note { padding: 11px 14px; border-radius: 6px 18px 18px 18px; background: var(--tw-cream); color: var(--tw-cream-ink); }
#try .tw-note p { margin: 0; }
#try .tw-note-acts { display: flex; gap: 6px; margin-top: 10px; }
#try .tw-note-acts button { height: 24px; padding: 0 11px; border-radius: 12px; font-size: 12px; font-weight: 500; color: inherit; background: rgb(255 255 255 / .78); box-shadow: 0 0 0 .5px rgb(0 0 0 / .05); }
#try .tw-note-acts button:hover { background: #fff; }
#try .tw-note-acts button:focus-visible { outline: 2px solid var(--tw-accent); outline-offset: 2px; }
#try .tw-sum small { display: block; margin: 5px 0 0 4px; font-size: 11.5px; color: var(--t3, #707177); }
@media (prefers-color-scheme: dark) { #try .tw-note-acts button { background: rgb(255 255 255 / .1); box-shadow: none; } #try .tw-note-acts button:hover { background: rgb(255 255 255 / .16); } }
#try .tw-msg + .tw-msg { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--tw-hair); margin-left: 52px; }
#try .tw-msg + .tw-msg .tw-from { margin-left: -52px; }
/* The later message is already 52px in (so its line starts at the names); its text and cards mustn't step in again. */
#try .tw-msg + .tw-msg .tw-body, #try .tw-msg + .tw-msg .tw-invite { margin-left: 0; }
#try .tw-msg.fresh { animation: tw-in .4s var(--tw-spring); }
#try .tw-from { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
#try .tw-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; font-size: 14px; }
#try .tw-name b { font-weight: 600; }
#try .tw-name em { font-style: normal; color: var(--tw-2); font-size: 13px; }
#try .tw-from small { display: flex; flex-wrap: wrap; white-space: nowrap; align-items: center; gap: 2px 4px; margin-top: 2px; font-size: 12.5px; color: var(--tw-2); }
#try .tw-from small .ic { width: 12px; height: 12px; margin-right: 6px; }
#try .tw-seal.work { background: #3d6fd8; }
#try .tw-seal { width: 12px; height: 12px; background: #7a62d2; -webkit-mask: url(../../media/seal-mark.svg) center / contain no-repeat; mask: url(../../media/seal-mark.svg) center / contain no-repeat; }
#try .tw-from time { font-size: 12.5px; color: var(--tw-3); padding-top: 1px; }
#try .tw-body { margin: 14px 0 0 52px; font-size: 14.5px; line-height: 1.6; max-width: 60ch; }
#try .tw-body p { margin: 0 0 12px; }
#try .tw-photo { display: block; width: 100%; max-width: 440px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin: 4px 0 16px; }
#try .tw-invite { display: flex; align-items: center; gap: 12px; margin: 4px 0 0 52px; padding: 12px 12px 12px 16px; border-radius: 12px; background: var(--tw-ground); font-size: 13px; color: var(--tw-2); max-width: 440px; }
#try .tw-invite > span:not(.tw-ok) { flex: 1; display: grid; gap: 1px; }
#try .tw-invite b { color: var(--tw-ink); font-weight: 600; }
#try .tw-none { flex: 1; display: grid; place-content: center; gap: 4px; text-align: center; padding-bottom: 52px; animation: tw-in .3s var(--tw-spring); }
#try .tw-none b { font-size: 16px; font-weight: 600; }
#try .tw-none span { font-size: 13px; color: var(--tw-2); }

/* a bundle's list header */
#try .tw-hrow { display: flex; align-items: center; gap: 6px; min-height: 31px; }
#try .tw-bback { margin-left: -10px; color: var(--tw-ink); }
#try .tw-bback .ic { width: 20px; height: 20px; }
#try .tw-all { margin-left: auto; }
#try .tw-all .ic { width: 14px; height: 14px; }

/* earlier messages in a thread, folded to one line */
#try .tw-fold { display: grid; grid-template-columns: 22px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px 10px; margin: 0 -10px; border-radius: 10px; text-align: left; font-size: 13px; color: var(--tw-2); box-sizing: content-box; transition: background .15s; }
#try .tw-fold + .tw-fold { margin-top: 2px; }
#try .tw-fold:hover { background: var(--tw-press); }
#try .tw-fold b { font-weight: 600; color: var(--tw-ink); white-space: nowrap; }
#try .tw-fold .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#try .tw-fold time { font-size: 12px; color: var(--tw-3); white-space: nowrap; }
#try .tw-fold + .tw-msg { margin-top: 14px; padding-top: 20px; border-top: 1px solid var(--tw-hair); }
#try .tw-msg + .tw-fold { margin-top: 18px; }

/* a quick look at a bundle, when the arrow keys land on it */
#try .tw-peeksub { margin: -12px 0 16px; font-size: 13px; color: var(--tw-2); }
#try .tw-peek { display: grid; gap: 2px; }
#try .tw-peek button { display: grid; grid-template-columns: 22px 140px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; text-align: left; font-size: 13.5px; transition: background .15s; }
#try .tw-peek button:hover { background: var(--tw-press); }
#try .tw-peek b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#try .tw-peek .unread b { font-weight: 650; }
#try .tw-peek .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tw-2); }
#try .tw-peek time { font-size: 12px; color: var(--tw-3); }
#try .tw-peekacts { display: flex; align-items: center; gap: 8px; margin-top: 18px; }

/* the reply field, and the composer it opens into */
#try .tw-reply { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; }
#try .tw-reply::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: -14px; height: 120px; z-index: -1; pointer-events: none; background: linear-gradient(#0000 68%, var(--tw-card) 68%); } /* mail runs whole to the field and ends behind it, as in the app */
#try .tw-field { display: flex; align-items: center; height: 46px; padding: 0 7px 0 4px; border-radius: 23px; background: var(--tw-raised); box-shadow: var(--tw-float); transition: box-shadow .15s; }
#try .tw-field:hover { box-shadow: var(--tw-float), 0 0 0 1px var(--tw-hair); }
#try .tw-fbtn { flex: 1; min-width: 0; height: 100%; padding: 0 14px; text-align: left; font-size: 13.5px; color: var(--tw-3) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 22px; }
#try .tw-fbtn .dr { color: #c9506a; font-weight: 500; margin-right: 6px; }
#try .tw-field .tw-ib { width: 34px; height: 34px; border-radius: 50%; }
#try .tw-comp { display: grid; gap: 8px; padding: 10px 12px 10px 18px; border-radius: 18px; background: var(--tw-raised); box-shadow: var(--tw-float); animation: tw-open .24s var(--tw-spring); transform-origin: bottom center; }
#try .tw-to { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--tw-hair); font-size: 13px; color: var(--tw-2); }
#try .tw-to > span:first-child { width: 52px; flex: none; }
#try .tw-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--tw-pill); color: var(--tw-ink); font-weight: 500; font-size: 12.5px; }
#try .tw-to input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: none; font: 400 13.5px var(--tw-font); color: var(--tw-ink); }
#try .tw-comp :is(textarea, input):focus-visible { outline: 0; }
#try .tw-to input::placeholder, #try .tw-comp textarea::placeholder { color: var(--tw-3); }
#try .tw-comp textarea { display: block; width: 100%; min-height: 76px; resize: none; border: 0; outline: 0; background: none; padding: 6px 0; font: 400 14px/1.55 var(--tw-font); color: var(--tw-ink); }
#try .tw-cfoot { display: flex; align-items: center; gap: 4px; margin-left: -6px; }
#try .tw-send { height: 32px; padding: 0 16px; border-radius: 16px; background: var(--tw-pill) !important; font-size: 13px !important; font-weight: 600 !important; transition: background .15s, opacity .15s, transform .12s; }
#try .tw-send:hover:not(:disabled) { background: var(--tw-pill-h) !important; }
#try .tw-send:active:not(:disabled) { transform: scale(.96); }
#try .tw-send:disabled { opacity: .45; cursor: default; }
#try .tw-hint { margin-left: 8px; font-size: 11.5px; color: var(--tw-3); }
#try .tw-new { margin-top: 0; box-shadow: none; padding: 0; background: none; animation: none; }
#try .tw-new .tw-cfoot { margin-left: 0; }
#try .tw-new textarea { min-height: 150px; padding-top: 12px; }

/* ───── No sidebar: the app as it opens, a list with its dock beside the reader ───── */
#try .tw-win { grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); }
#try .tw-side { display: none; }
#try .tw-list .tw-lights { visibility: visible; }
#try .tw-dock { display: flex; }
#try .tw-side ~ .tw-list .tw-rows { padding-bottom: 84px; -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); }
#try .tw-toast { bottom: 76px; }

/* ───── Narrower windows: the app's own layout with the dock ───── */
@container tw (max-width: 940px) {
  #try .tw-win { grid-template-columns: minmax(280px, 40%) minmax(0, 1fr); }
  #try .tw-side { display: none; }
  #try .tw-list .tw-lights { visibility: visible; }
  #try .tw-dock { display: flex; }
  #try .tw-side ~ .tw-list .tw-rows { padding-bottom: 84px; -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 20px)); }
  #try .tw-toast { bottom: 76px; }
  #try .tw-scroll { padding-inline: 22px; }
  #try .tw-tools { padding-left: 22px; }
  #try .tw-mini + .tw-lab { left: 22px; }
}

/* ───── A phone: Mailwell mini's way, one screen at a time ───── */
@container tw (max-width: 640px) {
  #try .tw-win { grid-template-columns: minmax(0, 1fr); height: 640px; border-radius: 28px; }
  #try .tw-list { transition: transform .34s var(--tw-spring), opacity .34s; }
  #try .tw-list .tw-lights { visibility: hidden; }
  #try .tw-bar { height: 56px; padding: 0 14px; }
  #try .tw-bar .tw-ib { width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tw-raised) 80%, transparent); box-shadow: var(--tw-float); color: var(--tw-ink); }
  #try .tw-head { padding: 0 20px 4px; }
  #try .tw-title { font-size: 32px; }
  #try .tw-rows { padding-inline: 6px; }
  #try .tw-slide { padding: 12px 14px; }
  #try .tw-r::after { left: 66px; }
  #try .tw-acts { display: none; }
  #try .tw-reveal { border-radius: 14px; }
  #try .tw-dk { width: 44px; height: 44px; }
  #try .tw-dock { bottom: 18px; }
  #try .tw-toast { bottom: 82px; }
  #try .tw-read { position: absolute; inset: 0; z-index: 5; margin: 0; border-radius: inherit; transform: translateX(100%); visibility: hidden; transition: transform .34s var(--tw-spring), visibility 0s .34s; box-shadow: -10px 0 30px rgb(0 0 0 / .08); }
  #try .tw-win[data-view="read"] .tw-read { transform: none; visibility: visible; transition: transform .34s var(--tw-spring), visibility 0s; }
  #try .tw-win[data-view="read"] .tw-list { transform: translateX(-22%); opacity: .6; }
  #try .tw-tools { height: 60px; padding: 0 12px 0 14px; }
  #try .tw-back { display: grid; margin-left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--tw-raised); box-shadow: var(--tw-float); color: var(--tw-ink); }
  #try .tw-mini { display: none; }
  #try .tw-mini + .tw-lab { position: static; opacity: 1 !important; }
  #try .tw-tb { gap: 0; padding: 2px; border-radius: 22px; background: var(--tw-raised); box-shadow: var(--tw-float); }
  #try .tw-tb .tw-ib { width: 40px; height: 40px; border-radius: 50%; }
  #try .tw-tb .tw-ib:nth-child(2) { margin-right: 0; }
  #try .tw-scroll { padding: 8px 20px 110px; scrollbar-width: none; }
  #try .tw-scroll::-webkit-scrollbar { display: none; }
  #try .tw-scroll h2 { font-size: 26px; }
  #try .tw-name em { display: none; }
  #try .tw-body, #try .tw-invite { margin-left: 0; }
  #try .tw-body { font-size: 15.5px; }
  #try .tw-msg + .tw-msg { margin-left: 0; }
  #try .tw-msg + .tw-msg .tw-from { margin-left: 0; }
  #try .tw-invite { flex-wrap: wrap; }
  #try .tw-reply { left: 12px; right: 12px; bottom: 14px; }
  #try .tw-field { height: 50px; border-radius: 25px; }
  #try .tw-field .tw-ib { width: 40px; height: 40px; }
  #try .tw-hint { display: none; }
  #try .tw-peek button { grid-template-columns: 22px minmax(0, 1fr) auto; }
  #try .tw-peek .sn { display: none; }
  #try .tw-fold { grid-template-columns: 22px minmax(0, 1fr) auto; }
  #try .tw-fold .sn { display: none; }
  #try .tw-comp textarea { font-size: 16px; }
  #try .tw-to input { font-size: 16px; }
  #try .tw-find input { font-size: 16px; }
  #try .tw-place, #try .tw-pills .tw-pill { min-height: 32px; }
  #try .tw-send { height: 40px; padding: 0 20px; border-radius: 20px; }
  #try .tw-comp .tw-ib { width: 40px; height: 40px; }
}

/* the keys under the window; a touch line instead on phones and tablets */
#try .tw-keys { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: var(--t3, #707177); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; }
#try .tw-keys i { width: 10px; }
#try .tw-keys .kbd { min-width: 20px; height: 20px; font-size: 11.5px; }
#try .tw-keys--touch { display: none; }
@media (hover: none), (pointer: coarse) { #try .tw-keys--keys { display: none; } #try .tw-keys--touch { display: flex; } }

@media (max-width: 600px) {
  body.letterpress #try.stage-win { margin-top: 40px; }
  body.letterpress #try .desk { margin-inline: max(-24px, calc(16px - (100vw - 100%) / 2)); }
  #try .tw-win { height: min(640px, calc(100svh - 120px)); min-height: 520px; }
}

@keyframes tw-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tw-back { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes tw-pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes tw-open { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tw-seal { from { opacity: 0; transform: scale(.6) rotate(-18deg); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  #try .tw *, #try .tw *::before, #try .tw *::after { animation: none !important; transition-duration: .01ms !important; }
  #try .tw-toast { transition: opacity .15s !important; }
}

/* Search lives in the top bar beside the traffic lights, as in the app; the
   list's title reads "Search" while it is open. No unread line under Inbox. */
#try .tw-sub:empty { display: none; }
#try .tw-head { padding-bottom: 10px; }
#try .tw-bar .tw-find { flex: 1; min-width: 0; height: 30px; margin: 0 0 0 12px; padding: 0 6px 0 11px; border-radius: 999px; }
#try .tw-bar:has(.tw-find:not([hidden])) > .tw-ib { display: none; }
#try .tw-bar:has(.tw-find:not([hidden])) .tw-lights { margin-right: 0; }
#try .tw-findx { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--tw-2); }
#try .tw-findx:hover { color: var(--tw-ink); background: var(--tw-press); }
#try .tw-findx .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* The dock's unread count: a small plain disc on the icon's shoulder. */
#try .tw-dk b { top: 4px; right: 3px; min-width: 15px; height: 15px; padding: 0 3.5px; border-radius: 8px; font-size: 9.5px; line-height: 1; box-shadow: none; }

/* Review fixes: one focus ring on the search pill, a full-size hit area on
   its close button, and toasts that leave the tab order when hidden. */
#try .tw-find input:focus-visible { outline: 0; }
#try .tw-findx { position: relative; }
#try .tw-findx::after { content: ""; position: absolute; inset: -9px; }
#try .tw-toast { visibility: hidden; transition: opacity .18s, transform .3s var(--tw-spring), visibility 0s .3s; }
#try .tw-toast.on { visibility: visible; transition: opacity .18s, transform .3s var(--tw-spring), visibility 0s; }
/* Key caps under the window follow the theme. */
#try .tw-keys .kbd { background: color-mix(in srgb, var(--t1, #202124) 7%, transparent); color: var(--t2, #606166); box-shadow: none; }
/* Rows never push past the list: long invite lines wrap inside it. */
#try .tw-txt { min-width: 0; }
#try .tw-pills { flex-wrap: wrap; min-width: 0; }
/* Hover buttons, as in the app: bare 24px icons on the row's own wash, on
   the date's line and ending at its right edge. No capsule of their own. */
#try .tw-acts { top: 9px; right: 8px; gap: 0; padding: 0 0 0 10px; border-radius: 0; box-shadow: none; transform: none;
  background: linear-gradient(var(--tw-hover), var(--tw-hover)), var(--tw-list); }
#try .tw-acts:empty { display: none; }
#try .tw-r.sel .tw-acts { background: var(--tw-card); }
#try .tw-acts button { width: 24px; height: 24px; border-radius: 50%; }
#try .tw-acts .ic { width: 14.5px; height: 14.5px; }

/* ───── Always the Mac window ─────
   The app keeps its list beside its reader however small its window gets,
   so the picture of it does too. Under 760px the whole window shrinks to
   fit (--tw-fit, set in demo-inbox.js); on a phone it stops at 80% and runs
   off the right edge, the list whole and the reader beginning. */
#try .tw { width: max(100%, 760px); transform-origin: 0 0; transform: scale(var(--tw-fit, 1)); margin-bottom: var(--tw-pull, 0px); }
#try .tw-keys--touch { display: none !important; }
@media (max-width: 600px) {
  body.letterpress #try .desk { margin-inline: 0; }
  #try .tw-win { height: 540px; min-height: 0; }
}

/* The dock, as the app draws its own: frosted glass with a light edge, a
   soft circle under the place you are in, and the round ink button. */
#try .tw-dock {
  gap: 2px; padding: 6px; border-radius: 99px;
  background: color-mix(in srgb, var(--tw-raised) 58%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .75), 0 0 0 .5px rgb(0 0 0 / .07), 0 10px 28px -10px rgb(0 0 0 / .22), 0 2px 6px rgb(0 0 0 / .06);
}
#try .tw-dk[aria-current] { background: color-mix(in srgb, var(--tw-ink) 10%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #try .tw-dock { background: rgb(58 58 60 / .55); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .12), 0 10px 28px -8px rgb(0 0 0 / .6); }
}
:root[data-theme="dark"] #try .tw-dock { background: rgb(58 58 60 / .55); box-shadow: inset 0 0 0 .5px rgb(255 255 255 / .12), 0 10px 28px -8px rgb(0 0 0 / .6); }

/* Deeper glass for the dock: clearer, more blur, a bright top edge where the
   light catches it and a soft floor shadow, in light and dark. */
#try .tw-dock {
  background: linear-gradient(180deg, rgb(255 255 255 / .6), rgb(255 255 255 / .32));
  -webkit-backdrop-filter: blur(28px) saturate(2.1) brightness(1.04); backdrop-filter: blur(28px) saturate(2.1) brightness(1.04);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 .5px rgb(255 255 255 / .6), inset 0 -1px 0 rgb(0 0 0 / .04),
    0 0 0 .5px rgb(0 0 0 / .08), 0 14px 34px -12px rgb(0 0 0 / .26), 0 3px 8px rgb(0 0 0 / .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #try .tw-dock {
    background: linear-gradient(180deg, rgb(86 86 90 / .5), rgb(50 50 52 / .42));
    -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 0 0 .5px rgb(255 255 255 / .1), 0 0 0 .5px rgb(0 0 0 / .5), 0 14px 34px -10px rgb(0 0 0 / .7);
  }
}
:root[data-theme="dark"] #try .tw-dock {
  background: linear-gradient(180deg, rgb(86 86 90 / .5), rgb(50 50 52 / .42));
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), inset 0 0 0 .5px rgb(255 255 255 / .1), 0 0 0 .5px rgb(0 0 0 / .5), 0 14px 34px -10px rgb(0 0 0 / .7);
}

/* Clear glass: mostly see-through, so what scrolls under the dock shows
   through it softly, with a bright rim and a shaded floor for thickness. */
#try .tw-dock {
  background: linear-gradient(180deg, rgb(255 255 255 / .38), rgb(255 255 255 / .14));
  -webkit-backdrop-filter: blur(14px) saturate(1.9) brightness(1.06); backdrop-filter: blur(14px) saturate(1.9) brightness(1.06);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 0 0 1px rgb(255 255 255 / .45), inset 0 -10px 14px -10px rgb(20 24 60 / .1),
    0 0 0 .5px rgb(0 0 0 / .1), 0 16px 36px -12px rgb(0 0 0 / .28), 0 3px 8px rgb(0 0 0 / .08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #try .tw-dock {
    background: linear-gradient(180deg, rgb(120 120 128 / .3), rgb(60 60 64 / .22));
    -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 0 0 1px rgb(255 255 255 / .08), 0 0 0 .5px rgb(0 0 0 / .6), 0 16px 36px -10px rgb(0 0 0 / .75);
  }
}
:root[data-theme="dark"] #try .tw-dock {
  background: linear-gradient(180deg, rgb(120 120 128 / .3), rgb(60 60 64 / .22));
  -webkit-backdrop-filter: blur(14px) saturate(1.7); backdrop-filter: blur(14px) saturate(1.7);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .26), inset 0 0 0 1px rgb(255 255 255 / .08), 0 0 0 .5px rgb(0 0 0 / .6), 0 16px 36px -10px rgb(0 0 0 / .75);
}

/* A bundle's overview in the reader, as the app draws it: the name with
   quiet Trash All and Archive All beside it, a count, then a line for each
   conversation with a hairline between. Unread ones are in ink. */
#try .tw-peekhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#try .tw-peekhead h2 { margin-bottom: 0; }
#try .tw-bulk { display: flex; gap: 4px; flex: none; }
#try .tw-bulk button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--tw-2); transition: background .15s, color .15s; }
#try .tw-bulk button:hover { background: var(--tw-press); color: var(--tw-ink); }
#try .tw-bulk .ic { width: 13px; height: 13px; }
#try .tw-peeksub { margin: 4px 0 18px; font-size: 13px; color: var(--tw-3); }
#try .tw-peek { gap: 0; margin-inline: -10px; }
#try .tw-peek li + li { box-shadow: inset 0 .5px 0 color-mix(in srgb, var(--tw-ink) 9%, transparent); }
#try .tw-peek button { padding: 13px 10px; border-radius: 10px; grid-template-columns: 22px 150px minmax(0, 1fr) auto; }
#try .tw-peek b { color: var(--tw-2); font-weight: 450; }
#try .tw-peek .unread b { color: var(--tw-ink); font-weight: 650; }
#try .tw-peek .unread .sn { color: var(--tw-ink); }
#try .tw-bcount { position: absolute; z-index: 1; left: 40px; top: 7px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: var(--tw-ink); color: var(--tw-ground); font: 600 9.5px/1 var(--tw-font); font-style: normal; }
@container tw (max-width: 760px) { #try .tw-bulk button { font-size: 0; gap: 0; padding: 0 7px; } }

/* The dock and the reply field are one size and sit on one line, as in the
   app: 52px tall, 16px off the window's foot. */
/* (The reader card sits 8px inside the window, so its field is 8px off the card.) */
#try .tw-reply { bottom: 8px; }
#try .tw-reply .tw-field { height: 52px; border-radius: 26px; padding: 0 10px 0 7px; }
#try .tw-dock { bottom: 16px; }
/* Scaled-down windows: the list fades out under the dock instead of a row
   showing half covered behind it. */
@media (max-width: 1100px) {
  #try .tw-rows { -webkit-mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 40px)); mask-image: linear-gradient(#000 calc(100% - 96px), #0000 calc(100% - 40px)); }
}

/* The invitation card, as in the app: its title, then when, where and who
   on a line each, and the answers under them. It sits above the message. */
#try .tw-invite { display: grid; gap: 7px; align-items: start; margin: 12px 0 14px 52px; padding: 14px 16px; border-radius: 14px; background: var(--tw-raised, var(--tw-ground)); box-shadow: inset 0 0 0 1px var(--tw-hair); max-width: none; font-size: 13px; color: var(--tw-2); }
#try .tw-inv-h, #try .tw-inv-r { display: flex; align-items: center; gap: 9px; }
#try .tw-inv-h b { font-size: 14px; font-weight: 600; color: var(--tw-ink); }
#try .tw-inv-h .ic { width: 16px; height: 16px; color: #d2555a; }
#try .tw-inv-r .ic { width: 14px; height: 14px; margin: 0 1px; opacity: .8; }
#try .tw-inv-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
@media (max-width: 760px) { #try .tw-invite { margin-left: 0; } }

/* A smaller dock: 46px, the reply field's own height (52 read as heavy). */
#try .tw-dock { padding: 5px; }
#try .tw-dk { width: 36px; height: 36px; }
#try .tw-reply .tw-field { height: 46px; border-radius: 23px; padding: 0 7px 0 4px; }

/* Maybe wears a question mark, not a check. */
#try .tw-ok .tw-q { display: inline-grid; place-items: center; width: 14px; font-weight: 600; color: inherit; }
