/* Interactive desktop pieces (1 December 2026): project list, podcast covers, bookshelf, sticky notes, mailbox,
   assistant orb and the owner's pictures. Loaded after fidelity.css. */

/* ---- Projects tile: every project, scrolling inside the tile with a scrollbar that stays visible ---- */
#projects { display: flex; flex-direction: column; }
.homeProjectScroll7 { container-type: inline-size; flex: 1 1 0; min-height: 236px; overflow-y: scroll; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 34%, transparent) color-mix(in srgb, var(--ink) 7%, transparent); }
.homeProjectScroll7::-webkit-scrollbar { width: 10px; }
.homeProjectScroll7::-webkit-scrollbar-track { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.homeProjectScroll7::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 34%, transparent); border: 2px solid transparent; border-radius: 8px; background-clip: padding-box; }
ul.homeProjectList7 { margin: 0; padding: 0; list-style: none; }
.homeProjectList7 li + li a { border-top: 1px solid var(--line); }
.homeProjectList7 a { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-height: 54px; padding: 8px 10px 8px 13px; border-top: 0; text-decoration: none; color: inherit; }
.homeProjectList7 .projectMark7 { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; font-size: .75rem; }
.homeProjectText7 { display: flex; flex-direction: column; min-width: 0; }
.homeProjectText7 b { font-size: .875rem; line-height: 1.35; }
.homeProjectList7 .homeProjectKind7 { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.35; white-space: normal; }
.homeProjectGo7 { margin-left: auto; color: var(--muted); font-size: 1.125rem; font-style: normal; }
.homeProjectList7 a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.homeProjectPosition7 { margin: 0; padding: 7px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }

/* ---- Podcasts tile: a real cover for each selected show ---- */
#podcasts .podcastshost .providerpreview { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.podShelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.podShelf li { min-width: 0; }
.podCover { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.podArt { position: relative; display: grid; place-items: center; width: 100%; max-width: 128px; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: linear-gradient(140deg, #5b3f8c, #2a2147); color: #fff; font-size: 1.25rem; font-weight: 700; box-shadow: 0 6px 18px #0000002e; transition: transform .18s ease, box-shadow .18s ease; }
.podArt::before { content: attr(data-mark); }
.podArt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.podCover:hover .podArt, .podCover:focus-visible .podArt { transform: translateY(-3px); box-shadow: 0 10px 24px #00000040; }
.podName { max-width: 128px; font-size: .75rem; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
#podcasts .podcastshost .previewinfo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; text-align: left; }
#podcasts .podcastshost .previewinfo h2 { flex: 1 1 100%; margin: 0; font-size: .9375rem; }
#podcasts .podcastshost .previewinfo .tiny { flex: 1; }

/* ---- Shared dragging ---- */
.dragging { z-index: 40; cursor: grabbing !important; }

/* ---- Books: covers on a table you can rearrange ---- */
/* isolation: moving a book or a note raises its z-index without limit; the board keeps that to itself, under open windows. */
.bookTable { position: relative; isolation: isolate; margin: 12px 12px 0; height: 214px; border-radius: 12px; }
/* The shelf is its own strip under the covers, so titles sit on the paper and keep their contrast. */
.bookTable::before { content: ""; position: absolute; left: 0; right: 0; top: 133px; height: 10px; border-radius: 2px; background: linear-gradient(180deg, #b9895a 0 5px, #8f5f35 5px 10px); pointer-events: none; }
.bookItem { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 18px; width: 92px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: grab; touch-action: none; user-select: none; }
.bookFace::before { content: attr(data-title); }
.bookFace { position: relative; display: grid; place-items: center; width: 84px; height: 126px; overflow: hidden; padding: 6px; border-radius: 3px 6px 6px 3px; background: linear-gradient(135deg, #3d4a63, #232b3b); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.25; text-align: center; box-shadow: 0 8px 16px #00000040, inset 3px 0 0 #ffffff2e; }
.bookFace img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.bookLabel { display: -webkit-box; max-width: 92px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .75rem; line-height: 1.25; text-align: center; }
.bookItem:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.bookDetail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 44px; margin: 8px 12px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .8125rem; }
.bookDetail b { font-size: .875rem; }
.bookDetail a { margin-left: auto; color: var(--accent-ink); font-weight: 600; }
.bookPick { padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; font-weight: 650; }

/* ---- Sticky notes ---- */
.stickyBoard { position: relative; isolation: isolate; margin: 10px 12px 0; min-height: 320px; border: 1px solid var(--line); border-radius: 12px; background-color: color-mix(in srgb, var(--paper) 92%, #8a8f99); background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1px); background-size: 18px 18px; overflow: hidden; }
.sticky { position: absolute; box-sizing: border-box; border-radius: 3px; color: #23252b; box-shadow: 0 1px 1px #0000001f, 0 8px 16px #00000024; }
.sticky[data-color="yellow"] { background: #ffe98a; }
.sticky[data-color="pink"] { background: #ffc4d6; }
.sticky[data-color="green"] { background: #c6efb4; }
.sticky[data-color="blue"] { background: #bfe1ff; }
.sticky[data-color="orange"] { background: #ffd3a3; }
.sticky[data-color="violet"] { background: #ddd0ff; }
.stickyMenu { display: flex; flex-direction: column; justify-content: space-between; width: 112px; height: 84px; padding: 9px 10px; border: 0; font: inherit; text-align: left; cursor: grab; touch-action: none; user-select: none; }
.stickyMenu b { font-size: .875rem; line-height: 1.2; }
.stickyMenu span { font-size: .75rem; line-height: 1.25; color: #45474f; }
.stickyNote { display: flex; flex-direction: column; width: 190px; height: 188px; padding: 0 9px 8px; }
.stickyGrip { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 28px; margin: 0 -9px; padding: 0 4px 0 9px; border-bottom: 1px solid #0000001a; }
.stickyHandle { flex: 1; align-self: stretch; min-height: 26px; padding: 0; border: 0; background: repeating-linear-gradient(90deg, #00000024 0 2px, transparent 2px 5px) center / 36px 8px no-repeat; cursor: grab; touch-action: none; }
.stickyDelete { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #23252b; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.stickyDelete:hover { background: #00000014; }
.stickyNote input, .stickyNote textarea { width: 100%; border: 0; background: transparent; color: #23252b; font: inherit; }
.stickyNote input { min-height: 28px; padding: 3px 0; font-size: .875rem; font-weight: 700; }
.stickyNote textarea { flex: 1; min-height: 0; padding: 0; resize: none; font-size: .8125rem; line-height: 1.4; }
.stickyNote input::placeholder, .stickyNote textarea::placeholder { color: #55575f; }
.stickyFoot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.stickyFoot small { color: #45474f; font-size: .75rem; }
.stickySend { min-height: 26px; padding: 2px 8px; border: 1px solid #0000002e; border-radius: 6px; background: #ffffff8c; color: #14213d; font-size: .75rem; font-weight: 650; cursor: pointer; }
.sticky :focus-visible, .stickyMenu:focus-visible { outline: 2px solid #0f4fa8; outline-offset: 1px; }
.stickyStatus { margin: 8px 12px 10px; color: var(--muted); font-size: .75rem; }
.expandedWidget .stickyBoard { min-height: min(560px, 62vh); }

/* ---- Mail: unread is bold with a dot (not colour alone); opened items go plain ---- */
.mailBadge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #d70015; color: #fff; font-size: .75rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 1px 3px #0000004d; pointer-events: none; }
.mailBadge[hidden] { display: none; }
.dock .dockicon { position: relative; }
#writing .widgetbar .mailBadge { position: static; order: 1; margin-left: 4px; box-shadow: none; }
#writing .widgetbar > [data-open] { order: 3; }
#writing .widgetbar .sp { order: 2; }
#writing .mailgrid aside .mailtab { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.mailtabCount { color: var(--muted); font-size: .75rem; font-weight: 650; }
#writing .mailin { display: flex; flex-direction: column; min-width: 0; }
.mailHead { display: flex; align-items: center; justify-content: space-between; }
#writing .mailNote { margin: 2px 0 6px; }
#writing .mailList { flex: 1 1 0; min-height: 240px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.mailRow { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 9px 8px 9px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mailRowTop { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.mailDot { align-self: center; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.mailRow.unread .mailDot { background: #0a6cff; }
.mailSender { flex: 1; min-width: 0; overflow: hidden; font-size: .8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mailWhen { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.mailSubject { padding-left: 14px; font-size: .8125rem; font-weight: 400; line-height: 1.35; }
.mailPreview { display: -webkit-box; overflow: hidden; padding-left: 14px; color: var(--muted); font-size: .75rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mailRow.unread .mailSender, .mailRow.unread .mailSubject { font-weight: 750; }
.mailRow.unread { background: color-mix(in srgb, #0a6cff 7%, transparent); }
.mailRow:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.mailRow.selected { background: color-mix(in srgb, #0a6cff 16%, transparent); }
.mailRow:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mailSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mailEmpty { padding: 18px 12px; color: var(--muted); font-size: .875rem; }
div.mailEmpty > p { margin: 0; }
.mailEmptyActions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mailEmptyActions:empty { display: none; }
.mailEmptyActions .mailTool { display: inline-flex; align-items: center; text-decoration: none; }
@media (pointer: coarse), (max-width: 760px) { .mailEmptyActions .mailTool { min-height: 40px; } }
.mailApp { display: flex; flex-direction: column; }
.mailShell { flex: 1; display: grid; grid-template-columns: 170px minmax(220px, 300px) minmax(0, 1fr); min-height: 0; }
.mailSide { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; overflow-y: auto; border-right: 1px solid var(--line); }
.mailFolder { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; padding: 6px 9px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; font-size: .8125rem; text-align: left; cursor: pointer; }
.mailFolder.on { background: color-mix(in srgb, var(--accent) 15%, transparent); font-weight: 650; }
.mailColumn { min-height: 0; overflow-y: auto; border-right: 1px solid var(--line); }
.mailColumnHead { padding: 10px 12px 4px; }
.mailColumnHead h2 { margin: 0; font-size: 1rem; }
.mailColumnHead p { margin: 3px 0 4px; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.mailColumn .mailRow { padding-left: 10px; padding-right: 12px; }
.mailReader { min-width: 0; min-height: 0; padding: 22px 26px; overflow-y: auto; }
.mailReader h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; }
.mailReader h1:focus { outline: none; }
.mailReader p, .mailReader li { font-size: .9375rem; line-height: 1.65; }
.mailMeta { margin: 0 0 10px; color: var(--muted); }
.mailReaderTools { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mailTool { min-height: 30px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8125rem; cursor: pointer; }
.mailTool:disabled, .mailTool[aria-disabled="true"] { opacity: .5; cursor: default; }
.mailOpen { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border-radius: 8px; background: #176ad1; color: #fff; font-weight: 650; text-decoration: none; }
.mailDisclaimer { margin-top: 16px; color: var(--muted); font-size: .8125rem !important; }
.mailBack { display: none; }
@container (max-width: 720px) {
  .mailShell { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .mailSide { flex-direction: row; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .mailSide .sideCaption5 { display: none; }
  .mailFolder { flex: 0 0 auto; white-space: nowrap; }
  .mailColumn { border-right: 0; }
  .mailReader { display: none; padding: 16px; }
  .mailShell.reading .mailColumn { display: none; }
  .mailShell.reading .mailReader { display: block; }
  .mailBack { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: 12px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8125rem; }
}
#writing { display: flex; flex-direction: column; }
#writing .mailgrid { flex: 1 1 auto; min-height: 0; height: auto; }
#writing .mailgrid aside { height: auto; }

/* ---- Mail Trash: bin icon, Empty Trash, the 6-second Undo bar, the expiry line and "Updated … ago" ---- */
.mailtabName { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mailIcon { flex: 0 0 auto; }
.mailTrashTools { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.mailTrashTools[hidden] { display: none; }
.mailEmptyTrash.confirm { border-color: currentColor; color: color-mix(in srgb, #d70015 70%, var(--ink)); font-weight: 650; }
.mailUndoSlot:empty { display: none; }
.mailUndo { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 7%, var(--paper)); font-size: .8125rem; }
.mailExpiry { padding-left: 14px; color: var(--muted); font-size: .75rem; }
.mailReader .mailTrashNote { margin: 0 0 10px; color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.mailUpdated { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.mailUpdated:empty { display: none; }

/* ---- Owner pictures: photo beside the headline, contact photo and credential badges ---- */
.ownerPicture { position: relative; display: grid; place-items: center; overflow: hidden; }
.ownerPicture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ownerPicture.hasPicture > .ownerMark { visibility: hidden; }
/* The intro tile has the same header as the other tiles, then the words and a large photo, centred against each other. */
#grid #home.heroPersonal8 { display: flex; flex-direction: column; justify-content: flex-start; padding: 0; overflow: hidden; container-type: inline-size; }
#home .presence { margin-right: 4px; }
.heroBody { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 24px; align-items: center; flex: 1; padding: 18px 24px 24px; }
.heroBody .heroMain { margin: 0 0 16px; }
.heroBody .heroBottom { flex-wrap: wrap; row-gap: 6px; }
.heroPortrait8 { justify-self: center; width: 100%; max-width: 340px; }
@container (max-width: 560px) {
  .heroBody { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 18px 20px; }
  .heroPortrait8 { order: -1; max-width: 280px; }
}
.heroPhoto8 { width: 100%; aspect-ratio: 1; border-radius: 22px; background: linear-gradient(150deg, #dfe6f0, #b9c6da); color: #26344d; font-size: 2.6rem; font-weight: 750; letter-spacing: -.03em; box-shadow: 0 10px 28px #1a2a4626; }
.dark .heroPhoto8 { background: linear-gradient(150deg, #313a4b, #1d2431); color: #dbe4f5; }
.contactPhoto8 { width: 64px; height: 64px; margin: 0 0 10px; border-radius: 50%; background: linear-gradient(150deg, #dfe6f0, #b9c6da); color: #26344d; font-size: 1.125rem; font-weight: 750; }
.contactPane8 > .contactMark8 { display: grid; }
.careerfoot .credential8, .credentialRow8 .credential8 { display: flex; align-items: center; gap: 9px; min-width: 0; }
#grid .careerfoot { flex-wrap: wrap; row-gap: 10px; }
.credentialText8 { display: flex; flex-direction: column; min-width: 0; }
.credentialMark8 { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 9px; background: #e8ebf1; color: #26344d; font-size: .75rem; font-weight: 800; }
.credentialMark8.hasPicture { background: transparent; border-radius: 0; }
.credentialMark8 > img { object-fit: contain; }
.dark .credentialMark8 { background: #333b4a; color: #e2e8f6; }
.dark .credentialMark8.hasPicture { background: #ffffff; border-radius: 8px; }
.credentialRow8 { display: flex; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0; }
.careerfoot .credential8 > .credentialMark8, .credentialRow8 .credential8 > .credentialMark8 { flex: 0 0 40px; width: 40px; height: 40px; }
.careerfoot .credential8 { flex: 1 1 150px; }

/* ---- Assistant orb: layered colour waves; the motion says what it is doing, and so does the text beside it ---- */
.siri { position: relative; display: inline-block; overflow: hidden; flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 50% 55%, #2b2f6b, #080a1a 75%); box-shadow: 0 0 0 1px #ffffff26 inset, 0 6px 22px #4b3fd355; isolation: isolate; }
.siriWave { position: absolute; inset: 8%; border-radius: 42% 58% 55% 45% / 48% 44% 56% 52%; mix-blend-mode: screen; filter: blur(5px); opacity: .9; animation: siriTurn var(--siri-speed, 9s) linear infinite; }
.siriWave.w1 { background: radial-gradient(circle at 28% 36%, #ff4fa3 0 24%, transparent 62%); }
.siriWave.w2 { background: radial-gradient(circle at 72% 38%, #3fd8ff 0 24%, transparent 62%); animation-direction: reverse; animation-duration: calc(var(--siri-speed, 9s) * .8); }
.siriWave.w3 { background: radial-gradient(circle at 52% 74%, #8d5bff 0 26%, transparent 64%); animation-duration: calc(var(--siri-speed, 9s) * 1.35); }
.siriWave.w4 { inset: 26%; background: radial-gradient(circle, #ffffffd9 0 12%, #9fe9ff66 34%, transparent 68%); filter: blur(3px); }
.siriLarge { width: 112px; height: 112px; }
.siriTile { width: 46px; height: 46px; }
.siriBadge { width: 30px; height: 30px; }
.siriTile .siriWave, .siriBadge .siriWave { filter: blur(2px); }
.siri[data-state="listening"] { --siri-speed: 5s; box-shadow: 0 0 0 3px #3fd8ff99, 0 6px 22px #3fd8ff66; }
.siri[data-state="listening"] .w4 { animation: siriBreathe 1.8s ease-in-out infinite; }
.siri[data-state="thinking"] { --siri-speed: 1.5s; box-shadow: 0 0 0 3px #8d5bff99, 0 6px 26px #8d5bff80; }
.siri[data-state="speaking"] { --siri-speed: 2.4s; animation: siriTalk .62s ease-in-out infinite alternate; box-shadow: 0 0 0 3px #ff4fa399, 0 6px 30px #ff4fa380; }
.siri[data-state="speaking"] .w4 { animation: siriBreathe .46s ease-in-out infinite alternate; }
.assistantFace:hover .siri { --siri-speed: 3s; }
@keyframes siriTurn { to { transform: rotate(360deg); } }
@keyframes siriBreathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1.22); } }
@keyframes siriTalk { from { transform: scale(.95); } to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .siri, .siri .siriWave { animation: none !important; } }
.guideStage8 { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 4px; }
.guideState8 { margin: 0; color: var(--muted); font-size: .8125rem; }
.guide8.hasAnswers8 .guideStage8 { flex-direction: row; justify-content: center; padding: 8px 0; }
.guide8.hasAnswers8 .guideStage8 .siriLarge { width: 44px; height: 44px; }
.guide8.hasAnswers8 .guideStage8 .siriWave { filter: blur(2px); }
.guideStream8 { white-space: pre-wrap; overflow-wrap: anywhere; }
.guideNote8 { color: var(--muted); font-size: .8125rem !important; }
.guideOptions8 { display: flex; justify-content: center; padding: 0 12px 8px; }
.guideOptions8:empty { display: none; }
.guideAloud8 { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; font-size: .8125rem; cursor: pointer; }
.guideAloud8 input { width: 18px; height: 18px; }
/* The whole window body scrolls when it is short, and the question box stays at its bottom edge, so the box and the Ask
   button can always be used (responsive audit R01). The scroll margin keeps a focused control clear of that box.
   It is set on those controls, not as scroll padding on the body: padding would count the box itself as hidden, and
   focusing it would jump the whole window to its end. */
.guide8 { overflow-y: auto; overscroll-behavior: contain; }
.guide8 > .guideSuggestions8 button, .guide8 > .guideLog8 :is(a, button) { scroll-margin-bottom: 76px; }
.guide8 > .appToolbar5, .guide8 > .guideStage8, .guide8 > .guideIntro8, .guide8 > .guideSuggestions8, .guide8 > .guideOptions8 { flex: 0 0 auto; }
.guide8 > .guideForm8 { position: sticky; bottom: 0; z-index: 2; }
.guide8.hasAnswers8 > .guideLog8 { flex: 1 0 160px; min-height: 160px; }
@media (max-height: 860px) {
  .guide8:not(.hasAnswers8) > .guideStage8 { flex-direction: row; justify-content: center; padding: 8px 0 0; }
  .guide8:not(.hasAnswers8) > .guideStage8 .siriLarge { width: 56px; height: 56px; }
}
@container (max-width: 205px) { .homeProjectList7 a { gap: 7px; padding-left: 9px; padding-right: 6px; } .homeProjectList7 .projectMark7 { width: 26px; height: 26px; flex-basis: 26px; } .homeProjectGo7 { display: none; } .homeProjectKind7 { overflow-wrap: normal; } }
#writing .mailtab.selected .mailtabCount, .mailFolder.on .mailtabCount { color: inherit; }
.mailRow.selected .mailWhen, .mailRow.selected .mailPreview { color: var(--ink); }

/* Orb colour: separate the waves so pink, cyan and violet stay distinct instead of adding up to white. */
.siri .siriWave { inset: 4%; filter: blur(4px); opacity: .95; }
.siri .siriWave.w1 { background: radial-gradient(circle at 22% 34%, #ff2d8b 0 20%, transparent 50%); }
.siri .siriWave.w2 { background: radial-gradient(circle at 80% 30%, #18d5ff 0 20%, transparent 50%); }
.siri .siriWave.w3 { background: radial-gradient(circle at 52% 82%, #7a3cff 0 22%, transparent 54%); }
.siri .siriWave.w4 { inset: 30%; opacity: .6; background: radial-gradient(circle, #ffffffcc 0 8%, #8fe6ff40 40%, transparent 70%); }
.siriTile .siriWave, .siriBadge .siriWave, .guide8.hasAnswers8 .guideStage8 .siri .siriWave { filter: blur(1.5px); }
.stickyFoot { flex-wrap: wrap; row-gap: 2px; justify-content: flex-end; }
.stickyFoot small { margin-right: auto; }
.stickySend { white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.stickyNote { height: 196px; }
.siri .siriWave { mix-blend-mode: normal; opacity: .88; }
.siri .siriWave.w4 { opacity: .55; }
#grid .careerfoot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 16px; }
.careerfoot .credential8 { flex: 0 1 auto; align-items: center; }

/* On touch screens a vertical swipe must still scroll the page: start a drag sideways to move a menu sticky.
   Notes keep their top bar as a drag handle in every direction. */
@media (pointer: coarse) {
  .stickyMenu { touch-action: pan-y; }
  /* A swipe on the shelf slides it, and a vertical swipe still scrolls the page. */
  .bookItem, .bookRail .bookTable { touch-action: pan-x pan-y; }
}

/* ---- Placeholder art and the map pin ---- */
.ownerPicture.isPlaceholder.hasPicture { background: #1b1240; }
.mapPin6 { position: relative; display: grid; justify-items: center; width: 46px; height: 56px; filter: drop-shadow(0 4px 6px #00000052); }
.mapPin6::after { content: ""; position: absolute; top: 40px; left: 50%; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 0 0 3px 0; z-index: 0; }
.mapAvatar6 { position: relative; z-index: 1; width: 46px; height: 46px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; background: #dfe6f0; color: #26344d; font-size: .75rem; font-weight: 800; }
.mapAvatar6 > img { border-radius: 50%; }
.leaflet-marker-icon.mapMarker6 { background: none; border: 0; }
#map .providerpreview > .mapPin6 { flex: 0 0 46px; }

/* ---- Dock magnification ---- */
.dock button.dockicon, .dock button.v06-dock-apps { transition: transform .09s ease-out, margin .09s ease-out; transform-origin: 50% 100%; }
.dock.magnifying button { transform: scale(var(--mag, 1)); margin-inline: calc((var(--mag, 1) - 1) * 20px); z-index: 1; }
.dock.magnifying button:hover { transform: scale(var(--mag, 1)); }
.dock.magnifying button:hover::after { bottom: calc(100% + 8px); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .dock:not(.magnifying) button:focus-visible { transform: translateY(-4px) scale(1.18); }
}

/* ---- Owner details: profile links, booking and open times ---- */
.profileLink { text-decoration: none; }
.contactQuick .profileLink { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.openTimes { margin: 8px 12px 12px; }
.openTimesTitle { display: block; margin-bottom: 6px; font-size: .8125rem; }
.openTimes ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.openTime { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; align-items: center; width: 100%; min-height: 40px; padding: 6px 10px; border: 0; border-left: 3px solid #1f8a4c; border-radius: 8px; background: color-mix(in srgb, #1f8a4c 12%, transparent); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.openTimeWhen { font-size: .8125rem; font-weight: 700; }
.openTime small { grid-column: 1; color: var(--ink); font-size: .75rem; }
.openTimeAsk { grid-column: 2; grid-row: 1 / span 2; font-size: .75rem; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.openTimesNote { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; }
.calendar .days button.hasOpen { position: relative; }
.calendar .days button.hasOpen::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #1f8a4c; transform: translateX(-50%); }
.dark .calendar .days button.hasOpen::after { background: #4cd98a; }
.calendar .days button.today.hasOpen::after { background: #fff; }
#calendar .openTimes { margin: 8px 0 0; }
.bookLink { display: inline-flex; align-items: center; min-height: 28px; color: var(--accent-ink); font-weight: 650; text-underline-offset: 2px; }

/* ---- Featured project ---- */
.featuredTile { display: flex; flex-direction: column; overflow: hidden; container-type: inline-size; }
.featuredTile[hidden], .visitorsTile[hidden] { display: none; }

.featuredPicture { display: block; width: 100%; height: 220px; padding: 0; border: 0; background: linear-gradient(140deg, #31463a, #1d2a23); cursor: pointer; overflow: hidden; }
.featuredPicture img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.featuredPicture:hover img { transform: scale(1.03); }
.featuredPicture:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.featuredInfo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding: 14px 16px 10px; }
.featuredText { flex: 1 1 220px; min-width: 0; }
.featuredKicker { display: block; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.featuredText h2 { margin: 3px 0 4px; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.featuredText p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.featuredText .featuredRole { margin-top: 5px; color: var(--ink); font-size: .8125rem; font-weight: 600; }
.featuredOpen { min-height: 36px; }
@media (prefers-reduced-motion: reduce) { .featuredPicture img { transition: none; } .featuredPicture:hover img { transform: none; } }

/* ---- Visitor count: a small card at the bottom left ---- */
.visitorsTile { display: flex; flex-direction: column; }
.visitorBody { display: flex; flex-direction: column; justify-content: center; gap: 16px; flex: 1; padding: 16px; }
.statFigures { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; margin: 0; }
.statFigures div { display: flex; flex-direction: column-reverse; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.statFigures dt { color: var(--muted); font-size: .75rem; }
.statFigures dd { margin: 0; font-size: 1.75rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.statChart { display: flex; align-items: flex-end; gap: 4px; height: 76px; }
.statChart span { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: #1f8a4c; }
.statChart span.empty { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.statNote { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }

/* ---- Owner photo gallery ---- */
.ownerGallery { margin: 10px 12px 0; }
.galleryFrame { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #11151c; }
.galleryFrame img { display: block; width: 100%; height: 250px; object-fit: cover; }
.galleryPlace { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 11px; border-radius: 999px; background: #ffffffe6; color: #14213d; font-size: .75rem; font-weight: 700; }
.galleryPlace::before { content: "\1F4CD  "; }
.galleryFrame figcaption { position: absolute; left: 0; right: 0; top: 0; padding: 8px 12px 18px; background: linear-gradient(#000000b3, transparent); color: #fff; font-size: .8125rem; }
.galleryControls { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 0; }
.galleryStep { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.galleryStep:disabled { opacity: .4; cursor: default; }
.galleryCount { color: var(--muted); font-size: .75rem; }
#photos.hasGallery .photoempty { display: none; }
.expandedWidget .galleryFrame img { height: min(56vh, 520px); }

/* ---- TL;DR, pinned note and résumé ---- */
.mailTldr { margin: 14px 0; padding: 12px 14px; border-left: 3px solid #176ad1; border-radius: 10px; background: color-mix(in srgb, #176ad1 9%, transparent); }
.mailTldrLabel { display: block; margin-bottom: 4px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.mailReader .mailTldr p { margin: 0; line-height: 1.55; }
.mailReader .mailTldr .mailTldrLead { font-weight: 650; }
.mailTldr ul { margin: 8px 0 0; padding-left: 18px; }
.mailTldr li { margin-bottom: 3px; }
.mailTldr small { display: block; margin-top: 8px; color: var(--ink); font-size: .75rem; opacity: .85; }
.mailTldr small:empty { display: none; }
.stickyPinned .stickyPinTitle { padding: 6px 0 2px; font-size: .875rem; }
.stickyPinned .stickyPinText { flex: 1; min-height: 0; margin: 0; overflow: auto; font-size: .8125rem; line-height: 1.4; overflow-wrap: anywhere; }
.stickyPinned .stickyPinBy { color: #45474f; font-size: .75rem; }
.stickyPinned { box-shadow: 0 0 0 2px #176ad1, 0 8px 16px #00000024; }
.cardResume { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; margin-left: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--accent-ink); font-size: .8125rem; font-weight: 650; text-decoration: none; }

/* ---- Workspace: a small Finder with Resources, Projects and the tools Shawn uses ---- */
#resources { container-type: inline-size; }
#resources .workspace { display: grid; grid-template-columns: 128px minmax(0, 1fr); flex: 1; padding: 0; }
.finderSide { display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--ink) 4%, transparent); }
.finderSide > span { padding: 0 8px 4px; color: var(--muted); font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.finderSide button { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: .8125rem; text-align: left; cursor: pointer; }
.finderSide button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 700; }
.finderMain { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px; }
.finderRows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
#resources [data-panel][hidden] { display: none; }
.finderRows a, .finderRows button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.finderRows a:hover, .finderRows button:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
@container (max-width: 430px) {
  #resources .workspace { grid-template-columns: minmax(0, 1fr); }
  .finderSide { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .finderSide > span { display: none; }
  .finderSide button { width: auto; }
}
.toolGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.toolCard { display: flex; align-items: center; gap: 10px; height: 100%; min-height: 58px; box-sizing: border-box; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.toolCard:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.toolCard:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.toolLogo { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px #00000014; color: #26344d; font-size: .75rem; font-weight: 800; }
.toolLogo img { width: 100%; height: 100%; object-fit: contain; }
.toolText { display: flex; flex-direction: column; min-width: 0; }
.toolText b { font-size: .875rem; line-height: 1.3; }
.toolText small { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.toolMore { align-self: flex-start; min-height: 28px; }
.fileIcon5 img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; background: #fff; }

/* ---- Artists on the Spotify tile ---- */
#spotify .spotifyhost .providerpreview { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; height: auto; min-height: 100%; }
#spotify .spotifyhost { height: auto; }
.artistShelf { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.artistHeading { font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.artistList { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.artist { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.artistArt { position: relative; display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: #2c3a33; color: #fff; font-size: .875rem; font-weight: 700; box-shadow: 0 5px 14px #00000059; transition: transform .18s ease; }
.artistArt::before { content: attr(data-mark); }
.artistArt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.artist:hover .artistArt, .artist:focus-visible .artistArt { transform: translateY(-3px); box-shadow: 0 0 0 2px #1ed760, 0 8px 18px #00000066; }
.artist:focus-visible { outline: none; }
.artistName { max-width: 86px; font-size: .75rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
#spotify .spotifyhost .previewinfo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
#spotify .spotifyhost .previewinfo h2 { margin: 0; font-size: 1rem; }
#spotify .spotifyhost .previewinfo .tiny { flex: 1 1 100%; }
.providerPlaylist6 { min-height: 30px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; font-size: .8125rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .artistArt { transition: none; } .artist:hover .artistArt { transform: none; } }

/* ---- Organization logos beside the credentials ---- */
.credentialMark8.isPlaceholder.hasPicture, .dark .credentialMark8.isPlaceholder.hasPicture { background: #fff; border-radius: 9px; box-shadow: 0 0 0 1px #00000014; }
.credentialMark8.isPlaceholder > img { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }

/* ---- Bookshelf: heading, category buttons and a scrolling shelf ---- */
.bookIntro { padding: 12px 16px 0; }
.bookIntro h2 { margin: 0 0 2px; font-size: 1.125rem; letter-spacing: -.02em; }
.bookIntro p { margin: 0; color: var(--muted); font-size: .8125rem; }
.bookChips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.bookChip { min-height: 28px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .75rem; cursor: pointer; }
.bookChip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 650; }
/* One shelf, one line: it slides sideways. The arrows sit over its ends. */
.bookRail { position: relative; margin-top: 4px; }
.bookScroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
.bookRail .bookTable { margin: 8px 0 0; cursor: grab; }
.bookStep { position: absolute; top: 58px; z-index: 40; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 6px 16px #00000033; color: var(--ink); font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.bookStep.earlier { left: 6px; }
.bookStep.later { right: 6px; }
.bookStep:disabled { opacity: 0; pointer-events: none; }
.bookStep[hidden] { display: none; }
.bookItem[hidden] { display: none; }
.bookCount5 { margin: 0 0 6px; color: var(--muted); }
.bookGroup5 { margin-top: 18px; }
.bookGroup5 h2 { margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 1rem; }

/* ---- Live stats: a row per figure with its trend and change ---- */
.liveDot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px #1f9d5526; }
.statRows { margin: 0; padding: 0; list-style: none; }
.statRow { display: grid; grid-template-columns: minmax(84px, 1fr) minmax(60px, 110px) auto; align-items: center; gap: 12px; padding: 13px 2px; }
.statRow + .statRow { border-top: 1px solid var(--line); }
.statName, .statValue { display: flex; flex-direction: column; }
.statName b { font-size: .9375rem; }
.statName small { color: var(--muted); font-size: .75rem; }
.statValue { align-items: flex-end; gap: 3px; min-width: 64px; }
.statValue b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.statBadge { padding: 1px 8px; border-radius: 999px; background: #5b616b; color: #fff; font-size: .75rem; font-weight: 700; }
.statBadge.up { background: #157a3c; }
.statSpark { width: 100%; height: 28px; overflow: visible; }
.statSpark polyline { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.statSpark.rising polyline { stroke: #1f9d55; }

/* ---- LinkedIn, X and Instagram: their logos under Get in touch ---- */
.brandMark { width: 20px; height: 20px; flex: 0 0 20px; }
.contactSocials { display: flex; justify-content: center; gap: clamp(2px, 4cqi, 12px); margin-top: 10px; }
.contactSocials .profileLink { display: grid; place-items: center; flex: 0 1 44px; min-width: 36px; height: 44px; border-radius: 12px; }
.contactSocials a.profileLink:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.contactSocials .brandMark { width: 30px; height: 30px; flex-basis: 30px; }
.contactSocials .socialName { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contactSocials[hidden], .socialRow8[hidden] { display: none; }
.socialRow8 { display: flex; flex-wrap: wrap; gap: 9px; margin: 6px 0 10px; }
.socialRow8 .socialButton { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; }
.artist:focus-visible { outline: 3px solid #1ed760; outline-offset: 3px; border-radius: 10px; }
.featuredTile .featuredOpen, .dark .featuredTile .featuredOpen { background: #176ad1; border-color: #176ad1; color: #fff; }
#grid .toolMore { font-size: .8125rem; border: 0; width: auto; padding-inline: 2px; }

/* A narrow Contacts tile: the quick actions become full-width rows so their labels never run into each other. */
#contact .pad { container-type: inline-size; }
.contactQuick { grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); }
@container (max-width: 190px) {
  .contactQuick .quickAction.quickAction { display: grid; grid-template-columns: auto minmax(0, 1fr); justify-content: stretch; justify-items: start; align-content: center; align-items: center; column-gap: 9px; row-gap: 0; min-height: 40px; padding: 6px 10px; text-align: left; overflow-wrap: anywhere; }
  .contactQuick .quickAction.quickAction small { grid-column: 2; }
}
@container (min-width: 191px) and (max-width: 232px) {
  .contactQuick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contactQuick .quickAction.quickAction { overflow-wrap: anywhere; padding-inline: 3px; }
}

/* ---- Maps: a pin on a little tour of Charlotte ---- */
#map .providerpreview.hasTour { position: relative; display: block; height: 100%; min-height: 290px; padding: 0; overflow: hidden; }
.tourMap { position: absolute; inset: 0; overflow: hidden; background: #e8e4da; }
.tourStage { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.tourTiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.tourRoute { position: absolute; left: 0; top: 0; overflow: visible; }
.tourRoute polygon { fill: none; stroke: #176bd7; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
.tourWalker { position: absolute; left: -23px; top: -56px; width: 46px; height: 56px; will-change: transform; }
.tourWalker.moving .mapPin6 { animation: tourStep .5s ease-in-out infinite alternate; }
@keyframes tourStep { to { translate: 0 -5px; } }
.dark .tourTiles { filter: brightness(.72) saturate(.85); }
#map .providerpreview.hasTour > div:not(.tourMap):not(.tourControls) { position: absolute; left: 12px; bottom: 30px; z-index: 2; max-width: calc(100% - 24px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 8px 20px #00000026; }
#map .providerpreview.hasTour h2 { margin: 2px 0 8px; font-size: 1.0625rem; }
.tourControls { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; }
#map .providerpreview.hasTour { container-type: inline-size; }
@container (max-width: 560px) {
  #map .providerpreview.hasTour > div:not(.tourMap):not(.tourControls) { right: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 8px 12px; }
  #map .providerpreview.hasTour > div:not(.tourMap):not(.tourControls) > .tiny { grid-column: 1 / -1; }
  #map .providerpreview.hasTour h2 { margin: 0; font-size: .9375rem; }
}
.tourPlace { padding: 5px 11px; border-radius: 999px; background: #14213de6; color: #fff; font-size: .75rem; font-weight: 700; }
.tourToggle { min-height: 30px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; }
.tourCredit { position: absolute; right: 0; bottom: 0; z-index: 2; padding: 1px 6px; background: #ffffffd9; color: #333; font-size: .75rem; }
.tourCredit a { display: inline-block; min-height: 24px; line-height: 24px; color: #0b5394; }
.providerFoot6 .tourToggle { margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .tourWalker.moving .mapPin6 { animation: none; } }

/* ---- Career tile: two columns where there is room, so a longer list stays as short as the intro beside it ---- */
#grid #career { container-type: inline-size; }
@container (min-width: 520px) {
  #grid #career .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 10px 0 14px; }
}
/* Each entry is stacked at every width: company above its own description, each with its left bar (responsive audit R06). */
#grid #career .timeline div { display: flex; flex-direction: column; gap: 1px; padding: 0 0 0 12px; border-left: 2px solid #7f99b2; }
#grid #career .timeline div:nth-child(2) { border-left-color: #a6a0cd; }
#grid #career .timeline div:nth-child(3) { border-left-color: #81ac96; }
#grid #career .timeline b { order: -1; text-align: left; }
#grid #career .timeline span, #grid #career .timeline small { line-height: 1.35; }
/* A narrow tile on a phone keeps the spacing it already had. */
@media (max-width: 760px) {
  @container (max-width: 519.98px) { #grid #career .timeline div { gap: 3px; } #grid #career .timeline small { line-height: 1.5; } }
}
/* The headline is sized by the intro tile, not the window, so it keeps to two lines in the laptop view too. */
#home.heroPersonal8 .heroBody .heroMain h1 { font-size: clamp(28px, 6.1cqi, 43px); }
@container (max-width: 560px) { #home.heroPersonal8 .heroBody .heroMain h1 { font-size: clamp(27px, 8.6cqi, 36px); } }

/* ---- Wave 1 (2 December 2026): 12px text floor inside windows (design-spec.md), covered by tests/e2e/readability.spec.js ---- */
.osWindow .appHeading5 small, .osWindow .sideCaption5, .osWindow .side5 button, .osWindow .file5 small, .osWindow .fileIcon5, .osWindow .tabs5 button, .osWindow .book5 small,
.osWindow .calfoot, .osWindow .days span, .osWindow .days button, .osWindow .drawtools button, .osWindow .drawtools label, .osWindow .photoempty p,
.osWindow .provider, .osWindow .provider button, .osWindow .ffStatus { font-size: 12px; }
.osWindow .sideCaption5 { letter-spacing: .04em; }
.osWindow .days button.today, .osWindow .calendar .today { font-size: 12px; }

/* ---- Wave 1: phone and touch. Window controls keep their 12px look but get a 24x24 hit area, and close sits well apart from minimise ---- */
@media (pointer: coarse), (max-width: 760px) {
  .osWindow .winbar { gap: 14px; }
  .osWindow .trafficBtn { overflow: visible; }
  .osWindow .trafficBtn::after { inset: -6px; }
  .osWindow .winClose { margin-right: 6px; }
  .osWindow .calhead button, .osWindow .calendar .days button { min-height: 40px; min-width: 40px; }
  .osWindow .calendar .days { grid-auto-rows: minmax(40px, auto); }
  .osWindow .calendar .calhead button, .osWindow .calendar #today, .osWindow .widgetbar button { min-height: 40px; }
  .osWindow .drawtools button, .osWindow .drawtools input[type="color"], .osWindow .drawtools label { min-height: 40px; }
  .osWindow .mailTool, .osWindow .mailFolder, .osWindow .appSearch5, .osWindow .mailBack { min-height: 40px; }
  .osWindow .tabs5 button, .osWindow .appToolbar5 button, .osWindow .appSidebar5 button, .osWindow .side5 button, .osWindow .appToolbar5 input { min-height: 40px; }
  .osWindow .projectSide7 button, .osWindow .projectNext7 button, .osWindow .projectNext7 a, .osWindow .projectActions7 a, .osWindow .projectActions7 button, .osWindow .profileActions8 button, .osWindow .profileActions8 a { min-height: 40px; }
  .osWindow .bar button.openWidget45 { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .osWindow .photoempty button, .osWindow #photoAdd, .osWindow #photoClear, .osWindow #photoChoose { min-height: 40px; }
}

/* ---- Wave 1: skip link (first focusable element; visible only while focused) and tile titles as real headings ---- */
.skipLink { position: fixed; left: 12px; top: 12px; z-index: 5000; padding: 10px 16px; border-radius: 8px; background: #0f4fa8; color: #fff; font: 600 14px/1.2 system-ui, sans-serif; text-decoration: none; transform: translateY(-300%); }
.skipLink:focus, .skipLink:focus-visible { transform: none; outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0f4fa8; }
.tile > .bar > h2.tileTitle, .bar > h2.tileTitle { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
main.desktop:focus { outline: none; }

/* ---- Wave 1: touch chrome. The Ctrl / ⌘ K hint is for a physical keyboard. ---- */
/* The words are generated, so the button's own text is only the glyph (its name on touch is "Search", set in desktop.js). */
#search .kbdHint::after { content: "Ctrl / ⌘ K"; }
@media (pointer: coarse) { #search .kbdHint { display: none; } }
/* The dock scrolls on a phone: the edge with more icons behind it fades out so the visitor can tell (classes set in desktop.js). */
.dock.fadeEnd { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 30px), transparent); }
.dock.fadeStart { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 30px), transparent); }
.dock.fadeStart.fadeEnd { -webkit-mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to right, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
