/* Kit UI de geoany : la coque d'une appli (barre latérale, semaine, jour, outliner), après kit.css.
   GÉNÉRÉ par tools/snippets/construire-kit.mjs depuis Probo Brain (projets/agenda/web).
   Ne pas éditer ici : corriger la source, puis relancer le script. */
.app{height:100%;display:flex;overflow:hidden;position:relative}
.side{
  width:var(--side-w);flex:none;background:var(--bg2);border-right:1px solid var(--line);
  display:flex;flex-direction:column;overflow:hidden;transition:width .14s ease;
}
/* The logo shares the top bar's height and rule: the two form a
   single header band, from one edge of the screen to the other. */
.brand{
  height:var(--top-h);flex:none;display:flex;align-items:center;gap:var(--s2);
  padding:0 var(--s4);border-bottom:1px solid var(--line);white-space:nowrap;cursor:pointer;
}
.brand{color:var(--acc)}
.brand .nom-pb{color:var(--txt);font:700 16px/1 var(--fl);letter-spacing:-.02em}
.nom-pb b{color:var(--acc);font-weight:inherit}
.snav{display:flex;flex-direction:column;gap:2px;padding:var(--s2)}
.sitem{
  height:var(--h);display:flex;align-items:center;gap:var(--s3);padding:0 var(--s2);border-radius:var(--r);
  color:var(--dim);font:500 var(--fs-ui)/1 var(--fu);width:100%;text-align:left;white-space:nowrap;
}
.sitem:hover{background:var(--hover);color:var(--txt)}
.sitem .i{width:16px;display:flex;align-items:center;justify-content:center;color:var(--dim);flex:none}
.sitem .lb{flex:1;overflow:hidden;text-overflow:ellipsis}
/* The active entry: the blue marker on its left edge. */
.sitem.on{background:var(--acc-bg);color:var(--txt);box-shadow:inset 2px 0 0 var(--acc)}
.sitem.on .i{color:var(--acc)}
.sitem .cnt{font-size:var(--fs-xs);font-weight:600;color:var(--dimmer);font-variant-numeric:tabular-nums}
.side .navsep{align-self:stretch;height:1px;background:var(--line);margin:var(--s1) var(--s2);flex:none}
.app.side-collapsed{--side-w:52px}
.app.side-collapsed .brand{justify-content:center;padding:0}
.app.side-collapsed .brand .nom-pb{display:none}
.app.side-collapsed .snav{padding:var(--s2) 6px}
.app.side-collapsed .side .sitem{justify-content:center;padding:0}
.app.side-collapsed .side .sitem .lb,
.app.side-collapsed .side .sitem .cnt{display:none}
.main{flex:1;display:flex;flex-direction:column;min-width:0}
.top{
  height:var(--top-h);display:flex;align-items:center;gap:var(--s2);
  padding:0 var(--s3);border-bottom:1px solid var(--line);flex:none;
}
.nav{display:flex;gap:var(--s1)}
.wk{color:var(--txt);font:600 20px/1.1 var(--fh);letter-spacing:.004em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:var(--s1);min-width:0}
.wk-court{display:none}
.sp{margin-left:auto}
.horsligne{
  position:absolute;left:50%;top:var(--s2);transform:translateX(-50%);z-index:96;
  background:var(--warn-bg);border:1px solid var(--warn);color:var(--warn);
  padding:var(--s2) var(--s3);border-radius:var(--r);font-size:var(--fs-sm);cursor:pointer;max-width:92%;
  box-shadow:var(--ombre);
}
/* The week scrolls sideways with a trackpad, a wheel or a finger, without a scrollbar. */
.board{flex:1;display:flex;overflow:auto;min-height:0;scrollbar-width:none}
.board::-webkit-scrollbar{display:none}
.col{flex:1 1 0;min-width:170px;border-right:1px solid var(--col-line);display:flex;flex-direction:column;min-height:0}
/* Today: the blue marker on top of the column. */
.col.today{flex:1.9 1 0;min-width:300px;background:var(--today-bg);box-shadow:inset 0 2px 0 var(--acc)}
.col:last-child{border-right:0}
.col.dragover{background:var(--drag-bg);box-shadow:inset 0 0 0 1px var(--acc-line)}
.colh{display:flex;align-items:baseline;gap:var(--s2);padding:var(--s3) var(--s3) var(--s2);border-bottom:1px solid var(--line);flex:none;cursor:pointer}
.colh:hover .n{color:var(--txt-strong)}
.colh .d{font:600 var(--fs-xs)/1 var(--fu);text-transform:uppercase;letter-spacing:.08em;color:var(--dim)}
.colh .n{font:600 22px/1 var(--fh);color:var(--txt)}
.col.today .colh .d,.col.today .colh .n{color:var(--acc)}
.colh .c{margin-left:auto;font:600 var(--fs-xs)/1 var(--fu);color:var(--dimmer)}
.colbody{flex:1;overflow:auto;padding:var(--s2) var(--s1);min-height:0}
/* The day's page: a blue veil at the top, which scrolls with the page. */
.zoom{
  flex:1;overflow-x:hidden;overflow-y:auto;padding:var(--s5) var(--s5) 96px;min-height:0;
  background:linear-gradient(180deg,color-mix(in srgb,var(--acc) 7%,transparent),transparent 180px) no-repeat local;
}
.zh{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:var(--s4);padding-bottom:var(--s3);border-bottom:1px solid var(--line)}
.zh h2{font:600 var(--fs-titre)/1.02 var(--fh);color:var(--txt);letter-spacing:.004em}
.zh .repere{display:block;width:74px;height:2px;background:var(--acc)}
.zh .meta{font:500 var(--fs-sm)/1.3 var(--fu);color:var(--dim)}
.zh .meta em{font-style:normal;color:var(--moved)}
.zoom.dragover{box-shadow:inset 0 0 0 2px var(--acc-line)}
.outliner{display:flex;flex-direction:column}
/* The text carries `min-width:0` and shrinks. */
.orow{
  position:relative;display:flex;flex-wrap:wrap;align-items:flex-start;gap:2px var(--s2);
  padding:3px var(--s2) 3px var(--s1);border-radius:var(--r-sm);line-height:1.5;font-size:var(--fs-md);
  /* The blue marker, drawn as a 2 px background that runs down on hover. */
  background-image:linear-gradient(var(--acc),var(--acc));background-repeat:no-repeat;
  background-position:0 0;background-size:2px 0;transition:background-size .18s var(--ease);
}
.orow:hover{background-color:var(--row-hover);background-size:2px 100%}
.outliner.dense .orow{gap:2px 6px;padding:3px 4px}
.bullet{color:var(--dimmer);flex:none;width:15px;text-align:center}
.otext{flex:1;min-width:0}
/* In a week column, the text keeps a minimum width and wraps under the
   tags rather than being chopped letter by letter (measured threshold: 5ch). */
.outliner.dense .otext{min-width:5ch}
.oedit{
  outline:0;overflow-wrap:break-word;color:var(--txt);border-radius:var(--r-sm);
  /* No decoration until the line is checked: a strike kept transparent would be
     painted by a text selection. Checking adds it, and its colour fades in. */
  text-decoration-line:none;text-decoration-color:transparent;text-decoration-thickness:1.5px;
  transition:color .26s var(--ease) .12s,text-decoration-color .3s var(--ease) .14s;
}
.oedit:focus{background:var(--focus-bg);box-shadow:0 0 0 2px var(--focus-ring)}
.oedit:empty::before{content:"…";color:var(--dimmer)}
.orow.done .oedit{color:var(--done);text-decoration-line:line-through;text-decoration-color:currentColor}
.zsec{font:600 var(--fs-xs)/1 var(--fu);text-transform:uppercase;letter-spacing:.08em;color:var(--dim);margin:var(--s4) 0 var(--s2)}
.zsec:first-child{margin-top:0}
.orow.opt:not(.done) .oedit{color:var(--dim)}
/* An optional line sits in a dashed frame; done, the frame turns solid violet. */
.orow.opt{outline:1px dashed var(--line2);outline-offset:-1px}
.orow.opt.done{outline:1px solid color-mix(in srgb,var(--opt) 55%,transparent)}
.onote{
  font-size:var(--fs-sm);color:var(--dim);margin-top:2px;outline:0;border-left:2px solid var(--note-line);
  padding-left:var(--s2);overflow-wrap:break-word;
}
.onote:focus{background:var(--focus-bg);border-left-color:var(--acc-line);color:var(--txt2)}
.outliner.dense .oedit:not(:focus){display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.outliner.dense .onote:not(:focus){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* The line's gestures (note, time, day), laid OVER the end of the line on
   hover: they steal no width from the text. The background takes the
   hovered line's colour to cleanly mask what it covers. */
.racts{
  position:absolute;right:2px;top:1px;display:flex;gap:2px;opacity:0;pointer-events:none;
  background:var(--row-hover);border-radius:var(--r-sm);transition:opacity .1s;
}
.orow:hover .racts{opacity:1;pointer-events:auto}
.orow.sel .racts{background:var(--acc-bg)}
.oadd{align-self:flex-start;margin:var(--s1) 0 0 22px;color:var(--dimmer)}
.orow > .tag{margin-top:2px}
/* In a week column on a large screen, the rollover and appointment tags
   shrink to a dot (the detail is in the tooltip and in day view): a 40 px
   word chopped the title next to it. */
@media (min-width:861px){
.outliner.dense .tag.rdv{
    width:8px;height:8px;padding:0;overflow:hidden;text-indent:-99px;margin-top:7px;border-radius:0;
  }
.outliner.dense .tag.rdv{background:var(--dim);border-color:var(--dim)}
}
/* The handle: 17 px touch area, 9 px visible pill. `touch-action:none`
   is mandatory, otherwise the finger scrolls instead of taking the line. */
.grip{position:relative;width:17px;align-self:stretch;min-height:21px;flex:none;cursor:grab;touch-action:none}
.grip::before{content:"";position:absolute;left:4px;top:3px;bottom:3px;width:9px;border-radius:var(--r-pill);background:var(--line2)}
.grip::after{
  content:"";position:absolute;left:8.5px;top:50%;width:3.5px;height:3.5px;
  margin-left:-1.75px;margin-top:-1.75px;border-radius:0;background:var(--bg);
}
.grip:hover::before,.orow:hover .grip::before{background:var(--cb-line)}
.grip:active{cursor:grabbing}
.orow.sel .grip::before{background:var(--acc)}
/* A Google appointment's fixed marker: it cannot be grabbed. */
.grip.fixe{cursor:default;touch-action:auto}
.grip.fixe::before{left:6.5px;width:4px;border-radius:2px;background:var(--guide)}
.grip.fixe::after{display:none}
.grip.fixe:hover::before,.orow:hover .grip.fixe::before{background:var(--guide)}
/* Indent guides: one guide per parent level, under the parent's handle. */
.orow::before{
  content:"";position:absolute;left:8px;top:0;bottom:0;pointer-events:none;
  width:calc(var(--prof,0) * 22px);
  background:repeating-linear-gradient(to right,var(--guide) 0 1px,transparent 1px 22px);
}
.outliner.dense .orow::before{
  width:calc(var(--prof,0) * 12px);
  background:repeating-linear-gradient(to right,var(--guide) 0 1px,transparent 1px 12px);
}
/* Collapse chevron: its place is always reserved to align the texts. */
.fold{
  width:15px;height:21px;flex:none;color:var(--dimmer);font-size:var(--fs-xs);line-height:1;
  justify-content:center;padding:0;border-radius:var(--r-sm);
}
.fold:hover{color:var(--acc);background:var(--pop-hover)}
.fold.on{color:var(--acc)}
.fold.empty{pointer-events:none}
/* In a week column, the chevron's place is only reserved where there is
   one: 17 px more text on every line without sub-tasks. */
.outliner.dense .fold.empty{display:none}
.orow.sel{background:var(--acc-bg);box-shadow:inset 2px 0 0 var(--acc)}
.orow.sel .oedit{color:var(--sel-txt)}
.orow.drop-before{box-shadow:inset 0 2px 0 var(--acc)}
.orow.drop-after{box-shadow:inset 0 -2px 0 var(--acc)}
.orow.drop-child{background:var(--drag-bg);box-shadow:inset 18px 0 0 -14px var(--acc)}
.orow.drop-child::after{content:"sous-tâche";position:absolute;right:var(--s2);font:600 var(--fs-xs)/1.8 var(--fu);color:var(--acc);pointer-events:none}
.oedit a{color:var(--acc);text-decoration:none;border-bottom:1px solid var(--acc-line)}
.oedit a:hover{border-bottom-color:var(--acc)}
.oedit code{background:var(--input-bg);border-radius:var(--r-sm);padding:1px var(--s1);font-size:.92em}
.oedit strong{color:var(--txt-strong);font-weight:650}
.oedit s{color:var(--dimmer)}
/* The ghost follows the finger during a move. */
.ghost{
  position:fixed;left:var(--gx);top:var(--gy);z-index:90;pointer-events:none;transform:translate(14px,-50%);
  max-width:240px;padding:var(--s2) var(--s3);border-radius:var(--r);font-size:var(--fs-sm);box-shadow:inset 2px 0 0 var(--acc),var(--ombre);
  background:var(--acc-bg);border:1px solid var(--acc-line);color:var(--sel-txt);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:var(--ombre);
}
body.dragging{user-select:none;-webkit-user-select:none;cursor:grabbing}
/* The day rail, during a move in day view. */
.dayrail{
  position:fixed;left:50%;bottom:var(--s5);transform:translateX(-50%);z-index:85;
  display:flex;gap:var(--s1);padding:var(--s2);border-radius:var(--r-lg);
  background:var(--pop);border:1px solid var(--pop-line);box-shadow:var(--ombre);
}
.drday{width:48px;height:48px;border-radius:var(--r);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--dim)}
.drday .dl{font:600 var(--fs-xs)/1 var(--fu);text-transform:uppercase;letter-spacing:.06em}
.drday .dn{font:600 20px/1.1 var(--fh);color:var(--txt)}
.drday.today .dl,.drday.today .dn{color:var(--acc)}
.drday.on{background:var(--acc)}
.drday.on .dl,.drday.on .dn{color:#fff}
.drday.hors{margin-left:var(--s1);box-shadow:-5px 0 0 -4px var(--pop-line);width:56px}
.drday.hors .dn{font-size:var(--fs-sm);color:var(--dim)}
.drday.hors.on .dn{color:#fff}
/* The multi-selection bar. */
.selbar{
  position:absolute;left:50%;bottom:var(--s4);transform:translateX(-50%);z-index:50;
  display:flex;align-items:center;gap:2px;white-space:nowrap;
  background:var(--toast-bg);border:1px solid var(--acc-line);border-radius:var(--r-lg);
  padding:var(--s1) var(--s2);box-shadow:var(--ombre);
}
.selbar .selnb{font:600 var(--fs-xs)/1 var(--fu);color:var(--txt2);padding:0 var(--s2)}
.selbar .btn{color:var(--acc)}
.selbar .sep,.barreligne .sep{width:1px;align-self:stretch;background:var(--toast-line);flex:none;margin:var(--s1) 2px}
/* The action bar for a line, on the phone (BarreLigne in App.jsx). */
.barreligne{display:none}
.bottomnav{display:none}
@media (max-width:1279px) and (min-width:861px){
.app{--side-w:52px}
.brand{justify-content:center;padding:0}
.brand .nom-pb{display:none}
.snav{padding:var(--s2) 6px}
.side .sitem{justify-content:center;padding:0}
.side .sitem .lb,.side .sitem .cnt{display:none}
.col{min-width:150px}
.col.today{flex:1.6 1 0;min-width:260px}
}
/* With a finger, the scale goes up one step: 16 px text (below that, iOS zooms
   into the field on focus), 40 px controls. The variables change, the
   rules stay the same. */
@media (max-width:860px){
.app{flex-direction:column}
.side{display:none}
.only-wide{display:none}
.main{flex:1;min-height:0}
.top{padding:0 var(--s2)}
.board{overflow-x:auto;scroll-snap-type:x mandatory}
.col,.col.today{flex:0 0 86vw;min-width:86vw;scroll-snap-align:center}
.zoom{padding:var(--s3) var(--s4) 120px}
.zh{margin-bottom:var(--s2)}
/* The day title lives in the page (28 px); the top bar keeps only its arrows. */
.app.view-day .wk{visibility:hidden}
.orow,.outliner.dense .orow{padding:7px 4px;gap:3px 10px}
/* Without hover, a line's gestures go through the bottom bar. */
.racts{display:none}
.fold{width:24px;height:26px;margin-top:-2px}
.app.view-chat .top{display:none}
.selbar{
    left:var(--s2);right:var(--s2);transform:none;flex-wrap:wrap;justify-content:center;
    bottom:calc(76px + env(safe-area-inset-bottom));white-space:normal;
  }
.selbar .sep{display:none}
.nav .btn{position:relative}
.nav .btn::before{
    content:'';position:absolute;left:50%;top:50%;width:44px;height:44px;transform:translate(-50%,-50%);
  }
.bottomnav{
    display:flex;flex:none;background:var(--bg2);border-top:1px solid var(--line);
    padding:var(--s2) 0 calc(var(--s2) + env(safe-area-inset-bottom));
  }
.bottomnav button{
    flex:1;min-width:0;font-size:var(--fs-xs);color:var(--dimmer);flex-direction:column;gap:3px;
    justify-content:center;padding:0 2px;
  }
.bottomnav button > :last-child{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bottomnav button{font-family:var(--fu);font-weight:500}
.bottomnav button.on{color:var(--acc);box-shadow:inset 0 2px 0 var(--acc)}
.bottomnav .navsep{flex:none;width:1px;background:var(--line);margin:3px 0}
/* While typing in a line, the action bar replaces the navigation
     bar, stuck to the virtual keyboard. */
.app.edite .bottomnav{display:none}
.barreligne{
    position:fixed;left:0;right:0;z-index:80;display:flex;align-items:center;gap:0;
    overflow-x:auto;padding:var(--s1) var(--s1) calc(var(--s1) + env(safe-area-inset-bottom));
    background:var(--bg2);border-top:1px solid var(--line);
  }
.barreligne .btn{flex:1 1 0;width:auto;min-width:0;color:var(--txt2)}
.barreligne .sep{margin:var(--s2) 0}
.wk-long{display:none}
.wk-court{display:inline}
.dayrail{bottom:calc(var(--s4) + env(safe-area-inset-bottom));padding:var(--s1);gap:2px}
.drday{width:40px}
.drday.hors{width:48px}
}
