/* cal.css - Planning › Calendar to the CL Hub Figma "Planner" (round 1142). Everything is scoped to .cal, .calov and .calmenu. */
.cal{--ink:#192341;--ink2:#3D4663;--mut:#6B7390;--line:#E3E6EF;--line2:#ECEEF4;--bd:#C9CEDC;--pg:#F5F6FA;--org:#EC720E;--red:#D4243F;--blue:#4A6CF7;
  font-family:var(--cl-font,Inter,system-ui,sans-serif);color:var(--ink);padding:0 0 40px;max-width:1520px}
/* the Figma page has its own header in place of the greeting */
body:has(#view-tasks2.on .cal) .greet{display:none}
.cal *{box-sizing:border-box}
.calhead{display:flex;align-items:flex-start;gap:16px;margin-bottom:16px}
.calh1{font-size:24px;line-height:32px;font-weight:700;margin:0;color:var(--ink)}
.calsub{font-size:14px;color:var(--mut);margin-top:2px}
.calpills{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.calpill{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:6px;background:#FCE6C8;color:#8F5A1F;font-size:12px;font-weight:500;border:0;text-decoration:none;cursor:default;font-family:inherit}
.calpill.link{background:#fff;border:1px solid var(--bd);color:var(--ink);font-weight:600;cursor:pointer}
.calpill.link:hover{background:var(--line2)}
.calpill.ok{background:#E3F1E6;color:#1F6B3A;cursor:pointer}
.calpill.warn{background:#FDE7EB;color:#B01C33}
/* toolbar */
.caltool{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
/* 519 (Ailin, Hub Changes, afternoon 2 Dec): a gap between the toolbar row and the task list and calendar below it */
.caltool{margin-bottom:16px}
.calsrch input{height:36px;width:200px;border:1px solid var(--line);border-radius:8px;padding:0 12px;font:14px inherit;font-family:inherit;color:var(--ink);background:#fff}
.calsrch input::placeholder{color:#9AA0B8}
.calsrch input:focus{outline:none;border:2px solid #8900B5;padding:0 11px}
.calbtn{height:36px;padding:0 14px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font:600 14px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.calbtn:hover{background:var(--line2)}
.calbtn.sm{height:28px;padding:0 10px;font-size:13px}
.calsq{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font-size:18px;line-height:1;cursor:pointer;font-family:inherit}
.calsq:hover{background:var(--line2)}
.caltitle{font-size:18px;font-weight:700;white-space:nowrap;color:var(--ink)}
.calseg{display:inline-flex;background:var(--line2);border-radius:8px;padding:3px;gap:2px}
.calseg button{height:30px;padding:0 14px;border:0;border-radius:6px;background:transparent;color:var(--mut);font:500 14px inherit;font-family:inherit;cursor:pointer}
.calseg button.on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(25,35,65,.08)}
.calwe{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--mut);cursor:pointer;user-select:none}
.calwe input{accent-color:#8900B5}
.calsp{flex:1}
.calcta{height:36px;padding:0 22px;border:0;border-radius:8px;background:linear-gradient(90deg,#F22A5C,#FF7800);color:#fff;font:600 14px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.calcta:hover{background:linear-gradient(90deg,#D61F4E,#E86C00)}
.calfw{position:relative}
.calfpop{position:absolute;top:42px;left:0;z-index:40;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 14px rgba(25,35,65,.12);padding:12px;min-width:280px;display:flex;flex-direction:column;gap:10px}
.calfpop[hidden]{display:none}
.calfpt{font-size:12px;font-weight:600;color:var(--mut);text-transform:uppercase;letter-spacing:.04em}
.calfpop .tlfilters{display:flex;flex-direction:column;gap:6px}
.calfrow{display:flex;gap:8px}
.calsprint{margin-left:auto;color:var(--mut);font-size:13px}
/* 506 (Ailin, Hub Changes 02/12): the tidier top - date and sprint under the title, the links and a settings cog on
   the right; the week, arrows, Today and a view dropdown on one line; search and filters in the task list column */
.calsub{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calspr{color:#E8552B;font-size:14px;display:inline-flex;align-items:center;gap:8px}
.calspr:not(:empty)::before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}
.calhead .calpills{align-items:center}
.calcogw{position:relative;flex:none;align-self:flex-start;margin-top:-3px}
.calcog{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:var(--mut);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.calcog:hover,.calcog[aria-expanded="true"]{background:var(--line2);color:var(--ink)}
.calcog:focus-visible{outline:2px solid #F22A5C;outline-offset:1px}
.calcogpop{position:absolute;right:0;top:38px;z-index:60;background:#fff;border-radius:12px;box-shadow:0 4px 14px rgba(25,35,65,.14),0 0 0 1px rgba(25,35,65,.06);padding:6px;min-width:240px;display:flex;flex-direction:column}
.calcogpop[hidden]{display:none}
.calcogi{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;font-size:14px;color:var(--ink);cursor:pointer;user-select:none}
.calcogi:hover{background:var(--line2)}
.calcogi input{accent-color:#8900B5;width:16px;height:16px;margin:0}
.caltool .caltitle{margin-right:6px}
.calvsel{height:36px;border:1px solid var(--line);border-radius:8px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23192341' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  -webkit-appearance:none;appearance:none;padding:0 30px 0 14px;font:600 14px/1 inherit;font-family:inherit;color:var(--ink);cursor:pointer}
.calvsel:focus-visible{outline:2px solid #F22A5C;outline-offset:1px}
.calown{display:flex;flex-direction:column;gap:8px}
.calown:empty{display:none}
.calfind{display:flex;gap:8px;align-items:center;margin:10px 0}
.calfind .calsrch{flex:1;min-width:0}
.calfind .calsrch input{width:100%}
.ci.ev.dec,.mi.ev.dec,.ci.ad.dec{opacity:.5}
.ci.ev.dec .ct,.mi.ev.dec,.ci.ad.dec{text-decoration:line-through}
/* 508: other people's calendars - the picker, and their time drawn faint in their colour, never clickable */
.calow{position:relative}
.calopop{position:absolute;top:42px;left:0;z-index:60;background:#fff;border-radius:12px;box-shadow:0 4px 14px rgba(25,35,65,.14),0 0 0 1px rgba(25,35,65,.06);padding:12px;width:300px;display:flex;flex-direction:column;gap:8px}
.calopop[hidden]{display:none}
.calonote{margin:0;font-size:12.5px;color:var(--mut)}
.calolist{display:flex;flex-direction:column;max-height:min(50vh,420px);overflow:auto;margin:0 -4px}
.caloi{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;font-size:14px;color:var(--ink);cursor:pointer}
.caloi:hover{background:var(--line2)}.caloi input{accent-color:#8900B5;margin:0}
.caloi small{display:block;color:var(--mut);font-size:11.5px}
.calosw{width:10px;height:10px;border-radius:3px;background:var(--c);border:1px solid var(--bd);flex:none}
.ci.ovl{pointer-events:none;z-index:1;background:color-mix(in srgb,var(--c) 16%,transparent);border:1px dashed var(--c);color:var(--ink)}
.ci.ovl .ct{color:var(--c)}
.ci.ovl.dnd{border-style:solid;border-width:2px}
.ovdnd{display:inline-block;margin-left:4px;padding:0 4px;border-radius:3px;background:#192341;color:#fff;font-size:10px;font-weight:700;letter-spacing:.03em;vertical-align:1px}
/* 510, 521: training assigned to you, first in your task list, compact (one line, no status), to drag onto the calendar */
.caltrain{display:flex;flex-direction:column;gap:6px;margin:0 0 6px}
.calpanel .t2card.own.trn{cursor:grab;margin-bottom:0}
.calpanel .t2card.own.trn .t2cname{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.calpanel .t2card.own.trn .trnk{flex:none;font-size:10.5px;font-weight:600;color:#8900B5}
.calpanel .t2card.own.trn .trnt{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.calpanel .t2card.own.trn .ownmin{flex:none}
.tst-plan-v2 .calpanel .t2card.own.trn .t2cname::before{background:#8900B5}
/* the log prompts */
.calprompts{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.calprompt{display:flex;align-items:center;gap:10px;background:#FFF6EC;border:1px solid #F8D9B8;border-radius:10px;padding:8px 12px;font-size:14px}
.calprompt .pt{flex:1;min-width:0}
.calprompt .pt small{display:block;color:var(--mut);font-size:12px}
.pclock{width:18px;height:18px;border-radius:50%;border:2px solid var(--org);position:relative;flex:none}
.pclock::after{content:'';position:absolute;left:6px;top:2px;width:2px;height:6px;background:var(--org);box-shadow:2px 4px 0 -0px transparent}
.calplacing{background:#EEF2FF;color:#2A2FB0;border-radius:10px;padding:8px 12px;font-size:14px;margin-bottom:8px;display:flex;gap:10px;align-items:center}
/* body: panel + calendar */
.calbody{display:flex;gap:16px;align-items:flex-start}
.calpanel{width:270px;flex:none;position:sticky;top:12px}
.calbody.nopanel .calpanel{display:none}
.calsheeth{display:none}
.caldaily{font-size:13px;color:var(--mut);margin:0 0 6px}
.calmain{flex:1;min-width:0;position:relative}
.caltab{position:absolute;left:-16px;top:22px;width:14px;height:24px;border:1px solid var(--bd);border-radius:4px;background:#ECEEF4;color:var(--ink2);font-size:12px;line-height:20px;padding:0;cursor:pointer;z-index:3}
.calcard{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(25,35,65,.06);overflow:hidden}
.calfab{display:none}
.calstash{display:none!important}
/* panel cards, to the Figma planner card */
.calpanel #t2list{display:flex;flex-direction:column;gap:8px;overflow:auto;padding-right:2px}
.calpanel .t2card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px 10px 14px;position:relative;box-shadow:none;margin:0;cursor:grab}
.calpanel .t2card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:8px 0 0 8px;background:#3B5BDB}
.calpanel .t2card.own{background:var(--pg);border-color:var(--bd);border-radius:6px;padding:5px 10px;min-height:28px}
.calpanel .t2card.own::before{display:none}
.calpanel .t2card.own .t2cname{font-size:13px;font-weight:600;display:flex;align-items:center;gap:6px}
.calpanel .t2card.own .admchip{display:none}
.calpanel .t2card.own .t2cname{white-space:nowrap}
.calpanel .t2card.own .ownmin{font-weight:400;color:var(--mut);margin-left:auto}
.calpanel .t2card .t2ceye{font-size:12px;font-weight:600;color:#3B5BDB;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.calpanel .t2card .t2cname{font-size:14px;font-weight:700;color:var(--ink);margin:2px 0}
.calpanel .t2card .t2chrs,.calpanel .t2card .t2cdate{font-size:12px;color:var(--mut)}
.calpanel .bgrp{display:flex;flex-direction:column;gap:8px}
.calpanel .bgrp[hidden]{display:none}   /* 1241 (Evie): a folded group stays folded - display:flex was beating hidden */
/* ---- the time grid ---- */
.cg{--gut:56px;display:flex;flex-direction:column}
.cghead,.cgallrow{display:grid;grid-template-columns:var(--gut) repeat(var(--n),minmax(0,1fr));border-bottom:1px solid var(--line2)}
.cghead{padding:8px 8px 6px 0}
.cggut{font-size:11px;color:var(--mut);text-align:right;padding:4px 8px 0 0}
.cgdh{text-align:center;border-radius:8px;padding:6px 2px;cursor:pointer;min-width:0}
.cgdh:hover{background:var(--pg)}
.cgdh b{display:block;font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgdh .cap{font-size:11px;color:var(--mut)}
.cgdh .cap.over{color:#B7791F;font-weight:600}
.cgdh.today{background:#FFF0E6}
.cgdh.today b{color:var(--org)}
.cgdh.we b{color:var(--mut)}
.cgad{padding:3px;display:flex;flex-direction:column;gap:2px;min-width:0;border-left:1px solid var(--line2)}
.ci.ad{position:static;background:#EEF2FF;color:#2A2FB0;border-radius:4px;font-size:11px;font-weight:600;padding:2px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.cgscroll{height:min(68vh,780px);overflow-y:auto;position:relative}
.cgbody{position:relative;display:grid;grid-template-columns:var(--gut) repeat(var(--n),minmax(0,1fr));
  background-image:repeating-linear-gradient(to bottom,var(--line2) 0,var(--line2) 1px,transparent 1px,transparent 48px)}
.cgtimes{position:relative}
.cgtimes i{position:absolute;right:8px;transform:translateY(-50%);font-style:normal;font-size:11px;color:var(--mut)}
.cgcol{position:relative;border-left:1px solid var(--line2);min-width:0}
.cgcol.we{background:rgba(245,246,250,.6)}
.cgoff{position:absolute;left:0;right:0;background:rgba(236,238,244,.45);pointer-events:none}
.cgcol.drophi,.cmc.drophi{background:rgba(74,108,247,.08)}
.cgnow{position:absolute;left:0;right:0;height:2px;background:var(--red);z-index:6;pointer-events:none}
.cgnow::before{content:'';position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--red)}
.cgsel{position:absolute;left:2px;right:2px;background:rgba(74,108,247,.18);border:1.5px solid var(--blue);border-radius:6px;font-size:11px;font-weight:600;color:#2A2FB0;padding:2px 6px;z-index:7;pointer-events:none}
/* items */
.ci{position:absolute;border-radius:6px;padding:4px 8px;overflow:hidden;font-size:12px;line-height:1.3;cursor:pointer;z-index:2;touch-action:none;user-select:none;-webkit-user-select:none}
.ci .ct{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci .cm{display:block;font-size:11px;opacity:.9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ci.short{padding:1px 6px;display:flex;align-items:center;gap:6px}
.ci.short .ct{flex:0 1 auto;min-width:0}
.ci.short .cm{flex:1 1 auto;min-width:0}
.ci.blk{background:var(--c,#3B5BDB);color:#fff;cursor:grab}
.ci.blk.locked{cursor:pointer}
.ci.blk.logged{opacity:.78}
.ci.blk.late{box-shadow:inset 3px 0 0 var(--red)}
.ci.blk.dnd{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.14) 0 6px,transparent 6px 12px)}
.ci.ev{background:#fff;border:1.5px solid var(--ink);color:var(--ink)}
.ci.ev.lab{background:var(--c);border-color:var(--c);color:#fff}
.ci.ev:not(.locked){cursor:grab}
.ci.prop{background:#fff;border:1.5px dashed #3B5BDB;color:#2A2FB0}
.ci.prop.off{opacity:.45;text-decoration:line-through}
.ci.prop.late{border-color:var(--red);color:var(--red)}
.ci.dragging{z-index:20;box-shadow:0 8px 24px rgba(25,35,65,.3);opacity:.95;cursor:grabbing}
.ci .rz{position:absolute;left:0;right:0;height:6px;cursor:ns-resize;z-index:3}
.ci .rz.t{top:0}.ci .rz.b{bottom:0}
.cicons{position:absolute;right:4px;bottom:3px;display:flex;gap:3px;align-items:center}
.ci.short .cicons{position:static;margin-left:auto}
.cicons i{font-style:normal}
/* 1157: repeating calls and tasks */
.i-rep{font-style:normal;font-weight:700;font-size:12px;line-height:1;opacity:.85}
.cicons .i-rep{width:16px;height:16px;border-radius:50%;background:rgba(255,255,255,.85);color:#1D2A3A;display:inline-flex;align-items:center;justify-content:center}
.calmod .crep{gap:8px}
.calmod .crep select.cin{min-width:220px;flex:0 1 auto}
.calmod .crepu{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.calmod .crepu[hidden]{display:none}
.calmod .crepu .cnote{margin:0}
.calmod.cscopem{max-width:360px}
.calmod .cscope{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.calmod .cscope .cbtn{width:100%;justify-content:center}
.calmod .crepn{margin:6px 0}
.i-ok{width:16px;height:16px;border-radius:50%;background:#fff;color:#1B7F52;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.i-dnd{font-size:9px;font-weight:700;letter-spacing:.03em;background:rgba(25,35,65,.35);color:#fff;border-radius:3px;padding:1px 3px}
.i-log{border:0;border-radius:4px;background:#fff;color:var(--ink);font:600 10px inherit;font-family:inherit;padding:2px 6px;cursor:pointer}
.i-warn{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background:#F2BE24;color:#192341;font-size:10px;font-weight:800;font-style:normal;margin-right:4px;vertical-align:-2px}
.ci.ev.lab .i-warn{background:#fff}
/* ---- month ---- */
.cm .cmhead,.cm .cmgrid{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr))}
.cmhead div{font-size:12px;font-weight:600;color:var(--mut);padding:10px 8px;border-bottom:1px solid var(--line2)}
.cmc{min-height:118px;border-right:1px solid var(--line2);border-bottom:1px solid var(--line2);padding:4px;display:flex;flex-direction:column;gap:2px;min-width:0;cursor:pointer}
.cmc.out{background:#FAFAFC}
.cmc.out .cmd{color:#9AA0B8}
.cmh{display:flex;align-items:center;justify-content:space-between}
.cmd{border:0;background:none;font:600 13px inherit;font-family:inherit;color:var(--ink);width:26px;height:26px;border-radius:50%;cursor:pointer}
.cmd:hover{background:var(--line2)}
.cmc.today .cmd{background:var(--org);color:#fff}
.cmh .cap{font-size:11px;color:var(--mut)}
.cmh .cap.over{color:#B7791F;font-weight:600}
.mi{font-size:11.5px;border-radius:4px;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.mi i{font-style:normal;opacity:.85;margin-right:4px;font-size:10.5px}
.mi.blk{background:var(--c);color:#fff}
.mi.blk.logged{opacity:.75}
.mi.ev{border:1px solid var(--ink);color:var(--ink);background:#fff}
.mi.ev.lab{background:var(--c);border-color:var(--c);color:#fff}
.mi.prop{border:1px dashed #3B5BDB;color:#2A2FB0}
.mi.prop.off{opacity:.45;text-decoration:line-through}
.cmmore{border:0;background:none;color:var(--blue);font:600 11px inherit;font-family:inherit;text-align:left;padding:2px 5px;cursor:pointer}
/* ---- dialogs (Figma 5.3 - 5.5) ---- */
.calov{position:fixed;inset:0;background:rgba(25,35,65,.4);z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}
.calov.drawerov{background:rgba(25,35,65,.25);justify-content:flex-end;padding:0;z-index:2100}
.calmod{--ink:#192341;--ink2:#3D4663;--mut:#6B7390;--line:#E3E6EF;--bd:#C9CEDC;--pg:#F5F6FA;--blue:#4A6CF7;--red:#D4243F;
  position:relative;background:#fff;border-radius:18px;padding:26px;width:min(534px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 12px 40px rgba(25,35,65,.25);font-family:var(--cl-font,Inter,system-ui,sans-serif);color:var(--ink);display:flex;flex-direction:column;gap:12px}
.calmod.drawer{width:min(405px,100%);height:100vh;max-height:100vh;border-radius:0;padding:20px;gap:12px}
.calx{position:absolute;right:18px;top:16px;border:0;background:none;font-size:22px;line-height:1;color:var(--ink);cursor:pointer;width:32px;height:32px;border-radius:8px}
.calx:hover{background:#ECEEF4}
.calx.sm{position:static;width:28px;height:28px;font-size:18px}
.cdh{display:flex;align-items:center;justify-content:space-between}
.cdh h3{margin:0;font-size:18px}
.cdh .calx{position:static}
.ctitle{border:0;border-bottom:1px solid var(--bd);font:700 16px inherit;font-family:inherit;color:var(--ink);padding:6px 0;margin-right:36px;outline:none;background:transparent}
.ctitle:focus{border-bottom:2px solid #8900B5}
.ctitle::placeholder{color:var(--ink);opacity:1}
.crow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.csp{flex:1}
.cseg{display:inline-flex;background:#ECEEF4;border-radius:10px;padding:4px;gap:2px}
.cseg button{border:0;background:transparent;border-radius:8px;height:30px;padding:0 14px;font:500 14px inherit;font-family:inherit;color:#5A6078;cursor:pointer}
.cseg button.on{background:#fff;color:var(--ink);font-weight:700}
.cseg button:disabled{opacity:.55;cursor:default}
.cin{height:36px;border:1px solid var(--line);border-radius:8px;background:var(--pg);padding:0 10px;font:14px inherit;font-family:inherit;color:#5A6078}
.cin:focus{outline:none;border:2px solid #8900B5;padding:0 9px}
.cin.wide{width:100%}
.cdash{color:var(--mut)}
.cchk{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--mut);cursor:pointer}
.cchk input{accent-color:#8900B5;width:14px;height:14px}
.cchk[hidden],.task-only[hidden],.ev-only[hidden]{display:none}
.cloggd{font-size:12px;font-weight:600;color:#1B7F52}
.clink{border:0;background:none;padding:0;color:var(--blue);font:16px inherit;font-family:inherit;cursor:pointer;text-align:left}
.clink:hover{text-decoration:underline}
.clink.sm{font-size:13px}
.cpicked{font-size:14px;color:var(--ink2)}
.clbl{font-size:16px;color:var(--ink2)}
.cnotes{min-height:95px;border:1px solid var(--line);border-radius:8px;background:var(--pg);padding:10px;font:14px inherit;font-family:inherit;color:var(--ink);resize:vertical}
.cnotes:focus{outline:none;border:2px solid #8900B5}
.cfoot{display:flex;align-items:center;gap:8px;margin-top:4px}
.chint{font-size:12px;color:var(--mut)}
.cbtn{height:36px;padding:0 18px;border-radius:8px;border:0;font:600 14px inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.cbtn.sm{height:30px;padding:0 12px;font-size:13px}
.cbtn.cta{background:linear-gradient(90deg,#F22A5C,#FF7800);color:#fff}
.cbtn.cta:disabled{background:#E3E6EF;color:#fff;cursor:default}
.cbtn.grey{background:#9AA0B8;color:#fff}
.cbtn.sec{background:#fff;border:1px solid var(--bd);color:var(--ink)}
.cbtn.sec:hover{background:#ECEEF4}
.cbtn.ghost{background:transparent;color:var(--ink)}
.cbtn.ghost:hover{background:#ECEEF4}
.cbtn.danger{background:#fff;border:1px solid #F0A3B0;color:var(--red)}
.cbtn.danger:hover{background:#FCE9EC}
.cstat{display:inline-flex;align-items:center;height:28px;padding:0 14px;border-radius:999px;background:#BEE3F8;color:#1E8FBF;font-size:13px;font-weight:600}
.cstat.donep{background:#1B7F52;color:#fff}
.cstat.soon{background:#C7CCFB;color:#2A2FB0}
.cstat.hold{background:#FFE680;color:#6B5200}
.cstat.track{background:#FFD9B0;color:#8F4300}
.crange{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:#ECEEF4;color:#E0299B;font-size:12px;font-weight:600}
.cmet{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--mut)}
.cmet b{color:#C25E00;font-weight:600}
.cbar{flex:1;min-width:90px;height:4px;border-radius:2px;background:#ECEEF4;overflow:hidden}
.cbar i{display:block;height:100%;background:#1E88E5}
.cpct{font-size:12px}
.cnote{font-size:13px;color:var(--mut)}
.ceh{margin:0 36px 0 0;font-size:18px;line-height:24px}
.cwhen{font-size:14px;color:var(--ink2)}
.cwarnrow{display:flex;align-items:center;gap:6px;background:#FFF3CC;color:#7A5C00;border-radius:8px;padding:8px 10px;font-size:13px}
.crowi{font-size:14px}
.crowi a{color:var(--blue)}
.cwho{margin:0;padding:0 0 0 18px;font-size:13px;color:var(--ink2)}
.cwho i{color:var(--mut);font-style:normal;font-size:12px}
.cdesc{font-size:13px;color:var(--ink2);white-space:pre-wrap;max-height:120px;overflow:auto;background:#FAFAFB;border:1px solid var(--line);border-radius:10px;padding:10px}
/* the task picker drawer (Figma 5.4) */
.cplist{flex:1;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:2px}
.cpc{display:flex;gap:10px;align-items:flex-start;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;box-shadow:0 1px 2px rgba(25,35,65,.06);cursor:pointer;font-family:inherit;color:var(--ink)}
.cpc:hover{border-color:var(--bd)}
.cpc.on{border-color:#22C55E}
.cpbox{width:16px;height:16px;border-radius:3px;border:1px solid #8A90A8;flex:none;margin-top:2px}
.cpc.on .cpbox{background:#22C55E;border-color:#22C55E;position:relative}
.cpc.on .cpbox::after{content:'';position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.cpb{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.cpb>b{font-size:13px}
.cpm{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--mut)}
.cpm .cstat{height:22px;font-size:11px;padding:0 8px}
.cpm b.g{color:#1B7F52}
.cpbar{width:60px;height:4px;border-radius:2px;background:#ECEEF4;overflow:hidden;display:inline-block}
.cpbar i{display:block;height:100%;background:#22C55E}
.cdf{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:12px}
/* labels */
.elr{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.elr .cin{flex:1}
.elc{width:36px;height:36px;border-radius:8px;border:1px solid var(--line);color:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.elc option{color:#192341}
/* the right-click menu (Figma 5.8) */
.calmenu{position:fixed;z-index:2200;width:270px;max-height:calc(100vh - 16px);overflow:auto;background:#fff;border-radius:12px;box-shadow:0 4px 14px rgba(25,35,65,.12),0 0 0 1px rgba(25,35,65,.06);padding:8px;font-family:var(--cl-font,Inter,system-ui,sans-serif);color:#192341}
.calmenu button{font-family:inherit}
.cmhd{display:flex;align-items:center;justify-content:space-between;padding:6px 6px 4px;font-size:12px;font-weight:600;color:#6B7390}
.cmhd button{border:0;background:none;color:#6B7390;font-size:12px;cursor:pointer}
.cmhd button:hover{color:#192341}
.cml,.cmi{display:flex;align-items:center;gap:10px;width:100%;height:30px;padding:0 8px;border:0;background:none;border-radius:6px;font-size:14px;color:#192341;cursor:pointer;text-align:left}
.cml:hover,.cmi:hover{background:#F5F6FA}
.cml i{width:10px;height:10px;border-radius:50%;flex:none}
.cml.on{background:#EAF5EE;font-weight:700}
.cml .ck{margin-left:auto;color:#2E9B57}
.cmi.red{color:#D4243F}
.cmi .ring{width:12px;height:12px;border-radius:50%;border:2px solid #E0299B}
.cmsep{height:1px;background:#ECEEF4;margin:6px 0}
.cmsw{display:grid;grid-template-columns:repeat(8,22px);gap:8px;padding:4px 8px 6px}
.cmsw .sw{width:22px;height:22px;border-radius:50%;border:0;cursor:pointer;padding:0}
.cmsw .sw.on{box-shadow:0 0 0 2px #fff,0 0 0 4px #192341}
/* ---- smaller screens ---- */
@media (max-width:1100px){.calpanel{width:240px}.calsrch input{width:170px}.caltitle{min-width:0}}
@media (max-width:767px){
  .cal{padding:16px 12px 80px}
  .calh1{font-size:20px}
  .caltool{gap:8px}
  .calsrch{order:10;flex:1 1 100%}.calsrch input{width:100%}
  .calfw{order:11}
  .calwe,.calsprint{display:none}
  .calcta{order:12;padding:0 14px}
  .caltitle{font-size:16px;flex:1 1 100%;order:-1}
  .calseg button{padding:0 10px}
  .caltab{display:none}
  .calpanel{display:none}
  .calbody.sheet .calpanel{display:flex;flex-direction:column;position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-height:70vh;background:#fff;z-index:1500;border-radius:16px 16px 0 0;box-shadow:0 -8px 30px rgba(25,35,65,.25);padding:12px 14px 20px}
  .calbody.sheet .calsheeth{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
  .calbody.sheet .calsheeth .calx{position:static}
  .calbody.sheet #t2list{max-height:none!important;flex:1;overflow:auto}
  .calfab{display:block;position:fixed;right:16px;bottom:16px;z-index:1400;height:44px;padding:0 18px;border-radius:999px;border:0;background:linear-gradient(90deg,#F22A5C,#FF7800);color:#fff;font:600 14px inherit;font-family:inherit;box-shadow:0 6px 18px rgba(25,35,65,.25)}
  .cgscroll{height:calc(100vh - 300px)}
  .cg{--gut:44px}
  .cmc{min-height:76px}
  .mi i{display:none}
  .calprompt{flex-wrap:wrap}
  .calprompt .pt{flex:1 1 100%}
  .cbtn,.calbtn,.calsq{min-height:44px}
  .calmod{padding:20px 16px}
}
/* narrow columns (Sprint): the title is enough */
.v-sprint .ci.short .cm,.v-sprint .i-log{display:none}
.v-sprint .ci .ct{font-size:11px}
@media (max-width:767px){.calprompt:nth-child(n+2){display:none}}

/* 1146: guests, Find a time, the booking link */
.crow .grow{flex:1;min-width:180px}
.cfind{width:min(760px,100%)}
.ftday{min-width:220px;text-align:center}
.ftbody{display:flex;flex-direction:column;gap:6px}
.ftrow{display:grid;grid-template-columns:140px 1fr;align-items:center;gap:10px;font-size:13px}
.ftrow>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.ftbar{position:relative;height:26px;background:#F5F6FA;border-radius:6px;overflow:hidden}
.ftbar.nog{background:repeating-linear-gradient(135deg,#F5F6FA 0 6px,#ECEEF4 6px 12px)}
.ftbar em{position:absolute;left:8px;top:4px;font-size:11px;color:#6B7390;font-style:normal;z-index:2}
.ftwork{position:absolute;top:0;bottom:0;background:#fff;border-left:1px solid #E3E6EF;border-right:1px solid #E3E6EF}
.ftbusy{position:absolute;top:3px;bottom:3px;background:#9196CC;border-radius:4px}
.ftscale .ftbar{background:transparent;height:16px;overflow:visible}
.ftscale i{position:absolute;transform:translateX(-50%);font-size:10.5px;color:#6B7390;font-style:normal}
.ftall .ftbar{background:#fff;border:1px solid #E3E6EF}
.ftfree{position:absolute;top:3px;bottom:3px;background:#B7E4C7;border:0;border-radius:3px;cursor:pointer;padding:0;opacity:.85}
.ftfree:hover{background:#2E9B57;opacity:1}
.ftlist{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.cbook{width:min(600px,100%)}
.cchk.big{font-size:14px;color:#192341;font-weight:600}
.bklink{font-size:13px;color:#6B7390}
.clbl.sm{font-size:13px;font-weight:600;color:#3D4663}
.cnotes.short{min-height:60px}
.wrapr{gap:12px}
.cfld{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#6B7390}
.bkweek{display:flex;flex-direction:column;gap:6px}
.bkday{display:grid;grid-template-columns:120px 130px 14px 130px;align-items:center;gap:6px}
.bkday .cin:disabled{opacity:.45}
.bkup{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow:auto}
.bkrow{display:flex;align-items:center;gap:8px;justify-content:space-between;font-size:13px;border:1px solid #E3E6EF;border-radius:8px;padding:6px 10px}
@media (max-width:767px){.ftrow{grid-template-columns:90px 1fr}.bkday{grid-template-columns:1fr 1fr 10px 1fr}}

.calmod>*{flex-shrink:0}

/* 1152: what a block is for - tasks, a client, internal */
.calmod .cseg.cptabs{margin:0;align-self:flex-start;flex:0 0 auto;height:auto;width:auto}
.cptabs button{padding:6px 14px}

/* 1153: group links */
.cgroup .grppl{display:flex;flex-wrap:wrap;gap:6px 14px;max-height:140px;overflow:auto;padding:2px}
.cgroup .grppl .cchk.dis{opacity:.5}
.cgroup .grppl i,.cgroup .grt i{font-style:normal;color:var(--mut);font-size:12px}
.cgroup .grdays{gap:10px}
.cgroup .grlist{display:flex;flex-direction:column;gap:8px}
.cgroup .grow1{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.cgroup .grt{display:flex;align-items:center;gap:8px}
.cgroup .grst{font-size:11px;font-weight:700;border-radius:99px;padding:2px 8px;background:#ECEEF4;color:var(--mut)}
.cgroup .grst.ok{background:#E3F4EA;color:#1F7A53}.cgroup .grst.bk{background:#E8ECF7;color:#192341}
.cgroup .grl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}

/* 1155: team calls */
.ccreate .ctgroups{display:flex;flex-wrap:wrap;gap:6px}
.ccreate .ctg{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 12px;font:600 12.5px inherit;font-family:inherit;color:var(--ink);cursor:pointer}
.ccreate .ctg i{font-style:normal;color:var(--mut);font-weight:500;margin-left:2px}
.ccreate .ctg.on{background:var(--ink);border-color:var(--ink);color:#fff}.ccreate .ctg.on i{color:#C9CEDC}
.ccreate .ctpeople{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.ccreate .ctp{display:inline-flex;align-items:center;gap:4px;background:#ECEEF4;border-radius:999px;padding:3px 4px 3px 10px;font-size:12.5px}
.ccreate .ctp button{border:0;background:transparent;font-size:15px;line-height:1;cursor:pointer;color:var(--mut);width:20px;height:20px;border-radius:50%}
.ccreate .ctp button:hover{background:#fff;color:var(--ink)}

/* 1164: the event pop-up as Google shows it; editing an event */
.calmod .cetop{display:flex;justify-content:flex-end;gap:4px;margin:-6px -6px 4px 0}
.calmod .cetop .calx{position:static}
.calmod .calicon{width:34px;height:34px;border:0;border-radius:8px;background:transparent;display:inline-flex;align-items:center;justify-content:center;font-size:16px;color:#3d4663;cursor:pointer;text-decoration:none}
.calmod .calicon:hover{background:#eceef4}
.calmod .cerow{display:flex;gap:12px;align-items:flex-start;margin:10px 0;font-size:14px;color:#192341;line-height:1.45}
.calmod .cerow small{color:#6b7390;margin-left:4px}
.calmod .ceic{width:20px;flex:none;text-align:center;color:#6b7390}
.calmod .cerow .cdesc{margin:0;white-space:normal;overflow-wrap:anywhere;max-height:240px;overflow:auto}
.calmod .cerow a{color:#4a6cf7;overflow-wrap:anywhere}
.calmod .cejoin{display:inline-flex;text-decoration:none;color:#fff!important}
.calmod .cwho2{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:5px;max-height:190px;overflow:auto}
.calmod .cwho2 li{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calmod .cwho2 .cwe{color:#9aa0b8;font-size:12px}
.calmod .cwho2 i{font-style:normal;color:#6b7390;font-size:12px}
.calmod .cans{width:18px;height:18px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none;background:#eceef4;color:#6b7390}
.calmod .cans.yes{background:#e3f6ea;color:#1b7f52}.calmod .cans.no{background:#fde7eb;color:#b01c33}.calmod .cans.maybe{background:#fff3cc;color:#7a5c00}
.calmod .cersvp{display:flex;align-items:center;gap:8px;padding:12px 0 0;margin-top:8px;border-top:1px solid #eceef4}
.calmod .cersvp span{flex:1;font-weight:600;color:#3d4663}
.calmod.ceedit .cin.wide{width:100%}

/* ===== plan-v2 - Ailin's Planning design, IN TESTING (testing.json). Everything below only
   applies with <html class="tst-plan-v2">, so nobody else sees it until it is released. ===== */
/* 4: bigger hour rows - 72px, so ten hours (8:00-18:00) fill the calendar; scroll for the rest */
.tst-plan-v2 .cgbody{background-image:repeating-linear-gradient(to bottom,var(--line2) 0,var(--line2) 1px,transparent 1px,transparent 72px)}
.tst-plan-v2 .cgscroll{height:720px;max-height:calc(100vh - 260px)}
@media (min-width:761px){
  /* 5: only the task list scrolls - the calendar stays in frame beside it */
  .tst-plan-v2 .calmain{position:sticky;top:12px}
  .tst-plan-v2 .calpanel{display:flex;flex-direction:column;max-height:calc(100vh - 24px)}
  .tst-plan-v2 .calbody.nopanel .calpanel{display:none}
  .tst-plan-v2 .calpanel #t2list{max-height:none;flex:1;min-height:0;overflow-y:auto}
  .tst-plan-v2 .calpanel #t2list>*,.tst-plan-v2 .calpanel .bgrp>*{flex-shrink:0}   /* cards keep their height; the list scrolls */
  /* 2: the show/hide arrow - a round dark button on the edge between the list and the calendar */
  .tst-plan-v2 .caltab{left:-19px;top:28px;width:32px;height:32px;border-radius:50%;border:2px solid #fff;background:#192341;color:#fff;font-size:17px;font-weight:700;line-height:26px;box-shadow:0 2px 8px rgba(25,35,65,.25)}
  .tst-plan-v2 .caltab:hover{background:#2D395E}
  .tst-plan-v2 .calbody.nopanel .caltab{left:-8px}
}
/* 1: Daily tasks - plain white rows with a coloured dot, minutes on the right */
.tst-plan-v2 .caldaily{font-size:13px;font-weight:600;color:var(--ink2);margin:0 0 8px}
.tst-plan-v2 .calpanel .t2card.own{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 12px;min-height:0}
.tst-plan-v2 .calpanel .t2card.own .t2cname{font-weight:600;color:var(--ink)}
.tst-plan-v2 .calpanel .t2card.own .t2cname::before{content:'';flex:none;width:8px;height:8px;border-radius:50%;background:#6B7390}
.tst-plan-v2 .calpanel .t2card.own.brk .t2cname::before{background:#3AA46A}
.tst-plan-v2 .calpanel .t2card.own.brk{margin-bottom:10px}
/* 3: simpler task cards - no side bands, no comments / hours / arrow buttons, no logo, no "Part scheduled" */
.tst-plan-v2 .calpanel .t2card .cardrib,
.tst-plan-v2 .calpanel .t2card .cardpct,
.tst-plan-v2 .calpanel .t2card .t2adj,
.tst-plan-v2 .calpanel .t2card .t2cmt,
.tst-plan-v2 .calpanel .t2card .t2step,
.tst-plan-v2 .calpanel .t2card .t2clogo,
.tst-plan-v2 .calpanel .t2card .pill.part{display:none!important}
.tst-plan-v2 .calpanel .t2card{padding:10px 14px 10px 16px}
/* 3: the progress bar along the bottom of each card */
.t2prog{display:flex;flex-direction:column;align-items:stretch;gap:3px;margin-top:7px;cursor:pointer}
.t2progb{display:block;height:4px;border-radius:99px;background:var(--line2,#ECEEF4);overflow:hidden}
.t2progb i{display:block;height:100%;border-radius:99px;background:#3B5BDB}
.t2progl{align-self:flex-end;font-size:10.5px;color:var(--mut,#6B7390)}
.t2prog:hover .t2progl{color:var(--org,#EC720E)}

/* 504 (Ailin, Hub Changes 02/12): Planning fills the window and never scrolls as a page. Before, the page itself
   scrolled past the calendar and the empty space under it showed as a white gap; now only the sections scroll -
   the task list in its own column and the hours inside the calendar (the month view inside its card). */
@media (min-width:761px){
  body:has(#view-tasks2.on .cal) .mainarea{height:100vh;overflow:hidden;display:flex;flex-direction:column;padding-bottom:16px;box-sizing:border-box;min-height:0}
  body:has(#view-tasks2.on .cal) .mainarea>*:not(.view){flex:none}
  body:has(#view-tasks2.on .cal) #view-tasks2.on{flex:1;min-height:0;display:flex;flex-direction:column}
  body:has(#view-tasks2.on .cal) #view-tasks2 .cal{flex:1;min-height:0;display:flex;flex-direction:column;padding-bottom:0;width:100%}
  body:has(#view-tasks2.on .cal) #view-tasks2 .cal>*{flex:none}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calbody{flex:1 1 auto;min-height:0;align-items:stretch}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calpanel{position:static;display:flex;flex-direction:column;min-height:0;max-height:none}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calbody.nopanel .calpanel{display:none}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calpanel #t2list{flex:1;min-height:0;max-height:none!important;overflow-y:auto}   /* beats the max-height fitT2List writes */
  body:has(#view-tasks2.on .cal) #view-tasks2 .calpanel #t2list>*{flex-shrink:0}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calmain{position:relative;top:auto;display:flex;flex-direction:column;min-height:0}
  body:has(#view-tasks2.on .cal) #view-tasks2 .calcard{flex:1;min-height:0;display:flex;flex-direction:column;overflow:auto}
  body:has(#view-tasks2.on .cal) #view-tasks2 .cg{flex:1;min-height:0}
  body:has(#view-tasks2.on .cal) #view-tasks2 .cgscroll{flex:1;min-height:0;height:auto;max-height:none}
}
