/* The original Geist, paper and ink. The scene stays visible around the work. */
/* Écriture nette : aucun texte posé sur une surface floue ou translucide. Les surfaces de verre prennent les valeurs
 * pleines déjà prévues pour « réduire la transparence » (même teinte), aucun flou derrière un texte, et la scène est
 * lavée derrière la lecture sur tous les écrans, accueil compris. La scène reste visible autour du travail. */
:root{--glass:#f9fbfa;--glass-strong:#f9fbfa;--glass-soft:#eef2ef;--surface:var(--glass);--surface-2:var(--glass-soft)}
:root[data-theme=dark]{--glass:#263a3d;--glass-strong:#223437;--glass-soft:#30484b;--surface:var(--glass);--surface-2:var(--glass-soft)}
:root[data-view=home] .scene-reading-wash{opacity:.63}
:is(.app-shell,.auth-shell,.native-human-auth,#modal,.toast) :is(*,::before,::after),#modal,.toast{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
:is(.main-shell,.auth-shell,#modal) :is(.g-home-composer,.g-composer,.g-context-card){background:var(--paper)}
:is(.main-shell,.sidebar,.auth-shell) :is(.button.secondary,.team-current-space):hover{background:var(--surface-2)}
:root {
  --work-caption: .8125rem;
  --work-label: .9375rem;
  --work-copy: 1.0625rem;
  --work-heading: 1.375rem;
  --work-title: 2.125rem;
}
.auth-shell .auth-card,
#modal[open]:not(.cloud-feature-dialog),
.main-content :is(.panel,.g-decision,.g-empty-panel,.g-home-composer,.pj-task-card,.pj-board>section),
.main-content .g-context-stack .g-project-link {
  background:var(--paper);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
.main-content :is(.page-header,.g-home-center) h1 {
  color:var(--ink);
  font-size:var(--work-title);
  line-height:1.18;
  text-shadow:none;
  overflow-wrap:break-word;
}
.main-content :is(.panel,.g-section-title) h2 {font-size:var(--work-heading);line-height:1.3}
.main-content :is(.page-header,.g-decision) p {color:var(--text);font-size:var(--work-copy);line-height:1.55}
.main-content :is(.eyebrow,.g-context-badge) {color:var(--muted);font-size:var(--work-label)}
.main-content .g-context-badge {font-size:var(--work-caption)}
.auth-shell .auth-card h2 {font-size:var(--work-heading)}
.main-content .g-review-tasks .eyebrow {color:var(--text)}
/* Aujourd'hui : la salutation, ce qui attend, l'agenda du jour, puis l'action secondaire. Grille de 8 px. */
.main-content .home-today {display:grid;gap:16px;max-width:880px;margin:0}
.main-content .home-today>.page-header {margin:0 0 8px;gap:16px}
.main-content .home-greeting .home-date {display:block;color:var(--text);font-size:var(--work-label);font-weight:500;letter-spacing:0;text-transform:none}
.main-content .home-greeting h1 {margin:8px 0 0}
.main-content .home-greeting p {max-width:52ch;margin:8px 0 0}
.main-content .home-today>.panel {margin:0;padding:24px}
.main-content .home-section-head {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px}
.main-content .home-section-head h2 {margin:0}
.main-content .home-see-all {display:inline-flex;align-items:center;gap:8px;min-height:44px;white-space:nowrap}
.main-content .home-see-all .icon {width:16px;height:16px}
.main-content .home-list {display:grid;margin:0;padding:0;list-style:none}
.main-content .home-list>li+li {border-top:1px solid var(--line)}
.main-content .home-row {display:flex;align-items:center;gap:16px;width:calc(100% + 16px);min-height:64px;margin:0 -8px;padding:12px 8px;
  border:0;border-radius:16px;background:none;color:var(--ink);font:inherit;text-align:left}
.main-content button.home-row:is(:hover,:focus-visible) {background:var(--hover)}
.main-content .home-row-icon {display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent-bg);color:var(--accent)}
.main-content .home-row-icon .icon {width:20px;height:20px}
.main-content .home-row-text {display:grid;flex:1;gap:4px;min-width:0}
.main-content .home-row-text strong {color:var(--ink);font-size:var(--font-body);font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.main-content .home-row-text small {color:var(--text);font-size:var(--work-label);line-height:1.4;overflow-wrap:anywhere}
.main-content .home-row>.icon:last-child {flex:none;width:16px;height:16px;color:var(--muted)}
.main-content .home-event {min-height:56px}
.main-content .home-event-time {flex:none;min-width:96px;color:var(--text);font-size:var(--work-label);font-weight:500;font-variant-numeric:tabular-nums}
.main-content .home-waiting-empty {display:flex;align-items:flex-start;gap:16px}
.main-content .home-waiting-empty h2 {margin:0 0 8px}
.main-content .home-waiting-empty p {max-width:52ch;margin:0;color:var(--text);font-size:var(--font-body);line-height:1.55}
.main-content .home-secondary {display:flex;flex-wrap:wrap;gap:8px}
.main-content .g-home-chips {gap:8px}
.main-content .g-home-hint {gap:8px 16px}
@media(min-width:761px){
  html[data-view=home] .main-content {padding:32px 48px 48px 152px}
  .mobile-workspace .sidebar .rail {
    max-height:calc(100dvh - 168px);
    overflow-y:auto;
    scrollbar-width:thin;
    overscroll-behavior:contain;
  }
  .main-content .g-home {margin:0; padding-block:24px 32px}
  .main-content .g-home:has(.g-context-stack) {column-gap:32px}
}
@media(min-width:761px) and (max-width:1200px){
  html[data-view=home] .main-content {padding-inline:128px 32px}
}
@media(max-width:760px){
  html[data-view=home] .main-content {padding:16px max(16px,env(safe-area-inset-right)) 32px max(16px,env(safe-area-inset-left))}
  .main-content .home-today>.panel {padding:16px}
  .main-content .home-today>.page-header {margin-bottom:0}
  .main-content .home-row {min-height:56px}
  .main-content .home-event {align-items:flex-start;flex-direction:column;gap:4px}
  .main-content .g-home {min-height:0;padding:8px 0 24px}
  .main-content .g-home-center>.eyebrow {margin-bottom:16px}
  .main-content .g-home h1 {margin-bottom:24px}
}
/* Transitions à chaque geste, 150 à 300 ms, sans jamais bloquer : le bouton, la ligne ou la carte touchés s'enfoncent
 * légèrement ; un écran arrive en fondu court ; une tâche ou un projet ouvert glisse depuis la droite et revient par la
 * gauche ; sur téléphone les panneaux montent du bas (la tâche, elle, glisse depuis la droite). */
@media(prefers-reduced-motion:no-preference){
  body :is(.button,.text-button,.icon-button,.nav-item,.bottom-more,.home-row,.pj-tab,.pj-task-card,.action-card,.g-history-row,.team-current-space) {
    transition:scale 150ms ease-out,background-color 160ms ease-out,border-color 160ms ease-out,color 160ms ease-out;
  }
  body :is(.button,.text-button,.icon-button,.nav-item,.bottom-more,.home-row,.pj-tab,.team-current-space):active:not(:disabled) {scale:.98}
  body :is(.pj-task-card,.action-card,.g-history-row):active {scale:.99}
  dialog[open] {animation:inkore-panel-appear 200ms ease-out}
  #content[data-screen-motion] .g-review-page .g-decision {animation:inkore-review-appear 190ms ease-out}
  #content[data-screen-motion] .home-today>.panel {animation:inkore-review-appear 200ms ease-out}
  @media(min-width:761px){
    .mobile-workspace #content[data-screen-motion] {animation:inkore-review-appear 200ms ease-out}
    .mobile-workspace #content[data-screen-motion=forward] {animation:inkore-screen-forward 220ms ease-out}
    .mobile-workspace #content[data-screen-motion=back] {animation:inkore-screen-back 200ms ease-out}
  }
  @media(max-width:760px){
    dialog[open]:not(:has(#pj-task)) {animation:inkore-panel-rise 240ms cubic-bezier(.22,.67,.22,1)}
  }
  @keyframes inkore-panel-appear {from{opacity:.74;translate:0 8px}to{opacity:1;translate:0 0}}
  @keyframes inkore-panel-rise {from{opacity:.6;translate:0 32px}to{opacity:1;translate:0 0}}
  @keyframes inkore-review-appear {from{opacity:.72;translate:0 4px}to{opacity:1;translate:0 0}}
  @keyframes inkore-screen-forward {from{opacity:.6;translate:16px 0}to{opacity:1;translate:0 0}}
  @keyframes inkore-screen-back {from{opacity:.65;translate:-12px 0}to{opacity:1;translate:0 0}}
}
/* La Plume de la signature respire doucement (le clignement vient de companion.mjs). Signature fermée seulement. */
@media(prefers-reduced-motion:no-preference){
  .icue-companion .ink-island:not([data-mode=expanded]) .ink-canvas {transform-origin:50% 72%;animation:inkore-plume-respire 4.8s ease-in-out infinite}
  @keyframes inkore-plume-respire {0%,100%{scale:1}50%{scale:1.035}}
}
@media(prefers-reduced-motion:reduce){
  body :is(.button,.text-button,.icon-button,.nav-item,.bottom-more,.home-row,.pj-tab,.pj-task-card,.action-card,.g-history-row,.team-current-space):active {scale:none}
  dialog[open],#content[data-screen-motion] .g-decision {animation:none}
}
