/* Header navigation (Nicolas, 14 October; mock-up plans/screens/header-nav, review page "Header Navigation Mock-Up").
   Left, the same on every page: the client's initial where the logo was (it leads Home), the page name, then icons for
   Home, Chat, Account Settings and Sign Out. Right: Book A Session on Home and the chat page; in the timeline, the
   timeline's own controls (Bin, + Event, Timelines, Guide, Search, Timeline Settings) at the right edge.
   Loaded last on the page, so it wins over the older header rules. */

/* The client's initial in the logo's place. */
.brand-mark .brand-me{display:none}
.brand-mark.has-me img{display:none!important}
.brand-mark.has-me .brand-me{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:#fff;border:1px solid #e2d8cc;box-shadow:0 1px 3px #0001;color:#c8553d;font:400 25px/1 Georgia,serif;letter-spacing:0;box-sizing:border-box}
html[data-theme="dark"] .brand-mark.has-me .brand-me{background:#24221f;border-color:#4a433d;color:#ef8a6f}

/* The left group sits close to the name; a longer name pushes it right. */
header.atelier-brand-header .header-identity{display:flex;align-items:center;gap:8px;margin-left:6px!important;transform:none}
/* Left navigation order (Nicolas, 15 October; Sign Out first, 26 October): Sign Out, Home, Settings, Chat, Listening Requests,
   then Buddies Alliance once joined. */
header.atelier-brand-header .header-identity #account-signout{order:0}
header.atelier-brand-header .header-identity #atelier-home-button{order:1}
/* The logo, or the client's photo, is the way Home; the house icon went (Nicolas, 4 November). Phones hide the logo, so they keep the house. */
@media (min-width:601px){header.atelier-brand-header #atelier-home-button{display:none!important}}
/* Phones: Home leads the header, then Sign Out, then Settings, as on a computer; the photo replaces the house once the
   client has one (Nicolas, 4 November). */
/* Phone header icons centred on every page; a full row simply fills the width (Nicolas, 4 November). */
@media (max-width:600px){html body header.atelier-brand-header.atelier-brand-header.atelier-brand-header{justify-content:center!important;column-gap:8px!important;gap:8px!important}}
@media (max-width:600px){header.atelier-brand-header:has(.brand-mark.has-photo) #atelier-home-button{display:none!important}
  /* Option B (Nicolas, 4 November): Sign Out, then Home (photo or house) in the middle, then Settings. */
  html body header.atelier-brand-header #account-signout:is(#account-signout){order:-3!important}
  html body header.atelier-brand-header :is(.brand-mark,#atelier-home-button):is(.brand-mark,#atelier-home-button){order:-2!important}
  html body header.atelier-brand-header #atelier-account:is(#atelier-account){order:-1!important}
  /* Sign Out sits left of the photo here, so its arrow points left: walking away from the profile (Nicolas, 4 November).
     On a computer it sits right of the photo and points right, away from it too. */
  html body header.atelier-brand-header #account-signout:is(#account-signout) svg{transform:scaleX(-1)}}
/* No Buddies Alliance icon in the header: its card on Home opens it; no ear either: Nicolas's listening replies arrive in
   the chat with its red dot, and the chat's ear opens Listening Requests (Nicolas, 4 November). The ear stays in the page,
   hidden, for the shortcuts that click it. */
html body header.atelier-brand-header :is(#header-buddies,#header-listen):is(#header-buddies,#header-listen){display:none!important}
header.atelier-brand-header #brand-mark{position:relative}
header.atelier-brand-header .header-identity #atelier-account{order:3}
header.atelier-brand-header .header-identity #header-chat,header.atelier-brand-header .header-identity #story-chat{order:4}
header.atelier-brand-header .header-identity #header-listen{order:5}
header.atelier-brand-header .header-identity #header-buddies{order:6}
header.atelier-brand-header .header-identity #header-beta{order:7}
header.atelier-brand-header .header-identity .reopen-slot{order:8}

/* Icon buttons: 37 px boxes like the buttons beside them, the icon filling most of the box. */
header.atelier-brand-header .atelier-nav-icon,header.atelier-brand-header #atelier-account{display:inline-grid!important;place-items:center;flex:0 0 40px;width:40px!important;height:40px!important;padding:0!important;border:1px solid #deded9!important;border-radius:9px!important;background:#fffdf9!important;color:#242423!important;box-shadow:none!important;position:relative;cursor:pointer}
header.atelier-brand-header .atelier-nav-icon.hidden,header.atelier-brand-header #atelier-account.hidden{display:none!important}
header.atelier-brand-header .atelier-nav-icon:hover,header.atelier-brand-header #atelier-account:hover{background:#eeeee9!important}
header.atelier-brand-header .atelier-nav-icon svg,header.atelier-brand-header #atelier-account svg{display:block;width:25px!important;height:25px!important;fill:none!important;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
header.atelier-brand-header #atelier-account svg{width:22px!important;height:22px!important}
html[data-theme="dark"] header.atelier-brand-header .atelier-nav-icon,html[data-theme="dark"] header.atelier-brand-header #atelier-account{background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
html[data-theme="dark"] header.atelier-brand-header .atelier-nav-icon:hover,html[data-theme="dark"] header.atelier-brand-header #atelier-account:hover{background:#394345!important}
/* Where you are: Home on the dashboard, Chat on the chat page; terracotta, in light and dark (Nicolas, 14 October). */
body.atelier-dashboard-open:not(.atelier-chat-open) header.atelier-brand-header #atelier-home-button,
body.atelier-chat-open:not(.book-only) header.atelier-brand-header #header-chat,
html[data-theme="dark"] body.atelier-dashboard-open:not(.atelier-chat-open) header.atelier-brand-header #atelier-home-button,
html[data-theme="dark"] body.atelier-chat-open:not(.book-only) header.atelier-brand-header #header-chat{background:#d06f56!important;border-color:#d06f56!important;color:#fff!important}
/* The chat's red dot sits on the icon's corner. */
header.atelier-brand-header .atelier-nav-icon .chat-badge{position:absolute;top:-4px;right:-4px}

/* Chat: one icon on every page. The dashboard's #header-chat shows on the dashboard and chat pages, Story's #story-chat in the timeline. */
body:not(.atelier-client) header.atelier-brand-header #header-chat,body:not(.atelier-dashboard-open) header.atelier-brand-header #header-chat{display:none!important}
body.atelier-client.atelier-dashboard-open header.atelier-brand-header #header-chat{display:inline-grid!important}
body.atelier-client.atelier-chat-open:not(.book-only) header.atelier-brand-header #header-chat{display:inline-grid!important}
/* Home replaces the chat page's Dashboard button; Timeline (back to the timeline) stays on the right. */
header.atelier-brand-header #chat-to-dashboard{display:none!important}
/* Listening Requests: the ear beside Chat, for clients only. */
body:not(.atelier-client) header.atelier-brand-header #header-listen{display:none!important}
header.atelier-brand-header #header-listen svg{width:24px!important;height:24px!important}

/* Book A Session belongs to Home only (Nicolas, 14 October): not on the chat page. */
body.atelier-chat-open:not(.book-only) header.atelier-brand-header #book-session{display:none!important}
/* "Book" (Nicolas, 14 October): bigger, a clear background with a dark outline; terracotta in dark mode. */
html body header.atelier-brand-header .header-actions #book-session{position:relative;overflow:visible;height:40px;padding:0 26px!important;font-size:15.5px!important;background:transparent!important;border:1.5px solid #242423!important;color:#242423!important;box-shadow:none!important}
html body header.atelier-brand-header .header-actions #book-session:hover{background:#2424230d!important}
html[data-theme="dark"] body header.atelier-brand-header .header-actions #book-session{background:#d06f56!important;border-color:#d06f56!important;color:#fff!important}
/* Red dots: on Book from 24 hours before a booked session until the call. Same size and place as the photo dot. */
header.atelier-brand-header .header-dot{position:absolute;top:-8px;right:-9px;width:21px;height:21px;border-radius:50%;background:#d6452f;border:2px solid #fff;box-sizing:border-box;pointer-events:none}
html[data-theme="dark"] header.atelier-brand-header .header-dot{border-color:#1d1b19}

/* From 30 minutes before a session: a pulsing aqua button in the centre of the header that opens the call. */
header.atelier-brand-header{position:relative}
#header-call.header-call{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:5;display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 20px 0 14px;border-radius:999px;border:1px solid #6fbfa6;background:#91d9c1;color:#10302a;font:600 15px/1 Arial,Helvetica,sans-serif;letter-spacing:.01em;white-space:nowrap;cursor:pointer;animation:header-call-pulse 1.8s ease-out infinite}
#header-call.header-call svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#header-call.header-call b{font-variant-numeric:tabular-nums}
@keyframes header-call-pulse{0%{box-shadow:0 0 0 0 #91d9c1aa}70%{box-shadow:0 0 0 16px #91d9c100}100%{box-shadow:0 0 0 0 #91d9c100}}
@media (prefers-reduced-motion:reduce){#header-call.header-call{animation:none;box-shadow:0 0 0 6px #91d9c155}}
#header-call.header-call i{font-style:normal}
/* Phones (Nicolas, 20 October): a rounded rectangle in the header between the icon groups (placed by atelier-header-call.js),
   the camera and Join Now when the whole line has no room, or its own row under the header. */
@media (max-width:900px){
  #header-call.header-call{height:34px;gap:6px;padding:0 10px 0 8px;border-radius:9px;font-size:13px}
  #header-call.header-call svg{width:18px;height:18px}
  #header-call.header-call.short .hc-long{display:none}
  .header-call-row{display:flex;padding:8px 12px 0}
  #header-call.header-call.below{position:relative;left:auto;top:auto;transform:none;flex:1;display:flex;flex-direction:row;align-items:center;justify-content:center}
}

/* Right-hand side: flush with the right edge. Buttons 34 px (a little smaller, Nicolas, 14 October). */
header.atelier-brand-header .header-actions{margin-left:auto!important;width:auto!important;flex:0 1 auto!important;justify-content:flex-end;gap:8px!important}
header.atelier-brand-header .header-actions>button{height:34px;padding:0 13px!important;font-size:13.5px!important;border-radius:8px}
header.atelier-brand-header .header-actions #trash{order:2!important}
header.atelier-brand-header .header-actions #add-event{order:0!important}
header.atelier-brand-header .header-actions #ai-events{order:-1!important}
header.atelier-brand-header .header-actions #manage-timelines{order:3!important}
header.atelier-brand-header .header-actions #guide{order:4!important}
header.atelier-brand-header .header-actions #search-events{order:5!important}
header.atelier-brand-header .header-actions #timeline-settings{order:6!important;padding:0!important}
header.atelier-brand-header .header-actions #chat-to-timeline{order:7!important}
header.atelier-brand-header .header-actions #book-session,header.atelier-brand-header .header-actions #open-therapist-app{order:8!important}

/* Timeline controls, bigger than the left icons (Nicolas, 14 October): 40 px boxes; + Event keeps its words.
   Timelines, Guide and Search are icons; the bin is a boxed line icon with a red dot when it holds something. */
header.atelier-brand-header .header-actions #add-event{height:40px;padding:0 18px!important;font-size:15px!important}
header.atelier-brand-header .header-actions .atelier-tl-icon,header.atelier-brand-header .header-actions #trash,header.atelier-brand-header .header-actions #timeline-settings{display:inline-grid;place-items:center;flex:0 0 40px;width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border-radius:9px!important;position:relative}
header.atelier-brand-header .header-actions .atelier-tl-icon.hidden,header.atelier-brand-header .header-actions #trash.hidden,header.atelier-brand-header .header-actions #timeline-settings.hidden{display:none!important}
header.atelier-brand-header .header-actions .atelier-tl-icon svg,header.atelier-brand-header .header-actions #trash svg,header.atelier-brand-header .header-actions #timeline-settings svg{display:block;width:25px!important;height:25px!important;fill:none!important;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
header.atelier-brand-header .header-actions #manage-timelines svg{stroke-width:2}
header.atelier-brand-header .header-actions #ai-events{margin-right:0!important}
/* A.I. sits left of + Event; Book Session belongs to Home, not the Timeline header (Nicolas, 15 October; A.I. Button Placement MU). */
body:has(#main:not(.hidden)):not(.atelier-dashboard-open):not(.book-only) header.atelier-brand-header .header-actions #book-session{display:none!important}
header.atelier-brand-header .header-actions #trash{border:1px solid #deded9!important;background:#fffdf9!important;color:#242423!important;box-shadow:none!important;cursor:pointer}
header.atelier-brand-header .header-actions #trash:hover{background:#eeeee9!important}
html[data-theme="dark"] header.atelier-brand-header .header-actions #trash{background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
html[data-theme="dark"] header.atelier-brand-header .header-actions #trash:hover{background:#394345!important}
header.atelier-brand-header .header-actions #trash.has-items::after{content:"";position:absolute;top:-4px;right:-4px;width:12px;height:12px;border-radius:50%;background:#d6452f;border:2px solid #fff;box-sizing:border-box;pointer-events:none}
html[data-theme="dark"] header.atelier-brand-header .header-actions #trash.has-items::after{border-color:#1d1b19}
header.atelier-brand-header .header-actions #trash .trash-count{display:none!important}
/* Pressed timeline buttons: off-white with a dark outline in light mode, not black (Nicolas, 14 October). */
html:not([data-theme="dark"]) header.atelier-brand-header .header-actions :is(#manage-timelines,#guide,#search-events,#event-list).primary:not(.search-retained){background:#fffdf9!important;border:1.5px solid #242423!important;color:#242423!important}
/* Light mode: outlines with no fill, like the left navigation (Nicolas, 14 October); pressed buttons keep their colour. */
html:not([data-theme="dark"]) header.atelier-brand-header .header-actions :is(#trash,#timeline-settings,.atelier-tl-icon):not([aria-pressed="true"]):not(.search-retained){background:transparent!important;border:1px solid #deded9!important}
html:not([data-theme="dark"]) header.atelier-brand-header .header-actions :is(#trash,#timeline-settings,.atelier-tl-icon):not([aria-pressed="true"]):not(.search-retained):hover{background:#2424230d!important}

/* Suggest A Feature, out of the header: centred below the apps on Home, bottom right everywhere else. */
.atelier-feedback-trigger.afb-float{position:fixed;z-index:30;right:20px;bottom:18px;display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 14px 0 10px;border:1px solid #deded9;border-radius:999px;background:#fffffff0;color:#6d6056;font:13px Arial,Helvetica,sans-serif;box-shadow:0 2px 8px #0001;cursor:pointer}
.atelier-feedback-trigger.afb-float:hover{background:#f3efe9}
.atelier-feedback-trigger.afb-float svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
body.atelier-dashboard-open:not(.atelier-chat-open) .atelier-feedback-trigger.afb-float{right:auto;left:50%;transform:translateX(-50%);bottom:24px}
html[data-theme="dark"] .atelier-feedback-trigger.afb-float{background:#24221ff0;border-color:#3d3833;color:#d8cfc4}
/* The Story page: a bulb alone in the bottom right corner of the timeline area (Nicolas, 23 October); right and bottom come from atelier-feedback.js. */
/* Phones already show a bulb alone, bottom left (atelier-phone.css). */
@media (min-width:601px){
  .atelier-feedback-trigger.afb-float.afb-dock{left:auto;transform:none;width:38px;height:38px;padding:0;justify-content:center;border-radius:10px}
  .atelier-feedback-trigger.afb-float.afb-dock svg{width:20px;height:20px}
  .atelier-feedback-trigger.afb-float.afb-dock .afb-label{display:none}
}
html[data-theme="dark"] .atelier-feedback-trigger.afb-float:hover{background:#2f2c28}

/* Left Navigation Mock-Up (Nicolas, 14 October, approved): the photo first at the top left, then the icons, 40 px boxes
   like the timeline's controls, with no fill in light mode; the page name alone in the centre, in Rock Salt (the font
   of the Story Of Your Life card). While the call button shows, it takes the centre and the name hides. */
header.atelier-brand-header .brand-title-row{gap:12px}
header.atelier-brand-header .header-identity{margin-left:0!important}
html:not([data-theme="dark"]) header.atelier-brand-header .header-identity .atelier-nav-icon,html:not([data-theme="dark"]) header.atelier-brand-header .header-identity #atelier-account{background:transparent!important}
html:not([data-theme="dark"]) header.atelier-brand-header .header-identity .atelier-nav-icon:hover,html:not([data-theme="dark"]) header.atelier-brand-header .header-identity #atelier-account:hover{background:#2424230d!important}
header.atelier-brand-header #brand-title{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;margin:0!important;white-space:nowrap;font:400 24px/1.2 "Rock Salt","Bradley Hand",cursive!important;letter-spacing:0!important;pointer-events:none}
header.atelier-brand-header.has-call #brand-title{visibility:hidden}
/* The call button: yellow under 5 minutes, red under 1 minute and once the session has started. */
#header-call.header-call.soon{background:#f4c84a;border-color:#d9a92a;color:#3a2a00;animation-name:header-call-pulse-soon}
#header-call.header-call.now{background:#d6452f;border-color:#b5341f;color:#fff;animation-name:header-call-pulse-now}
@keyframes header-call-pulse-soon{0%{box-shadow:0 0 0 0 #f4c84aaa}70%{box-shadow:0 0 0 16px #f4c84a00}100%{box-shadow:0 0 0 0 #f4c84a00}}
@keyframes header-call-pulse-now{0%{box-shadow:0 0 0 0 #d6452faa}70%{box-shadow:0 0 0 16px #d6452f00}100%{box-shadow:0 0 0 0 #d6452f00}}
/* Once the session has started, the header button pulses harder too (Nicolas, 5 November). */
#header-call.header-call.now.late{animation:header-call-pulse-late 1s ease-out infinite}
@keyframes header-call-pulse-late{0%{box-shadow:0 0 0 0 #d6452fcc;scale:1}50%{scale:1.04}70%{box-shadow:0 0 0 22px #d6452f00}100%{box-shadow:0 0 0 0 #d6452f00;scale:1}}
@media (prefers-reduced-motion:reduce){#header-call.header-call.soon{box-shadow:0 0 0 6px #f4c84a55}#header-call.header-call.now{box-shadow:0 0 0 6px #d6452f55}}
/* Narrower screens: the name shrinks, then gives way to the icons. */
@media (max-width:1100px){header.atelier-brand-header #brand-title{font-size:19px!important}}
@media (max-width:1040px){header.atelier-brand-header #brand-title{display:none!important}}

/* The photo leaves the header for the Story card (Nicolas, 14 October, Left Navigation Mock-Up): 104 px, lined up with
   the S of Story, in the space above the title. Signed out, the logo stays in the header. */
header.atelier-brand-header .brand-mark.has-me{display:none!important}
#open-story{position:relative}
#open-story .story-me{position:absolute;left:25px;top:19px;z-index:2;display:grid;place-items:center;width:150px;height:150px;border-radius:50%;background:#fff;border:1px solid #e2d8cc;box-shadow:0 2px 8px #0000001a;color:#c8553d;font:400 66px/1 Georgia,serif;box-sizing:border-box;pointer-events:auto;cursor:pointer}
#open-story .story-me.hidden{display:none}
html[data-theme="dark"] #open-story .story-me{background:#24221f;border-color:#4a433d;color:#ef8a6f}
@media (max-width:720px){#open-story .story-me{display:none}}
/* No Start Your Story button (the whole card opens the story); the title and tagline sit lower, where the button was. */
#open-story #story-card-action{display:none!important}
@media (min-width:721px){#open-story .atelier-hero-copy{transform:translate(1px,24px)}}
/* Book (Nicolas, 14 October) and the Therapist App (16 October): an icon in a 40 px box, the same border as the other header icons. */
html body header.atelier-brand-header .header-actions #book-session,html body header.atelier-brand-header .header-actions #open-therapist-app{display:inline-grid;place-items:center;width:40px;min-width:40px;height:40px;padding:0!important;border:1px solid #deded9!important;border-radius:9px!important;background:transparent!important;color:#242423!important}
html body header.atelier-brand-header .header-actions #book-session:hover,html body header.atelier-brand-header .header-actions #open-therapist-app:hover{background:#2424230d!important}
html body header.atelier-brand-header .header-actions #book-session svg,html body header.atelier-brand-header .header-actions #open-therapist-app svg{display:block;width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] body header.atelier-brand-header .header-actions #book-session,html[data-theme="dark"] body header.atelier-brand-header .header-actions #open-therapist-app{background:#283032!important;border-color:#3d4648!important;color:#efe9e2!important}
html[data-theme="dark"] body header.atelier-brand-header .header-actions #book-session:hover,html[data-theme="dark"] body header.atelier-brand-header .header-actions #open-therapist-app:hover{background:#394345!important}
/* The Therapist App icon (16 October) shows only on Nicolas's own Home. */
html body:not(.atelier-therapist) header.atelier-brand-header .header-actions #open-therapist-app,html body:not(.atelier-dashboard-open) header.atelier-brand-header .header-actions #open-therapist-app{display:none!important}
/* No page name in the header at all (Nicolas, 14 October: "let's take out these titles in the middle. All out."). */
header.atelier-brand-header #brand-title{display:none!important}
/* Buddies Alliance: after Listening Requests, for clients in a group (Home builds it); red dot while something waits. */
header.atelier-brand-header .header-identity #header-buddies{position:relative;color:inherit;text-decoration:none}
body:not(.atelier-client) header.atelier-brand-header #header-buddies{display:none!important}
header.atelier-brand-header #header-buddies .nav-dot{position:absolute;top:-4px;right:-4px;width:12px;height:12px;border-radius:50%;background:#d6452f;border:2px solid #fff;box-sizing:border-box}
html[data-theme="dark"] header.atelier-brand-header #header-buddies .nav-dot{border-color:#283032}

/* Beta testers' flask (Nicolas, 15 October): last on the left, red dot for an unread reply to a report. */
header.atelier-brand-header .header-identity #header-beta{position:relative;color:inherit;cursor:pointer}
/* The liquid in the flask is orange (Nicolas, 16 October). */
header.atelier-brand-header #header-beta svg .beta-liquid{fill:#d06f56!important;stroke:none!important}
body:not(.atelier-client) header.atelier-brand-header #header-beta{display:none!important}
header.atelier-brand-header #header-beta .nav-dot{position:absolute;top:-4px;right:-4px;width:12px;height:12px;border-radius:50%;background:#d6452f;border:2px solid #fff;box-sizing:border-box}
html[data-theme="dark"] header.atelier-brand-header #header-beta .nav-dot{border-color:#283032}
/* Chat bubble (Chat Bubble Mock-Up, 30 October, cleared by Design Review): Home's chat icon, aqua. From 1 hour before a
   session it grows into a box with a timer (atelier-header-call.js): aqua, yellow from 15 minutes, red from 5, then aqua
   Join Now. The urgency colours are the shared ones (call cues, TA name cards).
   31 October (Nicolas): 100px on desktop (two thirds of the 152px he tried), 44px on phones like the floating flask, and it
   can be dragged anywhere; atelier-header-call.js keeps the spot. Before a session the chat icon becomes a video camera
   and the whole box joins the call. */
#chat-bubble{display:none;background:#91d9c1;color:#1f3d35}
body.atelier-client.atelier-dashboard-open:not(.atelier-chat-open):not(.book-only) #chat-bubble{position:fixed;right:28px;bottom:28px;z-index:60;display:flex;align-items:center;gap:14px;border-radius:999px;box-shadow:0 8px 26px rgba(31,30,29,.2);touch-action:none;-webkit-user-select:none;user-select:none}
html[data-theme="dark"] body.atelier-client.atelier-dashboard-open #chat-bubble{box-shadow:0 8px 28px rgba(0,0,0,.5)}
#chat-bubble.moving{cursor:grabbing;box-shadow:0 14px 34px rgba(31,30,29,.3)!important}
#chat-bubble svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
html body #chat-bubble #header-chat.cb-chat{display:grid!important;place-items:center;position:relative;width:100px;height:100px;margin:0;padding:0;border:0!important;border-radius:50%;background:transparent!important;color:inherit!important;box-shadow:none!important;cursor:pointer}
#chat-bubble #header-chat.cb-chat svg{width:44px;height:44px}
#chat-bubble #header-chat .cb-cam{display:none}
#chat-bubble.box #header-chat .cb-cam{display:contents}
#chat-bubble.box #header-chat>svg{display:none}
#chat-bubble #header-chat .chat-badge{top:7px;right:7px;width:18px;height:18px;border:3px solid #fbf8f3;background:#d06f56}
html[data-theme="dark"] #chat-bubble #header-chat .chat-badge{border-color:#1f1e1d!important}
#chat-bubble .cb-time{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin:0;padding:0 0 0 16px;border:0!important;border-left:1px solid rgba(31,61,53,.25)!important;border-radius:0;background:transparent!important;color:inherit!important;box-shadow:none!important;font:600 15px/1.1 Arial,Helvetica,sans-serif;text-align:left;cursor:pointer}
#chat-bubble .cb-time[hidden]{display:none}
#chat-bubble .cb-time small{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;opacity:.85}
#chat-bubble .cb-time small svg{display:none}
#chat-bubble .cb-time b{font-size:34px;font-variant-numeric:tabular-nums;letter-spacing:.01em}
#chat-bubble.box{border-radius:30px!important;padding:14px 22px 14px 14px}
html body #chat-bubble.box #header-chat.cb-chat{width:70px;height:70px;background:rgba(255,255,255,.35)!important}
#chat-bubble.box #header-chat.cb-chat svg{width:34px;height:34px}
html body #chat-bubble.box #header-chat.cb-chat:hover{background:rgba(255,255,255,.55)!important}
#chat-bubble.box #header-chat.cb-chat:active{transform:scale(.94)}
#chat-bubble.join .cb-time b{font-size:30px}
#chat-bubble.box{animation:chat-bubble-pulse 1.8s ease-out infinite}
#chat-bubble.soon{background:#e6bd45;color:#3a2a00;animation-name:chat-bubble-pulse-soon}
#chat-bubble.now{background:#d9755d;color:#fff;animation-name:chat-bubble-pulse-now}
html body #chat-bubble.now #header-chat.cb-chat{background:rgba(255,255,255,.2)!important}
#chat-bubble.now .cb-time{border-left-color:rgba(255,255,255,.4)!important}
@keyframes chat-bubble-pulse{0%{box-shadow:0 0 0 0 #91d9c1aa}70%{box-shadow:0 0 0 14px #91d9c100}100%{box-shadow:0 0 0 0 #91d9c100}}
@keyframes chat-bubble-pulse-soon{0%{box-shadow:0 0 0 0 #e6bd45aa}70%{box-shadow:0 0 0 14px #e6bd4500}100%{box-shadow:0 0 0 0 #e6bd4500}}
@keyframes chat-bubble-pulse-now{0%{box-shadow:0 0 0 0 #d9755daa}70%{box-shadow:0 0 0 14px #d9755d00}100%{box-shadow:0 0 0 0 #d9755d00}}
/* The session has started and the client is still outside (Nicolas, 5 November): Join Now is red, not aqua, and pulses
   harder and faster than the countdown (a wider ring and a small swell). */
#chat-bubble.join{background:#d6452f;color:#fff;animation:chat-bubble-pulse-late 1s ease-out infinite}
html body #chat-bubble.join #header-chat.cb-chat{background:rgba(255,255,255,.2)!important}
#chat-bubble.join .cb-time{border-left-color:rgba(255,255,255,.4)!important}
@keyframes chat-bubble-pulse-late{0%{box-shadow:0 0 0 0 #d6452fcc;transform:scale(1)}50%{transform:scale(1.04)}70%{box-shadow:0 0 0 22px #d6452f00}100%{box-shadow:0 0 0 0 #d6452f00;transform:scale(1)}}
@media (prefers-reduced-motion:reduce){#chat-bubble.box{animation:none}}
/* The bubble's own drop shadow is more specific, so the still ring needs !important (Tests To Run 457). */
@media (prefers-reduced-motion:reduce){#chat-bubble.join{box-shadow:0 0 0 6px #d6452f55,0 8px 26px rgba(31,30,29,.2)!important}}
/* Phones: the bubble sits 8px from the edge, so the ring stays inside it (DE, 5 November). */
@media (max-width:700px){#chat-bubble.join{animation-name:chat-bubble-pulse-late-phone}}
@keyframes chat-bubble-pulse-late-phone{0%{box-shadow:0 0 0 0 #d6452fcc;transform:scale(1)}50%{transform:scale(1.03)}70%{box-shadow:0 0 0 7px #d6452f00}100%{box-shadow:0 0 0 0 #d6452f00;transform:scale(1)}}
/* Room under the last card so the bubble in its corner never covers it: the box height plus 16px. */
body.atelier-client.atelier-dashboard-open #atelier-dashboard-view{padding-bottom:132px}
/* Phones: 52px like the floating flask (Polish P8, 8 November; was 44px), in the corner clear of the safe area. */
@media (max-width:700px){
  body.atelier-client.atelier-dashboard-open:not(.atelier-chat-open):not(.book-only) #chat-bubble{right:calc(8px + env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));gap:8px}
  html body #chat-bubble #header-chat.cb-chat{width:52px;height:52px}
  #chat-bubble #header-chat.cb-chat svg{width:26px;height:26px}
  #chat-bubble #header-chat .chat-badge{top:-1px;right:-1px;width:12px;height:12px;border-width:2px}
  #chat-bubble.box{border-radius:26px!important;padding:0 14px 0 0;height:52px;box-sizing:border-box}
  html body #chat-bubble.box #header-chat.cb-chat{width:52px;height:52px}
  #chat-bubble.box #header-chat.cb-chat svg{width:24px;height:24px}
  #chat-bubble .cb-time{flex-direction:row;align-items:center;gap:6px;padding-left:10px}
  #chat-bubble .cb-time small{font-size:0;gap:0}
  #chat-bubble .cb-time small svg{width:16px;height:16px}
  #chat-bubble .cb-time b,#chat-bubble.join .cb-time b{font-size:16px}
  body.atelier-client.atelier-dashboard-open #atelier-dashboard-view{padding-bottom:76px}
}

/* LA back in the header (Nicolas, 31 October): the logo leads and Sign Out sits right beside it; the client's photo
   stays on the Story card. All navigation sits on the left on Home: the calendar follows the other icons. */
header.atelier-brand-header .brand-mark.has-me{display:inline-flex!important}
header.atelier-brand-header .brand-mark.has-me .brand-me{display:none!important}
header.atelier-brand-header .brand-mark.has-me .mark-light{display:block!important}
html[data-theme="dark"] header.atelier-brand-header .brand-mark.has-me .mark-light{display:none!important}
html[data-theme="dark"] header.atelier-brand-header .brand-mark.has-me .mark-dark{display:block!important}
body.atelier-dashboard-open header.atelier-brand-header .header-actions{margin-left:-8px!important;justify-content:flex-start}
@media (max-width:700px){header.atelier-brand-header .brand-mark.has-me{flex:0 0 auto!important;margin:0 4px 0 10px!important;position:static!important}header.atelier-brand-header .brand-mark.has-me img{height:30px!important}}
/* A little more room after Sign Out, so it is harder to tap by mistake (DE, 31 October); on phones only, where the house
   follows it. On a computer every header button keeps one gap (DE, 4 November). */
@media (max-width:600px){header.atelier-brand-header .header-identity #account-signout{margin-right:6px!important}}
/* Phones (DE, 31 October 17:33Z): the logo whole, then 44 px icon buttons 8 px apart, left-aligned, never stretched. */
@media (max-width:600px){
  body.atelier-dashboard-open header.atelier-brand-header{justify-content:flex-start!important;column-gap:8px!important;padding-left:12px!important}
  body.atelier-dashboard-open header.atelier-brand-header .brand-mark.has-me{margin:0 2px 0 0!important}
  body.atelier-dashboard-open header.atelier-brand-header .header-identity,body.atelier-dashboard-open header.atelier-brand-header .header-actions{gap:8px!important;flex:0 0 auto!important;width:auto!important;margin-left:0!important}
  /* Your Steps keeps its words ("2 Days Left") at the icons' height (DE, 22 October rule; found 5 November). */
  html body.atelier-dashboard-open header.atelier-brand-header.atelier-brand-header.atelier-brand-header .header-actions>button#gs-countdown{flex:0 0 auto!important;width:auto!important;height:44px!important;min-height:44px!important;max-height:44px!important;padding:0 10px 0 8px!important;gap:5px!important}
  html body.atelier-dashboard-open header.atelier-brand-header :is(.header-identity,.header-actions)>:is(button,a,#_):not(.hidden):not(#gs-countdown){flex:0 0 44px!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;padding:0!important}
}
/* Nicolas, 31 October 18:27Z: no Book icon in the client's header (the big Book A Session in the Sessions panel opens
   the booking page); in the chat the Timeline icon goes back to the right; the logo sits closer to the left edge. */
/* Never in the header, whatever the page (Nicolas, 31 October 19:02Z: "Bookings are done through the chat"). */
html body header.atelier-brand-header .header-actions #book-session:is(#book-session){display:none!important}
html body.atelier-chat-open header.atelier-brand-header .header-actions{margin-left:auto!important;justify-content:flex-end!important}
/* The logo 10px from the left edge on every page, the Timeline included (header audit, 31 October). */
html body header.atelier-brand-header{padding-left:10px!important}
html body.atelier-dashboard-open header.atelier-brand-header .brand-mark.has-me{margin-left:0!important}
/* No logo on phones (Nicolas, 31 October 19:15Z: "The logo is really only on desktop"). */
@media (max-width:600px){html body header.atelier-brand-header :is(.brand-mark,#_){display:none!important}}

/* Home on a computer (Nicolas, 4 November): the session countdown in the space between the header and the Story card,
   centred both ways, never under the level button (atelier-header-call.js places the row). */
.header-call-row.gap{position:absolute;left:0;right:0;z-index:20;display:flex;align-items:center;justify-content:center;pointer-events:none;padding:0}
#header-call.header-call.gap{position:relative;left:auto;top:auto;transform:none;pointer-events:auto}
/* The app (iPhone): the page runs under the status bar, so the phone header starts below it. */
html[data-app="native"] body header.atelier-brand-header.atelier-brand-header.atelier-brand-header{padding-top:calc(12px + var(--app-top,env(safe-area-inset-top,0px)))!important}
/* Phones, the session has started (Nicolas, 18 November): the bubble is just the camera circle, 50% larger (78px), in the
   Join Now red, pulsing; the Join Now words go (the label stays for screen readers). Tapping the circle joins. It sits 16px from the edges so the pulse ring has room (DE). */
@media (max-width:700px){
  body.atelier-client.atelier-dashboard-open:not(.atelier-chat-open):not(.book-only) #chat-bubble.box.join{right:calc(16px + env(safe-area-inset-right,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));padding:0;height:78px;width:78px;border-radius:50%!important;gap:0}
  #chat-bubble.box.join .cb-time{display:none}
  html body #chat-bubble.box.join #header-chat.cb-chat{width:78px;height:78px;background:transparent!important}
  #chat-bubble.box.join #header-chat.cb-chat svg{width:36px;height:36px}
  /* Room under the last card: the circle, its 16px from the edge and 16px more (DE, 18 November). */
  body.atelier-client.atelier-dashboard-open:has(#chat-bubble.box.join) #atelier-dashboard-view{padding-bottom:110px}
}
