/* v0.9: restrained materials and consistent controls within the approved laptop. */
:root {
  --bg: #eef0f4;
  --paper: #ffffff;
  --ink: #202126;
  --muted: #656871;
  --line: #e3e5e9;
  --accent: #146bd7;
  --desktop-surface: #eef0f4;
  --tile-radius: 20px;
  --window-radius: 14px;
  --shadow: 0 1px 2px #14213a05, 0 5px 18px #14213a08;
}
body { font-size: 16px; -webkit-font-smoothing: antialiased; }
body.dark {
  --bg: #181b21;
  --paper: #252830;
  --ink: #f4f5f7;
  --muted: #b5b9c3;
  --line: #3d414b;
  --accent: #8bbbff;
  --desktop-surface: #1c1f26;
}
body.framed { background: radial-gradient(ellipse at 50% 8%, #f5f6f8, #c6cbd3 90%); }
body.dark.framed { background: radial-gradient(ellipse at 50% 8%, #414652, #171b24 90%); }
body.framed #laptop {
  border-color: #737b86;
  background: linear-gradient(100deg, #191b20, #111317 48%, #1a1c21);
  box-shadow: 0 1px 0 #ffffffad, 0 3px 5px #26324942, 0 24px 55px #26324935;
}
body.framed #laptop::before { background: radial-gradient(circle at 45% 35%, #54778f, #1d2d3a 60%); box-shadow: 0 0 0 1px #0009; }
body.framed .laptopbase { background: linear-gradient(#d8dce2, #b3bac4 38%, #919ba7 78%, #78838f); box-shadow: 0 9px 15px #2632492b; }
#screenScroll { background: var(--desktop-surface); }
header { height: 64px; border-bottom: 0; background: transparent; backdrop-filter: blur(18px); }
.brand { font-size: 22px; font-weight: 720; }
.topnav { display: flex; gap: 2px; padding: 4px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); border-radius: 24px; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.topnav button { min-height: 32px; padding: 5px 14px; border-radius: 20px; font-size: 14px; }
.topnav button:hover { background: var(--paper); box-shadow: 0 1px 4px #0000000b; }
.chrome { min-height: 34px; padding: 6px 10px; font-size: 14px; border-radius: 8px; box-shadow: 0 1px 2px #00000004; }
.desktop { padding-top: 0; }
.grid { gap: 16px; }
.tile { border-radius: var(--tile-radius); border-color: color-mix(in srgb, var(--line) 58%, transparent); box-shadow: var(--shadow); background: var(--paper); }
.bar { min-height: 44px; padding: 10px 15px; font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.bar .source, .bar a, .tiny, .small { font-size: 12px; }
.bar button { min-width: 28px; min-height: 28px; padding: 5px; border-radius: 6px; }
.bar button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mark { height: 21px; width: 21px; border-radius: 6px; font-size: 12px; }
.hero { padding: 25px; background: var(--paper); }
.heroMain { margin: 20px 0 16px; }
.heroPersonal8 .heroMain h1 { font-size: clamp(32px, 3.1vw, 46px); font-weight: 650; letter-spacing: -.048em; }
.heroPersonal8 .heroMain > p { max-width: 49ch; font-size: 16px; line-height: 1.6; }
.heroTop .profilemark { background: #e9edf3; color: #324255; border-color: #dce1e9; box-shadow: none; }
.hero .eyebrow { font-size: 12px; letter-spacing: .075em; }
.heroactions { gap: 8px; }
.heroactions button { min-height: 38px; font-size: 14px; border-radius: 8px; }
.timeline { gap: 12px; margin: 15px 0 20px; }
.timeline div { border-left-color: #7f99b2; padding: 0 0 0 12px; }
.timeline span, .timeline small { font-size: 12px; line-height: 1.5; }
.timeline b { font-size: 14px; font-weight: 600; }
.careerfoot b { font-size: 13px; }
.careerfoot small { font-size: 12px; line-height: 1.4; }
.careerfoot { padding-top: 15px; }
.provider { font-size: 12px; line-height: 1.45; padding: 10px 14px; gap: 12px; flex-wrap: wrap; }
#spotify, #miro, #podcasts { display: flex; flex-direction: column; }
#spotify .embedhost, #miro .embedhost, #podcasts .embedhost { display: flex; flex: 1; flex-direction: column; }
.providerpreview { flex: 1; min-height: 190px; padding: 23px; }
.providerpreview .providericon { width: 52px; height: 52px; }
.previewinfo h2 { margin: 7px 0 12px; font-size: 25px; line-height: 1.12; letter-spacing: -.035em; }
.loadbutton { min-height: 36px; font-size: 14px; }
.contactname { font-size: 29px; line-height: 1.08; letter-spacing: -.035em; }
#contact .pad { padding: 22px; }
#contact .pad p { font-size: 14px; line-height: 1.5; }
.message strong { font-size: 14px; line-height: 1.4; }
.message small, .message .row { font-size: 12px; }
.providerBar6 { min-height: 48px; gap: 10px; flex-wrap: wrap; }
.providerBar6 button, .providerExternal6 { min-height: 32px; font-size: 14px; }
.providerAddress6, .providerFoot6 { font-size: 12px; }
.providerStatus6 { font-size: 16px; }
.providerView6 { overflow: auto; }
.providerFrame6 { min-width: 280px; min-height: 352px; }
.osWindow[data-title="Apple Podcasts"] .providerFrame6 { min-width: 290px; min-height: 450px; }
.osWindow { border-radius: var(--window-radius); border: 1px solid #727c8b4a; box-shadow: 0 22px 65px #1f293d35, 0 3px 12px #1f293d1f; }
.osWindow .winbar { height: 42px; flex-basis: 42px; background: linear-gradient(#fafbfc, #f0f1f4); border-color: var(--line); }
.osWindow .wintitle { font-size: 13px; font-weight: 600; }
.osWindow:not(.front) .trafficBtn { background: #d5d8de; border-color: #c8ccd3; }
.osWindow .trafficBtn { position: relative; }
.osWindow .trafficBtn::after { content: ''; position: absolute; inset: -7px -3px; }
.appToolbar5 { background: color-mix(in srgb, var(--paper) 96%, var(--ink)); }
.appToolbar5 button { font-size: 14px; min-height: 34px; }
.profileApp8 .side5 { background: color-mix(in srgb, var(--ink) 4.5%, var(--paper)); }
.profileApp8 .index5 { background: color-mix(in srgb, var(--ink) 1.7%, var(--paper)); }
.osWindow[data-title="Notes"] .entry5.on { background: #ffdf6b; color: #302b18; }
.osWindow[data-title="Notes"] .entry5.on small, .osWindow[data-title="Notes"] .entry5.on span { color: #5e5125; }
.profileApp8 .readerContent5 { padding: 20px 28px 34px; }
.profileApp8 .readerContent5 h1 { font-size: clamp(28px, 3.5cqi, 38px); }
.dock { background: #ffffffa8; border: 1px solid #ffffffb8; backdrop-filter: blur(24px) saturate(1.2); box-shadow: 0 7px 20px #27324726, inset 0 1px 0 #fff8; }
.dark .dock { background: #292d38b8; border-color: #ffffff22; }
.dock button.dockicon { border: 1px solid #ffffff42; box-shadow: inset 0 1px 1px #ffffff63, 0 1px 3px #0e203d36; border-radius: 11px; }
.dock button:hover { transform: translateY(-6px) scale(1.08); }
.dock button:hover::after { font-size: 12px; padding: 6px 10px; }
.dock .dock-home { background: linear-gradient(#64b8e8, #2f84c8); }
.dock .dock-writing { background: linear-gradient(#62b9f1, #1984d9); }
.dock .dock-projects { background: linear-gradient(#6985a6, #476683); }
.dock .dock-notes { background: linear-gradient(#f7d363 0 25%, #fbfaf7 25%); color: #746645 !important; }
.footerbar { font-size: 12px; }

@container (max-width: 650px) {
  .providerAddress6 { flex-basis: 100%; }
  .providerBar6 { padding: 10px 12px; gap: 7px; }
}
@media (max-width: 760px) {
  header { height: 60px; gap: 8px; }
  .topnav { display: none; }
  .brand { font-size: 21px; }
  .chrome { font-size: 12px; padding: 7px 9px; }
  .grid { gap: 13px; }
  .tile { border-radius: 17px; }
  .hero { padding: 22px; }
  .heroPersonal8 .heroMain h1 { font-size: 31px; }
  .heroPersonal8 .heroMain > p { font-size: 16px; }
  .hero .eyebrow { font-size: 11px; }
  .timeline div { grid-template-columns: 1fr; }
  .timeline b { grid-row: 1; text-align: left; }
  .timeline small { grid-column: 1; }
  .timeline span { display: none; }
  .careerfoot { flex-direction: column; gap: 10px; }
  .bar .source { display: none; }
  .osWindow { border-radius: 11px; }
  .profileApp8 .readerContent5 { padding: 18px 18px 28px; }
  .providerFoot6 { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .dock button { transition: none; }
  .dock button:hover { transform: none; }
}

/* v0.9.1 readability floor and narrow-tile fit (design-spec: 12-13px secondary text, no clipped controls) */
.days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.days button, .days span { min-width: 0; }
.days button { padding: 0; }
.days span { padding-inline: 0; }
#calendar .calendar, #calendar .widgetbar { min-width: 0; }
@media (min-width: 761px) and (max-width: 1000px) { #calendar, #clock { grid-column: span 6; } }
@media (max-width: 480px) { #calendar, #clock { grid-column: 1 / -1; } }
#grid .presence, #grid .eyebrow, #grid .projectMark7, #grid .mailtab, #grid .mailtab span, #grid #messages .message .row b,
#grid .days span, #grid .calfoot, #grid #officeDay, #grid .notelist button, #grid .findermini aside span, #grid .findermini aside button,
#grid .findermini > div > button, #grid #resources a b, #grid #resources a small, #grid .bookcase a, #grid .drawtools button,
#grid .photoempty p, #grid .assistantFace small, .footerbar button { font-size: 12px; }
/* Project rows: in a narrow tile the sector label wraps to its own line instead of being clipped or split mid-word. */
.homeProjectList7 a { flex-wrap: wrap; row-gap: 2px; }
.homeProjectList7 a > span:last-child { white-space: nowrap; }
#grid .days button { font-size: 12px; }
#clock .widgetbar .openWidget45 { margin-left: auto; }
#search { white-space: nowrap; flex: 0 0 auto; }
@media (min-width: 761px) and (max-width: 840px) { .topnav button { padding-inline: 10px; } }
/* The Assistant tile is dark by design (desktop.css); the generic .tile background above must not turn it white under its white text. */
.tile.assistantTile { background: #171b28; color: #fff; }
/* v0.9.1 wide screens: the laptop and its content grow with the viewport instead of stopping at fixed caps
   (frame was 1420px, content 1240px). Never narrower than before; frame styling is unchanged.
   The cap divides by 1.06 because the laptop base overhangs the frame by 3% per side and must stay inside the viewport. */
body.framed #laptop { max-width: max(1420px, min(calc((100vw - 40px) / 1.06), 2000px)); }
header, .desktop { max-width: min(100%, 1800px); }
/* v0.9.1 contrast: white text on these badges and the muted Assistant label now meet WCAG 4.5:1 (tests/e2e/contrast.spec.js). */
.calendar .days button.today, .calendar .today { background: #cf3a32; color: #fff; }
.officeDate span { background: #cf3a32; }
.tile.assistantTile .bar .source { color: #b8bfd0; }
/* Selected public podcast shows switcher (Apple Podcasts window). */
.providerShows6 { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.providerShows6 button { min-height: 32px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; background: var(--paper); color: var(--ink); }
.providerShows6 button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.providerShows6 button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* v0.9.1 app-window contrast (tests/e2e/contrast.spec.js): selected items used the bright accent on a tint of itself
   (about 3.3:1). --accent-ink is the readable text colour for that surface; the Notes yellow selection is unchanged. */
:root { --accent-ink: #0f4fa8; }
.dark { --accent-ink: #8dbcff; }
.appsidebar button.on, .side5 button.on, .personalList8 button.on, .projectSide7 button.on,
.personalList8 button.on b { color: var(--accent-ink); }
.personalList8 button.on small { color: #3c4048; }
.dark .personalList8 button.on small { color: #c4c8d2; }
.communityCover8 > small { color: #fff; }
.fileIcon5 { color: #08233f; }
.providerShows6 button[aria-pressed="true"] { background: #176ad1; border-color: #176ad1; color: #fff; }
.tabs5 button.on { color: var(--accent-ink); }
.communityCover8 .personalRole8, .personalPane8 .communityCover8 p { color: #fff; }
@container (min-width: 650px) {
}
/* v0.9.1 target size (WCAG 2.2 SC 2.5.8): standalone controls are at least 24x24 CSS px. */
.systembar button { min-width: 24px; min-height: 24px; }
.calhead button { min-width: 28px; min-height: 28px; }
#grid .tile button { min-height: 24px; }
/* v0.9.1 reflow (WCAG 1.4.10): at 320px the desktop is one column and the header controls fit. */
@media (max-width: 360px) {
  #grid { grid-template-columns: minmax(0, 1fr); }
  #grid > .tile { grid-column: 1 / -1; }
  header { gap: 6px; padding-inline: 8px; }
  #search { font-size: 0; min-width: 34px; }
  #search::before { content: '⌕'; font-size: 16px; }
}
@media (max-width: 360px) {
  .mailgrid { grid-template-columns: 84px minmax(0, 1fr); }
  .mailgrid > * { min-width: 0; }
}
/* Text fields show the same keyboard focus indicator as buttons and links (WCAG 2.4.7). */
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#grid input, #grid select { min-height: 24px; }
/* v0.9.1 window chrome: macOS-style 12px controls with 8px gaps; SVG glyphs centred by the grid, shown while the pointer is
   over the group or a control has keyboard focus. Glyph colours are darker shades of each button (approximate, not sampled). */
.osWindow .winbar { gap: 8px; }
.osWindow .trafficBtn { box-sizing: border-box; width: 12px; height: 12px; flex: 0 0 12px; padding: 0; border: 0; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); display: grid; place-items: center; }
.osWindow .trafficBtn svg { display: block; width: 12px; height: 12px; opacity: 0; transition: opacity .1s; }
.osWindow .winbar:hover .trafficBtn svg, .osWindow .trafficBtn:focus-visible svg { opacity: 1; }
.osWindow .winClose { color: rgba(77, 0, 0, .72); }
.osWindow .winMin { color: rgba(92, 59, 0, .72); }
.osWindow .winMax { color: rgba(10, 77, 18, .72); }
.osWindow:not(.front) .trafficBtn { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
@media (prefers-reduced-motion: reduce) { .osWindow .trafficBtn svg { transition: none; } }
/* Tile header icon buttons: icon centred in a square target; its edge mirrors the header's left inset. */
.bar > button:has(> svg:only-child), .bar button.openWidget45, .bar button[data-expand] { display: inline-grid; place-items: center; width: 28px; height: 28px; min-width: 28px; min-height: 28px; padding: 0; margin: 0 -7px 0 4px; }
.bar > button:has(> svg:only-child) svg, .bar button.openWidget45 svg, .bar button[data-expand] svg { display: block; }
/* Contacts tile quick actions (Email, Copy email, Save contact). */
.contactQuick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.quickAction { display: grid; justify-items: center; gap: 4px; padding: 9px 4px 7px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--paper) 80%, transparent); color: var(--accent-ink); font-size: 12px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; min-height: 52px; }
.quickAction:hover { background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.quickAction:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contactQuickStatus { min-height: 1.3em; margin: 8px 0 0; color: var(--muted); }
/* World clock: analog faces in the style of Apple's Clock app (day: light face, night: dark face). */
.worldClock { padding: 18px 12px 16px; }
.clockFaces { display: grid; grid-template-columns: repeat(var(--cities, 3), minmax(0, 1fr)); gap: 8px; }
.clockCity { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; text-align: center; }
.clockFace { width: min(100%, 84px); aspect-ratio: 1; margin-bottom: 4px; }
.clockFace .faceBg { fill: #fff; stroke: #d6d9df; stroke-width: 1.2; }
.clockFace .tick { stroke: #1c1c1e; stroke-width: 1.2; stroke-linecap: round; }
.clockFace .tick.major { stroke-width: 2.4; }
.clockFace .hand { stroke: #1c1c1e; stroke-linecap: round; }
.clockFace .hourHand { stroke-width: 3.8; }
.clockFace .minuteHand { stroke-width: 2.6; }
.clockFace .secondHand { stroke: #ff9f0a; stroke-width: 1.2; }
.clockFace .hub { fill: #ff9f0a; }
.clockFace.night .faceBg { fill: #1c1c1e; stroke: #3a3a3c; }
.clockFace.night .tick, .clockFace.night .hourHand, .clockFace.night .minuteHand { stroke: #f2f2f7; }
.cityName { font-size: 13px; line-height: 1.2; }
.cityWhen { font-size: 12px; line-height: 1.25; color: var(--muted); }
.cityTime { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
#clock #clockDate { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.expandedWidget .clockFace { width: min(100%, 140px); }

/* Freeform board: stickies, text boxes and shapes over the drawing canvas. */
.ffBoard { position: relative; aspect-ratio: 2 / 1; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ffBoard canvas { display: block; width: 100%; height: 100%; max-height: none; min-height: 0; background: transparent; touch-action: none; }
.ffLayer { position: absolute; inset: 0; pointer-events: none; }
.ffBoard.selecting .ffItem { pointer-events: auto; }
.ffItem { position: absolute; box-sizing: border-box; touch-action: none; }
.ffItem:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ffItem.selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.ff-sticky { display: flex; flex-direction: column; background: var(--ff-color, #fff3a8); color: #1d2027; border-radius: 4px; box-shadow: 0 2px 6px #0003; }
.ffGrip { flex: 0 0 14px; height: 14px; cursor: grab; background: rgba(0, 0, 0, .09); }
.ffGrip:active { cursor: grabbing; }
.ffTextarea { flex: 1; width: 100%; min-height: 0; padding: 4px 6px; border: 0; background: transparent; color: inherit; font: 13px/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; resize: none; overflow: auto; outline: none; }
.ff-text { display: flex; flex-direction: column; }
.ff-text .ffGrip { flex-basis: 8px; height: 8px; background: transparent; border-top: 2px dashed var(--line); }
.ff-text .ffTextarea { font-size: 18px; font-weight: 650; line-height: 1.2; }
.ff-shape { background: var(--ff-color, #cfe8ff); border-radius: 6px; }
.ff-shape.ff-ellipse { border-radius: 50%; }
.ffShapeBody { position: absolute; inset: 0; height: auto; background: transparent; }
.ffResize { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; cursor: nwse-resize; display: none; }
.ffItem.selected .ffResize { display: block; }
.ffSep { width: 1px; height: 20px; background: var(--line); }
.ffStatus { min-height: 1.3em; margin: 8px 0 0; color: var(--muted); }
.drawtools button:disabled { opacity: .5; cursor: not-allowed; }
.expandedWidget .ffBoard { max-height: 65vh; }

/* Message Shawn dialog and the visitor wall */
.msgDialog { position: fixed; inset: 0; margin: auto; width: min(520px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 70px #00000042; overflow: auto; }
.msgDialog:not([open]) { display: none; }
.msgDialog::backdrop { background: #1018209c; backdrop-filter: blur(6px); }
.msgForm { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
.msgHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.msgHeader h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.msgHeader h2:focus, .msgDoneTitle:focus, .msgClosedTitle:focus { outline: none; }
.msgClose { width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.25rem; line-height: 1; }
.msgIntro, .msgContext, .msgPrivacy, .msgCount { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.msgContext { color: var(--ink); font-weight: 600; }
.msgField { display: flex; flex-direction: column; gap: 5px; }
.msgField label { font-size: .875rem; font-weight: 600; }
.msgField textarea, .msgField input { width: 100%; box-sizing: border-box; padding: 9px 11px; border: 1px solid #8a8f99; border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; }
.msgField textarea { resize: vertical; min-height: 120px; }
.msgField [aria-invalid="true"] { border-color: #b63a3a; box-shadow: 0 0 0 1px #b63a3a; }
.msgPersonal { display: grid; gap: 12px; }
.msgPersonal[hidden], .msgContext[hidden] { display: none; }
.msgError { margin: 0; color: #b63a3a; font-size: .875rem; }
.msgError:empty { display: none; }
.dark .msgError, .dark .msgStatus.error { color: #ffacac; }
.dark .msgField textarea, .dark .msgField input { border-color: #8e95a3; }
.msgTrap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.msgStatus { min-height: 0; margin: 0; font-size: .875rem; color: var(--muted); }
.msgStatus:empty { display: none; }
.msgStatus.error { color: #b63a3a; font-weight: 600; }
.msgFallback { margin: 0; font-size: .875rem; }
.msgFallback:empty { display: none; }
.msgMailLink { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.msgFooter { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.msgFooter button, .msgDone button { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.msgFooter .primary, .msgDone .primary { border-color: #176ad1; background: #176ad1; color: #fff; }
.msgFooter button:disabled { opacity: .6; cursor: progress; }
.msgDone { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 0 2px; }
.msgDone p { margin: 0; color: var(--muted); }
.msgDone .msgDoneTitle { color: var(--ink); font-size: 1.0625rem; font-weight: 700; }
.msgClosed .msgActions { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 4px; }
.msgClosed .msgMailLink { display: inline-flex; align-items: center; min-height: 38px; }
.wallSection8 { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.wallSection8 h2 { margin: 0 0 4px; font-size: 1.125rem; letter-spacing: -.02em; }
.wallSection8 > p { margin: 0 0 10px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.wallList { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.wallNote { margin: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, #ffe27a 28%, var(--paper)); color: var(--ink); overflow-wrap: anywhere; }
.wallNote p { margin: 0 0 6px; font-size: .9375rem; line-height: 1.4; white-space: pre-wrap; }
.wallNote small { color: var(--muted); font-size: .8125rem; }
.wallStatus { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }
.wallSection8 .wallLeave { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .msgDialog::backdrop { backdrop-filter: none; } }
.noteSend { align-self: flex-start; min-height: 26px; margin-top: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--accent-ink); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.wallLeave { min-height: 38px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.msgDialog .msgHeader { position: static; display: flex; width: 100%; max-width: none; height: auto; min-height: 0; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; }
.msgDialog .msgHeader h2 { flex: 1; min-width: 0; text-align: left; }
.msgDialog .msgFooter { position: static; width: 100%; max-width: none; margin: 0; padding: 0; background: transparent; border: 0; }
.dark .wallNote { background: color-mix(in srgb, #ffe27a 10%, var(--paper)); color: #eceef3; }
.dark .wallNote small { color: #c6ccd6; }

/* Calendar: a day header like the Calendar widget, the chosen date large with its weekday above */
.calToday { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "weekday weekday" "day year"; align-items: baseline; column-gap: 10px; margin: 0 0 8px; }
.calWeekday { grid-area: weekday; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.calWeekday.isToday { color: #b3261e; }
.dark .calWeekday.isToday { color: #ff8a80; }
.calBigDate { grid-area: day; font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.calYear { grid-area: year; color: var(--muted); font-size: .875rem; }
