/* THE GOD TERMINAL — the costume's office suite (js/costume-office.js): Outbox Express, WordSmith 2002 and
 * the Text Editor. Off-palette on purpose, like the costume: Luna-beige chrome, white paper, period details.
 * Shared pieces are .cso-*, Mail .oxm-*, WordSmith .wsd-*, Text Editor .ted-*. Text stays ≥ 13 px. */

/* ───────── shared: the app root ───────── */
.cso {
  --cso-spring: cubic-bezier(.2, 1.6, .4, 1);
  --cso-face: #ece9d8;
  --cso-line: #7f9db9;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--cso-face);
  color: #000;
  font-size: 0.9375rem;
  outline: none;
}
.cso .cso-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cso-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cso input, .cso textarea { user-select: text; -webkit-user-select: text; }

/* ───────── menubar + dropdowns ───────── */
.cso-menubar {
  flex: none;
  display: flex;
  gap: 0.1rem;
  padding: 0.1rem 0.25rem;
  border-bottom: 1px solid #d8d4c4;
  background: linear-gradient(#fbfaf6, #ece9d8);
}
.cso-menu {
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 2px;
  background: none;
  font-size: 0.9375rem;
  transition: transform 120ms var(--cso-spring);
}
.cso-menu:hover, .cso-menu.is-open { background: var(--cs-select); color: #fff; }
.cso-menu.is-pressed { transform: scale(1.1); }
.cso-dd {
  position: absolute;
  z-index: 48;
  min-width: 14rem;
  max-height: calc(100% - 3rem);
  overflow: auto;
  padding: 2px;
  border: 1px solid #aca899;
  background: #fff;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.35);
}
.cso-dd-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.2rem 0.9rem 0.2rem 0.45rem;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  text-align: left;
  white-space: nowrap;
  transform-origin: 15% 50%;
  transition: transform 120ms var(--cso-spring);
}
.cso-dd-item:hover:not(:disabled) { background: var(--cs-select); color: #fff; }
.cso-dd-item:disabled { color: #a0a0a0; }
.cso-dd-item:disabled .cso-dd-icon { filter: grayscale(1) opacity(0.5); }
.cso-dd-item.is-pressed { transform: scale(1.05); }
.cso-dd-item.is-checked .cso-dd-icon:empty::before { content: '✓'; display: block; font-weight: 700; text-align: center; }
.cso-dd-icon { flex: none; width: 1.3rem; height: 1.3rem; line-height: 1.3rem; }
.cso-dd-label { flex: 1; }
.cso-dd-key { margin-left: 1.5rem; color: #777; font-size: 0.875rem; }
.cso-dd-item:hover .cso-dd-key { color: #dce8ff; }
.cso-dd-sep { margin: 2px; border: 0; border-top: 1px solid #ccc8b8; }

/* ───────── toolbars ───────── */
.cso-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid #c9c5b4;
  background: linear-gradient(180deg, #fdfcf9 0%, #f3f1e8 55%, #e2dfd0 100%);
  box-shadow: inset 0 1px 0 #fff;
}
.cso-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: none;
  min-width: 4.2rem;
  min-height: 3.6rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  font-size: 0.875rem;
  transition: transform 120ms var(--cso-spring), background-color 120ms, border-color 120ms;
}
.cso-tool-icon { flex: none; width: 1.95rem; height: 1.95rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.cso-tool-label { white-space: nowrap; }
.cso-tool:hover:not(:disabled) { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.cso-tool.is-pressed { transform: scale(1.12); background: linear-gradient(#e6e3d6, #f8f7f2); }
.cso-tool:disabled { color: #9b9b9b; }
.cso-tool:disabled .cso-tool-icon { filter: grayscale(1) opacity(0.4); }
.cso-tool.is-on { border-color: #e1a83a; background: linear-gradient(#fff6d8, #ffe39a); }
.cso-sep { flex: none; align-self: stretch; width: 1px; margin: 0.35rem 0.25rem; background: #c9c5b4; box-shadow: 1px 0 0 #fff; }

/* ───────── status bar ───────── */
.cso-status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2rem;
  padding: 0 0.55rem;
  border-top: 1px solid #fff;
  box-shadow: 0 -1px 0 #c9c5b4;
  background: var(--cso-face);
  color: #222;
  font-size: 0.875rem;
}
.cso-status-main { display: flex; align-items: center; gap: 0.35rem; flex: 1; min-width: 0; }
.cso-status-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cso-status-zone { display: flex; align-items: center; gap: 0.4rem; flex: none; padding-left: 0.6rem; border-left: 1px solid #c9c5b4; box-shadow: inset 1px 0 0 #fff; white-space: nowrap; }
.cso-status-icon { width: 1.15rem; height: 1.15rem; }

/* ───────── effects (the terminal's fx canvas is under the costume, so they live here) ───────── */
.cso-fx { position: absolute; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.cso-confetti { position: absolute; inset: 0; width: 100%; height: 100%; }
.cso-spark {
  position: absolute;
  line-height: 1;
  text-shadow: 0 0 10px currentColor, 0 0 3px #fff, 0 0 2px #fff;
  will-change: transform, opacity;
}
.cso-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.9); will-change: transform, opacity; }
.cso-ring { position: absolute; border: 3px solid currentColor; border-radius: 50%; box-shadow: 0 0 14px currentColor, inset 0 0 14px currentColor; }
.cso-float {
  position: absolute;
  color: #1f4fb0;
  font: 900 1.85rem/1 'Comic Sans MS', 'Comic Neue', 'Trebuchet MS', sans-serif;
  white-space: nowrap;
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
}
.cso-float.is-gold { color: #ffbf00; -webkit-text-stroke-color: #6a3a00; }
.cso-float.is-green { color: #1f9a2a; }
.cso-float.is-red { color: #e02020; }
.cso-flash { position: absolute; pointer-events: none; border-radius: 4px; }
.cso-flyer {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 10px #ffd23a, 0 0 4px #fff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}
.cso-trail {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffe68a 40%, rgba(255, 210, 58, 0) 72%);
}
.cso-caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin: 0 0 -0.18em 1px;
  background: currentColor;
  animation: cso-blink 1.06s steps(1, end) infinite;
}
@keyframes cso-blink { 50% { opacity: 0; } }

/* ───────── message boxes ───────── */
.cso-veil {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  background: rgba(20, 32, 64, 0.14);
}
.cso-dlg {
  display: flex;
  flex-direction: column;
  width: min(27rem, calc(100% - 1rem));
  max-height: calc(100% - 1rem);
  border: 3px solid var(--cs-frame);
  border-top: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--cso-face);
  box-shadow: 4px 7px 20px rgba(0, 0, 0, 0.45);
}
.cso-dlg-bar { flex: none; }
.cso-dlg-main { display: flex; align-items: flex-start; gap: 0.9rem; min-height: 0; padding: 1rem 1rem 0.35rem; overflow: auto; }
.cso-dlg-icon { flex: none; width: 2.5rem; height: 2.5rem; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.25)); }
.cso-dlg-body { flex: 1; min-width: 0; }
.cso-dlg-text { margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.45; }
.cso-dlg-btns { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0.65rem 0.8rem 0.9rem; }
.cso-dlg-btn { font-size: 0.9375rem; }
.cso-dlg-btn.is-default { box-shadow: inset 0 0 0 1px #0f4bb8, inset 0 0 0 2px #98b8ea; }
.cso-dlg-btn.is-ready { animation: cso-ready 1.1s ease-in-out infinite; }
@keyframes cso-ready { 50% { box-shadow: inset 0 0 0 1px #0f4bb8, inset 0 0 0 2px #98b8ea, 0 0 0 4px rgba(49, 106, 197, 0.35); } }
.cso-about { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9375rem; }
.cso-about b { font-size: 1.05rem; }

/* ───────── toast ───────── */
.cso-toast {
  position: absolute;
  right: 0.75rem;
  bottom: 2.7rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(23rem, calc(100% - 1.5rem));
  padding: 0.6rem 0.85rem 0.6rem 0.65rem;
  border: 1px solid #000;
  border-radius: 0.55rem;
  background: #ffffe1;
  box-shadow: 2px 3px 9px rgba(0, 0, 0, 0.35);
  font-size: 0.9375rem;
  line-height: 1.35;
  text-align: left;
}
.cso-toast.is-click { transition: transform 120ms var(--cso-spring); }
.cso-toast.is-click:hover { background: #fff7c2; }
.cso-toast.is-pressed { transform: scale(1.05); }
.cso-toast-icon { flex: none; width: 1.6rem; height: 1.6rem; }

/* ───────── the phone's tap-to-write button ───────── */
.cso-tap { display: none; }
@media (pointer: coarse) {
  .cso-tap {
    position: absolute;
    left: 50%;
    bottom: 2.9rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 3.6rem;
    padding: 0 1.6rem 0 1.15rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    background: linear-gradient(180deg, #6aa8ff 0%, #3a7be6 45%, #1f56c8 100%);
    box-shadow: 0 6px 18px rgba(16, 48, 120, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
    translate: -50% 0;
    transition: scale 120ms var(--cso-spring);
  }
  .cso-tap.is-pressed { scale: 1.1; }
  .cso-tap.is-send { background: linear-gradient(180deg, #8de06a 0%, #3cad37 45%, #1d7a1d 100%); }
}
.cso-tap-icon { flex: none; width: 1.7rem; height: 1.7rem; animation: cso-write 1.3s ease-in-out infinite; }
@keyframes cso-write { 0%, 100% { transform: rotate(0deg) translateX(0); } 30% { transform: rotate(-12deg) translateX(-2px); } 60% { transform: rotate(8deg) translateX(2px); } }

/* ───────── meters: white backfill jumps, the colour catches up after a beat ───────── */
.cso-meter {
  position: relative;
  display: block;
  height: 0.9rem;
  overflow: hidden;
  border: 1px solid #8e9bb3;
  border-radius: 3px;
  background: #d5dbe6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.cso-meter-back, .cso-meter-fill { position: absolute; inset: 1px; transform: scaleX(0); transform-origin: left; }
.cso-meter-back { background: #fff; box-shadow: 0 0 6px #fff; transition: transform 80ms ease-out; }
.cso-meter-fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 55%),
    repeating-linear-gradient(90deg, #3cbf41 0 8px, #2fa035 8px 10px);
  transition: transform 420ms cubic-bezier(.2, .8, .3, 1) 230ms;
}

/* ───────── print-outs ───────── */
.cso-print { position: absolute; z-index: 50; width: min(17rem, 72%); overflow: hidden; pointer-events: none; }
.cso-print-paper {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 1.7rem 1rem;
  background:
    radial-gradient(circle at 0.55rem 0.6rem, #b9b9b9 0.18rem, transparent 0.2rem) 0 0 / 1.1rem 1.2rem repeat-y,
    radial-gradient(circle at 0.55rem 0.6rem, #b9b9b9 0.18rem, transparent 0.2rem) 100% 0 / 1.1rem 1.2rem repeat-y,
    repeating-linear-gradient(#fff 0 1.2rem, #eef7ee 1.2rem 2.4rem);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  color: #222;
  font: 0.875rem/1.4 'Courier New', monospace;
}
.cso-print-title { font-size: 0.9375rem; }
.cso-print-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── period popups (Darren's tutorial) ───────── */
.cso-mini {
  position: absolute;
  z-index: 44;
  width: min(16rem, 80%);
  padding: 2px;
  border: 2px solid;
  border-color: #dfdfdf #404040 #404040 #dfdfdf;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #fff, 4px 6px 14px rgba(0, 0, 0, 0.4);
  font-family: Tahoma, Arial, sans-serif;
}
.cso-mini-bar { display: flex; align-items: center; gap: 0.3rem; min-height: 1.9rem; padding: 0 2px 0 0.45rem; background: linear-gradient(90deg, #000080, #1084d0); color: #fff; font-size: 0.875rem; font-weight: 700; }
.cso-mini-bar span { flex: 1; }
.cso-mini-x { position: relative; width: 1.6rem; height: 1.4rem; border: 2px solid; border-color: #fff #404040 #404040 #fff; background: #c0c0c0; transition: transform 120ms var(--cso-spring); }
.cso-mini-x::before, .cso-mini-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 60%; height: 2px; background: #000; transform: translate(-50%, -50%) rotate(45deg); }
.cso-mini-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cso-mini-x.is-pressed { transform: scale(1.2); }
.cso-mini p { margin: 0; padding: 0.8rem 0.8rem 1rem; font-size: 0.9375rem; }

/* ═════════════════════════ Mail: Outbox Express ═════════════════════════ */
.oxm { --oxm-cols: 1.5rem 1.5rem 1.5rem 1.9rem minmax(7rem, 1.1fr) minmax(9rem, 2fr) 11.6rem; }
.oxm-toolbar { gap: 0.05rem; }
.oxm-logo {
  flex: none;
  width: 3rem;
  height: 2.75rem;
  margin-left: auto;
  padding: 0.35rem 0.45rem;
  border: 1px solid #22386a;
  border-radius: 3px;
  background: radial-gradient(circle at 50% 130%, #2c63c8 0%, #102a63 60%, #060f2a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.oxm.is-checking .oxm-logo .cso-svg { animation: oxm-logo 0.5s ease-in-out infinite alternate; }
@keyframes oxm-logo { from { transform: translateY(2px) rotate(-6deg); } to { transform: translateY(-3px) rotate(6deg); } }
.oxm-fbtn { display: none; }

.oxm-main { position: relative; display: flex; flex: 1; min-height: 0; gap: 3px; padding: 3px; }
.oxm-folders { flex: none; display: flex; flex-direction: column; width: 15.5rem; border: 1px solid var(--cso-line); background: #fff; }
.oxm-pane-head { flex: none; padding: 0.3rem 0.6rem; border-bottom: 1px solid #c9c5b4; background: linear-gradient(#fdfcf9, #e6e3d6); font-size: 0.9375rem; font-weight: 700; }
.oxm-folders-list { flex: 1; min-height: 0; overflow: auto; padding: 0.3rem 0; }
.oxm-folder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.2rem;
  padding: 0.15rem 0.6rem 0.15rem 1.8rem;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  text-align: left;
  transform-origin: 20% 50%;
  transition: transform 120ms var(--cso-spring), background-color 120ms;
}
.oxm-folder::before { content: ''; position: absolute; left: 0.95rem; top: 0; bottom: 50%; width: 0.6rem; border-left: 1px dotted #9aa4b6; border-bottom: 1px dotted #9aa4b6; }
.oxm-folder.is-root { padding-left: 0.5rem; }
.oxm-folder.is-root::before { content: none; }
.oxm-folder-icon { flex: none; width: 1.45rem; height: 1.45rem; }
.oxm-folder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxm-folder-count { flex: none; color: #0033cc; font-weight: 700; }
.oxm-folder.has-unread .oxm-folder-name { font-weight: 700; }
.oxm-folder:hover:not(.is-on):not(.is-root) { background: #e8f0fc; }
.oxm-folder.is-on { background: var(--cs-select); color: #fff; }
.oxm-folder.is-on .oxm-folder-count { color: #fff; }
.oxm-folder.is-pressed { transform: scale(1.05); }

.oxm-right { position: relative; display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.oxm-listwrap { flex: 0 0 41%; display: flex; flex-direction: column; min-height: 7rem; border: 1px solid var(--cso-line); background: #fff; }
.oxm-list-head { flex: none; display: grid; grid-template-columns: var(--oxm-cols); border-bottom: 1px solid #c9c5b4; background: linear-gradient(#fdfcf9, #ebe8dc); font-size: 0.875rem; }
.oxm-list-head > span { min-width: 0; padding: 0.3rem 0.45rem; overflow: hidden; border-right: 1px solid #d6d2c2; box-shadow: 1px 0 0 #fff; white-space: nowrap; }
.oxm-list-head .oxm-c-prio, .oxm-list-head .oxm-c-clip, .oxm-list-head .oxm-c-flag { opacity: 0.7; }
.oxm-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.oxm-row {
  display: grid;
  grid-template-columns: var(--oxm-cols);
  align-items: center;
  width: 100%;
  min-height: 2.15rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  background: none;
  font-size: 0.9375rem;
  text-align: left;
  transition: transform 120ms var(--cso-spring);
}
.oxm-row > span { min-width: 0; padding: 0 0.45rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxm-c-prio, .oxm-c-clip, .oxm-c-flag, .oxm-c-env { display: grid; place-items: center; height: 1.15rem; }
.oxm-row > .oxm-c-prio, .oxm-row > .oxm-c-clip, .oxm-row > .oxm-c-flag, .oxm-row > .oxm-c-env,
.oxm-list-head > .oxm-c-prio, .oxm-list-head > .oxm-c-clip, .oxm-list-head > .oxm-c-flag, .oxm-list-head > .oxm-c-env { padding: 0 0.15rem; }
.oxm-c-env { height: 1.35rem; }
.oxm-c-date { font-variant-numeric: tabular-nums; }
.oxm-row.is-unread { font-weight: 700; }
.oxm-row:hover:not(.is-sel) { background: #eef4fd; }
.oxm-row.is-sel { background: var(--cs-select); color: #fff; }
.oxm-row.is-pressed { transform: scale(1.012); }
.oxm-empty { padding: 1.2rem; color: #777; text-align: center; }

.oxm-read { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; border: 1px solid var(--cso-line); background: #fff; }
.oxm-read-empty { margin: auto; color: #888; }
.oxm-rhead { flex: none; padding: 0.65rem 1rem 0.6rem; border-bottom: 1px solid #c5d3ea; background: linear-gradient(#f5f8fe, #dfe8f7); }
.oxm-rhead-top { display: flex; align-items: center; gap: 0.6rem; }
.oxm-rsubj { margin: 0; color: #0a246a; font-size: 1.2rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.oxm-back { display: none; }
.oxm-rmeta { display: flex; align-items: center; gap: 0.7rem; margin-top: 0.5rem; }
.oxm-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(160deg, hsl(var(--hue, 214) 85% 72%), hsl(var(--hue, 214) 68% 44%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.oxm-rwho { min-width: 0; font-size: 0.9375rem; line-height: 1.35; }
.oxm-addr { color: #555; overflow-wrap: anywhere; }
.oxm-rdate { color: #555; font-size: 0.875rem; }
.oxm-attach { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.55rem; }
.oxm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.15rem 0.75rem 0.15rem 0.45rem;
  border: 1px solid #9fb3d6;
  border-radius: 1.1rem;
  background: #fff;
  font-size: 0.9375rem;
  transition: transform 120ms var(--cso-spring), background-color 120ms, border-color 120ms;
}
.oxm-chip:hover { border-color: var(--cs-select); background: #eef4fd; }
.oxm-chip.is-pressed { transform: scale(1.08); }
.oxm-chip.is-small { min-height: 1.9rem; font-size: 0.875rem; }
.oxm-chip-icon { flex: none; width: 1.35rem; height: 1.35rem; }
.oxm-chip-size { color: #777; font-size: 0.875rem; }
.oxm-rbody { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem 1.25rem 2rem; }
.oxm-text { max-width: 46rem; color: #111; font-size: 1rem; line-height: 1.55; }
.oxm-para { white-space: pre-wrap; overflow-wrap: anywhere; }
.oxm-quote { margin: 0.5rem 0 0.2rem; padding: 0.1rem 0 0.15rem 0.85rem; border-left: 3px solid #4f81d6; color: #34456a; }
.oxm-quote .oxm-quote { border-left-color: #8e6bd8; }
.oxm-quote .oxm-quote .oxm-quote { border-left-color: #3aa635; }
.oxm-quote .oxm-quote .oxm-quote .oxm-quote { border-left-color: #e8a33c; }
.oxm-quote .oxm-quote .oxm-quote .oxm-quote .oxm-quote { border-left-color: #e2452e; }
.oxm-qfrom { display: block; color: #1f4fb0; font-size: 0.875rem; }
.oxm-text.is-mom { color: #1a1a8a; font: 700 1.45rem/1.4 Arial, Helvetica, sans-serif; }
.oxm-text.is-shout { font: 700 1rem/1.55 'Courier New', monospace; }
.cso .oxm-link { padding: 0; border: 0; background: none; color: #0000ee; font: inherit; text-decoration: underline; transition: transform 120ms var(--cso-spring); }
.oxm-link:hover { color: #e00000; }
.oxm-link.is-pressed { transform: scale(1.1); }
.oxm-transbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e6c55a;
  border-radius: 5px;
  background: linear-gradient(#fffbe6, #fff2bf);
  font-size: 0.9375rem;
}
.oxm-transbar-icon { flex: none; width: 1.9rem; height: 1.9rem; }
.oxm-translate, .oxm-back {
  min-height: 2.1rem;
  padding: 0.15rem 0.85rem;
  border: 1px solid #003c74;
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff, #f3f2ec 60%, #d6d0c0);
  font-size: 0.9375rem;
  transition: transform 120ms var(--cso-spring), box-shadow 120ms;
}
.oxm-translate { margin-left: auto; }
.oxm-translate:hover, .oxm-back:hover { box-shadow: inset 0 0 0 2px #f8b636; }
.oxm-translate.is-pressed, .oxm-back.is-pressed { transform: scale(1.08); }

/* Employee of the Month: a gilt certificate. */
.oxm-cert {
  max-width: 34rem;
  margin: 0.4rem auto 1rem;
  padding: 0.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, #b8860b, #fff1a8 25%, #c8901a 50%, #fff1a8 75%, #b8860b);
  box-shadow: 0 6px 16px rgba(120, 80, 0, 0.35);
}
.oxm-cert-inner {
  position: relative;
  padding: 1.9rem 2.6rem 1.4rem;
  border: 2px solid #b8860b;
  background:
    repeating-radial-gradient(circle at 50% 120%, rgba(184, 134, 11, 0.06) 0 2px, transparent 2px 9px),
    #fffdf3;
  color: #3a2a10;
  font-family: Georgia, 'Times New Roman', serif;
  text-align: center;
}
.oxm-rosette { position: absolute; right: -1.1rem; top: -1.6rem; width: 4.6rem; height: 4.6rem; filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, 0.3)); }
.oxm-cert-kicker { margin: 0; color: #8a6408; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase; }
.oxm-cert-title { margin: 0.35rem 0 0.6rem; color: #7a1a12; font: 700 2.2rem/1.1 Georgia, serif; }
.oxm-cert-name { display: inline-block; margin: 0; padding: 0 1.2rem 0.15rem; border-bottom: 1px solid #b8860b; color: #1a2a6a; font: 2rem/1.25 'Brush Script MT', 'Segoe Script', 'Lucida Handwriting', cursive; }
.oxm-cert-why { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; font-style: italic; }
.oxm-cert-prize { margin: 0; color: #6a5a3a; font-size: 0.9375rem; }

/* The Pairing Post. */
.oxm-news { max-width: 36rem; margin: 0 auto; border: 1px solid #b8c4d6; background: #fbfaf5; color: #1e2a36; font-family: Georgia, 'Times New Roman', serif; }
.oxm-news-head { display: flex; align-items: center; justify-content: center; gap: 0.9rem; padding: 0.9rem; background: linear-gradient(#1f3a6a, #142a52); color: #fff; text-align: center; }
.oxm-news-head .oxm-news-sock { flex: none; width: 2.6rem; height: 3.4rem; rotate: -16deg; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.4)); }
.oxm-news-head .oxm-news-sock.is-flip { rotate: 16deg; scale: -1 1; }
.oxm-news-title { margin: 0; font: 700 2rem/1.05 Georgia, serif; letter-spacing: 0.02em; }
.oxm-news-sub { margin: 0.25rem 0 0; color: #c8d6f0; font-size: 0.9375rem; font-style: italic; }
.oxm-news-sec { padding: 0.75rem 1.1rem 0.85rem; border-top: 1px solid #e3dfd0; }
.oxm-news-sec h3 { margin: 0 0 0.3rem; color: #2a6a5a; font: 700 1.15rem Georgia, serif; }
.oxm-news-sec p { margin: 0; font-size: 1rem; line-height: 1.5; }
.oxm-news-sec.is-feature { display: flex; align-items: center; gap: 0.9rem; background: #fff7e0; }
.oxm-news-pic { flex: none; width: 3.6rem; height: 4.8rem; rotate: -8deg; filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.25)); }
.oxm-news-rsvp { margin-top: 0.55rem; }
.oxm-news-foot { padding: 0.7rem 1.1rem; border-top: 1px solid #e3dfd0; color: #6a6a6a; font: 0.875rem Arial, sans-serif; text-align: center; }

/* Meeting invites and reminders. */
.oxm-invite, .oxm-remind {
  position: relative;
  max-width: 34rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #b8c4d6;
  border-radius: 6px;
  background: linear-gradient(#fbfcff, #eef3fb);
  box-shadow: 0 2px 6px rgba(30, 60, 120, 0.12);
}
.oxm-remind { background: linear-gradient(#fffdf0, #fff4c8); border-color: #e6c55a; }
.oxm-invite-head, .oxm-remind-head { display: flex; align-items: center; gap: 0.75rem; }
.oxm-invite-cal { flex: none; width: 3rem; height: 3rem; }
.oxm-invite-title, .oxm-remind-title { display: block; color: #0a246a; font-size: 1.15rem; line-height: 1.25; }
.oxm-invite-org, .oxm-remind-head span { color: #555; font-size: 0.9375rem; }
.oxm-remind-bell { flex: none; width: 3rem; height: 3rem; transform-origin: 50% 10%; animation: oxm-ring 2.6s ease-in-out infinite; }
@keyframes oxm-ring { 0%, 70%, 100% { rotate: 0deg; } 74% { rotate: -16deg; } 78% { rotate: 14deg; } 82% { rotate: -10deg; } 86% { rotate: 6deg; } 90% { rotate: 0deg; } }
.oxm-invite-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 0.9rem; margin: 0.8rem 0; font-size: 0.9375rem; }
.oxm-invite-dl dt { color: #556; font-weight: 700; }
.oxm-invite-dl dd { margin: 0; }
.oxm-invite-btns { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.oxm-invite-agenda { margin-top: 0.9rem; font-size: 0.9375rem; }
.oxm-invite-agenda ol { margin: 0.3rem 0 0; padding-left: 1.4rem; line-height: 1.55; }
.oxm-remind-note { min-height: 1.4em; margin: 0.7rem 0 0; color: #6a4a00; font-size: 0.9375rem; font-style: italic; }
.oxm-stamp {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  padding: 0.2rem 0.65rem;
  border: 3px solid #2e9a2a;
  border-radius: 6px;
  color: #2e9a2a;
  font: 900 1.25rem/1.1 Impact, 'Arial Black', sans-serif;
  letter-spacing: 0.06em;
  transform: rotate(-12deg);
  opacity: 0.88;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.oxm-stamp.is-maybe { border-color: #d9822b; color: #d9822b; max-width: 11rem; text-align: center; }

/* SnackMart order tracking. */
.oxm-order { max-width: 34rem; overflow: hidden; border: 1px solid #e0c9b0; border-radius: 6px; background: #fff; font-family: Arial, Helvetica, sans-serif; }
.oxm-order-head { display: flex; align-items: center; gap: 0.8rem; padding: 0.65rem 0.9rem; background: linear-gradient(#e8433a, #c32a20); color: #fff; font-size: 1rem; }
.oxm-order-logo { padding: 0.1rem 0.5rem; border-radius: 4px; background: #ffd23a; color: #c32a20; font: italic 900 1.25rem/1.2 'Arial Black', Arial, sans-serif; }
.oxm-order-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem; }
.oxm-order-item > div { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.9375rem; }
.oxm-order-pic { flex: none; width: 5rem; height: 5rem; padding: 0.3rem; border: 1px solid #eee; border-radius: 6px; background: #f7fbff; }
.oxm-order-price { color: #c32a20; font-weight: 700; }
.oxm-track { padding: 0 0.9rem; }
.oxm-track-line { position: relative; height: 6px; margin: 2rem 10% 0.6rem; border-radius: 3px; background: #dde3ec; }
.oxm-track-fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, #3aa635, #7ad85a); transform: scaleX(0); transform-origin: left; }
.oxm-track-truck { position: absolute; left: 0; top: -1.85rem; width: 2.2rem; height: 2.2rem; translate: -50% 0; animation: oxm-bump 0.42s ease-in-out infinite alternate; }
@keyframes oxm-bump { to { transform: translateY(-3px) rotate(-3deg); } }
.oxm-track-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; margin: 0; padding: 0; list-style: none; color: #888; font-size: 0.875rem; text-align: center; }
.oxm-track-steps li.is-done { color: #2e7d32; font-weight: 700; }
.oxm-order-eta { margin: 0.8rem 0.9rem 0.6rem; font-size: 0.9375rem; }
.oxm-order > .cs-btn { margin: 0 0.9rem 0.9rem; }

/* Aunt Carol's chain letter, in all its glory. */
.oxm-chain { max-width: 36rem; margin: 0 auto; color: #111; font: 1.05rem/1.5 'Comic Sans MS', 'Comic Neue', cursive; text-align: center; }
.oxm-chain p { margin: 0 0 0.75rem; }
.oxm-chain-orig { color: #777; font: 0.875rem/1.4 'Courier New', monospace; text-align: left; white-space: pre-wrap; }
.oxm-chain-big { color: #e00000; font-size: 1.9rem; font-weight: 900; animation: oxm-loud 0.9s steps(1, end) infinite; }
@keyframes oxm-loud { 50% { color: #0018d0; } }
.oxm-chain .is-blue { color: #0033cc; }
.oxm-chain .is-green { color: #008a00; }
.oxm-chain .is-purple { color: #8a00a8; }
.oxm-chain .is-orange { color: #d96a00; }
.oxm-chain .is-bold { font-size: 1.2rem; font-weight: 900; text-decoration: underline; }
.oxm-chain .is-pink { color: #e0308a; font-size: 1.2rem; }
.oxm-chain-small { color: #888; font-size: 0.875rem; }
.cso .oxm-chain-btn {
  min-height: 3rem;
  margin: 0.3rem 0 1rem;
  padding: 0.3rem 1.4rem;
  border: 3px outset #ffd23a;
  border-radius: 6px;
  background: linear-gradient(#fff36a, #ffbf1a);
  color: #c80000;
  font: 900 1.1rem 'Comic Sans MS', cursive;
  transition: transform 120ms var(--cso-spring);
}
.cso .oxm-chain-btn.is-pressed { transform: scale(1.1); border-style: inset; }
.cso .oxm-chain-btn:disabled { border-color: #8ad07a; background: linear-gradient(#d8ffc8, #9be88a); color: #1d6b1d; }

.oxm-stuck { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; max-width: 30rem; margin-top: 1.2rem; padding: 0.7rem; border: 1px solid #c9c5b4; border-radius: 4px; background: var(--cso-face); font-size: 0.9375rem; }
.oxm-stuck-meter { flex: 1; min-width: 8rem; }
.oxm-stuck-note { flex-basis: 100%; color: #666; font-style: italic; }

.oxm-lightbox { position: absolute; inset: 0; z-index: 42; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, 0.55); }
.oxm-lightbox-pic { margin: 0; padding: 0.7rem 0.7rem 0.9rem; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); rotate: -2deg; }
.oxm-lightbox-img { display: block; width: min(26rem, 76vw); aspect-ratio: 4 / 3; }
.oxm-lightbox-pic figcaption { margin-top: 0.5rem; color: #333; font: 1.05rem 'Comic Sans MS', cursive; text-align: center; }

/* Address book and Find. */
.cso-dlg.is-book .cso-dlg-main { padding: 0.6rem; }
.oxm-book { display: flex; flex-direction: column; max-height: min(24rem, 55vh); overflow: auto; border: 1px solid var(--cso-line); background: #fff; }
.oxm-contact {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border: 0;
  border-bottom: 1px solid #eee;
  background: none;
  text-align: left;
  transition: transform 120ms var(--cso-spring), background-color 120ms;
}
.oxm-contact:hover { background: #eef4fd; }
.oxm-contact.is-pressed { transform: scale(1.02); }
.oxm-contact-text { display: flex; flex-direction: column; min-width: 0; font-size: 0.9375rem; }
.oxm-contact-text span { color: #666; font-size: 0.875rem; }
.oxm-contact-addr { color: #556; font-size: 0.875rem; }
.oxm-find { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9375rem; }
.oxm-find-field { padding: 0.35rem 0.5rem; border: 1px solid var(--cso-line); background: #fff; font-style: italic; }

/* Send/Recv progress in the status bar. */
.oxm-check { display: none; width: 7rem; height: 1rem; padding: 2px; border: 1px solid #a9a594; background: #fff; }
.oxm-check.is-on { display: block; }
.oxm-check-fill { display: block; height: 100%; background: repeating-linear-gradient(90deg, #35b83a 0 7px, transparent 7px 9px); transform: scaleX(0); transform-origin: left; }

/* ───────── compose ───────── */
.oxm-cmp-veil { position: absolute; inset: 0; z-index: 35; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 0.9rem; background: rgba(20, 32, 64, 0.2); }
.oxm-cmp {
  display: flex;
  flex-direction: column;
  width: min(46rem, 100%);
  min-width: 0;
  max-width: 100%;
  height: min(38rem, 100%);
  border: 3px solid var(--cs-frame);
  border-top: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--cso-face);
  box-shadow: 6px 12px 32px rgba(0, 0, 0, 0.45);
}
.oxm-cmp-bar { flex: none; }
.oxm-cmp-tools .cso-tool { flex-direction: row; gap: 0.4rem; min-height: 2.75rem; padding: 0.2rem 0.65rem 0.2rem 0.4rem; }
.oxm-cmp-tools .cso-tool-icon { width: 1.75rem; height: 1.75rem; }
.oxm-cmp-tools .cso-tool.is-send { font-weight: 700; }
.cso-tool.is-send.is-ready { border-color: #3aa635; background: linear-gradient(#f0ffe8, #c2f2b0); animation: oxm-ready 1.1s ease-in-out infinite; }
@keyframes oxm-ready { 50% { box-shadow: 0 0 0 4px rgba(58, 166, 53, 0.35), 0 0 14px rgba(58, 166, 53, 0.5); } }
.oxm-fields { flex: none; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid #c9c5b4; }
.oxm-field { display: flex; align-items: center; gap: 0.5rem; }
.oxm-field-label { flex: none; width: 4.8rem; color: #444; font-size: 0.9375rem; text-align: right; }
.oxm-field-value { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; flex: 1; min-width: 0; min-height: 2.05rem; padding: 0.15rem 0.45rem; overflow: hidden; border: 1px solid var(--cso-line); background: #fff; font-size: 0.9375rem; }
.oxm-from-me, .oxm-subj-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxm-subj-val { font-weight: 700; }
.oxm-rcpt { padding: 0.05rem 0.55rem; border: 1px solid #9fb6e6; border-radius: 0.85rem; background: #e3ecfc; color: #0a246a; white-space: nowrap; }
.oxm-cmp-files { flex: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.4rem 0.6rem; border-bottom: 1px solid #c9c5b4; }
.oxm-cmp-body { flex: 1; min-height: 0; margin: 0.45rem 0.55rem 0; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--cso-line); background: #fff; cursor: text; }
.oxm-cmp-page { padding: 1rem 1.2rem 1.6rem; }
.oxm-cmp-text { min-height: 7rem; color: #111; font: 1.0625rem/1.6 Arial, Helvetica, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.oxm-cmp-hint { margin-right: 0.15rem; color: #98a2b4; font-style: italic; }
.oxm-cmp-quote { display: flex; flex-direction: column; gap: 0.1rem; margin-top: 1.4rem; padding-left: 0.85rem; border-left: 3px solid #b8c6e0; color: #6a7385; font-size: 0.9375rem; }
.oxm-cmp-quote p { margin: 0.5rem 0 0; white-space: pre-wrap; }
.oxm-cmp-foot { flex: none; display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.6rem 0.6rem; }
.oxm-cmp-meter { flex: 1; max-width: 20rem; height: 1rem; }
.oxm-cmp-pct { min-width: 6.5rem; color: #3a4a6a; font-size: 0.9375rem; font-weight: 700; }
.oxm-cmp.is-done .oxm-cmp-pct { color: #1f8a2a; }
.oxm-cmp.is-prio .oxm-subj-val::before { content: '! '; color: #d62020; }
.oxm-cmp-foot .cso-tap { position: static; flex: none; translate: none; min-height: 3.2rem; margin-left: auto; padding: 0 1.2rem 0 0.9rem; font-size: 1.05rem; white-space: nowrap; }
.oxm.is-narrow .oxm-cmp-pct { min-width: 0; }

/* The envelope that carries a sent message away. */
.oxm-env { position: absolute; z-index: 55; width: 8.6rem; height: 5.6rem; transform: translate(-50%, -50%); perspective: 420px; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); }
.oxm-env-back { position: absolute; inset: 0; border: 1px solid #61708c; border-radius: 5px; background: linear-gradient(#e6ecf6, #c9d4e8); }
.oxm-env-letter {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 6%;
  z-index: 1;
  height: 82%;
  border: 1px solid #cfc8ae;
  background: repeating-linear-gradient(#fff 0 7px, #d3dcec 7px 8px);
}
.oxm-env-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 5px;
  background: linear-gradient(170deg, #ffffff, #e3e9f4);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0 0 1px #61708c;
}
.oxm-env-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  height: 60%;
  background: linear-gradient(#f2f5fb, #c3cee2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: rotateX(180deg);
  transform-origin: 50% 0;
}
.oxm-env-seal {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 4;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a7a, #c8281a 60%, #7a1010);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%);
}
.oxm-env-seal::after { content: 'D'; position: absolute; inset: 0; display: grid; place-items: center; color: #ffd6cf; font: 700 1rem Georgia, serif; }
.oxm-ball {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 46% 54% 50% 48%;
  background:
    conic-gradient(from 30deg, rgba(0, 0, 0, 0.06), transparent 20%, rgba(0, 0, 0, 0.08) 40%, transparent 55%, rgba(0, 0, 0, 0.07) 75%, transparent),
    radial-gradient(circle at 35% 32%, #fff, #e2e2dc 60%, #a9a9a2);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, 0.2), 0 2px 3px rgba(0, 0, 0, 0.3);
}
.oxm-mini-env { width: 2.1rem; height: 2.1rem; text-shadow: none; }
.oxm-gold { color: #ffd23a; font-size: 2rem; }

/* ───────── Mail on narrow windows (phones): one column at a time ───────── */
.oxm-scrim { display: none; }
.oxm.is-narrow .oxm-fbtn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3rem;
  padding: 0 0.55rem;
  border: 1px solid #b9b4a0;
  border-radius: 4px;
  background: linear-gradient(#fff, #ecebe2);
  font-size: 0.9375rem;
  font-weight: 700;
  transition: transform 120ms var(--cso-spring);
}
.oxm.is-narrow .oxm-fbtn.is-pressed { transform: scale(1.06); }
.oxm-fbtn-icon { flex: none; width: 1.5rem; height: 1.5rem; }
.oxm-fbtn-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxm-fbtn-caret { flex: none; margin-left: auto; border: 0.35rem solid transparent; border-top-color: #4d6185; translate: 0 0.2rem; }
.oxm.is-narrow .oxm-toolbar .cso-sep, .oxm.is-narrow .cso-tool.is-wide, .oxm.is-narrow .oxm-logo { display: none; }
.oxm.is-narrow .oxm-toolbar .cso-tool { min-width: 2.9rem; min-height: 3rem; padding: 0.2rem; }
.oxm.is-narrow .oxm-toolbar .cso-tool-label { display: none; }
.oxm.is-narrow .oxm-main { padding: 0; }
.oxm.is-narrow .oxm-folders {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 12;
  width: min(18rem, 84%);
  border-width: 0 1px 0 0;
  box-shadow: 6px 0 20px rgba(0, 0, 0, 0.35);
  transform: translateX(-108%);
  transition: transform 260ms cubic-bezier(.2, .9, .3, 1);
}
.oxm.is-narrow.is-folders .oxm-folders { transform: none; }
.oxm.is-narrow.is-folders .oxm-scrim { display: block; position: absolute; inset: 0; z-index: 11; background: rgba(10, 20, 40, 0.35); }
.oxm.is-narrow .oxm-folder { min-height: 2.9rem; }
.oxm.is-narrow .oxm-listwrap { flex: 1; border-width: 0; }
.oxm.is-narrow .oxm-list-head { display: none; }
.oxm.is-narrow .oxm-row {
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  grid-template-areas: 'env from date' 'env subj subj';
  min-height: 3.9rem;
  padding: 0.35rem 0.4rem 0.35rem 0;
  border-bottom-color: #e6e6e6;
}
.oxm.is-narrow .oxm-row > .oxm-c-prio, .oxm.is-narrow .oxm-row > .oxm-c-clip, .oxm.is-narrow .oxm-row > .oxm-c-flag { display: none; }
.oxm.is-narrow .oxm-row > .oxm-c-env { grid-area: env; height: 1.6rem; }
.oxm.is-narrow .oxm-row > .oxm-c-from { grid-area: from; font-size: 1rem; }
.oxm.is-narrow .oxm-row > .oxm-c-date { grid-area: date; color: #555; font-size: 0.875rem; font-weight: 400; }
.oxm.is-narrow .oxm-row.is-sel > .oxm-c-date { color: #dce8ff; }
.oxm.is-narrow .oxm-row > .oxm-c-subj { grid-area: subj; font-size: 0.9375rem; }
.oxm.is-narrow .oxm-read {
  position: absolute;
  inset: 0;
  z-index: 6;
  border-width: 0;
  transform: translateX(104%);
  transition: transform 260ms cubic-bezier(.2, .9, .3, 1);
  box-shadow: -6px 0 18px rgba(0, 0, 0, 0.25);
}
.oxm.is-narrow.is-reading .oxm-read { transform: none; }
.oxm.is-narrow .oxm-back { display: inline-flex; align-items: center; flex: none; }
.oxm.is-narrow .oxm-rhead-top { align-items: flex-start; }
.oxm.is-narrow .oxm-rsubj { font-size: 1.1rem; }
.oxm.is-narrow .oxm-rbody { padding: 0.9rem 0.9rem 5rem; }
.oxm.is-narrow .oxm-cmp-veil { padding: 0; }
.oxm.is-narrow .oxm-cmp { width: 100%; height: 100%; border-width: 0; border-radius: 0; }
.oxm.is-narrow .oxm-cmp-bar { border-radius: 0; }
.oxm.is-narrow .oxm-field-label { width: 3.9rem; }
.oxm.is-narrow .oxm-cmp-tools .cso-tool-label { display: none; }
.oxm.is-narrow .oxm-cmp-tools .cso-tool.is-send .cso-tool-label { display: inline; }
.oxm.is-narrow .oxm-cmp-meter { max-width: none; }
.oxm.is-narrow .oxm-contact { grid-template-columns: 2.4rem 1fr; }
.oxm.is-narrow .oxm-contact-addr { display: none; }
.oxm.is-narrow .oxm-cert-title { font-size: 1.7rem; }
.oxm.is-narrow .oxm-text.is-mom { font-size: 1.25rem; }

/* ═════════════════════════ WordSmith 2002 ═════════════════════════ */
.wsd { --wsd-font: 'Times New Roman', Times, serif; --wsd-size: 1; --wsd-ink: #1c2430; }
.wsd-std .cso-tool, .wsd-fmtbar .cso-tool { flex-direction: row; gap: 0.35rem; min-width: 2.6rem; min-height: 2.6rem; padding: 0.2rem 0.35rem; }
.wsd-std .cso-tool-icon { width: 1.6rem; height: 1.6rem; }
.wsd-std .cso-tool .cso-tool-label { display: none; }
.wsd-std .cso-tool[aria-label='WordArt'] .cso-tool-label, .wsd-std .cso-tool.is-wide .cso-tool-label { display: inline; padding-right: 0.15rem; }
.wsd-fmtbar { gap: 0.2rem; }
.wsd-drop {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0.3rem;
  height: 2.2rem;
  min-width: 11rem;
  padding: 0 0 0 0.5rem;
  border: 1px solid var(--cso-line);
  background: #fff;
  font-size: 1rem;
  text-align: left;
  transition: transform 120ms var(--cso-spring);
}
.wsd-drop.wsd-size { min-width: 3.8rem; }
.wsd-drop:hover { border-color: #316ac5; }
.wsd-drop.is-pressed { transform: scale(1.06); }
.wsd-drop-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsd-drop-caret { position: relative; flex: none; align-self: stretch; width: 1.4rem; border-left: 1px solid #c3d3fd; background: linear-gradient(#eef3fd, #c6d7fb); }
.wsd-drop-caret::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -5px; border: 5px solid transparent; border-top-color: #4d6185; }
.wsd-fmt {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: none;
  transition: transform 120ms var(--cso-spring), background-color 120ms, border-color 120ms;
}
.wsd-fmt:hover { border-color: #cbc6b2; background: linear-gradient(#fff, #f1efe6); }
.wsd-fmt.is-on { border-color: #e1a83a; background: linear-gradient(#fff6d8, #ffe39a); }
.wsd-fmt.is-pressed { transform: scale(1.15); }
.wsd-fmt-letter { font: 700 1.25rem/1 'Times New Roman', serif; }
.wsd-fmt.is-i .wsd-fmt-letter { font-style: italic; font-weight: 400; }
.wsd-fmt.is-u .wsd-fmt-letter { font-weight: 400; text-decoration: underline; }
.wsd-fmt-icon { width: 1.35rem; height: 1.35rem; }
.wsd-dd { min-width: 15rem; }
.wsd-dd-head { padding: 0.3rem 0.6rem 0.15rem; color: #556; font-size: 0.875rem; font-weight: 700; }
.wsd-font-item { font-size: 1.05rem; }
.wsd-tt { flex: none; width: 1.3rem; color: #1f4fb0; font: 700 0.875rem 'Times New Roman', serif; }
.wsd-font-item:hover .wsd-tt { color: #fff; }
.wsd-font-name { flex: 1; }
.wsd-font-real { color: #888; font-size: 0.875rem; }
.wsd-size-item { justify-content: center; font-size: 1rem; }

/* The ruler, sized to the page. */
.wsd-ruler-row { flex: none; display: flex; justify-content: center; height: 1.75rem; padding-right: var(--sbw, 0px); overflow: hidden; border-bottom: 1px solid #b9b5a4; background: var(--cso-face); }
.wsd.no-ruler .wsd-ruler-row { display: none; }
.wsd-ruler {
  position: relative;
  width: var(--pw, 40rem);
  height: 100%;
  background: linear-gradient(90deg, #c4c4c4 var(--pm, 3rem), #fff var(--pm, 3rem), #fff calc(100% - var(--pm, 3rem)), #c4c4c4 calc(100% - var(--pm, 3rem)));
  box-shadow: inset 0 -1px 0 #9a9a9a, inset 0 1px 0 #9a9a9a;
}
.wsd-ruler-tape {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #555 1px, transparent 1px),
    linear-gradient(90deg, #777 1px, transparent 1px),
    linear-gradient(90deg, #999 1px, transparent 1px);
  background-size: calc(var(--pw, 40rem) / 8.5) 45%, calc(var(--pw, 40rem) / 17) 30%, calc(var(--pw, 40rem) / 68) 16%;
  background-position: var(--pm, 3rem) 100%;
  background-repeat: repeat-x;
}
.wsd-ruler::before, .wsd-ruler::after { content: ''; position: absolute; bottom: 0; z-index: 1; border: 0.38rem solid transparent; border-bottom: 0.5rem solid #6b7a90; translate: -50% 0; }
.wsd-ruler::before { left: var(--pm, 3rem); }
.wsd-ruler::after { left: calc(100% - var(--pm, 3rem)); }
.wsd-ruler-n { position: absolute; top: 0.05rem; color: #333; font: 0.875rem/1.2 Arial, sans-serif; translate: -50% 0; }

/* The grey canvas and the pages on it. */
.wsd-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 1.3rem 0 5rem;
  background: radial-gradient(120% 80% at 50% 0%, #b4b9c1, #8f959e 70%);
}
.wsd-canvas::-webkit-scrollbar { width: 17px; height: 17px; }
.wsd-canvas::-webkit-scrollbar-track { background: #f4f3ee; box-shadow: inset 1px 0 0 #e3e1d6; }
.wsd-canvas::-webkit-scrollbar-thumb { border: 1px solid #93a8d8; border-radius: 3px; background: linear-gradient(90deg, #d6e3fe, #bcd0fb 50%, #aac1f6); }
.wsd-pages { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.wsd-page {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  width: var(--pw, 40rem);
  height: var(--ph, 52rem);
  padding: 0 var(--pm, 3rem);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28), 4px 5px 0 rgba(0, 0, 0, 0.32), 0 10px 26px rgba(0, 0, 0, 0.22);
  color: #111;
  font-family: var(--wsd-font);
  font-size: calc(var(--fs, 16px) * var(--wsd-size));
  line-height: 1.45;
  cursor: text;
}
.wsd-page-head, .wsd-page-foot { flex: none; display: flex; height: var(--pm, 3rem); color: #8a8f98; font: 0.875rem/1.2 Arial, Helvetica, sans-serif; }
.wsd-page-head { align-items: flex-end; justify-content: space-between; padding-bottom: 0.55em; }
.wsd-page-foot { align-items: flex-start; justify-content: center; padding-top: 0.55em; }
.wsd-flow { flex: 1; min-height: 0; overflow: hidden; overflow-wrap: break-word; }
.wsd-pages.is-selected .wsd-flow { background: rgba(49, 106, 197, 0.16); }
.wsd-title { margin: 1.4em 0 0.2em; color: #1f3a7a; font: 700 2.3em/1.1 var(--wsd-font); text-align: center; }
.wsd-title.is-pop {
  background: linear-gradient(90deg, #ff2a2a, #ff9a1a, #ffe81a, #3ad13a, #1a8cff, #8a3aff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.02em #2a1050;
  filter: drop-shadow(0.04em 0.05em 0 rgba(0, 0, 0, 0.3));
}
.wsd-subtitle { margin: 0; color: #3a4a6a; font-size: 1.25em; font-style: italic; text-align: center; }
.wsd-byline { margin: 0.7em 0 0; color: #666; font-size: max(0.9em, 13px); text-align: center; }
.wsd-rule { margin: 1.1em 0 1.3em; border: 0; border-top: 2px solid #1f3a7a; }
.wsd-h2 { margin: 1em 0 0.45em; color: #1f3a7a; font: 700 1.3em/1.25 var(--wsd-font); }
.wsd-p { margin: 0 0 0.8em; }
.wsd-li { position: relative; margin: 0 0 0.35em; padding-left: 1.6em; }
.wsd-li::before { content: '•'; position: absolute; left: 0.45em; color: #1f3a7a; font-weight: 700; }
.wsd-quote { margin: 0.2em 0 0.6em 1.2em; padding-left: 0.85em; border-left: 3px solid #b9c6e0; color: #334; font-style: italic; }
.wsd-sign { margin: 1.5em 0 1em; white-space: pre-line; }
.wsd-p[data-cont], .wsd-li[data-cont], .wsd-quote[data-cont] { text-indent: 0; }
.wsd-li[data-cont]::before { content: none; }
.wsd-run.is-b { font-weight: 700; }
.wsd-run.is-i { font-style: italic; }
.wsd-run.is-u { text-decoration: underline; }
.wsd-run.is-hl { background: #fff23a; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wsd-buzz { border-radius: 2px; animation: wsd-buzz 2.6s ease-out var(--d, 0ms) both; }
@keyframes wsd-buzz {
  0% { background: #fff23a; box-shadow: 0 0 0 2px #fff23a; }
  55% { background: #fff6a0; box-shadow: 0 0 0 2px #fff6a0; }
  100% { background: transparent; box-shadow: 0 0 0 2px transparent; }
}
.wsd-caret { color: #000; }
.wsd-pb { height: 0; }

/* Figures. */
.wsd-fig { margin: 0.5em 0 1em; text-align: center; }
.wsd-fig-art { display: block; width: min(100%, 25em); margin: 0 auto; }
.wsd-fig-art .cso-svg { width: 100%; height: auto; max-height: calc((var(--ph, 52rem) - 2 * var(--pm, 3rem)) * 0.55); }
.wsd-fig.is-clip .wsd-fig-art { width: min(100%, 8.5em); }
.wsd-fig.is-matrix .wsd-fig-art { width: min(100%, 19em); }
.wsd-fig figcaption { margin-top: 0.35em; color: #556; font-size: max(0.85em, 13px); font-style: italic; }
.wsd-pie-s { animation: wsd-pie 0.9s cubic-bezier(.3, .8, .3, 1) calc(var(--i) * 140ms) both; }
@keyframes wsd-pie { from { stroke-dasharray: 0 999; } }
.wsd-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: wsd-bar 0.7s cubic-bezier(.3, 1.35, .5, 1) calc(var(--i) * 110ms) both; }
@keyframes wsd-bar { from { transform: scaleY(0); } }
.wsd-line { stroke-dasharray: 300; animation: wsd-line 1.3s ease-out both; }
@keyframes wsd-line { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
.wsd-matrix-star { transform-box: fill-box; transform-origin: center; animation: wsd-twinkle 1.6s ease-in-out infinite; }
@keyframes wsd-twinkle { 50% { transform: scale(1.35) rotate(20deg); } }
.wsd-matrix-duck { animation: wsd-bob 1.4s ease-in-out infinite alternate; }
.wsd-fig.is-shown .wsd-pie-s, .wsd-fig.is-shown .wsd-bar, .wsd-fig.is-shown .wsd-line { animation: none; }

/* WordArt: gloriously, unapologetically WordArt. */
.wsd-wa-fig { margin: 0.4em 0 1em; padding: 0.15em 0; text-align: center; line-height: 1.1; cursor: pointer; }
.wsd-wa { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; padding: 0.12em 0.18em 0.28em; font: 900 3em/1.05 Impact, 'Arial Black', sans-serif; white-space: nowrap; }
.wsd-wa-txt, .wsd-wa-ch { display: inline-block; }
.wa-rainbow .wsd-wa-txt {
  background: linear-gradient(90deg, #ff2a2a, #ff9a1a, #ffe81a, #3ad13a, #1a8cff, #8a3aff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.025em #2a1050;
  filter: drop-shadow(0.05em 0.06em 0 rgba(0, 0, 0, 0.35));
}
.wa-arch { align-items: flex-start; padding-bottom: 0.9em; font-family: 'Arial Black', Arial, sans-serif; }
.wa-arch .wsd-wa-ch {
  background: linear-gradient(#7aa8ff, #2a1a9a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.02em #10104a;
  filter: drop-shadow(0.04em 0.05em 0 rgba(0, 0, 0, 0.3));
}
.wa-wave .wsd-wa-ch {
  background: linear-gradient(#d8ff8a, #3ad13a 55%, #136a1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.025em #0a3a10;
  filter: drop-shadow(0.05em 0.06em 0 rgba(0, 40, 0, 0.35));
}
.wa-gold3d .wsd-wa-txt {
  color: #ffd84a;
  -webkit-text-stroke: 0.015em #8a5a08;
  text-shadow: 0.02em 0.02em 0 #d9a020, 0.04em 0.04em 0 #c08a14, 0.06em 0.06em 0 #a8760e, 0.08em 0.08em 0 #90620a, 0.1em 0.1em 0 #7a5208, 0.12em 0.12em 0.1em rgba(0, 0, 0, 0.45);
}
.wa-chrome .wsd-wa-txt {
  background: linear-gradient(180deg, #ffffff 0%, #dfe6ee 42%, #4a5464 50%, #a8b6c6 62%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.025em #232a36;
  filter: drop-shadow(0.05em 0.06em 0 rgba(0, 0, 0, 0.4));
}
.wa-perspective .wsd-wa-txt {
  transform: perspective(5em) rotateX(32deg);
  transform-origin: 50% 100%;
  background: linear-gradient(#ffe36a, #ff7a1a 60%, #c8281a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.025em #4a1206;
  filter: drop-shadow(0 0.06em 0 rgba(0, 0, 0, 0.35));
}
.wa-fire .wsd-wa-txt {
  background: linear-gradient(0deg, #c80000 0%, #ff5a00 40%, #ffd000 75%, #fff8b0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.015em #6a0000;
  filter: drop-shadow(0 0 0.08em #ff7a00) drop-shadow(0 0 0.2em rgba(255, 90, 0, 0.6));
}
.wa-ransom { gap: 0.04em; font-size: 2.8em; }
.wa-ransom .wsd-wa-ch { padding: 0.02em 0.08em; box-shadow: 1px 2px 3px rgba(0, 0, 0, 0.35); line-height: 1.15; }
.wa-inflate .wsd-wa-ch {
  font-family: 'Arial Black', Arial, sans-serif;
  background: linear-gradient(#ffe0f5, #ff4fb8 58%, #a0186a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.025em #5a0a3a;
  filter: drop-shadow(0.04em 0.05em 0 rgba(0, 0, 0, 0.3));
}
.wa-slant .wsd-wa-txt {
  color: #1a2a8a;
  font-family: 'Arial Black', Arial, sans-serif;
  font-style: italic;
  transform: skewX(-14deg);
  text-shadow: 0.06em 0.06em 0 #b8c4e8, 0.12em 0.12em 0 #d8def2;
}
.wa-outline .wsd-wa-txt { color: transparent; -webkit-text-stroke: 0.035em #1a1a8a; text-shadow: 0.07em 0.07em 0 #4fe3ff; }
.wa-ice .wsd-wa-txt {
  background: linear-gradient(#ffffff, #c4ecff 45%, #4aaeea 56%, #e8f8ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.022em #134a86;
  filter: drop-shadow(0 0 0.06em #9edcff) drop-shadow(0.04em 0.05em 0 rgba(0, 30, 80, 0.35));
}
.wa-sunset .wsd-wa-txt {
  transform: rotate(-6deg);
  background: linear-gradient(90deg, #5a1a9a, #e83a8a, #ff9a3a, #ffe36a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.02em #2a0a40;
  filter: drop-shadow(0.06em 0.08em 0 rgba(42, 10, 64, 0.55));
}
.wa-wood .wsd-wa-txt {
  font-family: Georgia, 'Times New Roman', serif;
  background: repeating-linear-gradient(100deg, #8a5222 0 0.07em, #c0843e 0.07em 0.19em, #6e3e16 0.19em 0.25em);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0.02em #3a1e0a;
  filter: drop-shadow(0.05em 0.06em 0 rgba(0, 0, 0, 0.35));
}
.wa-comic {
  padding: 0.5em 0.9em;
  background: #ffe81a;
  clip-path: polygon(50% 0, 59% 18%, 79% 6%, 76% 28%, 98% 26%, 84% 44%, 100% 58%, 80% 64%, 88% 86%, 66% 78%, 58% 100%, 47% 82%, 30% 96%, 30% 74%, 6% 80%, 18% 60%, 0 46%, 20% 38%, 8% 16%, 31% 22%, 36% 2%);
}
.wa-comic .wsd-wa-txt { color: #ff2a2a; font-family: 'Comic Sans MS', 'Comic Neue', cursive; -webkit-text-stroke: 0.03em #111; text-shadow: 0.05em 0.05em 0 #111; }

/* The WordArt gallery. */
.cso-dlg.is-wa { width: min(40rem, calc(100% - 1rem)); }
.cso-dlg.is-wa .cso-dlg-main, .cso-dlg.is-save .cso-dlg-main, .cso-dlg.is-files .cso-dlg-main { padding: 0.7rem; }
.wsd-wa-gal { display: flex; flex-direction: column; gap: 0.5rem; }
.wsd-wa-head { font-size: 0.9375rem; }
.wsd-wa-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; padding: 0.4rem; border: 1px solid var(--cso-line); background: #fff; }
.wsd-wa-tile {
  display: grid;
  place-items: center;
  height: 4.4rem;
  overflow: hidden;
  border: 2px solid #e8e8e8;
  border-radius: 3px;
  background: #fff;
  transition: transform 120ms var(--cso-spring), border-color 120ms, background-color 120ms;
}
.wsd-wa-tile:hover { border-color: #9fb6e6; }
.wsd-wa-tile.is-on { border-color: var(--cs-select); background: #e8f0fc; box-shadow: inset 0 0 0 1px #fff; }
.wsd-wa-tile.is-pressed { transform: scale(1.1); }
.wsd-wa-tile .wsd-wa { font-size: 1.3rem; }
.wsd-wa-tile .wa-arch { padding-bottom: 0.5em; }
.wsd-wa-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.wsd-wa-input { flex: 1; min-width: 0; height: 2.4rem; padding: 0 0.55rem; border: 1px solid var(--cso-line); background: #fff; color: #000; font: 700 max(1.05rem, 16px) Arial, sans-serif; }

/* Save As, Open, Word Count. */
.cso-dlg.is-save { width: min(38rem, calc(100% - 1rem)); }
.wsd-save { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: 0.6rem; }
.wsd-places { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.3rem; border: 1px solid #8ea6d6; background: linear-gradient(#7fa6e8, #4a74c8); }
.wsd-place { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.35rem 0.2rem; border: 1px solid transparent; border-radius: 3px; color: #fff; font-size: 0.875rem; text-align: center; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4); }
.wsd-place.is-on { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.2); }
.wsd-place-icon { width: 1.9rem; height: 1.9rem; }
.wsd-save-main { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.wsd-save-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.15rem 0.6rem; align-content: start; min-height: 7rem; max-height: 10rem; padding: 0.4rem; overflow: auto; border: 1px solid var(--cso-line); background: #fff; }
.wsd-save-file, .wsd-file { display: flex; align-items: center; gap: 0.4rem; min-width: 0; font-size: 0.9375rem; }
.wsd-save-file span:last-child, .wsd-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsd-file-icon { flex: none; width: 1.4rem; height: 1.4rem; }
.wsd-save-row { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.wsd-save-box { display: flex; align-items: center; min-height: 2.2rem; padding: 0 0.5rem; overflow: hidden; border: 1px solid var(--cso-line); background: #fff; font-size: 1rem; white-space: nowrap; }
.wsd-save-box.is-static { color: #444; background: #f6f6f2; }
.wsd-save-field { font-weight: 700; }
.wsd-files { display: flex; flex-direction: column; max-height: 16rem; overflow: auto; border: 1px solid var(--cso-line); background: #fff; }
.wsd-file { min-height: 2.3rem; padding: 0.2rem 0.6rem; border: 0; background: none; text-align: left; transition: transform 120ms var(--cso-spring); }
.wsd-file:hover { background: #eef4fd; }
.wsd-file.is-on { background: var(--cs-select); color: #fff; }
.wsd-file.is-pressed { transform: scale(1.03); }
.wsd-wc { border-collapse: collapse; font-size: 0.9375rem; }
.wsd-wc th { padding: 0.25rem 2rem 0.25rem 0; font-weight: 400; text-align: left; }
.wsd-wc td { padding: 0.25rem 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* Saving: the floppy grinds, then the stamp slams down. */
.wsd-saving {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 38;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 1.7rem 1.2rem;
  border: 3px solid var(--cs-frame);
  border-radius: 0.5rem;
  background: var(--cso-face);
  box-shadow: 4px 8px 22px rgba(0, 0, 0, 0.45);
  font-size: 1rem;
  translate: -50% -50%;
}
.wsd-saving-disk { width: 3.4rem; height: 3.4rem; animation: wsd-grind 0.18s linear infinite alternate; }
@keyframes wsd-grind { from { transform: translate(-1px, 0) rotate(-2deg); } to { transform: translate(1px, -1px) rotate(2deg); } }
.wsd-saving-bar { display: block; width: min(15rem, 60vw); height: 1.1rem; padding: 2px; border: 1px solid #a9a594; background: #fff; }
.wsd-saving-fill { display: block; height: 100%; background: repeating-linear-gradient(90deg, #2f6fd8 0 9px, transparent 9px 11px); transform: scaleX(0); transform-origin: left; }
.wsd-stamp {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  padding: 0.35em 1em 0.45em;
  border: 0.2em solid #2e9a2a;
  border-radius: 0.45em;
  background: rgba(255, 255, 255, 0.55);
  color: #2e9a2a;
  font-size: calc(var(--fs, 16px) * 1);
  transform: translate(-50%, -50%) rotate(-12deg);
  pointer-events: none;
}
.wsd-stamp b { font: 900 3.2em/1 Impact, 'Arial Black', sans-serif; letter-spacing: 0.05em; }
.wsd-stamp span { font: 700 1em 'Courier New', monospace; }

/* The status bar's little proofing book scribbles while you type. */
.wsd-status { gap: 0.5rem; }
.wsd-st-sep { width: 1px; align-self: stretch; margin: 0.35rem 0; background: #c9c5b4; box-shadow: 1px 0 0 #fff; }
.wsd-st-words { display: inline-block; min-width: 2.5rem; font-variant-numeric: tabular-nums; }
.wsd-st-msg { flex: 1; min-width: 0; overflow: hidden; color: #1f6a2a; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.wsd-st-book { width: 1.2rem; height: 1.2rem; }
.wsd-st-book.is-busy .cso-svg { animation: wsd-scribble 0.3s ease-in-out infinite alternate; }
@keyframes wsd-scribble { from { transform: rotate(-10deg) translateX(-1px); } to { transform: rotate(8deg) translateX(1px); } }

/* ───────── the duck, Office Assistant ───────── */
.wsd-duck { position: absolute; right: 1.4rem; bottom: 2.7rem; z-index: 28; display: flex; flex-direction: column; align-items: flex-end; visibility: hidden; pointer-events: none; }
.wsd-duck.is-on { visibility: visible; }
.wsd-duck.is-away { visibility: hidden; transition: visibility 0s 0.3s; }
.wsd-duck-btn {
  position: relative;
  width: 7.4rem;
  height: 7.4rem;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  animation: wsd-bob 2.4s ease-in-out infinite;
  transition: scale 120ms var(--cso-spring);
}
.wsd-duck-btn.is-pressed { scale: 1.12; }
@keyframes wsd-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.wsd-d-lids { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: wsd-blink 4.3s infinite; }
@keyframes wsd-blink { 0%, 91%, 100% { transform: scaleY(0); } 94% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.wsd-duck.is-asleep .wsd-d-lids { transform: scaleY(1); animation: none; }
.wsd-duck.is-asleep .wsd-duck-btn { animation-duration: 4.8s; }
.wsd-d-pupils { transition: transform 300ms ease-out; }
.wsd-d-beak-lo { transform-box: view-box; transform-origin: 41px 45px; }
.wsd-duck-btn.is-talking .wsd-d-beak-lo { animation: wsd-talk 0.14s ease-in-out 6 alternate; }
@keyframes wsd-talk { to { transform: rotate(-16deg); } }
.wsd-d-wing { transform-box: fill-box; transform-origin: 92% 40%; }
.wsd-duck-btn.is-flapping .wsd-d-wing { animation: wsd-flap 0.11s ease-in-out infinite alternate; }
@keyframes wsd-flap { to { transform: rotate(-30deg); } }
.wsd-d-tears { opacity: 0; }
.wsd-duck-btn.is-crying .wsd-d-tears { opacity: 1; }
.wsd-duck-btn.is-crying .wsd-d-tears path { transform-box: fill-box; animation: wsd-tear 0.8s ease-in infinite; }
.wsd-duck-btn.is-crying .wsd-d-tears path + path { animation-delay: 0.35s; }
@keyframes wsd-tear { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
.wsd-zzz { position: absolute; right: 0.6rem; bottom: 6.2rem; display: none; color: #2f74e0; font: 700 1.3rem 'Comic Sans MS', cursive; pointer-events: none; }
.wsd-duck.is-asleep .wsd-zzz { display: block; }
.wsd-zzz i { display: inline-block; font-style: normal; animation: wsd-z 2.1s ease-out infinite; opacity: 0; }
.wsd-zzz i:nth-child(2) { animation-delay: 0.7s; font-size: 1.15em; }
.wsd-zzz i:nth-child(3) { animation-delay: 1.4s; font-size: 1.35em; }
@keyframes wsd-z { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(10px, -24px); } }
.wsd-balloon {
  position: relative;
  width: min(19rem, calc(100vw - 4rem));
  margin: 0 2.4rem 0.7rem 0;
  padding: 0.8rem 0.9rem 0.65rem;
  border: 1px solid #000;
  border-radius: 0.75rem;
  background: #ffffe1;
  box-shadow: 3px 5px 14px rgba(0, 0, 0, 0.35);
  font-size: 0.9375rem;
  line-height: 1.42;
  pointer-events: auto;
  transform-origin: 85% 100%;
}
.wsd-balloon::after { content: ''; position: absolute; right: 1.4rem; bottom: -0.8rem; width: 1.1rem; height: 0.8rem; background: #000; clip-path: polygon(0 0, 100% 0, 85% 100%); }
.wsd-balloon::before { content: ''; position: absolute; right: calc(1.4rem + 1px); bottom: calc(-0.8rem + 2px); z-index: 1; width: calc(1.1rem - 2px); height: 0.8rem; background: #ffffe1; clip-path: polygon(0 0, 100% 0, 85% 100%); }
.wsd-bal-text { margin: 0; }
.wsd-bal-opts { display: flex; flex-direction: column; gap: 0.05rem; margin-top: 0.45rem; }
.wsd-bal-opts:empty { display: none; }
.wsd-bal-opt {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.15rem;
  padding: 0.1rem 0.35rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #0033aa;
  font-size: 0.9375rem;
  text-align: left;
  transform-origin: 10% 50%;
  transition: transform 120ms var(--cso-spring), background-color 120ms;
}
.wsd-bal-opt:hover { background: #fff2a8; text-decoration: underline; }
.wsd-bal-opt.is-pressed { transform: scale(1.05); }
.wsd-bal-dot { flex: none; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #9ccbff, #1f4fb8); box-shadow: inset 0 0 0 1px #173f88; }
.wsd-parade { position: absolute; left: 0; right: 0; bottom: 2.2rem; z-index: 26; height: 3rem; overflow: hidden; pointer-events: none; }
.wsd-duckling { position: absolute; left: 0; bottom: 0.2rem; width: 2.6rem; height: 2.6rem; }
.wsd-duckling .cso-svg { scale: -1 1; transform-origin: 50% 90%; animation: wsd-waddle 0.3s ease-in-out infinite alternate; }
@keyframes wsd-waddle { from { rotate: -9deg; } to { rotate: 9deg; } }

/* ───────── WordSmith on narrow windows (phones) ───────── */
.wsd.is-narrow .wsd-ruler-row { display: none; }
.wsd.is-narrow .wsd-std .cso-tool.is-wide, .wsd.is-narrow .wsd-std .cso-tool[aria-label='New'], .wsd.is-narrow .wsd-std .cso-tool[aria-label='Open'] { display: none; }
.wsd.is-narrow .wsd-std .cso-tool[aria-label='WordArt'] .cso-tool-label { display: none; }
.wsd.is-narrow .cso-toolbar { overflow-x: auto; scrollbar-width: none; }
.wsd.is-narrow .wsd-std .cso-tool[aria-label='Assistant'] { display: flex; }
.wsd.is-narrow .wsd-drop { min-width: 8.5rem; }
.wsd.is-narrow .wsd-drop.wsd-size { min-width: 3.4rem; }
.wsd.is-narrow .wsd-canvas { padding: 0.7rem 0 7rem; }
.wsd.is-narrow .wsd-pages { gap: 0.7rem; }
.wsd.is-narrow .wsd-duck { right: 0.5rem; bottom: 2.4rem; }
.wsd.is-narrow .wsd-duck-btn { width: 4.8rem; height: 4.8rem; }
.wsd.is-narrow .wsd-balloon { width: min(16.5rem, calc(100vw - 3rem)); margin-right: 1.6rem; }
.wsd.is-narrow .wsd-zzz { bottom: 4.4rem; }
.wsd.is-narrow .wsd-wa-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wsd.is-narrow .wsd-wa-tile .wsd-wa { font-size: 1rem; }
.wsd.is-narrow .wsd-save { grid-template-columns: minmax(0, 1fr); }
.wsd.is-narrow .wsd-places { display: none; }
@media (pointer: coarse) {
  .wsd .cso-tap { bottom: 2.6rem; }
  .wsd.is-narrow .wsd-duck { bottom: 6.6rem; }
}

/* ═════════════════════════ Text Editor ═════════════════════════ */
.ted-area { position: relative; flex: 1; min-height: 0; margin: 0 2px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--cso-line); background: #fff; cursor: text; }
.ted-text {
  min-height: 100%;
  padding: 0.6rem 0.8rem 6rem;
  color: #000;
  font: 1.0625rem/1.55 'Lucida Console', 'Lucida Sans Typewriter', 'Courier New', monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ted.is-wide .ted-text { letter-spacing: 0.06em; }
.ted.is-wrap .ted-text { line-height: 2.4; }
.ted-text.is-selected { background: rgba(49, 106, 197, 0.2); }
.ted-caret { color: #000; }
.ted-status .cso-status-main { gap: 1rem; }
.ted-st-line { flex: none; min-width: 7.5rem; font-variant-numeric: tabular-nums; }
.ted-st-msg { min-width: 0; overflow: hidden; color: #1f6a2a; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* Format → Word Wrap: every word, gift-wrapped, ribbon and bow. */
.ted-gift {
  position: relative;
  display: inline-block;
  margin: 0 0.05em;
  padding: 0.08em 0.32em 0.05em;
  border-radius: 0.18em;
  color: #fff;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 0 3px rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 -0.14em 0 rgba(0, 0, 0, 0.2), inset 0 0.08em 0 rgba(255, 255, 255, 0.3), 0 0.1em 0.16em rgba(0, 0, 0, 0.3);
  cursor: pointer;
  --rib: rgba(255, 214, 70, 0.85);
  --ribbon: linear-gradient(90deg, transparent calc(50% - 0.08em), var(--rib) calc(50% - 0.08em), var(--rib) calc(50% + 0.08em), transparent calc(50% + 0.08em));
}
.ted-gift::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -0.66em;
  width: 1.3em;
  height: 0.8em;
  translate: -50% 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'%3E%3Cpath d='M18 14l-5 9M22 14l5 9' stroke='%23e0a000' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M20 14C12 1 1 2 3.5 10c1.5 5 9.5 4 16.5 4zM20 14c8-13 19-12 16.5-4-1.5 5-9.5 4-16.5 4z' fill='%23ffd23a' stroke='%23a87000' stroke-width='1.6'/%3E%3Cpath d='M8 8c3 0 7 2 10 5M32 8c-3 0-7 2-10 5' fill='none' stroke='%23fff4b0' stroke-width='1.4' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='14' r='3.6' fill='%23ffbf00' stroke='%23a87000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}
.ted-gift.p-0 { background: var(--ribbon), radial-gradient(circle, rgba(255, 255, 255, 0.8) 17%, transparent 19%) 0 0 / 0.5em 0.5em, #d62828; }
.ted-gift.p-1 { background: var(--ribbon), repeating-linear-gradient(45deg, #1d8a3a 0 0.2em, #33b552 0.2em 0.4em); }
.ted-gift.p-2 { background: var(--ribbon), radial-gradient(circle, #ffe68a 15%, transparent 17%) 0.12em 0.12em / 0.45em 0.45em, #2456d4; }
.ted-gift.p-3 { --rib: #fff; background: var(--ribbon), conic-gradient(#7a3ad8 25%, #9b62f2 0 50%, #7a3ad8 0 75%, #9b62f2 0) 0 0 / 0.5em 0.5em; }
.ted-gift.p-4 { --rib: #e2452e; background: var(--ribbon), repeating-linear-gradient(-45deg, #e08a1e 0 0.18em, #f4ad48 0.18em 0.36em); }
.ted-gift:hover { filter: brightness(1.08); }
.ted-opened { border-radius: 3px; animation: ted-opened 2.2s ease-out both; }
@keyframes ted-opened { from { background: #fff36a; box-shadow: 0 0 0 3px #fff36a; } to { background: transparent; box-shadow: 0 0 0 3px transparent; } }

/* The Font dialog (every font is Lucida Console). */
.cso-dlg.is-font { width: min(39rem, calc(100% - 1rem)); }
.cso-dlg.is-font .cso-dlg-main { padding: 0.8rem; }
.ted-font { display: flex; flex-direction: column; gap: 0.7rem; }
.ted-fcols { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: 0.6rem; }
.ted-fcol { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.ted-flabel { font-size: 0.9375rem; }
.ted-fbox { display: block; min-height: 2.1rem; padding: 0.25rem 0.45rem; overflow: hidden; border: 1px solid var(--cso-line); background: #fff; font-size: 0.9375rem; text-overflow: ellipsis; white-space: nowrap; }
.ted-flist { height: 10rem; overflow: auto; border: 1px solid var(--cso-line); background: #fff; }
.cso .ted-fitem {
  display: block;
  width: 100%;
  min-height: 2rem;
  padding: 0.1rem 0.45rem;
  overflow: hidden;
  border: 0;
  background: none;
  font: 0.9375rem 'Lucida Console', 'Courier New', monospace;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform-origin: 15% 50%;
  transition: transform 120ms var(--cso-spring);
}
.ted-fitem:hover { background: #eef4fd; }
.ted-fitem.is-on { background: var(--cs-select); color: #fff; }
.ted-fitem.is-pressed { transform: scale(1.04); }
.ted-frow { display: flex; align-items: flex-end; gap: 0.8rem; }
.ted-sample { flex: 1; min-width: 0; margin: 0; padding: 0.35rem 0.6rem 0.7rem; border: 1px solid #b9b4a0; border-radius: 3px; }
.ted-sample legend { padding: 0 0.3rem; font-size: 0.875rem; }
.ted-sample-text { display: grid; place-items: center; height: 3.8rem; border: 1px solid #d6d2c2; background: #fff; font: 1.7rem 'Lucida Console', 'Courier New', monospace; }
.ted-script { display: flex; flex-direction: column; gap: 0.25rem; width: 9rem; font-size: 0.9375rem; }
.ted-find { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; }
.ted-find .ted-fbox { flex: 1; font-style: italic; }
.ted.is-narrow .ted-fcols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ted.is-narrow .ted-fcol.is-font { grid-column: 1 / -1; }
.ted.is-narrow .ted-flist { height: 6.4rem; }
.ted.is-narrow .ted-frow { flex-direction: column; align-items: stretch; }
.ted.is-narrow .ted-script { width: auto; }
.ted.is-narrow .ted-text { padding-bottom: 8rem; }

/* ───────── reduced motion: nothing bobs, blinks fast or shakes ───────── */
html[data-reduced-motion="on"] .wsd-duck-btn,
html[data-reduced-motion="on"] .wsd-matrix-duck,
html[data-reduced-motion="on"] .wsd-matrix-star,
html[data-reduced-motion="on"] .oxm-remind-bell,
html[data-reduced-motion="on"] .oxm-track-truck,
html[data-reduced-motion="on"] .oxm-chain-big,
html[data-reduced-motion="on"] .cso-tap-icon,
html[data-reduced-motion="on"] .wsd-saving-disk,
html[data-reduced-motion="on"] .wsd-duckling .cso-svg,
html[data-reduced-motion="on"] .wsd-st-book.is-busy .cso-svg,
html[data-reduced-motion="on"] .oxm.is-checking .oxm-logo .cso-svg,
html[data-reduced-motion="on"] .cso-dlg-btn.is-ready,
html[data-reduced-motion="on"] .cso-tool.is-send.is-ready { animation: none; }
html[data-reduced-motion="on"] .wsd-pie-s,
html[data-reduced-motion="on"] .wsd-bar,
html[data-reduced-motion="on"] .wsd-line { animation-duration: 1ms; animation-delay: 0ms; }
html[data-reduced-motion="on"] .oxm.is-narrow .oxm-read,
html[data-reduced-motion="on"] .oxm.is-narrow .oxm-folders { transition-duration: 1ms; }
