:root {
  color: #223245;
  background: linear-gradient(#e8eef6, #fef9f7 46%, #fff);
  font-family: "Open Sans", system-ui, sans-serif;
  line-height: 1.5;
  --action: #0a58a5;
  --muted: #5d6d80;
  --line: #d9e2ec;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
header { height: 72px; padding: 0 clamp(18px, 3.125vw, 40px); display: flex; align-items: center; justify-content: space-between; }
.logo { width: 165px; display: block; }
.header-actions { display: flex; align-items: center; gap: 12px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #0a58a5; outline-offset: 4px; }
.pill, .primary, .link { border: 0; font-weight: 650; }
.pill { padding: 5px 12px; border-radius: 40px; background: #fff; color: var(--action); font-size: .875rem; }
.listen, .language { display: inline-flex; align-items: center; gap: 5px; }
.listen { background: #d8e4f1; }
.primary { background: var(--action); color: white; border-radius: 8px; min-height: 44px; padding: 8px 17px; justify-self: start; }
.link { display: block; text-align: left; color: var(--action); padding: 0; background: none; margin: 14px 0 0; }
.link:hover { text-decoration: underline; }
.entry { max-width: 1400px; min-height: calc(100dvh - 72px); margin: auto; padding: 32px clamp(20px, 4.375vw, 56px); display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(24px, 3.75vw, 48px); align-items: center; }
#door { margin: 0; min-width: 0; }
.scene { position: relative; isolation: isolate; aspect-ratio: 16/9; border-radius: 20px; overflow: hidden; background: #462918; }
.scene::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 59%, #101820db); pointer-events: none; }
.scene > img, .scene > video { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.scene > video { z-index: 3; background: #101820; }
#open-door { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -36%); border: none; background: none; color: inherit; display: grid; justify-items: center; gap: 15px; font-weight: 700; white-space: nowrap; }
#open-door span:last-child { padding: 5px 13px; border-radius: 32px; background: #fffcf7; }
.ring { display: grid; place-items: center; width: 63px; height: 63px; }
.ring img { grid-area: 1 / 1; }
#skip-door { position: absolute; top: 12px; right: 6px; z-index: 1; }
figcaption { margin-top: 12px; color: var(--muted); text-align: center; font-size: .875rem; }
h1, h2, p { margin: 0; }
h1 { font-size: 1.25rem; line-height: 1.3; }
h2 { font-size: 1.125rem; }
p, form, #computers { margin-top: 16px; }
p { color: var(--muted); }
.qr { display: block; max-width: 100%; height: auto; background: white; border: 1px solid var(--line); border-radius: 20px; padding: 12px; margin-top: 16px; }
form { display: grid; gap: 12px; }
input:not([type=checkbox]), select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #fff; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: 18px; height: 18px; accent-color: var(--action); }
.avatar, .state-icon { margin-bottom: 16px; display: grid; place-items: center; border-radius: 50%; background: #e3edf7; color: var(--action); width: 48px; height: 48px; font-weight: 700; }
.state-icon img { width: 20px; height: 20px; }
.feedback { color: #842b23; }
.entry.phone { display: block; width: min(100%, 430px); padding-top: 40px; }
.phone #door { display: none; }
#camera { width: 100%; border-radius: 12px; margin-top: 16px; }
#development-link { display: inline-block; margin-top: 14px; color: var(--action); }
#workspace { display: grid; grid-template-columns: 275px clamp(300px, 30vw, 440px) minmax(0, 1fr); min-height: calc(100dvh - 72px); border-top: 1px solid var(--line); }
#workspace.rail { grid-template-columns: 72px clamp(300px, 30vw, 440px) minmax(0, 1fr); }
#sidebar, .adia, .work-content { padding: 20px; min-width: 0; }
#sidebar, .adia { border-right: 1px solid var(--line); }
#sidebar { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; background: #f6f8fb; }
#sidebar nav { display: grid; width: 100%; gap: 5px; }
#sidebar nav button, #logout { color: inherit; border: 0; border-radius: 8px; background: transparent; padding: 8px; text-align: left; }
#sidebar nav button { display: flex; align-items: center; gap: 10px; }
#sidebar nav button[aria-current] { color: var(--action); background: #deebf7; font-weight: 650; }
.rail [data-tab] span:nth-child(2) { display: none; }
#sidebar details { margin-top: auto; }
#sidebar summary { cursor: pointer; overflow-wrap: anywhere; }
.rail #sidebar { padding: 12px; }
.adia img { object-fit: cover; border-radius: 50%; }
.adia .listen, #project-picker, #work-data { margin-top: 16px; }
.record { padding: 14px; margin-top: 12px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.record p { margin-top: 4px; }
.record button { margin-top: 8px; }
@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; align-content: start; }
  #door { order: 2; }
  #workspace, #workspace.rail { grid-template-columns: 72px minmax(0, 1fr); }
  #sidebar { grid-row: span 2; padding: 12px; }
  #sidebar [data-tab] span:nth-child(2) { display: none; }
  .adia { grid-column: 2; border-right: 0; border-bottom: 1px solid var(--line); }
}

#adia-message { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; color: inherit; }
#adia-messages { max-height: 40dvh; overflow: auto; }
#adia-messages p { white-space: pre-wrap; overflow-wrap: anywhere; }

.document-preview { display: block; max-width: 100%; margin-top: 12px; }

/* L’accueil et la navigation de L’atelier */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#workspace { --nav-width: 275px; grid-template-columns: var(--nav-width) clamp(280px, 29vw, 440px) minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); min-height: 100dvh; border: 0; }
#workspace.rail { --nav-width: 72px; grid-template-columns: var(--nav-width) clamp(280px, 29vw, 440px) minmax(0, 1fr); }
#workspace.home-view { grid-template-columns: var(--nav-width) minmax(0, 1fr); }
#sidebar { grid-row: 1 / -1; gap: 17px; padding: 16px; background: #f6f6f7; }
.sidebar-brand { width: 100%; min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-logo { max-width: 166px; }
#collapse { padding: 2px; border: 0; background: transparent; display: flex; }
.rail .sidebar-logo, .rail #project-picker, .rail .profile-text, .rail [data-tab] span { display: none; }
#sidebar #project-picker { width: 100%; margin: 0; }
#sidebar #project { background: transparent; color: #445972; font-weight: 600; }
#sidebar nav button { min-height: 42px; padding: 6px 10px; color: #445972; }
#sidebar nav button img { flex: none; width: 24px; height: 24px; object-fit: contain; border-radius: 4px; }
#sidebar nav button[aria-current] { background: #e2eaf1; color: #0a58a5; }
.profile-menu { width: 100%; position: relative; }
.profile-menu summary { display: flex; align-items: center; min-height: 64px; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-initial { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e1e9f3; color: var(--action); font-weight: 650; }
.profile-text, .profile-name { display: grid; }
.profile-menu small { color: var(--action); font-size: .875rem; }
.profile-popover { position: absolute; bottom: calc(100% - 7px); z-index: 5; min-width: 245px; width: calc(100% + 15px); background: white; box-shadow: 0 8px 28px #22324518; border: 1px solid var(--line); border-radius: 20px; padding: 8px; }
.profile-name { padding: 10px; border-bottom: 1px solid var(--line); }
.profile-popover button, #sidebar #logout { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: white; color: inherit; padding: 10px; border-radius: 8px; text-align: left; }
.profile-popover button:hover, #sidebar #logout:hover { background: #edf3f9; }
#shared-note { border-top: 1px solid var(--line); padding: 10px; margin-top: 0; font-size: .875rem; display: flex; gap: 7px; }
#shared-note img { align-self: flex-start; }
#work-top { grid-column: 2 / -1; display: flex; align-items: center; justify-content: flex-end; padding-inline: clamp(16px, 3.125vw, 40px); gap: 10px; }
body:has(#workspace:not([hidden])) > header { display: none; }
.tool-icon { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); box-shadow: 0 4px 8px #0000000d; }
#workspace.home-view .work-content { width: min(100% - 48px, 640px); margin: auto; padding: 0; align-self: center; }
#workspace.home-view .work-heading { padding-bottom: 22px; }
#home-date { color: var(--muted); font-size: .875rem; }
#workspace.home-view h1 { font-size: clamp(1.5rem, 2.4vw, 1.75rem); margin-top: 5px; }
#workspace.home-view #work-data { margin-top: 8px; }
.next-step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 33%; min-height: 228px; border-radius: 20px; overflow: hidden; background: #dcbdc6; color: #3a252c; }
.next-step.offres { background: #fbd1b8; color: #50351f; }
.next-step.prix { background: #eed7c0; color: #483724; }
.next-step:not(:has(figure)) { grid-template-columns: 1fr; background: #e4edf6; color: #223245; }
.next-copy { display: grid; align-content: center; justify-items: start; gap: 11px; padding: 17px 12px 16px 32px; }
.next-copy p { color: inherit; margin: 0; }
.next-copy .tag { background: #00000010; border-radius: 24px; padding: 5px 12px; font-size: .875rem; }
.next-copy h2 { font-size: 1.25rem; line-height: 1.3; }
.next-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.next-actions button { border: 0; border-radius: 15px; padding: 9px 20px; min-height: 44px; font-weight: 650; }
.next-actions .primary { background: #633146; }
.offres .next-actions .primary, .prix .next-actions .primary { background: #654021; }
.next-actions .secondary { background: #ffffff80; color: inherit; }
.next-step figure { margin: 0; min-width: 0; position: relative; }
.next-step figure img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: center 22%; mask-image: linear-gradient(to right, transparent, #000 23%); }
.next-step figcaption { position: absolute; inset: auto 8px 10px; color: inherit; font-weight: 700; font-size: 1rem; }
#home-composer .adia { padding: 0; border: none; }
#home-composer .adia > :is(img, h2, #adia-context, .listen) { display: none; }
#home-composer #adia-form { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 6px; min-height: 56px; padding: 6px 8px 6px 48px; margin-top: 46px; border: 1px solid var(--line); border-radius: 28px; background: white url('/atelier-assets/adia-avatar.png') no-repeat 14px center / 28px auto; box-shadow: 0 6px 18px #22324512; }
#adia-form label { position: absolute; clip-path: inset(50%); }
#home-composer #adia-message { border: 0; min-height: 36px; height: 36px; padding: 6px 3px; resize: none; }
.send-message { border-radius: 50%; display: grid; place-items: center; width: 40px; min-height: 40px; padding: 0; }
.adia:not(#home-composer .adia, #chat-page .adia, #library-composer .adia) #adia-form { grid-template-columns: 1fr 32px 40px; align-items: center; }
.adia:not(#home-composer .adia, #chat-page .adia, #library-composer .adia) #adia-message { grid-column: 1 / -1; }
#adia-status:empty, #adia-messages:empty { display: none; }
#home-details { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; border-top: 1px solid var(--line); padding-block: 16px; font-size: .875rem; }
#home-details p, #home-details button { margin: 0; }
#home-details strong { margin-left: 8px; color: #223245; }
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100dvh - 80px); margin: 64px auto auto; border: 0; border-radius: 20px; padding: 0; color: inherit; box-shadow: 0 15px 40px #14324a22; }
dialog::backdrop { background: #24485e66; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid #e4eaf0; }
.search-head h2, #search-query { flex: 1; }
#search-query { border: 0; min-width: 0; font-size: 1.125rem; padding-left: 0; }
.key { border: 1px solid var(--line); background: white; color: #445972; border-radius: 6px; font-size: .875rem; }
#search-results { padding: 8px; max-height: 60dvh; overflow: auto; }
#search-results h3 { font-size: .875rem; color: #445972; font-weight: 600; padding-inline: 12px; margin: 7px 0 5px; }
.search-hit { border: 0; background: transparent; color: inherit; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; border-radius: 12px; }
.search-hit img { justify-self: center; }
.search-hit small { display: block; color: var(--muted); }
.search-hit:hover, .search-hit[aria-current] { background: #e8f0f9; }
#search-dialog footer { background: #f5f7fa; color: var(--muted); padding: 10px 20px; font-size: .875rem; }
#workspace-dialog-content { padding: 8px 20px 20px; }
@media (max-width: 950px) {
  #workspace { --nav-width: 72px; }
  #workspace .sidebar-logo, #workspace #project-picker, #workspace .profile-text, #workspace [data-tab] span { display: none; }
  #sidebar { padding: 10px; }
}
@media (max-width: 700px) {
  #workspace, #workspace.rail { grid-template-columns: var(--nav-width) minmax(0, 1fr); grid-template-rows: 54px auto minmax(0, 1fr); }
  #sidebar { grid-row: 1 / -1; }
  #workspace.home-view { grid-template-rows: 54px minmax(0, 1fr); }
  #workspace.home-view .work-content { width: calc(100% - 24px); align-self: start; padding-top: 22px; }
  #workspace .adia, #workspace .work-content { grid-column: 2; }
  .next-step { grid-template-columns: minmax(0, 1fr); }
  .next-copy { padding: 18px; }
  .next-step figure { min-height: 135px; }
  .next-step figure img { mask-image: linear-gradient(transparent, #000 25%); }
  #home-composer #adia-form { padding-left: 8px; background-image: none; }
}

.match { color: var(--action); }
#base-note { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; resize: vertical; color: inherit; }
.rail .profile-menu summary { padding-inline: 5px; }
@media (max-width: 950px) { .profile-menu summary { padding-inline: 5px; } }

/* Mes clients · la page */
#workspace.clients-view { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); height: 100dvh; }
.clients-view #sidebar { padding: 13px 10px; align-items: center; }
.clients-view .sidebar-brand { flex-direction: column; gap: 13px; padding-top: 5px; }
.clients-view .sidebar-logo, .clients-view .profile-text, .clients-view [data-tab] span { display: none; }
.clients-view .sidebar-symbol[hidden] { display: block !important; }
.clients-view #collapse { justify-content: center; }
.clients-view #sidebar #project-picker { display: block; width: 38px; }
.clients-view #sidebar #project-picker[hidden] { display: none; }
.clients-view #sidebar #project { width: 38px; min-height: 40px; padding: 0; appearance: none; color: transparent; background: url('/atelier-assets/projet-point.svg') center / auto no-repeat; }
.clients-view #sidebar #project option { color: #223245; }
.clients-view #sidebar nav button { justify-content: center; padding-inline: 0; }
.clients-view #sidebar nav button[data-tab=Atelier][aria-current] img { content: url('/atelier-assets/atelier-actif.svg'); }
.clients-view #sidebar nav button[data-tab=Accueil] img { content: url('/atelier-assets/accueil-inactif.svg'); }
.clients-view .profile-menu summary { padding: 0; border: none; justify-content: center; }
.clients-view #work-top { justify-content: flex-end; }
#client-location { margin-right: auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
#client-location > div { display: grid; }
#client-location strong { font-size: 1.25rem; }
#client-project-name { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#client-session-mode { display: inline-flex; align-items: center; gap: 5px; background: #d8e4f1; }
#client-session-mode[aria-pressed=true] { background: var(--action); color: white; }
#client-session-mode[aria-pressed=true] img { filter: brightness(0) invert(1); }
#workspace.clients-session { grid-template-columns: minmax(0, 1fr); }
.clients-session #sidebar { display: none; }
.clients-session #work-top, .clients-session #clients-page { grid-column: 1; }
#clients-page { display: grid; grid-column: 2; grid-template-columns: minmax(0, 1fr); min-height: 0; }
#clients-page:has(#client-explanation:not([hidden])) { grid-template-columns: minmax(270px, 400px) minmax(0, 1fr); }
.clients-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; }
.client-width { width: min(680px, calc(100% - 64px)); margin-inline: auto; }
#client-body { flex: 1 0 auto; padding-block: 30px 22px; }
.client-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.client-progress { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 19px; color: #526881; font-size: .875rem; letter-spacing: .055em; text-transform: uppercase; }
.client-bars { display: flex; align-items: center; gap: 4px; }
.client-bars span { border-radius: 3px; height: 4px; width: clamp(13px, 2.3vw, 29px); background: #dce3ea; }
.client-bars .done { background: var(--action); }
.client-title { position: relative; font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 10px; }
.client-title .client-avatar { position: absolute; left: -54px; top: 0; }
.client-description { margin-top: 5px; }
.client-input { display: block; width: 100%; min-height: 110px; color: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 18px; resize: vertical; font: inherit; }
.client-intro-video { display: block; width: min(100%, 520px); margin-top: 16px; border-radius: 14px; }
.client-choices { display: grid; gap: 12px; margin-top: 24px; }
.client-choice { display: grid; text-align: left; align-items: center; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 20px; width: 100%; min-height: 95px; padding: 14px 20px; border-radius: 20px; border: 1px solid var(--line); color: inherit; background: #fff; }
.client-choice[aria-pressed=true] { background: #e6eff8; border: 2px solid var(--action); padding: 13px 19px; }
.client-choice strong, .client-choice small { display: block; }
.client-choice strong { font-size: 1.25rem; font-weight: 650; }
.client-choice small { color: var(--muted); }
.client-choice kbd { padding: 2px 6px; border: 1px solid #c7d5e6; border-radius: 6px; background: white; color: #445972; }
.client-choice-icon, .client-group-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e8f0f9; }
.client-choice[aria-pressed=true] .client-choice-icon { background: white; }
.client-alternatives, .client-votes, .client-plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.client-alternatives .link { display: flex; align-items: center; gap: 6px; font-size: .875rem; }
.client-footer { position: sticky; bottom: 0; z-index: 2; background: #fff; border-top: 1px solid var(--line); }
#client-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 78px; padding-block: 12px; }
#client-footer > .primary:only-child { margin-left: auto; }
.client-footer .primary { padding-inline: 21px; border-radius: 15px; }
.client-selection { margin: 0; font-size: .875rem; }
.client-footer-prompt { display: flex; align-items: center; font-weight: 650; gap: 9px; }
.client-votes .link { margin: 0; padding: 5px 8px; font-size: .875rem; }
.client-hero { display: grid; justify-items: center; align-content: center; min-height: 162px; height: auto; border-radius: 20px; padding: 20px; background: #10374c; color: white; box-shadow: 0 3px 7px #183b5312; }
.client-hero.detail { position: relative; justify-items: start; gap: 12px; min-height: 228px; }
.client-group-title { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 1.25rem; text-align: center; }
.client-hero.detail .client-group-title { flex-direction: row; text-align: left; gap: 14px; }
.client-hero .client-group-icon { height: 88px; width: 88px; }
.client-hero.detail .client-group-icon { width: 62px; height: 62px; background: #ffffff1a; border: 1px solid #ffffff80; }
.client-group-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: var(--muted); font-size: .875rem; }
.client-group-nav button { background: transparent; padding: 4px; }
.client-chip { background: #ad7659; padding: 5px 13px; border-radius: 30px; font-size: .875rem; font-weight: 650; }
.client-edit { position: absolute; right: 20px; top: 13px; height: 36px; width: 36px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #ffffff20; }
.client-status-bars { display: flex; gap: 6px; width: 100%; }
.client-status-bars span { flex: 1; text-align: center; border-top: 6px solid #ffffff33; font-weight: 650; font-size: .875rem; padding-top: 4px; border-radius: 3px; }
.client-status-bars .done { border-color: white; }
.client-hero p { color: #eef6fc; margin: 0; font-size: .875rem; }
.client-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.client-figures > div { padding-inline: 20px; border-left: 1px solid var(--line); }
.client-figures > div:first-child { border-left: 0; padding-inline-start: 0; }
.client-figure-button { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; }
.client-figures strong, .client-figure-button { font-size: clamp(1.1rem, 2.25vw, 1.75rem); line-height: 1.1; font-weight: 700; }
.client-figure-button:hover { color: var(--action); }
.client-figures small, .client-source-note { color: var(--muted); font-size: .875rem; }
.client-source-note { margin-top: 10px; }
.client-kicker { color: #526881; font-size: .875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; margin-top: 30px; }
.client-lines { margin: 6px 0 0; }
.client-lines > div { display: grid; grid-template-columns: minmax(105px, 24%) 1fr; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); }
.client-lines dt { color: #445972; font-size: .875rem; }
.client-lines dd { margin: 0; }
#client-explanation { background: white; overflow: auto; display: flex; flex-direction: column; padding: 22px 27px; border-right: 1px solid var(--line); }
.client-aside-heading { display: flex; align-items: center; gap: 10px; }
.client-aside-heading button { margin-left: auto; }
#client-explanation > p, .client-aside-end { font-size: .875rem; }
.client-figure-source { display: grid; grid-template-columns: 30% 1fr; gap: 10px; border-top: 1px solid var(--line); padding-block: 14px; margin-top: 6px; font-size: .875rem; }
.client-figure-source p { margin: 3px 0; }
.client-figure-source small { display: block; color: var(--muted); }
.client-aside-end { margin-top: auto; }
.client-aside-end .link { margin-top: 6px; }
.client-table-wrap { overflow: auto; margin-top: 20px; }
.client-recap { width: 100%; border-collapse: collapse; font-size: .875rem; }
.client-recap th, .client-recap td { border-bottom: 1px solid var(--line); padding: 14px 8px; text-align: left; }
.client-recap th { color: var(--muted); font-weight: 500; }
.client-recap :is(th, td):first-child { padding-left: 0; }
.client-recap td:nth-child(n+3) { white-space: nowrap; }
.client-row-label { display: flex; align-items: center; gap: 10px; }
.client-row-label img { padding: 8px; border-radius: 50%; background: #e8f0f9; }
.client-row-label small { display: block; color: var(--muted); }
.client-advised { color: #10743e; }
.client-keep { display: inline-flex; gap: 4px; align-items: center; color: var(--action); cursor: pointer; }
.client-keep input { accent-color: var(--action); }
.client-status { color: #8b3a2c; }
#client-dialog { margin-top: 24px; max-height: calc(100dvh - 48px); }
#client-dialog .search-head { padding-block: 17px; }
#client-dialog .search-head p { margin: 0; font-size: .875rem; }
#client-dialog .search-head button { margin-left: auto; }
#client-dialog-content { padding: 16px 24px 20px; }
.client-chat-log { min-height: 60px; max-height: 27dvh; overflow: auto; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.client-chat-log p { margin: 0; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-person-message { align-self: end; background: #f6f9fb; border: 1px solid var(--line); padding: 9px 16px; border-radius: 14px; }
.client-plan-box h3 { font-size: 1rem; margin: 0 0 8px; }
.client-plan-questions { padding: 12px 14px 12px 36px; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 9px #2232450b; }
.client-plan-questions li { padding-left: 4px; color: var(--action); }
.client-plan-questions input { width: calc(100% - 25px); padding: 6px; border: 0; }
.client-plan-questions img { vertical-align: middle; }
.client-plan-actions { margin-top: 12px; gap: 7px; }
.tool-outline { border: 1px solid var(--line); padding: 8px 12px; }
.client-reminder-form { padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.client-chat-form { display: flex; align-items: center; padding: 7px; border: 1px solid var(--line); border-radius: 18px; }
.client-chat-form input { border: 0; flex: 1; min-width: 0; }
.client-chat-status:empty { display: none; }
@media (max-width: 1050px) {
  .client-title .client-avatar { position: static; margin-right: 8px; vertical-align: middle; }
  #clients-page:has(#client-explanation:not([hidden])) { grid-template-columns: minmax(245px, 33%) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  #workspace.clients-view { grid-template-rows: 60px minmax(0, 1fr); }
  .client-width { width: calc(100% - 24px); }
  #work-top:has(#client-location:not([hidden])) { padding-inline: 8px; gap: 5px; }
  #client-location { gap: 5px; }
  #client-location strong { font-size: .95rem; }
  #client-project-name { max-width: 105px; }
  .clients-view #work-top .listen { display: none; }
  #clients-page:has(#client-explanation:not([hidden])) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 38%) minmax(0, 1fr); }
  #client-explanation { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .client-figures > div { padding-inline: 6px; }
  .client-choice { gap: 10px; }
  .client-choice strong { font-size: 1rem; }
  .client-footer .primary { padding-inline: 10px; }
}
.clients-view:not(.clients-expanded) #collapse img { content: url('/atelier-assets/ouvrir-rail.svg'); }
@media (min-width: 761px) {
  #workspace.clients-view.clients-expanded:not(.clients-session) { grid-template-columns: 275px minmax(0, 1fr); }
  .clients-view.clients-expanded #sidebar { align-items: stretch; padding: 16px; }
  .clients-view.clients-expanded .sidebar-brand { flex-direction: row; }
  .clients-view.clients-expanded .sidebar-symbol[hidden] { display: none !important; }
  .clients-view.clients-expanded .sidebar-logo, .clients-view.clients-expanded [data-tab] span { display: block; }
  .clients-view.clients-expanded .profile-text { display: grid; }
  .clients-view.clients-expanded #sidebar #project-picker, .clients-view.clients-expanded #sidebar #project { width: 100%; }
  .clients-view.clients-expanded #sidebar #project { appearance: auto; color: inherit; padding: 8px; background: transparent; }
  .clients-view.clients-expanded #sidebar nav button { justify-content: start; padding-inline: 10px; }
  .clients-view.clients-expanded .profile-menu summary { justify-content: start; padding-inline: 10px; }
}

/* Parler à Adia */
#workspace.chat-view { grid-template-columns: var(--nav-width) minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); height: 100dvh; }
#chat-location { display: flex; gap: 14px; align-items: center; margin-right: auto; }
#chat-location > div { display: grid; }
#chat-location strong { font-size: 1.25rem; line-height: 1.2; }
#chat-subtitle { color: var(--muted); font-size: .875rem; }
#chat-page { grid-column: 2; min-height: 0; }
#chat-page .adia { width: min(640px, calc(100% - 48px)); height: 100%; margin-inline: auto; border: 0; padding: 0 0 24px; display: flex; flex-direction: column; }
#chat-page .adia > :is(h2, img, .listen, #adia-context) { display: none; }
#chat-page #adia-messages { max-height: none; min-height: 0; flex: 1; overflow: auto; padding-top: 14px; padding-bottom: 12px; }
#chat-page #adia-messages:empty { display: block; }
#chat-page .chat-day { color: var(--muted); text-align: center; margin: 0 0 16px; font-size: .875rem; font-weight: 650; }
#chat-page .chat-message { display: grid; gap: 9px; margin-block: 14px; }
#chat-page .chat-message p { margin: 0; color: #445972; }
#chat-page .chat-message audio { width: min(290px, 100%); }
#chat-page .from-person { width: fit-content; min-width: min(280px, 60%); max-width: 84%; margin-left: auto; padding: 10px 20px; border: 1px solid var(--line); border-radius: 16px; background: #eff2f4; }
.chat-replies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chat-replies .pill { border: 1px solid var(--line); padding: 8px 18px; }
.chat-replies .pill:hover { background: #e8f0fa; }
#chat-page #adia-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; min-height: 64px; margin-top: 12px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 12px #2232450e; }
#chat-page #adia-message { grid-column: auto; min-height: 40px; height: 40px; padding: 8px 3px; border: 0; resize: none; }
#chat-page #adia-message::placeholder { color: #6e8098; }
#chat-page #adia-status { margin-top: 6px; }
#home-composer #adia-messages { display: none; }
#sidebar nav .discussion-chevron { margin-left: auto; width: auto; height: auto; }
#sidebar nav [aria-expanded=true] .discussion-chevron { transform: rotate(180deg); }
#chat-history { display: grid; max-height: min(36vh, 300px); overflow: auto; padding-left: 12px; }
#sidebar nav #chat-history button { min-height: 35px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; font-size: .875rem; }
#sidebar nav #chat-history .history-new { color: var(--action); font-weight: 650; }
#sidebar nav #chat-history [aria-current] { background: #e4eef9; color: var(--action); }
.rail #sidebar nav .discussion-chevron, .clients-view:not(.clients-expanded) #sidebar nav .discussion-chevron { display: none; }
.rail #chat-history, .clients-view:not(.clients-expanded) #chat-history { position: absolute; left: 63px; z-index: 6; width: 225px; background: white; border: 1px solid var(--line); box-shadow: 0 6px 20px #22324522; border-radius: 12px; padding: 7px; }
@media (max-width: 950px) {
  #sidebar nav .discussion-chevron { display: none; }
  #chat-history { position: absolute; left: 63px; z-index: 6; width: 225px; background: white; border: 1px solid var(--line); box-shadow: 0 6px 20px #22324522; border-radius: 12px; padding: 7px; }
}
@media (max-width: 700px) {
  #workspace.chat-view { grid-template-rows: 60px minmax(0, 1fr); }
  #chat-page .adia { width: calc(100% - 18px); padding-bottom: 10px; }
  #chat-location { gap: 6px; }
  #chat-location strong { font-size: 1rem; }
  #work-top:has(#chat-location:not([hidden])) { padding-inline: 8px; gap: 5px; }
  #chat-page #adia-form { padding: 6px; gap: 4px; }
}

/* La coque de L’atelier */
#workspace.shell-view { grid-template-columns: var(--nav-width) minmax(0, 1fr); grid-template-rows: 72px minmax(0, 1fr); min-height: 100dvh; }
#workspace.shell-view .work-content { grid-column: 2; padding: 24px clamp(20px, 3.125vw, 40px); min-width: 0; }
#workspace.shell-view .work-heading { display: none; }
#workspace.shell-view #work-data { margin: 0; }
#shell-location { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
#shell-location div { display: grid; min-width: 0; }
#shell-title { font-size: 1.25rem; line-height: 1.15; }
#shell-subtitle { font-size: .875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sidebar nav button[data-tab=Documents][aria-current] img { content: url('/atelier-assets/documents-actif.svg'); }
#sidebar #project-picker { position: relative; }
#sidebar #project-toggle { display: flex; align-items: center; gap: 7px; width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 11px; background: transparent; padding: 5px 9px; color: #445972; text-align: left; font-weight: 650; }
#project-toggle span { flex: 1; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#project-toggle .project-chevron { flex: none; margin-right: 3px; }
#project-toggle[aria-expanded=true] .project-chevron { transform: rotate(180deg); }
.shell-popover { position: absolute; z-index: 8; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 25px #22324518; padding: 12px; }
.shell-popover h2 { font-size: 1rem; margin: 0 0 7px; }
#project-menu { width: min(320px, calc(100vw - 36px)); max-height: 65dvh; overflow: auto; top: 30px; left: 4px; }
.project-option { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 4px; background: #fff; color: inherit; text-align: left; }
.project-option[aria-current] { border: 2px solid var(--action); padding: 11px; background: #e8f0f9; }
.project-option > span:nth-child(2) { flex: 1; }
.project-option small, .notice-row small, .directory-row small, .coaching-create small { display: block; color: var(--muted); font-size: .875rem; }
.project-initials { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--action); color: #fff; font-weight: 650; }
.project-option[aria-current] .project-initials { background: #b9183e; }
#project-menu > .link { margin: 6px auto 0; }
#notifications-box { position: relative; flex: none; }
#notifications-menu { width: min(400px, calc(100vw - 30px)); top: calc(100% + 12px); right: -15px; }
.notice-list { display: grid; gap: 8px; }
.notice-row { width: 100%; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 12px; text-align: left; color: inherit; }
.notice-row:hover, .project-option:hover, .directory-row:hover { background: #edf3f9; }
.shell-round-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 50%; background: #e5eef8; }
#notifications-menu > .link { margin-top: 9px; }
.library-view .work-content { display: flex; flex-direction: column; min-height: 0; }
.shell-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
.shell-filters .pill { color: #223245; background: transparent; }
.shell-filters .pill[aria-pressed=true] { background: #10374c; color: white; }
.library-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 17px 16px; }
.library-card { display: grid; align-content: start; gap: 6px; background: transparent; padding: 0; border: 0; color: inherit; text-align: left; min-width: 0; }
.library-card:hover .library-cover { background: #e3eaf1; }
.library-cover, .library-detail-cover { display: grid; place-items: center; overflow: hidden; background: #edf0f2; border-radius: 14px; }
.library-cover { aspect-ratio: 1.42; width: 100%; }
.library-cover img, .library-detail-cover img { max-width: 92%; max-height: 89%; object-fit: contain; }
.library-cover > img:not([src^="blob:"]) { min-height: 24px; }
.library-cover.add-paper { border: 1px dashed #a7bdd5; background: white; }
.library-text { display: grid; font-size: .875rem; gap: 3px; }
.library-text small { font-size: .875rem; color: var(--muted); }
.library-empty { width: min(520px, 100%); margin: clamp(38px, 7vh, 106px) auto 0; }
.library-empty .library-card { width: 172px; margin-bottom: 16px; }
.library-empty .primary { margin-top: 15px; }
.library-detail-cover { min-height: 100px; margin-top: 14px; }
.library-detail-cover img { max-height: 55dvh; }
#library-composer { width: min(720px, 100%); margin: auto auto 0; padding-top: 24px; }
#library-composer .adia { border: 0; padding: 0; grid-column: auto; }
#library-composer .adia > :is(img, h2, #adia-context, .listen, #adia-messages) { display: none; }
#library-composer #adia-form { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; min-height: 64px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 12px #2232450f; }
#library-composer #adia-message { grid-column: auto; height: 40px; padding: 8px 3px; border: 0; resize: none; }
.empty-library #library-composer #adia-form { display: none; }
.coaching-view #work-data, .discussions-view #work-data { width: min(100%, 560px); margin-inline: auto !important; }
.discussions-view #work-data { width: min(100%, 640px); }
.coaching-next { background: #10374c; color: #fff; padding: 20px; border-radius: 20px; }
.coaching-next h2 { margin-top: 12px; font-size: 1.25rem; }
.coaching-next p { color: #c7d7e1; margin: 8px 0 12px; font-size: .875rem; }
.coaching-chip { background: #ffffff22; padding: 5px 10px; border-radius: 20px; font-size: .875rem; }
.coaching-next .primary { width: 100%; margin-top: 12px; background: white; color: var(--action); border-radius: 14px; }
.coaching-next .link { color: white; font-size: .875rem; margin: 10px auto 0; }
.coaching-progress { display: grid; gap: 5px; padding: 9px 13px; background: #ffffff18; border-radius: 11px; font-size: .875rem; }
.coaching-progress progress { width: 100%; height: 7px; accent-color: #fff; }
.coaching-create { margin-top: 15px; border: 1px solid var(--line); background: white; border-radius: 18px; width: 100%; padding: 14px; display: flex; gap: 13px; align-items: center; color: inherit; text-align: left; }
.coaching-create img { padding: 9px; background: #e5eef8; border-radius: 50%; }
.coaching-agent, .directory-more { margin-inline: auto; }
.discussion-toolbar { display: flex; align-items: center; gap: 12px; }
.discussion-audiences { flex: 1; display: flex; gap: 5px; padding: 4px; border-radius: 30px; background: #e9eef3; }
.discussion-audiences .pill { flex: 1; background: transparent; color: #445972; white-space: nowrap; }
.discussion-audiences .pill[aria-pressed=true] { background: white; color: #223245; }
.discussion-toolbar > .primary { border-radius: 15px; }
.discussion-inline-search { display: flex; align-items: center; gap: 8px; padding-inline: 13px; background: #ecf0f4; border-radius: 30px; margin-top: 16px; }
.discussion-inline-search input { border: 0; background: transparent; padding-left: 0; }
.directory-group-label { margin: 14px 0 11px; color: var(--muted); font-size: .875rem; font-weight: 600; }
.directory-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.directory-row { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: inherit; display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; }
.directory-row:last-child { border: 0; }
.directory-row strong { font-weight: 650; }
.directory-row > small { white-space: nowrap; }
#workspace-dialog.shortcuts-dialog { width: min(480px, calc(100% - 32px)); margin: auto; padding: 12px 8px; }
.shortcuts-dialog .search-head { border: 0; padding-bottom: 0; }
.shortcuts-dialog .search-head > button { display: none; }
.shortcuts-list { display: grid; gap: 9px; margin: 5px 0 14px; }
.shortcuts-list > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: baseline; gap: 14px; }
.shortcuts-list dt { display: flex; gap: 5px; }
.shortcuts-list dd { margin: 0; }
.shortcuts-list kbd { border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px; color: #445972; font: inherit; font-size: .875rem; }
.rail #sidebar #project-picker, .clients-view:not(.clients-expanded) #sidebar #project-picker { display: block; width: 40px; }
.rail #sidebar #project-picker[hidden], .clients-view:not(.clients-expanded) #sidebar #project-picker[hidden] { display: none; }
.rail #project-toggle :is(span, .project-chevron), .clients-view:not(.clients-expanded) #project-toggle :is(span, .project-chevron) { display: none; }
.rail #project-menu, .clients-view:not(.clients-expanded) #project-menu { top: 0; left: 42px; }
@media (max-width: 1050px) { .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 950px) {
  #workspace #sidebar #project-picker:not([hidden]) { display: block; width: 40px; }
  #workspace #project-toggle :is(span, .project-chevron) { display: none; }
  #project-menu { top: 0; left: 43px; }
}
@media (max-width: 700px) {
  #workspace.shell-view { grid-template-rows: 60px minmax(0, 1fr); }
  #workspace.shell-view .work-content { padding-inline: 12px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discussion-toolbar { flex-wrap: wrap; }
  .directory-row { gap: 7px; padding-inline: 9px; }
  .directory-row > small { display: none; }
  .directory-row { grid-template-columns: 39px minmax(0, 1fr); }
}

/* Mon compte */
.account-grid { display: grid; grid-template-columns: minmax(205px, 300px) minmax(0, 1fr); gap: clamp(20px, 3.75vw, 48px); align-items: start; }
.account-nav, .account-pane { display: grid; gap: 12px; min-width: 0; }
.account-pane > h1 { font-size: 1.75rem; margin: 0; }
.account-pane > p { margin: 0; }
.account-list { border: 1px solid var(--line); background: #fff; border-radius: 19px; overflow: hidden; }
.account-row { display: flex; align-items: center; justify-content: space-between; gap: 11px; padding: 11px 14px; width: 100%; min-height: 46px; text-align: left; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
button.account-row { margin: 0; }
button.account-row:hover, .account-row[aria-current] { background: #e8f0f9; }
.account-row-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-row-copy strong { font-weight: 650; }
.account-row-copy small { display: block; color: var(--muted); font-size: .875rem; }
.account-label, .account-form small { font-size: .875rem; color: #445972; font-weight: 500; margin: 4px 0 0; }
.account-form { display: grid; gap: 12px; margin: 0; }
.account-form label:not(.check) { display: grid; gap: 5px; color: #445972; font-size: .875rem; min-width: 0; }
.account-form textarea, .account-contact { border: 1px solid var(--line); border-radius: 9px; background: white; color: #223245; padding: 11px; width: 100%; text-align: left; }
.account-form textarea { min-height: 85px; resize: vertical; }
.account-contact { min-height: 44px; }
.account-form label :is(input, textarea, select) { font-size: 1rem; }
.account-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.account-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-form-actions p { margin: 0; }
.account-form-actions p:empty { display: none; }
#workspace-dialog-content > .account-form-actions { margin-top: 12px; }
.account-switch { appearance: none; width: 42px; height: 24px; border: 0; border-radius: 30px; background: #dce5ee; padding: 3px; cursor: pointer; }
.account-switch::before { content: ''; display: block; width: 18px; height: 18px; border-radius: 50%; background: white; }
.account-switch:checked { background: var(--action); }
.account-switch:checked::before { transform: translateX(18px); }
.account-free { color: #16734a; }
.account-chosen { margin-left: auto; background: #10374c; color: #fff; border-radius: 20px; padding: 3px 10px; font-size: .875rem; }
.account-balance { display: grid; gap: 8px; padding: 20px; color: #fff; background: #10374c; border-radius: 20px; justify-items: start; }
.account-balance h2 { font-size: 1.6rem; }
.account-balance p { color: #fff; margin: 0; }
.account-payment-failed, .account-payment-paid { padding: 18px; border-radius: 15px; background: #fdeced; }
.account-payment-paid { background: #e7f4ec; }
.account-danger.primary { background: #b41632; }
.account-danger-link { color: #b41632; }
#workspace.high-contrast { --muted: #283341; --line: #7c8592; --action: #073e78; }
#workspace[data-text-size="125"] :is(.account-pane, #work-data, #adia-messages) { font-size: 1.25rem; }
#workspace[data-text-size="150"] :is(.account-pane, #work-data, #adia-messages) { font-size: 1.5rem; }
@media (max-width: 800px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-nav { grid-template-columns: 1fr 1fr; gap: 7px; }
  .account-nav .shell-round-icon { display: none; }
  .account-nav .account-row { padding-inline: 8px; }
}

/* Google Drive dans Mon compte */
.drive-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .9fr); gap: clamp(12px, 2.5vw, 32px); align-items: start; }
.drive-column { min-width: 0; display: grid; gap: 12px; }
.drive-caption { font-size: .875rem; color: var(--muted); margin-top: 0; }
.drive-heading { font-size: 1.25rem; }
.drive-connect { justify-self: start; margin: 10px 0 0; }
.drive-link { text-decoration: none; display: inline-flex; align-items: center; margin-top: 12px; }
.drive-notice { padding: 10px 14px; background: #10374c; color: #fff; border-radius: 10px; width: fit-content; }
#workspace-dialog-content:has(.account-row img[src$="drive-sortie.svg"]) .account-list { margin-top: 12px; }
@media (max-width: 1080px) { .drive-grid { grid-template-columns: minmax(0, 1fr); } }
.account-pane .drive-notice { position: fixed; z-index: 3; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); }

/* Le gabarit complet */
.workshop-video { position: relative; overflow: hidden; aspect-ratio: 16 / 9; width: min(544px, 100%); margin-top: 20px; background: #10374c; }
.workshop-video :is(.workshop-video-poster, video) { width: 100%; height: 100%; object-fit: cover; display: block; }
.workshop-video-cover { position: absolute; inset: 0; padding: 20px 24px; display: flex; justify-content: space-between; align-items: start; background: linear-gradient(transparent 28%, #15384d 100%); }
.workshop-video-cover .coaching-chip { background: #183c51bd; color: white; }
.workshop-video-cover .workshop-play { position: absolute; display: grid; place-items: center; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; padding: 0; }
.workshop-video-note { width: min(544px, 100%); font-size: .875rem; }
.workshop-video-note + select { width: min(310px, 100%); margin-top: 12px; }
.offer-choices .client-choice { min-height: 75px; }
.offer-check { width: 23px; height: 23px; border: 2px solid #728397; border-radius: 50%; display: inline-grid; place-items: center; }
.offer-choices [aria-pressed=true] .offer-check { background: #51a922; border-color: #51a922; }
.offer-choices [aria-pressed=true] .offer-check::after { content: '✓'; color: white; font-size: .875rem; }
.workshop-text-option { display: flex; align-items: center; gap: 7px; }
.workshop-wide .client-width { width: min(1040px, calc(100% - 70px)); }
.workshop-wide .client-title .client-avatar { display: none; }
.workshop-toolbar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 24px; }
.workshop-toolbar .client-kicker, .workshop-toolbar .link { margin: 0; font-size: .875rem; }
.workshop-notebook-empty { padding: 38px 18px; text-align: center; border: 1px dashed #a7bed6; border-radius: 20px; margin-top: 24px; }
.workshop-notebook-empty p { max-width: 470px; margin-inline: auto; }
.workshop-notebook-table { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 20px; margin-top: 24px; }
.workshop-notebook-table table { width: 100%; min-width: 710px; border-spacing: 0; background: white; text-align: right; font-variant-numeric: tabular-nums; font-size: .95rem; }
.workshop-notebook-table :is(th, td) { padding: 8px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.workshop-notebook-table thead th { background: #f4f7fa; color: #445972; font-weight: 550; }
.workshop-notebook-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: white; text-align: left; font-weight: 550; }
.workshop-notebook-table tr > :last-child:not([colspan]) { position: sticky; right: 0; z-index: 1; background: white; }
.workshop-notebook-table thead tr > :is(:first-child, :last-child) { background: #f4f7fa; z-index: 2; }
.workshop-notebook-table .notebook-group th { color: #445972; font-size: .875rem; }
.workshop-notebook-table .notebook-total :is(td, th), .workshop-notebook-table .notebook-net :is(td, th) { font-weight: 700; }
.workshop-notebook-table .notebook-net :is(td, th) { color: #136740; background: #f1f8f5; border-bottom: 0; }
.notebook-cell { width: 100%; text-align: right; border: 0; border-radius: 8px; background: transparent; color: inherit; padding: 4px 6px; }
.notebook-cell:hover, .notebook-cell:focus-visible { background: #e8f0fb; color: var(--action); }
.notebook-notice { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: fit-content; margin: 14px auto 0; padding: 10px 16px; background: #10374c; color: white; border-radius: 14px; font-size: .875rem; }
.notebook-notice .link { color: #b8d9fa; margin: 0; }
.workshop-plan-layout { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 680px); justify-content: center; gap: clamp(18px, 4vw, 48px); }
.workshop-plan-summary { align-self: start; position: sticky; top: 0; padding-top: 4px; }
.workshop-plan-summary h2 { font-size: .875rem; font-weight: 550; color: #445972; margin: 0 0 7px; }
.workshop-plan-summary .link { width: 100%; margin: 2px 0; padding: 8px 12px; color: #223245; font-weight: 500; border-radius: 9px; }
.workshop-plan-summary .link[aria-current] { color: var(--action); background: #e9f2fb; font-weight: 650; }
.workshop-plan-actions { display: flex; gap: 24px; flex-wrap: wrap; }
.workshop-paper { background: white; border-radius: 6px; padding: clamp(22px, 4.4vw, 54px); }
.workshop-paper h1 { font-size: 1.8rem; }
.workshop-paper h2 { font-size: 1.25rem; }
.workshop-plan-subtitle { color: var(--muted); font-size: .875rem; }
.workshop-plan-section { margin-top: 17px; padding-block: 6px; scroll-margin: 18px; }
.workshop-plan-section p { margin: 5px 0 0; color: inherit; white-space: pre-line; }
.workshop-plan-section.plan-reading { background: #e9f2fb; border-radius: 12px; padding: 12px; }
.workshop-plan-footer { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.workshop-plan-player { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-radius: 17px; padding: 8px 10px; background: #10374c; color: #fff; }
.workshop-plan-player > span { flex: 1; min-width: 105px; display: grid; }
.workshop-plan-player small { color: #c6d7e4; }
.workshop-plan-player .pill { display: grid; place-items: center; padding: 0; width: 36px; height: 36px; }
.workshop-plan-player .player-control { background: #ffffff24; }
.workshop-plan-player .player-control img { filter: brightness(0) invert(1); }
.workshop-plan-player progress { width: 100%; height: 5px; }
@media (max-width: 850px) {
  .workshop-wide .client-width { width: calc(100% - 30px); }
  .workshop-plan-layout { grid-template-columns: 1fr; gap: 20px; }
  .workshop-plan-summary { position: static; }
}
@media print {
  body:has(.workshop-plan .workshop-paper) * { visibility: hidden; }
  body:has(.workshop-plan .workshop-paper) .workshop-paper,
  body:has(.workshop-plan .workshop-paper) .workshop-paper * { visibility: visible; }
  #workspace.workshop-plan, .workshop-plan #clients-page, .workshop-plan .clients-main,
  .workshop-plan #client-body, .workshop-plan .workshop-plan-layout, .workshop-plan .workshop-plan-content { display: block; height: auto; width: auto; overflow: visible; margin: 0; padding: 0; }
  .workshop-plan :is(#sidebar, #work-top, .client-footer, .workshop-plan-summary, .workshop-toolbar) { display: none; }
  .workshop-paper { padding: 0; background: white; color: #000; }
  .workshop-plan-section { break-inside: avoid; }
}

.client-overview { margin-top: 8px; }
.client-overview :is(th, td):not(:first-child) { text-align: right; }
.client-overview :is(th, td):last-child { padding-right: 0; }
.client-known-choices, .client-group-edit-choices { gap: 8px; margin-bottom: 14px; }
.client-known-choices .client-choice { min-height: 74px; padding-block: 10px; }
.client-known-choices .client-choice[aria-pressed=true] { padding-block: 9px; }
.client-known-mark { width: 24px; height: 24px; border: 2px solid #758aa1; border-radius: 50%; display: grid; place-items: center; }
.client-known-mark img { visibility: hidden; }
.client-choice[aria-pressed=true] .client-known-mark { border-color: #59a921; background: #59a921; }
.client-choice[aria-pressed=true] .client-known-mark img { visibility: visible; }
.client-group-edit-choices .client-choice { min-height: 74px; grid-template-columns: 40px minmax(0, 1fr); }
.client-group-edit-choices .client-choice-icon { width: 40px; height: 40px; }
.client-group-edit-choices .client-choice strong { font-size: 1rem; }
.client-edit-form { display: grid; gap: 12px; margin-top: 14px; }
.client-edit-form label { display: grid; gap: 4px; }
.client-edit-form :is(input, select, textarea) { width: 100%; color: inherit; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.client-edit-form textarea { min-height: 100px; resize: vertical; }
.client-edit-form button { justify-self: end; }
.client-figures.single { grid-template-columns: minmax(0, 1fr); }
.client-figures > .selected { background: #e8f0f9; border: 1px solid var(--action); border-radius: 12px; padding-block: 8px; margin-block: -8px; }
.client-proof-list { padding-left: 1.25rem; overflow-wrap: anywhere; }
.client-proof-list li + li { margin-top: 6px; }
.client-observation-prompt { max-width: 100%; overflow-wrap: anywhere; font-weight: 500; }
#workspace-dialog:has(.client-group-edit-choices, .client-edit-form) { margin: auto; width: min(480px, calc(100% - 32px)); }

/* Atelier · Mon affaire, Créer et Argent */
.atelier-dashboard { display: flex; flex-direction: column; gap: 24px; min-height: 100%; }
.dashboard-tabs { display: flex; align-self: start; gap: 4px; border-radius: 30px; padding: 4px; background: #f1f5f9; }
.dashboard-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; border-radius: 24px; color: #586f88; padding: 5px 10px; }
.dashboard-tabs button[aria-pressed=true] { background: white; box-shadow: 0 1px 4px #1a3e5912; color: var(--action); font-weight: 700; }
.dashboard-body { display: flex; flex: 1; flex-direction: column; gap: 9px; min-width: 0; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.dashboard-heading h2, .dashboard-work-title { margin: 0; font-size: 1.25rem; }
.dashboard-heading p { margin: 0; }
.dashboard-heading button { white-space: normal; }
.dashboard-sentence { margin: 5px 0 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.dashboard-muted { margin: 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid section { min-width: 0; }
.dashboard-grid h3 { margin: 7px 0; font-size: .875rem; }
.dashboard-card, .dashboard-row { text-align: left; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard-card { width: 100%; min-height: 73px; margin-bottom: 8px; }
.dashboard-card strong, .dashboard-row strong { font-weight: 650; }
.dashboard-card :is(strong, small), .dashboard-row small { display: block; }
.dashboard-card small, .dashboard-row small { color: var(--muted); overflow-wrap: anywhere; }
.dashboard-card.recommended { background: #fbd3b9; border-color: transparent; }
.dashboard-card.recommended:has(img[src$="base-2.png"]) { background: #efd8c0; }
.dashboard-thumb { width: 44px; height: 52px; flex: none; border-radius: 11px; object-fit: cover; }
.dashboard-card:hover, button.dashboard-row:hover { border-color: var(--action); }
.dashboard-badge { display: inline-block; background: #e8f0f9; color: var(--action); border-radius: 10px; padding: 2px 8px; font-size: .875rem; line-height: 1.2; }
.dashboard-card.recommended .dashboard-badge { background: #7146221c; color: #62452e; }
.dashboard-create .dashboard-card { min-height: 92px; }
.dashboard-create .dashboard-card:first-child { border: 2px solid var(--action); }
.dashboard-create .dashboard-card:first-child .dashboard-badge { background: #10374c; color: white; }
.dashboard-symbol { flex: none; box-sizing: content-box; background: #e8f0f9; border-radius: 50%; padding: 10px; }
.dashboard-list { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: white; }
.dashboard-list > p { padding: 14px; }
.dashboard-row { width: 100%; border: 0; border-radius: 0; min-height: 67px; }
.dashboard-row + .dashboard-row { border-top: 1px solid var(--line); }
.dashboard-row > :last-child { margin-left: auto; text-align: right; flex-shrink: 0; }
.dashboard-work-title { margin-top: 14px; }
.dashboard-footer { position: sticky; bottom: 0; margin-top: auto; background: #fff; border-top: 1px solid var(--line); padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 1; }
.dashboard-footer strong { display: flex; align-items: center; gap: 8px; }
.dashboard-footer .primary { flex: none; }
.dashboard-money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dashboard-money .dashboard-heading { min-height: 54px; }
.dashboard-week { background: #10374c; border-radius: 20px; padding: 20px 24px; color: #fff; text-align: center; }
.dashboard-week .client-kicker { margin: 0; color: #c1d1dd; }
.dashboard-week > strong { font-size: 1.8rem; display: block; margin-block: 10px; }
.dashboard-week > div, .dashboard-quick { display: flex; gap: 12px; }
.dashboard-week div p { flex: 1; margin: 0; text-align: left; padding: 12px; background: #ffffff12; border-radius: 12px; color: #c5d4df; }
.dashboard-week p strong { display: block; font-size: 1.2rem; }
.dashboard-positive, .dashboard-card .dashboard-positive { color: #137445; }
.dashboard-negative { color: #bf1531; }
.dashboard-week .dashboard-positive { color: #80d63c; }
.dashboard-week .dashboard-negative { color: #ff6872; }
.dashboard-quick { justify-content: space-around; margin-top: 23px; }
.dashboard-quick button { display: grid; justify-items: center; gap: 7px; text-align: center; color: inherit; }
.dashboard-quick img { box-sizing: content-box; padding: 15px; background: #e9edf2; border-radius: 50%; }
.dashboard-new.dashboard-positive { background: #f2f8f0; }
.dashboard-new.dashboard-negative { background: #fdf1f2; }
.dashboard-toast { margin: auto auto 10px; display: flex; align-items: center; gap: 10px; color: white; background: #10374c; border-radius: 15px; padding: 4px 15px; }
.dashboard-toast button { color: #a9d6ff; }
#workspace-dialog:has(.dashboard-money-form) { margin: auto; width: min(440px, calc(100% - 28px)); }
#workspace-dialog .quick-in, #workspace-dialog .quick-out { min-height: 92px; text-align: center; font-size: 1.8rem; font-weight: 700; border-color: currentColor; background: #eff8eb; color: #177544; }
#workspace-dialog .quick-out { background: #fdf0f1; color: #bd1533; }
.dashboard-money-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-money-choices button[aria-pressed=true] { background: #10374c; color: white; }
.dashboard-money-form .account-form-actions .primary { width: 100%; }
#session-banner { width: 100%; display: flex; gap: 20px; justify-content: space-between; align-items: center; color: white; }
#session-banner > span:first-child { display: flex; gap: 10px; align-items: center; margin-right: auto; }
#session-banner img { filter: brightness(0) invert(1); }
.session-shortcut { color: #c7d8e4; }
.clients-session #work-top { background: #10374c; border-radius: 0; }
.clients-session #work-top > :not(#session-banner) { display: none; }
.clients-session .client-width { width: min(880px, calc(100% - 64px)); }
.clients-session :is(.client-group-title, .client-footer-prompt) { font-size: 1.65rem; }
.clients-session .client-figure-button { font-size: 2rem; }
.clients-session .client-lines > div { font-size: 1.2rem; }
#chat-attachment { display: flex; align-items: center; align-self: flex-start; gap: 8px; border-radius: 12px; background: #e9f2fb; color: #25384b; padding: 2px 10px; margin: 0 0 10px; font-size: .875rem; }
#chat-attachment button { min-height: 36px; padding: 0; }
#chat-recording { display: flex; flex: 1; min-width: 0; gap: 9px; align-items: center; }
#chat-recording small { margin-left: auto; color: var(--muted); }
.chat-is-recording :is(#adia-message, #adia-attach, .send-message) { display: none; }
#adia-form.chat-is-recording { display: flex; align-items: center; }
.chat-is-recording #adia-microphone { background: var(--action); color: white; }
.chat-is-recording #adia-microphone img { display: none; }
.chat-is-recording #adia-microphone::after { content: ''; display: block; width: 12px; height: 12px; background: white; border-radius: 3px; }
.chat-wave { display: flex; align-items: center; gap: 2px; height: 28px; }
.chat-wave i { width: 2px; height: 55%; border-radius: 3px; background: var(--action); animation: chat-wave 700ms alternate infinite ease-in-out; }
.chat-wave i:nth-child(3n) { height: 90%; animation-delay: 170ms; }
.chat-wave i:nth-child(3n + 1) { height: 35%; animation-delay: 330ms; }
@keyframes chat-wave { to { transform: scaleY(.45); } }
.chat-progress { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 15px; }
.chat-progress ul { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chat-progress li { display: flex; align-items: center; gap: 8px; }
.chat-progress-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px dashed var(--action); }
@media (prefers-reduced-motion: reduce) { .chat-wave i { animation: none; } }
@media (max-width: 820px) {
  .dashboard-grid, .dashboard-money { gap: 12px; }
}
@media (max-width: 680px) {
  .dashboard-grid, .dashboard-money { grid-template-columns: minmax(0, 1fr); }
  .dashboard-footer { align-items: start; flex-direction: column; }
  .session-shortcut, #chat-recording small { display: none; }
}
#chat-page #adia-form.chat-is-recording { display: flex; }
#chat-page #chat-attachment { margin-bottom: 0; }
#sidebar nav button[data-tab=Atelier][aria-current] img { content: url('/atelier-assets/atelier-actif.svg'); }
.dashboard-money-form .dashboard-duplicate { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.dashboard-money-form .dashboard-duplicate input { width: auto; }

#workspace-dialog:has(.workshop-google-dialog) { margin: auto; width: min(480px, calc(100% - 32px)); }
.workshop-google-dialog .account-list { margin-top: 12px; }
.workshop-google-dialog .account-row { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 13px; }
.workshop-google-dialog .account-row > img:last-child { display: none; }
.workshop-google-changes { max-height: 13rem; overflow: auto; padding-left: 22px; color: var(--muted); }
.workshop-notebook-navigation { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.workshop-notebook-table th:not(:first-child), .workshop-notebook-table td { min-width: 96px; }
.workshop-notebook-table th:last-child, .workshop-notebook-table td:last-child { min-width: 116px; }
.workshop-print-preview .workshop-plan-layout { display: block; max-width: 680px; margin-inline: auto; }
.workshop-print-preview .workshop-plan-summary { display: none; }
.workshop-print-preview .workshop-plan-footer { max-width: 680px; margin-inline: auto; }
.workshop-plan-notice { position: sticky; bottom: 16px; z-index: 1; }
@media print {
  @page { size: A4; margin: 16mm; }
  .workshop-plan .workshop-plan-notice { display: none; }
}

.offer-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer-figures small { display: block; padding-top: 4px; }
.offer-table .link { padding-inline: 0; }
.offer-prompt { flex: 1 1 235px; font-size: .94rem; }
.offer-detail-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 14px; }
.offer-checklist { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin-bottom: 5px; }
.offer-checklist input[type=checkbox] { width: auto; flex: none; }
#workspace-dialog:has(.offer-discussion) { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 36px); margin: auto; }
.offer-discussion-log { display: flex; flex-direction: column; overflow: auto; max-height: min(38dvh, 390px); min-height: 120px; padding: 11px 2px; margin-bottom: 10px; color: #475d75; border-bottom: 1px solid var(--line); }
.offer-discussion-log p { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.offer-person { align-self: end; max-width: 78%; background: #f5f8fb; border: 1px solid var(--line); border-radius: 15px; padding: 8px 12px; }
.offer-adia { align-self: start; }
.offer-discussion .account-form textarea { min-height: 65px; }
.offer-discussion .account-form-actions { margin: 8px 0; }
.offer-attachment { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.offer-attachment:empty { display: none; }
.offer-attachment span { overflow-wrap: anywhere; }

#workspace.chat-view.studio-view { --nav-width: 72px; grid-template-columns: var(--nav-width) minmax(325px, 40fr) minmax(0, 60fr); }
#workspace.studio-view #sidebar { padding-inline: 8px; }
#workspace.studio-view #sidebar :is(.sidebar-logo, nav button > span, .profile-text, #project-picker) { display: none; }
#workspace.studio-view #sidebar .sidebar-symbol { display: block !important; }
#workspace.studio-view #sidebar nav button { justify-content: center; gap: 0; padding-inline: 0; }
#workspace.studio-view #sidebar nav .discussion-chevron { display: none; }
#workspace.studio-view #work-top { grid-column: 2; padding-inline: clamp(12px, 2vw, 40px); gap: 6px; }
#workspace.studio-view #chat-page { grid-column: 2; }
#workspace.studio-view #chat-page .adia { width: calc(100% - 36px); }
#workspace.studio-view #chat-subtitle { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
#workspace.studio-view #chat-location { min-width: 0; }
#workspace.studio-view #chat-location > div { min-width: 0; }
#studio-panel { grid-column: 3; grid-row: 1 / -1; min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: white; border-left: 1px solid var(--line); }
.studio-header { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 64px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.studio-heading { display: grid; flex: 1; min-width: 110px; }
.studio-heading select { padding: 0; min-width: 0; width: fit-content; max-width: 100%; border: 0; color: var(--muted); background: transparent; font: inherit; font-size: .87rem; }
.studio-heading small { color: var(--muted); }
.studio-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.studio-controls .link { padding-inline: 8px; }
.studio-content { display: flex; align-items: center; flex-direction: column; overflow: auto; min-height: 0; background: #f3f6f9; padding: clamp(16px, 3vw, 46px) 18px; gap: 16px; }
.studio-content.studio-letter, .studio-content.studio-prices { background: white; }
.studio-footer { border-top: 1px solid var(--line); color: var(--muted); min-height: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 5px 12px; gap: 10px; font-size: .875rem; text-align: center; }
.studio-message-card, .studio-menu-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; color: inherit; text-align: left; width: fit-content; }
.studio-message-card:hover, .studio-menu-row:hover { border-color: var(--action); }
.studio-message-card span:nth-child(2) { display: grid; }
.studio-message-card small { color: var(--muted); }
.studio-draft-prompt { color: #445972; margin-top: 24px; }
.studio-menu-row { width: 100%; min-height: 53px; margin-block: 6px; }
.studio-proposals { flex-direction: row; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.studio-proposal { display: grid; width: min(175px, 100%); justify-items: center; gap: 8px; background: white; padding: 8px; border-radius: 11px; border: 1px solid var(--line); color: var(--action); }
.studio-proposal img { max-width: 100%; border-radius: 6px; }
.studio-poster-stage { width: min(100%, 292px); position: relative; flex: none; aspect-ratio: 9 / 16; border-radius: 16px; }
.studio-poster-stage.studio-a4 { aspect-ratio: 210 / 297; }
.studio-poster-stage > img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.studio-poster-zone { position: absolute; font-size: 0 !important; }
.studio-target { background: transparent; color: inherit; border: 1px solid transparent; padding: 3px 5px; border-radius: 6px; text-align: inherit; font: inherit; white-space: pre-wrap; }
.studio-target:hover, .studio-target[aria-pressed=true], .studio-target:focus-visible { border-color: var(--action); background: #e8f1fa45; }
.studio-letter-page { align-self: stretch; width: min(100%, 590px); margin: 0 auto; padding: 4px clamp(14px, 3vw, 40px); line-height: 1.45; }
.studio-letter-purpose { font-weight: 700; }
.studio-letter-page p { margin-block: 18px; }
.studio-price-frame { width: min(100%, 570px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; }
.studio-price-table { width: 100%; border-collapse: collapse; text-align: right; }
.studio-price-table th:first-child, .studio-price-table td:first-child { text-align: left; }
.studio-price-table th { background: #edf1f4; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.studio-price-table :is(td, th) { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.studio-price-table tr:last-child td { border-bottom: 0; }
.studio-gain { color: #328524; font-weight: 650; }
.studio-content.studio-presentation { display: grid; padding: 0; grid-template-columns: minmax(80px, 20%) minmax(0, 1fr); align-items: stretch; gap: 0; }
.studio-slides-nav { overflow: auto; background: white; padding: 12px 7px; }
.studio-slide-thumb { width: 100%; display: flex; align-items: center; gap: 5px; color: var(--muted); border: 0; background: transparent; margin-bottom: 8px; padding: 0; }
.studio-slide-thumb > img { width: calc(100% - 18px); height: auto; border-radius: 4px; border: 1px solid var(--line); }
.studio-slide-thumb[aria-current=true] > img { border: 2px solid var(--action); }
.studio-slide-stage { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 18px; }
.studio-slide-stage > img { width: 100%; border-radius: 8px; box-shadow: 0 4px 16px #18344f13; }
.studio-slide-controls { display: flex; align-items: center; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; }
#studio-presentation { box-sizing: border-box; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; background: #0e1822; color: white; align-content: center; justify-items: center; gap: 12px; }
#studio-presentation[open] { display: grid; }
.studio-present-slide { max-width: 92%; max-height: 76dvh; object-fit: contain; border-radius: 12px; }
.studio-present-exit { position: absolute; top: 12px; right: 14px; }
.studio-site-phone { width: min(100%, 345px); background: white; border: 8px solid #223245; border-radius: 34px; padding: 18px; }
.studio-site-phone :is(h2, h3) { margin-block: 12px 3px; }
.studio-site-offer, .studio-whatsapp { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-whatsapp { justify-content: center; background: #c8f7d5; color: #126432; padding: 8px; border-radius: 30px; }
.studio-card-cover { width: min(100%, 440px); }
.studio-card-cover img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 4px 16px #18344f16; }
.studio-card-fields { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
@media (max-width: 760px) {
  #workspace.chat-view.studio-view { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: 60px 33dvh minmax(0, 1fr); }
  #workspace.studio-view #chat-page { grid-row: 2; }
  #studio-panel { grid-column: 2; grid-row: 3; border-left: 0; border-top: 1px solid var(--line); }
  #workspace.studio-view  #chat-page .adia { width: calc(100% - 14px); padding-bottom: 4px; }
  .studio-header { min-height: 48px; }
}

.overview-wide .client-width { width: min(1040px, calc(100% - 64px)); }
.overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 24px; margin-top: 24px; }
.overview-card { border: 1px solid var(--line); border-radius: 20px; padding: 15px 17px; background: white; color: inherit; }
.overview-card h2 { font-size: 1rem; margin: 0 0 7px; }
.overview-card p { margin-block: 7px; overflow-wrap: anywhere; }
.overview-card > .link { padding-left: 0; }
#client-body > .overview-card { margin-top: 18px; }
.overview-base-grid, .overview-gallery { display: grid; gap: 8px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.overview-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.overview-image { position: relative; display: flex; align-items: end; justify-content: center; min-height: 112px; border: 0; border-radius: 13px; padding: 10px 7px; isolation: isolate; overflow: hidden; font-weight: 700; text-align: center; background: #eaf0f6; color: #203647; }
.overview-gallery .overview-image { min-height: 155px; }
.overview-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overview-image:hover { box-shadow: inset 0 0 0 2px var(--action); }
.overview-hero { color: white; background: #10374c; padding: 20px; border-radius: 20px; margin-top: 18px; }
.overview-grid > .overview-hero { margin: 0; }
.overview-hero strong { display: block; font-size: clamp(1.125rem,2.2vw,1.72rem); }
.overview-hero p { margin: 5px 0 0; color: #c5d6e0; }
.overview-hero.center { display: grid; justify-items: center; gap: 8px; padding: 22px; text-align: center; }
.overview-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-block: 20px; }
.overview-tiles > .overview-tiles { grid-column: 1 / -1; margin-block: 0; }
.overview-tile { display: grid; justify-items: center; gap: 4px; min-width: 0; color: #075ba8; background: #e8f0f9; border: 0; border-radius: 13px; padding: 14px 10px; text-align: center; }
.overview-tile small { color: #334c63; }
.overview-tile .shell-round-icon { background: white; }
.overview-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-radius: 24px; background: #f1f5f9; padding: 4px; margin-top: 18px; }
.overview-tabs button[aria-pressed=true] { background: white; border: 1px solid #dbe7f2; border-radius: 22px; font-weight: 650; }
.overview-metric-value { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.overview-metric-value strong { font-size: 1.7rem; }
.overview-badge { font-size: .8rem; background: #e9f1f8; color: #075ba8; border-radius: 11px; padding: 3px 7px; margin-left: auto; }
.overview-badge.reached { color: #34791c; background: #eaf6e4; }
.overview-badge.late { color: #a91126; background: #fbecef; }
.overview-card progress { width: 100%; height: 9px; accent-color: #115b9c; }
.overview-card progress.reached { accent-color: #58a529; }
.overview-card progress.late { accent-color: #d84156; }
.overview-percent { display: block; color: var(--muted); text-align: right; font-size: .875rem; }
.overview-bars { list-style: none; padding: 0; margin: 0; }
.overview-bars li { display: grid; grid-template-columns: minmax(68px,auto) 1fr auto; align-items: center; gap: 8px; padding-block: 5px; }
.market-hero { display: flex; align-items: center; gap: 12px; }
.market-hero .shell-round-icon { flex: none; }
.market-hero small { color: #d2e3f1; }
.market-evidence-row { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-block: 6px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.market-source { min-height: 28px; color: var(--action); background: #e8f0f8; flex: none; }
#client-explanation > .overview-card { margin: 9px 0; }
#client-explanation a { color: var(--action); overflow-wrap: anywhere; }
.overview-full #work-top, .overview-full #sidebar, .overview-full #clients-page { display: none; }
#overview-canvas { position: fixed; inset: 0; z-index: 3; background: #eaf0f6; display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 14px; padding: 16px min(5vw,72px); }
.canvas-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.canvas-toolbar-title, .canvas-toolbar-tools { background: white; border-radius: 28px; box-shadow: 0 4px 10px #1d3c5311; display: flex; align-items: center; gap: 9px; padding: 7px 14px; }
.canvas-toolbar-title span, .canvas-toolbar-title select { color: var(--muted); }
.canvas-toolbar-title select { border: 0; font: inherit; background: white; max-width: 210px; }
.canvas-toolbar-tools .link { min-height: 32px; padding: 0 3px; }
.canvas-colors { display: flex; flex-wrap: wrap; gap: 5px; }
.canvas-swatch { width: 26px; min-height: 26px; height: 26px; border: 1px solid #25384b16; border-radius: 5px; }
.canvas-swatch[aria-pressed=true] { border: 2px solid var(--action); }
.canvas-yellow { background: #ffeca0; }
.canvas-blue { background: #d1e2f3; }
.canvas-green { background: #d5ebc8; }
.canvas-peach { background: #f9dbc8; }
.canvas-gray { background: #e3e8ee; }
.canvas-surface { overflow: auto; min-height: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 4px 11px #152e4412; }
.overview-board { min-height: 100%; min-width: 670px; display: grid; }
.canvas-one-page { grid-template-columns: repeat(10,minmax(0,1fr)); grid-template-rows: minmax(138px,1fr) minmax(138px,1fr) minmax(105px,.58fr); }
.canvas-one-page .canvas-block-partners { grid-area: 1 / 1 / 3 / 3; }
.canvas-one-page .canvas-block-activities { grid-area: 1 / 3 / 2 / 5; }
.canvas-one-page .canvas-block-resources { grid-area: 2 / 3 / 3 / 5; }
.canvas-one-page .canvas-block-value { grid-area: 1 / 5 / 3 / 7; }
.canvas-one-page .canvas-block-relationships { grid-area: 1 / 7 / 2 / 9; }
.canvas-one-page .canvas-block-channels { grid-area: 2 / 7 / 3 / 9; }
.canvas-one-page .canvas-block-customers { grid-area: 1 / 9 / 3 / 11; }
.canvas-one-page .canvas-block-costs { grid-area: 3 / 1 / 4 / 6; }
.canvas-one-page .canvas-block-revenue { grid-area: 3 / 6 / 4 / 11; }
.canvas-value { min-width: 780px; grid-template: minmax(180px,1fr) minmax(180px,1fr) / repeat(4,minmax(0,1fr)); gap: 2px; padding: 3%; position: relative; }
.canvas-value .canvas-block { background: #fff; border: 1px solid #dae3ec; }
.canvas-value .canvas-block-products { grid-area: 1 / 1 / 3 / 2; border-left: 2px solid #20364a; border-radius: 28px 0 0 28px; }
.canvas-value .canvas-block-benefits { grid-area: 1 / 2 / 2 / 3; border-radius: 0 28px 0 0; }
.canvas-value .canvas-block-relief { grid-area: 2 / 2 / 3 / 3; border-radius: 0 0 28px 0; }
.canvas-value .canvas-block-pains { grid-area: 2 / 3 / 3 / 4; border-radius: 0 0 0 74px; margin-left: 12px; }
.canvas-value .canvas-block-gains { grid-area: 1 / 3 / 2 / 4; border-radius: 74px 0 0 0; margin-left: 12px; }
.canvas-value .canvas-block-jobs { grid-area: 1 / 4 / 3 / 5; border-radius: 0 75px 75px 0; }
.canvas-value .canvas-block-gains .canvas-block-heading { padding-top: 18px; }
.canvas-block { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 9px 13px; min-width: 0; }
.canvas-block-heading { display: flex; align-items: flex-start; gap: 4px; }
.canvas-block-heading > div { flex: 1; }
.canvas-block-heading h2 { font-size: .9rem; margin: 2px 0 1px; }
.canvas-block-heading small { color: var(--muted); display: block; }
.canvas-block-heading .canvas-add { min-height: 26px; padding: 0; }
.canvas-notes { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-top: 7px; }
.canvas-note { position: relative; width: min(7.5rem,100%); min-height: 48px; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px; border: 0; border-radius: 3px; color: #25394a; box-shadow: 0 3px 6px #25384b18; font-size: .85rem; }
.canvas-note[draggable=true] { cursor: grab; }
.canvas-note strong { display: block; margin-top: 3px; color: var(--muted); }
.canvas-note.canvas-suggested { background: white; border: 1px dashed var(--action); box-shadow: none; }
.canvas-proof { position: absolute; right: 5px; top: 4px; background: #55a924; border-radius: 50%; width: 7px; height: 7px; }
.canvas-drop { outline: 2px dashed var(--action); outline-offset: -3px; background: #ebf3fc !important; }
.canvas-footer { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }
.canvas-footer p { margin: 0; }
.canvas-footer img { width: 35px; height: 35px; border-radius: 50%; }
#workspace-dialog:has(.canvas-dialog) { margin: auto; }
.canvas-dialog .canvas-colors { margin-block: 10px; }
@media (max-width: 700px) {
  .overview-wide .client-width { width: calc(100% - 26px); }
  .overview-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  #overview-canvas { padding-inline: 10px; }
  .canvas-toolbar-tools { max-width: 100%; }
}
.overview-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(37px, 1fr); gap: 5px; overflow-x: auto; text-align: center; }
.overview-bars li { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(2em,auto) 76px auto; justify-items: stretch; align-items: end; font-size: .8rem; }
.overview-bars li small { overflow-wrap: anywhere; }
.overview-bar-frame { display: flex; justify-content: center; align-items: end; height: 100%; border-bottom: 1px solid var(--line); }
.overview-bar-fill { width: 65%; max-width: 42px; border-radius: 5px 5px 2px 2px; background: #145da4; }
.overview-bar-fill.reached { background: #58a529; }
.overview-bar-fill.late { background: #d84156; }
.canvas-value::after { content: ''; position: absolute; inset: 5% 3% 5% 52%; border: 2px solid #263c50; border-radius: 49%; pointer-events: none; }
.canvas-value .canvas-block { position: relative; }
