/* coat.css: a temporary coat of paint over site.css, to be replaced.
   Everything it adds is in static/coat/, four routes in main.rs (/coat.css,
   /coat/app.png, /coat/ribbon.png, /favicon.ico) and two <link>s in
   base.html. Delete those to remove it; nothing underneath depends on it. */

:root {
  --ink: #0f1a2e;
  --slate: #475569;
  --slate-2: #64748b;
  --hair: rgb(15 26 46 / .08);
  --red: #e0213a;
  --red-dark: #b3122b;
  --lift: 0 50px 100px -20px rgb(50 50 93 / .25), 0 30px 60px -30px rgb(0 0 0 / .3);
  --lift-sm: 0 13px 27px -5px rgb(50 50 93 / .25), 0 8px 16px -8px rgb(0 0 0 / .3);
  --band-h: 340px;
  color-scheme: light;
}
html { background: #fff; overflow-x: clip; }
body {
  color: var(--slate); background: none;
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(.promo-wrap) { --band-h: 760px; }

/* The band: a slanted, slowly drifting gradient across the top of the page.
   Its color comes in from the top edge and from the right edge and fades to
   white toward the bottom left, where the text is: two fades, unioned (mask-
   composite add). The top one is in px, so the nav strip is deep color on every
   page at every width; the right one is a share of the width. coat.js's ink and
   the .coat-ink rule below use the same two numbers (see there). */
body::before {
  --fade: linear-gradient(to bottom, #000 0px, rgb(0 0 0 / .6) 150px, transparent 360px), linear-gradient(to left, #000 0%, rgb(0 0 0 / .6) 30%, transparent 70%);
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: var(--band-h); pointer-events: none;
  background: linear-gradient(115deg, #ffab52, #ff6a3d 22%, #e0213a 42%, #a80f26 60%, #f0402f 78%, #ff9447);
  background-size: 300% 300%;
  /* --drift-at (set by coat.js from the clock) starts it where Unix time says it is, so it holds its place across pages and reloads. */
  animation: coat-drift 24s ease-in-out var(--drift-at, 0s) infinite alternate;
  clip-path: polygon(0 0, 100% 0, 100% 64%, 0 100%);
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-over;
  mask-image: var(--fade); mask-composite: add;
}
@keyframes coat-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- header: the nav alone, centered, white on the band's top strip ---------- */
/* Under the status bar where the page reaches behind it (a Home Screen app): the band shows there, the nav starts below. */
body > header { padding: calc(22px + env(safe-area-inset-top)) 0 22px; justify-content: center; }
body > header > a:first-child { display: none; }
main:has(.promo-wrap) > h1:first-child::before, main > h1.t-title::before {
  content: ""; flex: none; width: .9em; height: .9em;
  background: url(/coat/ribbon.png) center / contain no-repeat;
}
body > header nav { gap: 2px; justify-content: center; }
body > header nav a:not(.nav-lite) {
  padding: 6px 12px; border-radius: 99px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
  text-shadow: 0 1px 2px rgb(80 0 20 / .3), 0 0 10px rgb(120 0 40 / .35); transition: background-color .15s;
}
body > header nav a:not(.nav-lite):hover { background: rgb(255 255 255 / .18); }
body > header nav .nav-lite { margin-right: 6px; color: #fff; border-color: rgb(255 255 255 / .7); background: rgb(255 255 255 / .12); font-size: 15px; }
body > header nav .nav-lite:hover { color: var(--red); background: #fff; }
body > header nav button { padding: 6px 14px; border: 0; border-radius: 99px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--red); background: #fff; cursor: pointer; }

/* ---------- type ---------- */
main { padding: 40px 0 64px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.025em; line-height: 1.1; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; margin: .1em 0 .45em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: 2.2em 0 .6em; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -.01em; }
p strong { color: var(--ink); font-weight: 600; }
main a:not([class]) { color: var(--red); font-weight: 600; text-decoration: none; }
main a:not([class]):hover { color: var(--ink); }

/* ---------- home hero: copy on the left, the offer as a glass square on the right ---------- */
/* The card is taller than the tagline beside it: the room it needs goes under the description (the 1fr row), not between the two. */
main:has(.promo-wrap) { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto auto 1fr; column-gap: 56px; align-content: start; }
main:has(.promo-wrap) > * { grid-column: 1 / -1; }
main:has(.promo-wrap) > h1:first-child { display: flex; align-items: center; gap: .3em; font-size: clamp(3rem, 8vw, 5.5rem); letter-spacing: -.045em; margin-bottom: .25em; }
main:has(.promo-wrap) > h1:first-child::before { width: .9em; height: .9em; }
main:has(.promo-wrap) > h1 + p { grid-column: 1; max-width: 30ch; margin: 0 0 18px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; letter-spacing: -.015em; }
main:has(.promo-wrap) > h1 + p, main:has(.promo-wrap) > h1 + p strong { color: var(--ink); font-weight: 600; }
main:has(.promo-wrap) > h1 + p + p { grid-column: 1; max-width: 56ch; font-size: 1.1rem; }
/* The other pages' titles, set by coat.js: the logo, "Red Ribbon", then the page ("Red Ribbon Log in"). */
main > h1.t-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .3em; font-size: clamp(2.2rem, 6vw, 4.2rem); letter-spacing: -.04em; }
/* ---------- ink: text over the band, white on its deep color, black off it ----------
   coat.js gives each text element over the band (not the nav, which stays
   white) the class coat-ink and its offset from the band's corner (--bx, --by).
   Its fill is a white/black copy of the band's shape, lined up with it, with
   hard edges: white where either fade is at 72% or more (the top one by 105px,
   the right one in the right 21% of the width), black elsewhere, and black
   below the slant edge (--ink-slant, an angle and stop coat.js works out). A
   letter that straddles an edge is cut by it: crisp, never grey. */
.coat-ink, .coat-ink * {
  color: transparent !important; -webkit-text-fill-color: transparent !important; text-shadow: none !important;
}
.coat-ink {
  background-image: var(--ink-slant, none), linear-gradient(to bottom, #fff 105px, transparent 105px), linear-gradient(to left, #fff 21%, transparent 21%) !important;
  background-size: var(--band-w, 100vw) var(--band-h) !important;
  background-position: calc(0px - var(--bx, 0px)) calc(0px - var(--by, 0px)) !important;
  background-repeat: no-repeat !important; background-color: var(--ink-dark, #111318) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
/* The fill only covers the element's box, and a heading's line-height is tight:
   room below for descenders (the g of "Log in"), taken back from the margin. */
h1.coat-ink, h2.coat-ink { padding-bottom: .16em; margin-bottom: .29em; }
main:has(.promo-wrap) > h1.coat-ink { margin-bottom: .09em; }
/* Links in a paragraph keep their red; the card's text is on its own glass, not the band. */
.coat-ink a, .coat-ink a * { -webkit-text-fill-color: var(--red) !important; }
/* The app, floating under the hero and wider than the column. */
main:has(.promo-wrap) > .promo-wrap + h2::before {
  --w: min(1200px, calc(100vw - 32px));
  content: ""; display: block; width: var(--w); margin: 40px 0 96px calc((100% - var(--w)) / 2);
  aspect-ratio: 1712 / 1112;
  background: url(/coat/app.png) center / contain no-repeat;
  filter: drop-shadow(0 40px 50px rgb(50 50 93 / .28)) drop-shadow(0 20px 24px rgb(0 0 0 / .18));
}
main:has(.promo-wrap) > .promo-wrap + h2 { margin-top: 0; }

/* ---------- features: a ruled grid, no tiles; each a red line icon beside its name and one line under it ---------- */
.features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; margin-top: 8px; }
.features section { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; column-gap: 10px; padding: 18px 0 22px; border-top: 1px solid var(--hair); }
/* The first row sits under a heavier rule, closing the heading off. */
.features section:nth-child(-n + 3) { border-top: 2px solid var(--ink); }
.feature-icon { width: 22px; height: 22px; stroke: var(--red); stroke-width: 2; }
.features h3 { margin: 0; font-size: 1.05rem; }
.features p { grid-column: 1 / -1; margin: 6px 0 0; font-size: 15px; line-height: 1.5; }

/* ---------- home: the closing offer, a full-width slice of the band, cut on its slant top and bottom ---------- */
.home-cta {
  --cut: clamp(36px, 5vw, 70px);
  position: relative; isolation: isolate; width: 100vw; margin: 72px 0 0 calc(50% - 50vw); padding: calc(var(--cut) + 36px) 0;
  color: rgb(255 255 255 / .9); clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.home-cta-band {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, #ffab52, #ff6a3d 22%, #e0213a 42%, #a80f26 60%, #f0402f 78%, #ff9447);
  background-size: 300% 300%; animation: coat-drift 24s ease-in-out var(--drift-at, 0s) infinite alternate;
}
.home-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; width: min(960px, 100% - 32px); margin: 0 auto; }
.home-cta-copy { flex: 1 1 340px; }
.home-cta h2 { margin: 0 0 8px; color: #fff; }
.home-cta p { margin: 0; max-width: 40ch; }
.home-cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.home-cta .home-cta-price { display: flex; align-items: baseline; gap: 8px; color: #fff; font-size: clamp(3rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.home-cta-price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: rgb(255 255 255 / .75); }
.home-cta .home-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.home-cta .dl-button { min-width: 0; color: var(--red-dark); background: #fff; }
.home-cta .dl-button:hover { color: #fff; background: var(--ink); }
.home-cta .dl-button.ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .75); }
.home-cta .dl-button.ghost:hover { color: var(--red-dark); background: #fff; }
/* The slice runs into the footer's place: no rule or gap between them. */
body:has(.home-cta) > footer { border-top: 0; }

/* ---------- the offer ---------- */
.offer { box-shadow: var(--lift); }
.offer-glow { opacity: .3; }
/* Home: frosted glass, square, beside the copy. */
main:has(.promo-wrap) > .promo-wrap { grid-column: 2; grid-row: 2 / span 2; align-self: start; width: 100%; max-width: none; margin: 4px 0 0; container-type: inline-size; }
.promo-wrap .offer-glow { display: none; }
/* Sizes in cqw (the card's own width), so the square looks the same at 300px beside the copy and 150px on a phone. */
.promo {
  /* Square, and taller when its contents need it (a narrow window, a bigger text size): never cut off. */
  aspect-ratio: 1; overflow: visible; box-sizing: border-box; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 0;
  padding: clamp(12px, 8.6cqw, 26px);
  border: 1px solid rgb(255 255 255 / .65); border-radius: clamp(16px, 8cqw, 24px); animation: none;
  background: linear-gradient(145deg, rgb(255 255 255 / .62), rgb(255 255 255 / .34));
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(255 255 255 / .15), 0 30px 60px -24px rgb(90 10 50 / .45), 0 12px 24px -16px rgb(0 0 0 / .25);
  transition: box-shadow .2s ease;
}
.promo:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), 0 40px 70px -24px rgb(90 10 50 / .5), 0 14px 28px -16px rgb(0 0 0 / .3); }
.promo-text { gap: clamp(1px, 1.3cqw, 4px); }
.promo .offer-tag { background: rgb(255 255 255 / .7); font-size: clamp(.56rem, 4cqw, .75rem); padding: .35em 1em; }
.promo-title { margin-top: clamp(4px, 3.3cqw, 10px); color: var(--ink); font-size: clamp(.82rem, 6cqw, 1.15rem); }
.promo-price { margin-top: 2px; gap: clamp(4px, 3cqw, 10px); }
.promo-price .offer-now { font-size: clamp(1.7rem, 23.5cqw, 4.4rem); letter-spacing: -.05em; }
.promo-price .offer-was { color: #6b6177; font-size: clamp(.75rem, 5.6cqw, 1.1rem); }
.promo-note { font-size: clamp(.7rem, 5cqw, .95rem); }
.promo-cta { width: 100%; border-radius: 99px; padding: clamp(7px, 4.3cqw, 13px) 10px; font-size: clamp(.78rem, 5.4cqw, 1rem); white-space: nowrap; }
@container (max-width: 220px) { .promo-note { display: none; } }
@container (max-width: 170px) { .promo .offer-tag { display: none; } .promo-title { margin-top: 0; } }

/* ---------- buttons, forms, tables ---------- */
button:not(.offer-cta):not(.offer-back):not(.nav-toggle), .dl-button {
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 10px 18px; border: 0; border-radius: 99px; cursor: pointer;
  color: #fff; background: var(--red); transition: background-color .15s;
}
button:not(.offer-cta):not(.offer-back):not(.nav-toggle):hover, .dl-button:hover { background: var(--ink); }
.dl-button.off { color: var(--slate-2); background: #f1f4f8; }
body > header nav button:hover { color: #fff; background: var(--ink); }
/* Not in the Lite app: it keeps an invisible text input of its own (eframe's), beside its canvas, that this would make visible. */
main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not(.offer-code):not(.lite-app input), main select, main textarea {
  font: inherit; font-size: 16px; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--ink); background: #fff;
  box-shadow: 0 0 0 1px rgb(15 26 46 / .12), 0 2px 5px -1px rgb(50 50 93 / .12);
  transition: box-shadow .15s;
}
main input:not(.lite-app input):focus-visible, main select:focus-visible, main textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--red), 0 0 0 4px rgb(224 33 58 / .18); }
.stack { gap: 14px; }
.stack label { gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.stack button { justify-self: start; margin-top: 4px; }
table { font-size: 15px; }
th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-2); border-bottom: 1px solid var(--hair); padding: 8px; }
td { border-bottom: 1px solid var(--hair); padding: 10px 8px; }

/* No hover change on the cards themselves: only their buttons answer the pointer. */
.dl-card, .dl-lite { border: 0; box-shadow: var(--lift-sm); }

footer { padding: 24px 0 32px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--slate-2); }

/* Narrow: the heading and tagline on the left, the card beside them, the description under both. */
@media (max-width: 860px) {
  /* The description spans the page here, so the slant ends above it. */
  body:has(.promo-wrap) { --band-h: 380px; }
  main:has(.promo-wrap) { padding-top: 28px; grid-template-rows: none; grid-template-columns: minmax(0, 1fr) clamp(140px, 36vw, 240px); column-gap: clamp(14px, 3.4vw, 24px); }
  main:has(.promo-wrap) > h1:first-child { grid-column: 1; grid-row: 1; font-size: clamp(1.7rem, 7.2vw, 3rem); }
  main:has(.promo-wrap) > h1 + p { grid-column: 1; grid-row: 2; font-size: clamp(.98rem, 3.6vw, 1.35rem); margin: 0; }
  main:has(.promo-wrap) > h1 + p + p { grid-column: 1 / -1; grid-row: 3; max-width: none; margin-top: 22px; font-size: 1rem; }
  main:has(.promo-wrap) > .promo-wrap { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
  /* The window, full-bleed and zoomed so its right side runs off the screen.
     coat.js glides it to its right side (--pan 0 to 1) once it scrolls past the middle. */
  main:has(.promo-wrap) > .promo-wrap + h2::before {
    width: 100vw; margin: 28px 0 64px calc(50% - 50vw); aspect-ratio: 1 / 1;
    background-size: auto 100%; background-position: calc(var(--pan, 0) * 100%) 50%;
  }
}
@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .features section:nth-child(3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .features section:nth-child(2) { border-top: 1px solid var(--hair); }
  .features section { padding: 14px 0 16px; }
}
@media (max-width: 760px) {
  /* Shorter on the other pages too, so their first paragraph (and its red links) is on white. */
  body { --band-h: 260px; }
}
/* ---------- phone: the logo and a menu button in a top bar, the band solid colour down to its slant ---------- */
@media (max-width: 640px) {
  /* The colour Safari tints the status bar with, the band's; the white image over it is what the page shows. */
  html { background: linear-gradient(#fff, #fff) #e8373a; }
  body { --band-h: 300px; }
  body:has(.promo-wrap) { --band-h: 700px; }
  /* No fade toward the white at the bottom left: the colour runs to the slant edge. The ink below is all white over it. */
  body::before { --fade: linear-gradient(#000, #000 72%, rgb(0 0 0 / .82)); }
  .coat-ink { background-image: var(--ink-slant, none), linear-gradient(#fff, #fff) !important; }
  /* A link over the band takes the ink too (red would vanish on it), underlined so it still reads as a link. */
  .coat-ink a, .coat-ink a * { -webkit-text-fill-color: transparent !important; }
  main .coat-ink a { text-decoration: underline 1.5px rgb(255 255 255 / .75); text-underline-offset: 3px; }

  body > header { position: relative; z-index: 10; flex-wrap: nowrap; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 14px; }
  body > header > a:first-child {
    display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-decoration: none;
    text-shadow: 0 1px 2px rgb(80 0 20 / .3);
  }
  body > header > a:first-child::before {
    content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
    background: url(/coat/ribbon.png) center / 60% no-repeat, #fff; box-shadow: 0 4px 10px -4px rgb(80 0 20 / .5);
  }
  body > header .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
    background: rgb(255 255 255 / .16); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35);
  }
  body > header .nav-toggle:hover { background: rgb(255 255 255 / .28); }
  /* Three bars, turning into an X while the menu is open. */
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s ease, background-color .2s; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { transform: translateY(-6px); }
  .nav-toggle span::after { transform: translateY(6px); }
  .open .nav-toggle span { background: transparent; }
  .open .nav-toggle span::before { transform: rotate(45deg); }
  .open .nav-toggle span::after { transform: rotate(-45deg); }

  body > header nav {
    display: none; position: absolute; top: calc(100% - 2px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    border-radius: 18px; background: rgb(255 255 255 / .92); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
    box-shadow: var(--lift);
  }
  body > header.open nav { display: flex; }
  body > header nav a:not(.nav-lite) { padding: 12px 16px; border-radius: 12px; color: var(--ink); font-size: 17px; text-shadow: none; }
  body > header nav a:not(.nav-lite):hover { color: var(--red); background: #f6f7f9; }

  /* Home: the title is in the top bar now (kept for screen readers); the tagline, a line, then the card across the width. */
  main:has(.promo-wrap) { display: block; padding-top: 22px; }
  main:has(.promo-wrap) > h1:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
  main:has(.promo-wrap) > h1 + p { max-width: none; margin: 0 0 12px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.02em; }
  main:has(.promo-wrap) > h1 + p + p { margin: 0 0 26px; font-size: 1.02rem; line-height: 1.55; }
  main:has(.promo-wrap) > .promo-wrap { width: 100%; margin: 0; }
  .promo { aspect-ratio: auto; gap: 20px; }
  /* The other pages: the page's name alone, the logo and "Red Ribbon" being in the top bar. */
  main > h1.t-title::before, main > h1.t-title .t-brand { display: none; }
  .features p { font-size: 14.5px; }
  .home-cta { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .dl-card, .dl-lite { transition: none; }
}

/* ---------- Lite (templates/lite.html) ---------- */
.lite-lede { max-width: 60ch; font-size: 1.1rem; }
.lite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 28px 0 8px; }
button.lite-open { font-size: 1.05rem; padding: 14px 30px; box-shadow: 0 10px 24px -10px rgb(158 11 32 / .7); }
.lite-status { font-size: 15px; font-weight: 600; color: var(--ink); }
.lite-status.error { color: var(--red-dark); }
.lite-recents h2 { margin: 1.6em 0 .5em; font-size: 1.3rem; }
.lite-recents ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; }
#lite-recent-list li button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  background: #fff; color: var(--ink); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; box-shadow: var(--lift-sm); transition: background-color .15s, color .15s;
}
#lite-recent-list li button::before { content: ""; flex: none; width: 26px; height: 32px; border-radius: 3px; background: linear-gradient(135deg, #fff 0 70%, #f1f4f8 70%), #fff; box-shadow: inset 0 0 0 1px rgb(15 26 46 / .14); }
#lite-recent-list li button:hover { background: #fff7f8; color: var(--red); }
#lite-recent-list li button:hover::before { box-shadow: inset 0 0 0 1px rgb(224 33 58 / .45); }
#lite-recent-list li button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.lite-empty { color: var(--slate-2); }

/* ---------- account and admin ---------- */
.account-email { margin: -6px 0 18px; font-size: 1.05rem; color: var(--slate); }
.admin-tabs { padding: 4px; border-radius: 99px; background: #f1f4f8; box-shadow: inset 0 0 0 1px var(--hair); }
main .admin-tabs a { padding: 7px 14px; border-radius: 99px; color: var(--slate); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .15s, color .15s; }
main .admin-tabs a:hover { color: var(--ink); background: rgb(255 255 255 / .7); }
main .admin-tabs a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: var(--lift-sm); }
main .admin-tabs-links a { color: var(--red); }
main .admin-tabs-links a:hover { color: var(--red-dark); }
/* Log out, on the account page: a quiet button, not the page's main action. */
.account-logout { margin: 0 0 8px; }
main .account-logout button:not(.offer-cta):not(.offer-back) { color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px rgb(224 33 58 / .35); }
main .account-logout button:not(.offer-cta):not(.offer-back):hover { color: #fff; background: var(--red); }
main .admin-tabs-links a[aria-current="page"] { color: var(--ink); background: #fff; box-shadow: var(--lift-sm); }

/* ---------- mail ---------- */
.mail-boxes, .mail-folders { padding: 4px; border-radius: 99px; background: #f1f4f8; box-shadow: inset 0 0 0 1px var(--hair); }
.mail-box, .mail-folder { padding: 6px 14px; border-radius: 99px; color: var(--slate); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.mail-box:hover, .mail-folder:hover { color: var(--ink); background: rgb(255 255 255 / .7); }
.mail-box[aria-current], .mail-folder[aria-current] { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgb(15 26 46 / .14); }
.mail-count { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; box-sizing: border-box; border-radius: 99px; font-size: 12px; line-height: 18px; text-align: center; color: #fff; background: var(--red); }
.mail-me { font-size: 15px; font-weight: 600; color: var(--ink); }
.mail-new { padding: 10px 18px; border-radius: 99px; font-size: 15px; font-weight: 600; color: #fff; background: var(--red); text-decoration: none; transition: background-color .15s; }
.mail-new:hover { background: var(--ink); }
.mail-list, .mail-pane { border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--hair), 0 10px 30px -14px rgb(50 50 93 / .3); }
.mail-list { padding: 10px; gap: 10px; }
.mail-pane { padding: 0 24px 24px; }
.mail-search input { font-size: 15px; }
.mail-list li + li { border-top: 1px solid var(--hair); }
.mail-item { padding: 10px 12px; border-radius: 10px; color: var(--slate); font-size: 14px; line-height: 1.45; text-decoration: none; transition: background-color .1s; }
.mail-item:hover { background: #f6f8fb; }
.mail-item.on { background: #fff1f3; }
.mail-who, .mail-subject { color: var(--ink); }
.mail-item time { font-size: 12px; color: var(--slate-2); }
.mail-snippet { font-size: 13px; color: var(--slate-2); }
.mail-item.unseen .mail-who, .mail-item.unseen .mail-subject { font-weight: 700; }
.mail-item.unseen .mail-who::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; }
.mail-empty { padding: 40px 8px; text-align: center; color: var(--slate-2); }
.mail-pane > .mail-tools { padding: 18px 0 14px; border-bottom: 1px solid var(--hair); background: #fff; }
.mail-pane > h2:first-child, .mail-pane > .mail-back:first-child { margin-top: 18px; }
/* As specific as coat's own button rule above, and after it. */
.mail .mail-tools button.mail-tool, .mail .mail-tools a.mail-tool, .mail a.mail-back {
  padding: 7px 14px; border: 0; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  color: var(--ink); background: #f1f4f8; text-decoration: none; transition: background-color .15s, color .15s;
}
.mail .mail-tools button.mail-tool:hover, .mail .mail-tools a.mail-tool:hover, .mail a.mail-back:hover { color: #fff; background: var(--ink); }
.mail .mail-tools button.mail-delete { color: var(--red-dark); background: #fff1f3; }
.mail .mail-tools button.mail-delete:hover { color: #fff; background: var(--red); }
.mail-pane h2 { margin: 18px 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.7rem); overflow-wrap: anywhere; }
.mail-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--hair); }
.mail-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; color: #fff; background: linear-gradient(135deg, #ff6a3d, var(--red) 60%, var(--red-dark)); }
.mail-from { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.mail-to { font-size: 14px; color: var(--slate-2); overflow-wrap: anywhere; }
.mail-head time { font-size: 13px; color: var(--slate-2); white-space: nowrap; }
.mail-files { margin: 0 0 18px; }
.mail-file { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); background: #f6f8fb; box-shadow: inset 0 0 0 1px var(--hair); text-decoration: none; }
.mail-file::before { content: "📎"; }
.mail-file:hover { box-shadow: inset 0 0 0 1px var(--red); }
.mail-file small { font-weight: 400; color: var(--slate-2); }
.mail-body { font-size: 15px; line-height: 1.6; color: var(--ink); }
.mail-body .q { padding-left: 12px; color: var(--slate-2); box-shadow: inset 3px 0 0 #e3e7ee; }
.mail .mail-body a { color: var(--red); font-weight: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mail-error { padding: 10px 14px; border-radius: 10px; color: var(--red-dark); background: #fff1f3; }
.mail-compose label { font-size: 14px; font-weight: 600; color: var(--ink); }
.mail-compose input, .mail-compose select, .mail-compose textarea { font-weight: 400; }
.mail-compose textarea { min-height: 300px; resize: vertical; }

/* ---------- By Dewble: under the big "Red Ribbon", the company that makes it, linking to dewble.com ----------
   Quiet small print in the page's own slate and ink, hung under the name (absolutely, so the headings'
   layout and the ink are as before). Its own fill: the ink's text-clip on the heading would otherwise paint it. */
main > h1 .rr-name, main > h1.t-title .t-brand { position: relative; }
a.by-dewble {
  position: absolute; left: .1em; top: calc(100% - .06em); font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.3;
  white-space: nowrap; text-decoration: none;
}
main > h1 a.by-dewble, .coat-ink a.by-dewble { -webkit-text-fill-color: var(--slate) !important; color: var(--slate) !important; }
main > h1 a.by-dewble span, .coat-ink a.by-dewble span { -webkit-text-fill-color: var(--ink) !important; color: var(--ink) !important; font-weight: 700; }
a.by-dewble span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .2s ease; }
a.by-dewble:hover span { background-size: 100% 1.5px; }
main > h1 a.by-dewble:hover span, .coat-ink a.by-dewble:hover span { -webkit-text-fill-color: var(--red) !important; color: var(--red) !important; }
/* Room under the headings for it. */
main:has(.promo-wrap) > h1:first-child { margin-bottom: .4em; }
main > h1.t-title { margin-bottom: .6em; }
.by-dewble-bar { display: none !important; }
footer .footer-dewble { color: inherit; font-weight: 600; text-decoration: none; }
footer .footer-dewble:hover { color: var(--red); }
@media (max-width: 640px) {
  /* The name is in the top bar here: the link hangs under it there, white like the bar. */
  .by-dewble-bar { display: block !important; left: 44px; top: calc(100% - 16px); font-size: 12px; color: rgb(255 255 255 / .85); text-shadow: 0 1px 2px rgb(80 0 20 / .3); }
  .by-dewble-bar span { color: #fff; font-weight: 700; }
}
