/* HUB-PASTE-1192: the page frame as the Figma (CL Hub › Prototype).
   No top bar on a desktop: every page starts with its own header. The greeting is the header on
   Dashboard, Team and Clients only. The bell lives in the sidebar, above Drive and Slack DND; its
   messages float at the bottom of the page. Loaded last, so it wins. Phones keep the top bar (it holds the menu button). */

@media (min-width: 901px) {
  /* 1 · the top bar folds away; its pop-up panel and messages stay */
  .hubbar { height: 0; min-height: 0; margin: -26px -32px 26px !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; overflow: visible; }
  .hubbar .hubbarrow { height: 0; min-height: 0; overflow: visible; }
  .hubbar .hubbarrow > :not(.hubmsg) { display: none !important; }
  .hubmsg { position: fixed; left: calc(50% + 104px); bottom: 24px; transform: translate(-50%, 8px); z-index: 1700; max-width: min(720px, calc(100vw - 260px)); width: max-content; flex: none;
    padding: 10px 16px; border-radius: 12px; background: var(--cl-navy, #192341); color: #fff !important; box-shadow: 0 10px 30px rgba(25,35,65,.25);
    font: 500 13px/20px var(--cl-font, Inter, sans-serif) !important; pointer-events: none; transition: opacity .2s ease, transform .2s ease; white-space: normal; }
  .hubmsg.show { pointer-events: auto; transform: translate(-50%, 0); }
  .hubmsg:empty { display: none; }
  .hubmsg.err { background: #B42318; color: #fff !important; }
  .hubmsg .hubact { color: #fff !important; background: rgba(255,255,255,.12) !important; border-color: rgba(255,255,255,.4) !important; }
  .shell.clrail-on ~ * .hubmsg, .clrail-on .hubmsg { left: calc(50% + 32px); }
  .hubpanel { position: fixed !important; left: 216px; right: auto !important; top: auto !important; bottom: 16px; max-height: calc(100vh - 32px) !important; border-radius: 12px !important; box-shadow: 0 16px 40px rgba(25,35,65,.22) !important; }
  .clrail-on .hubpanel { left: 72px; }
}

/* the bell in the sidebar - the same look as Drive and Slack DND */
#clBell { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88); font: 600 12.5px var(--cl-font, Inter, system-ui, sans-serif); cursor: pointer; text-align: left; }
#clBell:hover { background: rgba(255,255,255,.12); }
#clBell[aria-expanded="true"] { background: rgba(255,255,255,.16); }
#clBell svg { width: 15px; height: 15px; flex: none; }
#clBell .clbn { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: var(--cl-gradient-primary, linear-gradient(90deg, #FF7800, #F22A5C)); color: #fff; font: 700 11px/18px var(--cl-font, Inter, sans-serif); text-align: center; }
#clBell .clbn[hidden] { display: none; }
#clBell:focus-visible { outline: 2px solid #8900B5; outline-offset: 2px; }
.clrail-on #clBell { justify-content: center; padding: 9px 0; position: relative; }
.clrail-on #clBell .cllb { display: none; }
.clrail-on #clBell .clbn { position: absolute; top: -6px; right: 4px; margin: 0; }
@media (max-width: 900px) { #clBell { display: none; } }

/* 2 · the greeting is the header on Dashboard, Team and Clients only (as the Figma) */
body:has(#view-tasks.on, #view-tasks2.on, #view-it.on, #view-timeline.on, #view-am-list.on) .greet { display: none !important; }
.greet { margin: 0 0 20px; gap: 15px; align-items: center; }
.greet h1 { font: 700 24px/32px var(--cl-font, Inter, sans-serif) !important; letter-spacing: 0 !important; margin: 0; }
.greet .sub, #greetSub { font: 400 14px/20px var(--cl-font, Inter, sans-serif) !important; color: #6B7390 !important; margin-top: 2px !important; }
.greet #avatar { width: 48px; height: 48px; border-radius: 12px; font-size: 18px; flex: none; }
body:has(#view-dash.on) .greet #avatar { width: 54px; height: 54px; border-radius: 14px; font-size: 20px; }
body:has(#view-clients.on) .greet #avatar { display: none; }

/* 3 · Dashboard: no second "Dashboard" title; the Working-from pill sits on the greeting row, right */
.mainarea { position: relative; }
#view-dash .dash-head { position: absolute; top: 26px; right: 32px; height: 54px; margin: 0 !important; align-items: center; z-index: 5; }
#view-dash .dash-head .dash-title, #view-dash .dash-head .dash-sp { display: none !important; }
body:not(:has(.greet)) #view-dash .dash-head { position: static; }
@media (max-width: 900px) { #view-dash .dash-head { position: static; height: auto; margin: 0 0 12px !important; } }

/* 4 · the Soundking notice is one slim line, not a 120px box */
.skmoved { padding: 8px 10px 8px 12px !important; gap: 12px !important; margin: 0 0 16px !important; border-radius: 10px !important; min-height: 0; }
.skmoved .skm-mark { width: 24px !important; height: 24px !important; border-radius: 6px !important; font-size: 10px !important; }
.skmoved .skm-txt { flex-direction: row !important; align-items: baseline; gap: 8px !important; white-space: nowrap; overflow: hidden; }
.skmoved .skm-txt > span, .skmoved .skm-txt b i { display: none !important; }
.skmoved .skm-txt b { font-size: 13px !important; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.skmoved .skm-go { padding: 5px 10px !important; font-size: 12px !important; }
.skmoved .skm-ok { padding: 4px 10px !important; }

/* 5 · page titles: H1 24/32 bold, as the Figma */
.mtv .mthead h1, #view-it h1, #view-tasks2 .calh1, .fghead h1 { font: 700 24px/32px var(--cl-font, Inter, sans-serif) !important; letter-spacing: 0 !important; color: #192341; margin: 0; }
.fghead { display: flex; align-items: flex-end; gap: 12px; margin: 0 0 20px; }
.fghead .fgsub { font: 400 14px/20px var(--cl-font, Inter, sans-serif); color: #6B7390; }
.fghead > div:first-child { display: flex; flex-direction: column; }

/* My Tasks: 38px controls (search 320), 14px labels, as the Figma toolbar */
.mtv .mtsrch { height: 38px !important; width: 320px !important; flex: 0 1 320px !important; }
.mtv .mtbtn { height: 38px !important; padding: 0 14px !important; font-size: 14px !important; }
.mtv .mtseg { padding: 3px !important; }
.mtv .mtseg button { height: 32px !important; font-size: 14px !important; }

/* 6 · Team: the Figma's 1240 column; the desks strip is a Dashboard thing */
#view-teamold .tm { max-width: 1240px; padding: 0 0 80px !important; margin: 0; }
#view-teamold .tm .tmstrip { display: none !important; }
#view-teamold .tmdeskset { display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; font: 500 12px var(--cl-font, Inter, sans-serif); color: #6B7390; }

/* 7 · 1194: Clients as the Figma - "Clients you're working on" cards, then "Other clients" rows */
#clientBar { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; }
#clientBar .srchw.wide { flex: 0 0 340px; max-width: 340px; }
#clientBar .srch { height: 38px; }
#clientBar #clientCount { margin-left: auto; font: 400 14px/20px var(--cl-font, Inter, sans-serif); color: #6B7390; letter-spacing: 0; text-transform: none; }
.clientgrid.fgc { display: block; }
.fgc .fgc-h { margin: 0 0 14px; font: 600 18px/24px var(--cl-font, Inter, sans-serif); color: #192341; }
.fgc .fgc-h span { font-weight: 400; font-size: 14px; color: #6B7390; }
.fgc .fgc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; align-items: start; }
@media (max-width: 1280px) { .fgc .fgc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .fgc .fgc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fgc .fgc-cards { grid-template-columns: 1fr; } }
.fgc .fgc-card { background: #fff; border: 1px solid #E3E6EF; border-radius: 12px; box-shadow: 0 1px 2px rgba(25,35,65,.05); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fgc .fgc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fgc .fgc-tile { width: 40px; height: 40px; flex: none; border-radius: 10px; background: #F2F3F8; color: #3D4663; display: flex; align-items: center; justify-content: center; font: 600 14px var(--cl-font, Inter, sans-serif); overflow: hidden; }
.fgc .fgc-tile img { width: 100%; height: 100%; object-fit: contain; }
.fgc .fgc-nm { min-width: 0; flex: 1; }
.fgc .fgc-nm h3 { margin: 0; font: 600 15px/21px var(--cl-font, Inter, sans-serif); color: #192341; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fgc .fgc-row .fgc-nm h3 { font-size: 16px; line-height: 23px; }
.fgc .fgc-am { font: 400 14px/20px var(--cl-font, Inter, sans-serif); color: #6B7390; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fgc .fgc-chev { flex: none; width: 28px; height: 28px; border: 0; background: transparent; color: #9AA0B8; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.fgc .fgc-chev svg { width: 16px; height: 16px; transition: transform .15s ease-out; }
.fgc .fgc-chev:hover { background: #F2F3F8; color: #3D4663; }
.fgc .fgc-card .ccnts { font: 400 14px/20px var(--cl-font, Inter, sans-serif) !important; }
.fgc .cbtns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fgc .lbtn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid #D5D9E3; background: #fff; color: #192341; font: 500 14px/20px var(--cl-font, Inter, sans-serif); box-shadow: none; }
.fgc .lbtn svg { width: 15px; height: 15px; }
.fgc .lbtn.off { color: #9AA0B8; border-style: dashed; }
.fgc .fgc-com { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/20px var(--cl-font, Inter, sans-serif); color: #8900B5; text-decoration: none; }
.fgc .fgc-com svg { width: 14px; height: 14px; }
.fgc .fgc-rows { background: #fff; border: 1px solid #E3E6EF; border-radius: 12px; overflow: hidden; }
.fgc .fgc-row + .fgc-row { border-top: 1px solid #EEF0F5; }
.fgc .fgc-rh { display: flex; align-items: center; gap: 14px; padding: 14px 20px; cursor: pointer; }
.fgc .fgc-rh:hover { background: #FAFAFD; }
.fgc .fgc-rh:focus-visible { outline: 2px solid #8900B5; outline-offset: -2px; }
.fgc .fgc-sp { flex: 1; }
.fgc .fgc-row.open .fgc-chev svg, .fgc .fgc-card .fgc-det ~ * .fgc-chev svg { transform: rotate(90deg); }
.fgc .fgc-card:has(.fgc-det) .fgc-chev svg { transform: rotate(90deg); }
.fgc .fgc-det { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding: 4px 20px 18px 74px; }
.fgc .fgc-card .fgc-det { padding: 14px 0 0; border-top: 1px solid #EEF0F5; }
.fgc .fgc-ct { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.fgc .fgc-lab { font: 500 12px/18px var(--cl-font, Inter, sans-serif); color: #9AA0B8; }
.fgc .fgc-ct b { font: 600 15px/21px var(--cl-font, Inter, sans-serif); color: #192341; }
.fgc .fgc-role { font: 400 14px/20px var(--cl-font, Inter, sans-serif); color: #6B7390; }
.fgc .fgc-em { display: inline-flex; align-items: center; gap: 6px; font: 400 14px/20px var(--cl-font, Inter, sans-serif); }
.fgc .fgc-em a { color: #192341; text-decoration: none; }
.fgc .fgc-copy { border: 0; background: transparent; color: #9AA0B8; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fgc .fgc-copy svg { width: 14px; height: 14px; }
.fgc .fgc-copy:hover { background: #F2F3F8; color: #3D4663; }
@media (max-width: 760px) { .fgc .fgc-rh .cbtns { display: none; } .fgc .fgc-det { padding-left: 20px; } }

/* 8 · 1194: Tech support as the Figma */
#view-it .ithead { align-items: flex-end; margin: 0 0 24px; flex-wrap: nowrap; }
#view-it .ith2 { font: 700 24px/32px var(--cl-font, Inter, sans-serif) !important; color: #192341; }
#view-it .itsub { font: 400 14px/22px var(--cl-font, Inter, sans-serif); color: #6B7390; margin-top: 2px; }
#view-it .itsp { flex: 1; }
#view-it .itq { display: flex; align-items: center; gap: 8px; height: 38px; width: 280px; padding: 0 12px; background: #fff; border: 1px solid #E3E6EF; border-radius: 8px; color: #9AA0B8; flex: none; }
#view-it .itq svg { width: 15px; height: 15px; flex: none; }
#view-it .itq input { border: 0; outline: 0; flex: 1; min-width: 0; font: 400 14px var(--cl-font, Inter, sans-serif); color: #192341; background: transparent; }
#view-it .itq:focus-within { border-color: #8900B5; box-shadow: 0 0 0 3px rgba(137,0,181,.12); }
#view-it .itsegs { flex: none; }
#view-it .itstrip { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: #fff; border: 1px solid #E3E6EF; border-radius: 12px; padding: 16px 20px; margin: 0 0 24px; }
#view-it .itstrip:empty { display: none; }
#view-it .itav { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #F22A5C, #8900B5); color: #fff; display: flex; align-items: center; justify-content: center; font: 600 15px var(--cl-font, Inter, sans-serif); flex: none; }
#view-it .itwho { display: flex; flex-direction: column; }
#view-it .itwho b { font: 600 16px/22px var(--cl-font, Inter, sans-serif); color: #192341; }
#view-it .itwho span { font: 400 13px/18px var(--cl-font, Inter, sans-serif); color: #6B7390; }
#view-it .itpres { display: flex; gap: 8px; flex-wrap: wrap; }
#view-it .itpres span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: #F2F3F8; color: #3D4663; font: 500 12.5px var(--cl-font, Inter, sans-serif); }
#view-it .itpres span i { width: 7px; height: 7px; border-radius: 50%; background: #C9CEDC; }
#view-it .itpres span.on { background: #E6F6EA; color: #1F7A3A; }
#view-it .itpres span.on i { background: #22A447; }
#view-it .itstat { display: flex; flex-direction: column; align-items: flex-start; padding: 0 0 0 20px; border-left: 1px solid #EEF0F5; }
#view-it .itstat b { font: 700 20px/26px var(--cl-font, Inter, sans-serif); color: #192341; }
#view-it .itstat span { font: 400 12.5px/18px var(--cl-font, Inter, sans-serif); color: #6B7390; }
#view-it .itmsg { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
#view-it .itmsg svg { width: 15px; height: 15px; }
#view-it .itcols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { #view-it .itcols { grid-template-columns: 1fr; } }
#view-it .itcard { max-width: none !important; margin: 0; }
#view-it .ithh { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; }
#view-it .ithh h3 { margin: 0; font: 600 18px/24px var(--cl-font, Inter, sans-serif); color: #192341; }
#view-it .ithh > span { font: 400 13px var(--cl-font, Inter, sans-serif); color: #9AA0B8; }
#view-it .ithh .cnt { display: inline-flex; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: #F2F3F8; color: #3D4663; font: 600 12px/20px var(--cl-font, Inter, sans-serif); justify-content: center; margin-left: 6px; vertical-align: 2px; }
#view-it select#itCat { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#view-it .itcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
#view-it .itcat { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid #E3E6EF; border-radius: 8px; background: #fff; color: #3D4663; font: 500 13.5px var(--cl-font, Inter, sans-serif); cursor: pointer; text-align: left; }
#view-it .itcat svg { width: 16px; height: 16px; flex: none; color: #9AA0B8; }
#view-it .itcat span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-it .itcat:hover { border-color: #C9CEDC; background: #FAFAFD; }
#view-it .itcat.on { border-color: #8900B5; background: #F7EEFB; color: #5E0A80; box-shadow: 0 0 0 1px #8900B5 inset; }
#view-it .itcat.on svg { color: #8900B5; }
#view-it .ithint2 { margin: 8px 0 0; font: 400 12.5px/18px var(--cl-font, Inter, sans-serif); color: #6B7390; }
#view-it .itprompts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; font: 400 12.5px var(--cl-font, Inter, sans-serif); color: #6B7390; }
#view-it .itprompts button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #E3E6EF; background: #fff; color: #3D4663; font: 500 12.5px var(--cl-font, Inter, sans-serif); cursor: pointer; }
#view-it .itprompts button:hover { border-color: #8900B5; color: #8900B5; }
#view-it .itcount { color: #9AA0B8; }
#view-it .crow2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#view-it .itupd { font: 400 12.5px var(--cl-font, Inter, sans-serif); color: #9AA0B8; }
#view-it .itright { display: flex; flex-direction: column; gap: 16px; }
#view-it .ittabs { display: flex; gap: 4px; background: #ECEEF4; border-radius: 10px; padding: 3px; margin: 0 0 12px; }
#view-it .ittabs button { flex: 1; height: 32px; border: 0; background: transparent; border-radius: 7px; font: 500 13.5px var(--cl-font, Inter, sans-serif); color: #6B7390; cursor: pointer; }
#view-it .ittabs button.on { background: #fff; color: #192341; font-weight: 600; box-shadow: 0 1px 2px rgba(25,35,65,.1); }
#view-it .itmy .ithint, #view-it .itguides .ithint { font: 400 12.5px/18px var(--cl-font, Inter, sans-serif); color: #9AA0B8; margin: 10px 0 0; }
#view-it .itguides .ithint { margin: -10px 0 10px; }
#view-it .itgl { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 8px; border: 0; border-top: 1px solid #EEF0F5; background: transparent; text-align: left; cursor: pointer; border-radius: 0; font: 500 14px var(--cl-font, Inter, sans-serif); color: #192341; }
#view-it .itgl:first-child { border-top: 0; }
#view-it .itgl span { flex: 1; }
#view-it .itgl i { font-style: normal; font: 400 12.5px var(--cl-font, Inter, sans-serif); color: #9AA0B8; }
#view-it .itgl svg { width: 14px; height: 14px; color: #9AA0B8; transition: transform .15s ease; }
#view-it .itgl:hover { background: #F7EEFB; }
#view-it .itgl:hover svg { transform: translateX(2px); color: #8900B5; }
#view-it .itblock { border-radius: 12px; padding: 16px 18px; background: #FFF4EC; border: 1px solid #FBD9BF; color: #7A3C0C; font: 400 13.5px/20px var(--cl-font, Inter, sans-serif); }
#view-it .itblock > b { display: block; font-weight: 600; color: #5C2A05; margin-bottom: 2px; }
#view-it .itblock p { margin: 0; }
.hmcard.itgd { max-width: 560px; }
.hmcard.itgd h3 i { font-style: normal; font-weight: 400; font-size: 13px; color: #9AA0B8; margin-left: 6px; }
.hmcard.itgd ol { margin: 8px 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font: 400 14px/21px var(--cl-font, Inter, sans-serif); color: #192341; }
.hmcard.itgd p { font: 400 14px/21px var(--cl-font, Inter, sans-serif); }
.hmcard.itgd .itgdx { background: #F5F6FA; border-radius: 8px; padding: 10px 12px; }
@media (max-width: 760px) { #view-it .ithead { flex-wrap: wrap; } #view-it .itq { width: 100%; } #view-it .itstat { padding-left: 12px; } }

/* 9 · 1197: the task side panel as the Figma's drawer */
.hcpov .amlcardp.hcpanel { width: min(480px, 100%) !important; display: flex; flex-direction: column; }
.hcpov .hcpanel > [data-ck], .hcpov .hcpanel > .amlcard2 { flex: 1; }
.hcpov .hcpanel .amlcard2.fgp { display: flex; flex-direction: column; gap: 16px; padding: 0 24px 0; min-height: 100%; }
.hcpov .amlcard2.fgp > .amlcbc.fgh { margin: 0 -24px; padding: 20px 24px 16px; border-bottom: 1px solid #EEF0F5; gap: 12px; align-items: center; position: sticky; top: 0; background: #fff; z-index: 3; }
.hcpov .amlcbc.fgh > :first-child:not(.amlcbl) { width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; }
.hcpov .amlcbc.fgh > :first-child:not(.amlcbl) img { width: 100%; height: 100%; object-fit: contain; }
.hcpov .amlcbc.fgh .amlcbl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hcpov .amlcbc.fgh .amlceye { font: 600 12px/16px var(--cl-font, Inter, sans-serif) !important; color: #EC720E !important; letter-spacing: 0 !important; text-transform: none !important; }
.hcpov .amlcbc.fgh .amlcrumb { font: 400 13.5px/20px var(--cl-font, Inter, sans-serif); color: #6B7390; display: block !important; }
.hcpov .amlcbc.fgh .amlcrumb .amllink { color: #6B7390; font-weight: 400; }
.hcpov .amlcbc.fgh .fgca { display: inline !important; margin: 0 0 0 4px; padding: 0; }
.hcpov .amlcbc.fgh .fgca .amllink { display: inline; text-align: left; width: auto; padding: 0; }
.hcpov .amlctitle.fgtitle > :not(.fgtl):not(.amlnm):not(.amlgfx):not(.amlpot) { display: none; }
.hcpov .amlcbc.fgh .fgca .amllink::before { content: '› '; color: #9AA0B8; font-weight: 400; }
.hcpov .amlcbc.fgh .fgca .amllink { color: #192341; font-weight: 500; }
.hcpov .amlcbc.fgh .amlcbr { flex: none; }
.hcpov .amlcbc.fgh .amx { width: 32px; height: 32px; border-radius: 8px; font-size: 20px; }
.hcpov .amlcard2.fgp .amlclbl { font: 500 13px/18px var(--cl-font, Inter, sans-serif) !important; color: #3D4663 !important; text-transform: none !important; letter-spacing: 0 !important; margin-bottom: 6px; display: block; }
.hcpov .amlctitle.fgtitle { flex-direction: column; align-items: stretch; gap: 0; }
.hcpov .amlctitle.fgtitle .amlnm { display: block; border: 1px solid #D5D9E3; border-radius: 8px; padding: 9px 12px; font: 600 16px/22px var(--cl-font, Inter, sans-serif) !important; color: #192341; background: #fff; cursor: text; }
.hcpov .amlcard2.fgp .amlcgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.hcpov .amlcard2.fgp .amlcgrid .amsel, .hcpov .amlcard2.fgp .amlcgrid .aminp { height: 40px; border-radius: 8px; width: 100%; font-size: 14px; }
.hcpov .amlcard2.fgp .amlcgrid .fgalloc .aminp { max-width: none; }
.hcpov .amlcard2.fgp .amlcgrid .fgassetb { text-align: left; font: 500 14px/20px var(--cl-font, Inter, sans-serif); padding: 9px 0; }
.hcpov .amlcard2.fgp .amlcdates { display: flex; gap: 8px; }
.hcpov .amlcard2.fgp .amlcgrid > .fgwide { grid-column: 1 / -1; }   /* 536: Timeline and This is take the whole row */
.hcpov .amlcard2.fgp > .fgacts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.hcpov .amlcard2.fgp > .fgacts .ambtn { height: 32px; border-radius: 8px; padding: 0 12px; font: 500 13px var(--cl-font, Inter, sans-serif); }
.hcpov .amlcard2.fgp .fgchips { display: flex; gap: 6px; flex-wrap: wrap; }
.hcpov .amlcard2.fgp .fgchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 1px solid #E3E6EF; border-radius: 999px; font: 500 12.5px var(--cl-font, Inter, sans-serif); color: #3D4663; background: #fff; }
.hcpov .amlcard2.fgp .fgchip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #9AA1B0; }
.hcpov .amlcard2.fgp .fgchip.fg-recurring::before { background: #8900B5; }
.hcpov .amlcard2.fgp .fgchip.fg-unlimited::before { background: #F22A5C; }
.hcpov .amlcard2.fgp .fgchip.fg-draw::before { background: #FF7800; }
.hcpov .amlcard2.fgp .fgchip.on { background: #192341; border-color: #192341; color: #fff; }
.hcpov .amlcard2.fgp .fgchip.on::before { display: none; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp .fgchip { background: #232A42; border-color: #3A4363; color: #E6E9F2; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp .fgchip.on { background: #E6E9F2; color: #192341; }
.hcpov .amlcard2.fgp .amlchrs { grid-template-columns: repeat(3, minmax(0, 1fr)); background: #F5F6FA; border: 1px solid #EEF0F5; border-radius: 12px; padding: 14px 16px; }
.hcpov .amlcard2.fgp .amlchrs .amlchf b { font: 700 18px/24px var(--cl-font, Inter, sans-serif); color: #192341; }
.hcpov .amlcard2.fgp .amlchrs .amlbar { height: 6px; border-radius: 3px; }
.hcpov .amlcard2.fgp .amlcbrief { min-height: 96px; border-radius: 8px; }
.hcpov .amlcard2.fgp > .fgdri .amlcval { font: 500 14px var(--cl-font, Inter, sans-serif); color: #192341; padding: 9px 12px; border: 1px solid #EEF0F5; border-radius: 8px; background: #FAFAFD; }
.hcpov .amlcard2.fgp > .clp-bar { border-radius: 10px; }
.hcpov .amlcard2.fgp > .amlcbtns.fgfoot { position: sticky; bottom: 0; margin: auto -24px 0; padding: 16px 24px; background: #fff; border-top: 1px solid #EEF0F5; z-index: 3; align-items: center; }
.hcpov .amlcbtns.fgfoot { flex-wrap: wrap; gap: 8px; }   /* 639: fits the 480px panel - wraps rather than running off the edge */
.hcpov .amlcbtns.fgfoot .ambtn { height: 36px; padding: 0 12px; font-size: 13px; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.hcpov .amlcbtns.fgfoot .fgdone { margin-left: auto; }
.hcpov .amlcbtns.fgfoot .fgsp { flex: 1; }
.hcpov .amlcbtns.fgfoot .fgdone { min-width: 88px; height: 36px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(90deg, #FF7800, #F22A5C); font: 600 14px var(--cl-font, Inter, sans-serif); cursor: pointer; }
.hcpov .amlcbtns.fgfoot .fgdone:hover { filter: brightness(1.05); }

/* 10 · 1198: My Tasks' edit gear; Timeline's controls as the Calendar's toolbar */
.mtv .mtgear { width: 32px; height: 32px; flex: none; border: 1px solid transparent; background: transparent; color: #9AA0B8; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.mtv .mtgear:hover { border-color: #E3E6EF; background: #fff; color: #3D4663; }
.mtv .mtrow .mtlogo { width: 32px; height: 32px; }
#view-timeline .t2bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; background: transparent; border: 0; }
#view-timeline .t2bar .iconbtn { width: 38px; height: 38px; border: 1px solid #D5D9E3; border-radius: 8px; background: #fff; color: #192341; font-size: 20px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
#view-timeline .t2bar .iconbtn:hover { background: #F5F6FA; }
#view-timeline #tlRange { font: 600 18px/24px var(--cl-font, Inter, sans-serif) !important; color: #192341; letter-spacing: 0 !important; min-width: 0; padding: 0 4px; }
#view-timeline .tlzoomw { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid #D5D9E3; border-radius: 8px; background: #fff; }
#view-timeline .tlzoomw input[type=range] { accent-color: #F22A5C; width: 110px; }
#view-timeline .tlzoomw b { font: 500 13px var(--cl-font, Inter, sans-serif); color: #3D4663; }
#view-timeline #tlThisWeek { height: 38px; padding: 0 14px !important; border: 1px solid #D5D9E3 !important; border-radius: 8px !important; background: #fff !important; color: #192341 !important; font: 600 14px var(--cl-font, Inter, sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; }
#view-timeline .tllegend { font: 400 12px/18px var(--cl-font, Inter, sans-serif) !important; color: #6B7390; letter-spacing: 0 !important; text-transform: none !important; display: inline-flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
#view-timeline .tllegend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: -6px; vertical-align: -1px; }
#view-timeline #tlbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; padding: 0; background: transparent; border: 0; box-shadow: none; }
#view-timeline #tlbar .srchw { order: -1; flex: 0 0 240px; }
#view-timeline #tlbar .srch { height: 38px; width: 100%; border: 1px solid #D5D9E3; border-radius: 8px; padding: 0 12px 0 34px; font: 400 14px var(--cl-font, Inter, sans-serif); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239AA0B8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 11px center / 15px; }
#view-timeline #tlbar details.msel > summary { height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid #D5D9E3; border-radius: 8px; background: #fff; color: #192341; font: 500 14px var(--cl-font, Inter, sans-serif) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; list-style: none; }
#view-timeline #tlbar details.msel > summary::-webkit-details-marker { display: none; }
#view-timeline #tlbar details.msel > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid #9AA0B8; border-bottom: 2px solid #9AA0B8; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
#view-timeline #tlbar .grpbtn, #view-timeline #tlbar .clrf { height: 38px; padding: 0 14px; border: 1px solid #D5D9E3 !important; border-radius: 8px !important; background: #fff !important; color: #192341 !important; font: 500 14px var(--cl-font, Inter, sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; }
#view-timeline #tlbar .grpbtn.on { background: #192341 !important; color: #fff !important; border-color: #192341 !important; }
#view-timeline #tlbar #tlPlan { order: 10; margin-left: auto; height: 38px; padding: 0 18px; border: 0; border-radius: 8px; background: linear-gradient(90deg, #FF7800, #F22A5C) !important; color: #fff !important; font: 600 14px var(--cl-font, Inter, sans-serif) !important; text-transform: none !important; letter-spacing: 0 !important; }

/* 11 · 1200 (Ellie: "reduce the text size just a little bit ... I would rather have some obvious spacing between
   the cards"): the task cards and rows on My Tasks, the Dashboard and All tasks at the design system's sizes
   (title 16/600, chips 13, numbers 13, 64px logo), with 18px between cards */
.mtv .mtitems { gap: 18px; }
.mtv .mtitems.list { gap: 12px; }
.mtv .mtmain { padding: 14px 16px; gap: 10px; }
.mtv .mtr1 { gap: 10px; }
.mtv .mtnm { font-size: 16px; line-height: 22px; }
.mtv .mtdates { font-size: 14px; }
.mtv .mtover { height: 26px; padding: 0 10px; font-size: 13px; gap: 5px; }
.mtv .mtr2 { gap: 12px; font-size: 13px; padding-left: 20px; }
.mtv .mtnums { gap: 12px; }
.mtv .mtsub { font-size: 13px; }
.mtv .mtst, .altv .mtst { height: 26px; padding: 0 10px; font-size: 13px; gap: 5px; }
.mtv .mtst svg { width: 12px; height: 12px; }
.mtv .mtside { gap: 14px; padding: 0 16px; margin: 12px 0; }
.mtv .mtlog { height: 36px; padding: 0 16px; font-size: 14px; }
.mtv .mtlogo { width: 64px; height: 64px; border-radius: 10px; }
.mtv .mtlogo.txt { font-size: 24px; }
.mtv .mtrow { min-height: 56px; }
.mtv .mtrn .mtnm { font-size: 15px; }
.mtv .mtrn .mtsub { font-size: 12px; }
.mtv .mtrh { font-size: 13px; min-width: 88px; }
.mtv .mtdpill { height: 26px; padding: 0 10px; font-size: 12.5px; }
.mtv .mtrow .mtlog { height: 34px; padding: 0 14px; }
.mtv .mtrow .mtlogo { width: 32px; height: 32px; }
.mtv .mtrow .mtlogo.txt { font-size: 14px; }
.mtv .mtgh b { font-size: 16px; }
/* All tasks: its own bits to match, and room between an asset's tasks */
.altv .altkids { gap: 10px; margin-top: 10px; }
.altv .altsubs { height: 20px; font-size: 11.5px; }
.altv .altgh b { font-size: 16px; line-height: 22px; }
.altv .altgrp { gap: 18px; }
.altv .altgrp + .altgrp { margin-top: 14px; }
.altv .altlrow { min-height: 50px; font-size: 13.5px; }
.altv .altas { font-size: 12.5px; }

/* 12 · 1201: second Figma pass */
.hcpov .amlcard2.fgp .amlclog .aminp, .hcpov .amlcard2.fgp .amlclog .ambtn { height: 40px; border-radius: 8px; }
/* 639: the log time row as two columns - who | day, hours | what you did, then Log time - so nothing is cut off */
.hcpov .amlcard2.fgp .amlclog { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: center; }
.hcpov .amlcard2.fgp .amlclog > * { width: 100%; min-width: 0; box-sizing: border-box; }
.hcpov .amlcard2.fgp .amlclog [data-clogh] { width: 100%; }
.hcpov .amlcard2.fgp .amlclog .ambtn { grid-column: 1 / -1; justify-self: start; width: auto; padding: 0 18px; }
.mtv .mtr1 .mtgear { margin-left: 2px; }
.fgc .ccnts .ccnt[data-allc] { color: #6B7390; font-weight: 400; background: none; }
.fgc .ccnts .ccnt[data-allc]:hover { color: #192341; text-decoration: underline; }
#view-it .itp.on { border-color: #8900B5 !important; background: #F7EEFB !important; box-shadow: 0 0 0 1px #8900B5 inset; }
#view-it .itp.on b { color: #5E0A80 !important; }
#view-it .itp.on i { background: #8900B5 !important; }
.updbar { padding: 8px 12px !important; margin: 0 0 16px !important; border-radius: 10px !important; background: #192341 !important; font: 500 13px var(--cl-font, Inter, sans-serif) !important; letter-spacing: 0 !important; }
.updbar b { font: 600 13px var(--cl-font, Inter, sans-serif) !important; }

/* 13 · 1204: My Tasks - Assigned to me / I'm DRI switches; the DRI tag on a task someone else is doing */
.mtv .mtshow { display: inline-flex; gap: 4px; padding: 3px; border-radius: 10px; background: #ECEEF4; margin-left: 4px; }
.mtv .mtshow label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; font: 500 13.5px var(--cl-font, Inter, sans-serif); color: #6B7390; cursor: pointer; user-select: none; }
.mtv .mtshow label input { position: absolute; opacity: 0; pointer-events: none; }
.mtv .mtshow label.on { background: #fff; color: #192341; font-weight: 600; box-shadow: 0 1px 2px rgba(25,35,65,.1); }
.mtv .mtshow label.on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(90deg, #FF7800, #F22A5C); }
.mtv .mtshow label i { font-style: normal; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; background: #F2F3F8; color: #3D4663; font: 600 11.5px/18px var(--cl-font, Inter, sans-serif); text-align: center; }
.mtv .mtshow label:focus-within { outline: 2px solid #8900B5; outline-offset: 1px; }
.mtv .mtdri { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #F3E8FB; color: #6B1F9A; font: 600 11.5px var(--cl-font, Inter, sans-serif); white-space: nowrap; }

/* 14 · 1206: My clients on My Tasks */
.mtv .mtbtn.mtmine.on { background: linear-gradient(90deg, #FF7800, #F22A5C) !important; border-color: transparent !important; color: #fff !important; }
/* 1206: the Dashboard's List / Cards is My Tasks' own switch */
#view-dash .dash-mtseg { display: inline-flex; background: transparent; }
/* 1208: a task offered to the team, not yet taken */
.mtv .mtoff { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #FFF1E6; color: #A84300; font: 600 11.5px var(--cl-font, Inter, sans-serif); white-space: nowrap; }
/* 1216: the panel's breadcrumb never leaves a lone "›" at the end of a line - the separator stays with the asset name */
.hcpov .amlcbc.fgh .fgca .amllink::before { content: '›\00a0'; }
.hcpov .amlcbc.fgh .fgca { white-space: nowrap; }
.hcpov .amlcbc.fgh .fgca .amllink { white-space: normal; }

/* ============================================================================================================
   16 · 1221: DARK MODE for the new pages (the old pages' dark colours are index.html's / am.css's own
   :root[data-theme="dark"] rules). Night navy, never black: page #12172A, cards #1B2136, raised #232A42,
   lines #2E3654, text #E6E9F2 / #B9C0D4 / #8D95B0. Brand gradients and status chips keep their colours.
   ============================================================================================================ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cl-bg-page: #12172A; --cl-bg-surface: #1B2136; --cl-bg-subtle: #1F2539; --cl-bg-muted: #262D45; --cl-bg-pressed: #2E3654;
  --cl-text-heading: #E6E9F2; --cl-text-body: #B9C0D4; --cl-text-secondary: #8D95B0; --cl-text-disabled: #5E6683; --cl-text-link: #C7A2FF;
  --cl-border-default: #2E3654; --cl-border-strong: #3A4363; --cl-icon-default: #B9C0D4; --cl-icon-secondary: #8D95B0;
  --grey-50: #12172A; --card: #1B2136; --paper: #12172A; --white: #1B2136; --text-heading: #E6E9F2; --text-body: #B9C0D4; --text-muted: #8D95B0;
  --ink: #E6E9F2; --ink2: #B9C0D4; --mut: #8D95B0; --dim: #6F7896; --line: #2E3654; --bd: #3A4363;
}
:root[data-theme="dark"] body, :root[data-theme="dark"] .mainarea, :root[data-theme="dark"] .cl-app { background: #12172A !important; color: #B9C0D4; }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3, :root[data-theme="dark"] .greet h1, :root[data-theme="dark"] .mthead h1 { color: #E6E9F2 !important; }
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), :root[data-theme="dark"] select, :root[data-theme="dark"] textarea, :root[data-theme="dark"] [contenteditable="true"] { background-color: #232A42 !important; color: #E6E9F2 !important; border-color: #3A4363 !important; }
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder { color: #6F7896 !important; }
:root[data-theme="dark"] input[type=date] { color-scheme: dark; }
/* the frame */
:root[data-theme="dark"] .greet, :root[data-theme="dark"] .greet small, :root[data-theme="dark"] .greet .gdate { color: #B9C0D4; }
:root[data-theme="dark"] .side { background: linear-gradient(180deg, #0B0F1E, #121833) !important; }
:root[data-theme="dark"] #clDark, :root[data-theme="dark"] #clBell { border-color: rgba(255,255,255,.14); }
/* toolbars, buttons, pop-ups (My Tasks, All tasks, Dashboard) */
:root[data-theme="dark"] .mtv .mtbtn, :root[data-theme="dark"] .mtv .mtsrch, :root[data-theme="dark"] .altv .altgb button, :root[data-theme="dark"] .mtv .mtlink, :root[data-theme="dark"] .altv .altmine { background: #1B2136 !important; border-color: #3A4363 !important; color: #D3D8E6 !important; }
:root[data-theme="dark"] .mtv .mtsrch input { background: transparent !important; border: 0 !important; }
:root[data-theme="dark"] .altv .altgb button.on { background: #E6E9F2 !important; color: #12172A !important; border-color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altgb .altmine.on, :root[data-theme="dark"] .mtv .mtbtn.mtmine.on { background: linear-gradient(90deg, #FF7800, #F22A5C) !important; color: #fff !important; border-color: transparent !important; }
:root[data-theme="dark"] .mtv .mtseg, :root[data-theme="dark"] .dash-seg { background: #232A42 !important; }
:root[data-theme="dark"] .mtv .mtseg button { color: #B9C0D4 !important; }
:root[data-theme="dark"] .mtv .mtseg button.on { background: #2E3654 !important; color: #fff !important; box-shadow: none !important; }
:root[data-theme="dark"] .mttog span { background: #3A4363 !important; }
:root[data-theme="dark"] .mtpop, :root[data-theme="dark"] .ctxm, :root[data-theme="dark"] .hmcard, :root[data-theme="dark"] .hubpanel { background: #1B2136 !important; border-color: #3A4363 !important; color: #D3D8E6 !important; box-shadow: 0 12px 32px rgba(0,0,0,.5) !important; }
:root[data-theme="dark"] .mtpop button:hover, :root[data-theme="dark"] .ctxm [role=menuitem]:hover { background: #232A42 !important; }
:root[data-theme="dark"] .mtv .mtfc, :root[data-theme="dark"] .mtv .mtgh i, :root[data-theme="dark"] .altv .altgn, :root[data-theme="dark"] .altv .altcnt, :root[data-theme="dark"] .mtv .mtn { background: #2E3654 !important; color: #D3D8E6 !important; }
/* task cards and rows */
:root[data-theme="dark"] .mtv .mtcard, :root[data-theme="dark"] .mtv .mtrow { background: #1B2136 !important; border-color: #2E3654 !important; box-shadow: 0 1px 2px rgba(0,0,0,.35) !important; }
:root[data-theme="dark"] .mtv .mtcard:hover, :root[data-theme="dark"] .mtv .mtrow:hover { box-shadow: 0 6px 18px rgba(0,0,0,.45) !important; }
:root[data-theme="dark"] .mtv .mtnm { color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtr2, :root[data-theme="dark"] .mtv .mtsub, :root[data-theme="dark"] .mtv .mtpct { color: #8D95B0 !important; }
:root[data-theme="dark"] .mtv .mtnums b, :root[data-theme="dark"] .mtv .mtpct b, :root[data-theme="dark"] .mtv .mtdates { color: #D3D8E6 !important; }
:root[data-theme="dark"] .mtv .mtside { border-color: #2E3654 !important; }
:root[data-theme="dark"] .mtv .mtlog { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtbar { background: #2E3654 !important; }
:root[data-theme="dark"] .mtv .mtgear, :root[data-theme="dark"] .altv .altgear { color: #8D95B0 !important; }
:root[data-theme="dark"] .mtv .mtgear:hover, :root[data-theme="dark"] .altv .altgear:hover { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtgh b, :root[data-theme="dark"] .mtv .mtgh { color: #E6E9F2 !important; }
:root[data-theme="dark"] .mtv .mtod { background: #2A1622 !important; border-color: #5B2335 !important; }
:root[data-theme="dark"] .mtv .mtshow { background: #232A42 !important; }
:root[data-theme="dark"] .mtv .mtshow label { background: transparent !important; color: #B9C0D4 !important; }
:root[data-theme="dark"] .mtv .mtshow label.on { background: #2E3654 !important; color: #fff !important; }
:root[data-theme="dark"] .mtv .mtr2 .mtsub b, :root[data-theme="dark"] .mtv .mtsub a, :root[data-theme="dark"] .mtv .mtsub span { color: #B9C0D4 !important; }
:root[data-theme="dark"] .mtv .mtlogo.none { background: transparent !important; }
:root[data-theme="dark"] .mtv .mtlogo:not(.txt):not(.none) { background: #fff; border-radius: 10px; }
/* All tasks */
:root[data-theme="dark"] body:has(#view-am-list.on.alt-on), :root[data-theme="dark"] body:has(#view-am-list.on.alt-on) .main, :root[data-theme="dark"] body:has(#view-am-list.on.alt-on) main { background: #12172A !important; }
:root[data-theme="dark"] .altv .altgrp { background: #171C30 !important; }
:root[data-theme="dark"] .altv .altlist { background: #1B2136 !important; border-color: #2E3654 !important; box-shadow: 0 1px 3px rgba(0,0,0,.4) !important; }
:root[data-theme="dark"] .altv .althead { background: #20263C !important; border-color: #2E3654 !important; color: #8D95B0 !important; }
:root[data-theme="dark"] .altv .altlrow { color: #D3D8E6; }
:root[data-theme="dark"] .altv .altlrow + .altlrow { border-color: #262D45 !important; }
:root[data-theme="dark"] .altv .altlrow.kid { background: #181E33 !important; }
:root[data-theme="dark"] .altv .altln b, :root[data-theme="dark"] .altv .altlrow b { color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altnone { color: #6F7896 !important; }
:root[data-theme="dark"] .altv .altsub, :root[data-theme="dark"] .altv .altgh .altgsub { color: #8D95B0 !important; }
:root[data-theme="dark"] .altv .altsel input { background: #1B2136; border-color: #5E6683; }
:root[data-theme="dark"] .altv .mtcard:has(.altsel.on), :root[data-theme="dark"] .altv .altlrow:has(.altsel.on) { background: #2A1F2A !important; }
:root[data-theme="dark"] .altv .altselbar { background: #0B0F1E !important; border: 1px solid #2E3654; }
:root[data-theme="dark"] .altv .altadd, :root[data-theme="dark"] .altv .altaddf, :root[data-theme="dark"] .altv .altaddx { background: #1B2136 !important; border-color: #3A4363 !important; color: #D3D8E6 !important; }
:root[data-theme="dark"] .altv .altpanel, :root[data-theme="dark"] .altv .altlpan { background: #181E33 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .altv .altvsave { background: transparent !important; }
:root[data-theme="dark"] .altv .altempty { color: #8D95B0; }
:root[data-theme="dark"] .altv .altas { color: #D3D8E6 !important; }
:root[data-theme="dark"] .altv .altgear.alted, :root[data-theme="dark"] .altv .altmore, :root[data-theme="dark"] .altv .altempty, :root[data-theme="dark"] .altv .altprow, :root[data-theme="dark"] .altv .altph { background: #232A42 !important; border-color: #3A4363 !important; color: #D3D8E6 !important; }
:root[data-theme="dark"] .altv .althead, :root[data-theme="dark"] .altv .altlrow, :root[data-theme="dark"] .altv .altlpan, :root[data-theme="dark"] .altv .altprow { border-color: #262D45 !important; }
:root[data-theme="dark"] .altv .altlpan { background: #181E33 !important; }
:root[data-theme="dark"] .altv .altkids > .altkid::after, :root[data-theme="dark"] .altv .altkids > .altkc::after { border-top-color: #3A4363 !important; }
:root[data-theme="dark"] .altv .altkids::before, :root[data-theme="dark"] .altv .altkids { border-color: #3A4363 !important; }
:root[data-theme="dark"] .altv .altgrp .altgh b, :root[data-theme="dark"] .altv .altgrp .altgh svg { filter: brightness(1.7) saturate(1.1); }
:root[data-theme="dark"] .altv .altchev, :root[data-theme="dark"] .altv [data-alttogn], :root[data-theme="dark"] .altv .altkn { background: #232A42 !important; border-color: #3A4363 !important; color: #D3D8E6 !important; }
:root[data-theme="dark"] .altv .altmv button:hover:not([disabled]) { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .dash-pins b, :root[data-theme="dark"] .dash-pins h3, :root[data-theme="dark"] .dash-card > .hd b, :root[data-theme="dark"] .dash-card h3 { color: #E6E9F2 !important; }
/* Dashboard */
:root[data-theme="dark"] .dash .dash-card, :root[data-theme="dark"] .dash .dash-tile, :root[data-theme="dark"] .dash [class*="dash-tiles"] > *, :root[data-theme="dark"] .dash .dash-strip { background: #1B2136 !important; border-color: #2E3654 !important; color: #B9C0D4; }
:root[data-theme="dark"] .dash-tile .v, :root[data-theme="dark"] .dash-tile .l, :root[data-theme="dark"] .dash-ss b, :root[data-theme="dark"] .dash-wh > b, :root[data-theme="dark"] .dash-cap p b, :root[data-theme="dark"] .dash-cols .c.now .dl, :root[data-theme="dark"] .dash-task .nm, :root[data-theme="dark"] .dash-head h1 { color: #E6E9F2 !important; }
:root[data-theme="dark"] .dash-tile .v.bad { color: #FF6B6B !important; }
:root[data-theme="dark"] .dash-ch, :root[data-theme="dark"] .dash-cap p, :root[data-theme="dark"] .dash-mini .lab b { color: #B9C0D4 !important; }
:root[data-theme="dark"] .dash-grid .g { border-top-color: #262D45 !important; }
:root[data-theme="dark"] .dash-grid .g.line { border-top-color: #4A5372 !important; }
:root[data-theme="dark"] .dash-cols .b, :root[data-theme="dark"] .dash-mini .bar i { background: #3A4363 !important; }
:root[data-theme="dark"] .dash-cols .c.now .b { background: #55608A !important; }
:root[data-theme="dark"] .dash-bar, :root[data-theme="dark"] .dash-mini .bar, :root[data-theme="dark"] .dash-n, :root[data-theme="dark"] .dash-range, :root[data-theme="dark"] .dash-stack i.more { background: #2E3654 !important; color: #B9C0D4 !important; }
:root[data-theme="dark"] .dash-range span { color: #E6E9F2 !important; }
:root[data-theme="dark"] .dash-lp { background: #2A2316 !important; border-color: #5B4520 !important; }
:root[data-theme="dark"] .dash-lp .tx { color: #E6E9F2 !important; }
:root[data-theme="dark"] .dash-lp .tx b, :root[data-theme="dark"] .dash-lp .tx a { color: #FFB86B !important; }
:root[data-theme="dark"] .dash-lp .tx small { color: #B9A88A !important; }
:root[data-theme="dark"] .dash-btn.ghost, :root[data-theme="dark"] .dash-pop, :root[data-theme="dark"] .dash-task { background: #1B2136 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .dash-seg button.on { background: #2E3654 !important; color: #fff !important; }
:root[data-theme="dark"] .dash-link { color: #C7A2FF !important; }
/* the side panel */
:root[data-theme="dark"] .hcpov { background: rgba(4,6,14,.55) !important; }
:root[data-theme="dark"] .hcpov .amlcardp.hcpanel, :root[data-theme="dark"] .hcpov .amlcard2, :root[data-theme="dark"] .mtpbox.mtmp { background: #1B2136 !important; color: #B9C0D4 !important; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp > .amlcbc.fgh, :root[data-theme="dark"] .hcpov .amlcard2.fgp > .amlcbtns.fgfoot, :root[data-theme="dark"] .mtmp .mtmh, :root[data-theme="dark"] .mtmp .mtmfoot { background: #1B2136 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp .amlclbl, :root[data-theme="dark"] .mtmp .mtml { color: #B9C0D4 !important; }
:root[data-theme="dark"] .hcpov .amlctitle.fgtitle .amlnm, :root[data-theme="dark"] .mtmp .mtmname, :root[data-theme="dark"] .mtmp .mtmval, :root[data-theme="dark"] .hcpov .amlcard2.fgp > .fgdri .amlcval { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp .amlchrs, :root[data-theme="dark"] .mtmp .mtmhrs { background: #232A42 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .hcpov .amlcard2.fgp .amlchrs .amlchf b, :root[data-theme="dark"] .mtmp .mtmhrs b { color: #E6E9F2 !important; }
:root[data-theme="dark"] .hcpov .amlcbc.fgh .amlcrumb, :root[data-theme="dark"] .hcpov .amlcbc.fgh .amlcrumb .amllink, :root[data-theme="dark"] .mtmp .mtmcrumb { color: #8D95B0 !important; }
:root[data-theme="dark"] .hcpov .amlcbc.fgh .fgca .amllink { color: #E6E9F2 !important; }
:root[data-theme="dark"] .hcpov .ambtn.ghost, :root[data-theme="dark"] .mtmp .mtmsel, :root[data-theme="dark"] .hcpov .ambrief, :root[data-theme="dark"] .hcpov .bedit, :root[data-theme="dark"] .hcpov .btools { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .hcpov .ambrief .bbody, :root[data-theme="dark"] .hcpov .ambrief p, :root[data-theme="dark"] .hcpov .amlcmt { color: #D3D8E6 !important; }
:root[data-theme="dark"] .hcpov a, :root[data-theme="dark"] .mtmp a { color: #C7A2FF; }
:root[data-theme="dark"] .mtmp .mtmlegacy .briefbox { background: #232A42 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .mtmp .mtmlegacy .briefbox > summary { color: #E6E9F2 !important; }
/* the old Asset board and project pages keep am.css's own dark rules; these are the surfaces they missed */
:root[data-theme="dark"] .amlcardp, :root[data-theme="dark"] .amcard, :root[data-theme="dark"] .ampanel { background: #1B2136; border-color: #2E3654; }
/* toasts stay readable */
:root[data-theme="dark"] .toast, :root[data-theme="dark"] .ctxm-toast { background: #E6E9F2 !important; color: #12172A !important; }

/* ---- the switch ---- */
#clDark { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; font: 500 13px var(--cl-font, Inter, sans-serif); cursor: pointer; text-align: left; }
#clDark:hover { background: rgba(255,255,255,.12); }
#clDark svg { width: 15px; height: 15px; flex: none; }
#clDark:focus-visible { outline: 2px solid #8900B5; outline-offset: 2px; }

/* ---- bats (into the dark) ---- */
.hubfx { position: fixed; inset: 0; z-index: 3000; pointer-events: none; overflow: hidden; }
.hubdusk { background: radial-gradient(ellipse at 80% 15%, rgba(60,50,110,.55), rgba(10,12,30,.82) 60%); animation: hubduskin .4s ease-out both; transition: opacity .7s ease; }
.hubdusk.out { opacity: 0; }
@keyframes hubduskin { from { opacity: 0; } to { opacity: 1; } }
.hubmoon { position: absolute; right: 9vw; top: 8vh; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #FFFBE6, #F5E3A1 55%, #D9B95C); box-shadow: 0 0 60px 18px rgba(255,236,170,.35); animation: hubmoonin .9s ease-out both; }
.hubmoon::before { content: ''; position: absolute; left: 24px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: rgba(190,160,80,.35); box-shadow: 36px 26px 0 -3px rgba(190,160,80,.3), 18px 50px 0 -5px rgba(190,160,80,.28); }
@keyframes hubmoonin { from { transform: translateY(40px) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.hubbat { position: absolute; left: -14vw; top: var(--top); width: var(--sz); animation: hubfly var(--dur) cubic-bezier(.45,.05,.55,.95) var(--dl) both; }
.hubbat.back { left: auto; right: -14vw; animation-name: hubflyback; }
.hubbat svg { display: block; width: 100%; height: auto; fill: #0B0B14; filter: drop-shadow(0 0 6px rgba(255,236,170,.35)); }
.hubbat .hbe { fill: #FFD84D; }
.hubbat .hbm { stroke: #FFD84D; stroke-width: 1.2; stroke-linecap: round; }
.hubbat .hbw { transform-origin: 50px 28px; animation: hubflap .16s ease-in-out infinite alternate; }
@keyframes hubflap { from { transform: scaleY(1); } to { transform: scaleY(.35); } }
@keyframes hubfly { 0% { transform: translate(0, 0) rotate(-6deg); } 25% { transform: translate(32vw, var(--wob)) rotate(6deg); } 50% { transform: translate(64vw, calc(var(--wob) * -1)) rotate(-6deg); } 75% { transform: translate(96vw, var(--wob)) rotate(5deg); } 100% { transform: translate(128vw, -12vh) rotate(-4deg); } }
@keyframes hubflyback { 0% { transform: translate(0, 0) scaleX(-1); } 33% { transform: translate(-42vw, var(--wob)) scaleX(-1); } 66% { transform: translate(-84vw, calc(var(--wob) * -1)) scaleX(-1); } 100% { transform: translate(-128vw, -10vh) scaleX(-1); } }

/* ---- an autumn sunrise (back to the light) ---- */
.hubdawn { transition: opacity .9s ease; }
.hubdawn.out { opacity: 0; }
.hubsky { position: absolute; inset: 0; background: linear-gradient(180deg, #1E1B4B 0%, #4C1D95 22%, #9D174D 42%, #EA580C 66%, #FBBF24 86%, #FDE68A 100%); animation: hubskyup 2.2s ease-out both; }
@keyframes hubskyup { 0% { filter: brightness(.35) saturate(.7); } 60% { filter: brightness(1) saturate(1.1); } 100% { filter: brightness(1.35) saturate(1); } }
.hubsun { position: absolute; left: 50%; bottom: -26vh; width: 34vh; height: 34vh; margin-left: -17vh; border-radius: 50%; background: radial-gradient(circle, #FFF7D6 0%, #FDE68A 35%, #F59E0B 70%, #EA580C 100%); box-shadow: 0 0 120px 50px rgba(253,186,116,.55); animation: hubrise 2.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hubrise { from { transform: translateY(0); } to { transform: translateY(-46vh); } }
.hubrays { position: absolute; inset: -60%; border-radius: 50%; background: repeating-conic-gradient(rgba(255,237,180,.28) 0 6deg, transparent 6deg 18deg); animation: hubspin 6s linear infinite; mask: radial-gradient(circle, transparent 28%, #000 32%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 28%, #000 32%, transparent 70%); }
@keyframes hubspin { to { transform: rotate(360deg); } }
.hubhills { position: absolute; left: -5vw; right: -5vw; bottom: -2vh; height: 26vh; background: radial-gradient(ellipse 40% 80% at 20% 100%, #7C2D12 60%, transparent 61%), radial-gradient(ellipse 45% 90% at 75% 100%, #9A3412 60%, transparent 61%), radial-gradient(ellipse 60% 70% at 50% 110%, #431407 60%, transparent 61%); }
.hubleaf { position: absolute; left: var(--x); top: -8vh; width: var(--sz); animation: hubfall var(--dur) ease-in var(--dl) both; }
.hubleaf svg { display: block; width: 100%; height: auto; fill: var(--c); stroke: var(--c); filter: drop-shadow(0 2px 2px rgba(60,20,0,.35)); }
@keyframes hubfall { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(var(--sw), 55vh) rotate(calc(var(--rot) / 2)); } 100% { transform: translate(calc(var(--sw) * -0.6), 115vh) rotate(var(--rot)); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .hubfx { display: none; } }
/* 1228 (Ellie: "dark mode isn't good with the white highlighting") - All Assets: the light hovers and fills had no dark
   colour, so a row went white under the pointer with its white name on it, and the "+ Add a task" strip was white */
:root[data-theme="dark"] .altv .altlrow:hover { background: #232A42 !important; }
:root[data-theme="dark"] .altv .altlrow.kid:hover { background: #20263C !important; }
:root[data-theme="dark"] .altv .altladd { background: #181E33 !important; border-color: #2E3654 !important; }
:root[data-theme="dark"] .altv .altchev:hover:not([disabled]) { background: #2E3654 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altcnt, :root[data-theme="dark"] .altv .altsubs { background: #2A3150 !important; color: #C9CFE0 !important; }
:root[data-theme="dark"] .altv .altgrp .altgn { background: #1B2136 !important; }
:root[data-theme="dark"] .altv .altgrp .althead { background: #20263C !important; }
:root[data-theme="dark"] .altv .altph, :root[data-theme="dark"] .altv .altpf { background: #20263C !important; border-color: #2E3654 !important; color: #8D95B0 !important; }
:root[data-theme="dark"] .altv .altprow { background: #1B2136 !important; border-color: #262D45 !important; color: #D3D8E6 !important; }
:root[data-theme="dark"] .altv .altprow:hover { background: #2A2440 !important; }
:root[data-theme="dark"] .altv .altprow.here { background: #2A2230 !important; }
:root[data-theme="dark"] .altv .altempty, :root[data-theme="dark"] .altv .altmore { background: #1B2136 !important; border-color: #3A4363 !important; color: #C9CFE0 !important; }
:root[data-theme="dark"] .altv .altmore:hover { background: #232A42 !important; }
:root[data-theme="dark"] .altv .altvsave { background: #2A1F1A !important; color: #FDBA8C !important; border-color: #9A4A22 !important; }
:root[data-theme="dark"] .altv .altvsave:hover { background: #3A2618 !important; }
:root[data-theme="dark"] .altv .altgear:hover, :root[data-theme="dark"] .altv .altgear.alted { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altmv button:hover:not([disabled]), :root[data-theme="dark"] .altv .altdel:hover { background: #232A42 !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altaddf input, :root[data-theme="dark"] .altv .altaddf select { background: #12172A !important; border-color: #3A4363 !important; color: #E6E9F2 !important; }
:root[data-theme="dark"] .altv .altsel input:disabled { background: #232A42 !important; border-color: #3A4363 !important; }
/* 1230 (Ellie: "planner, working from, portal and socials all arent supporting dark mode"): the Planning calendar (cal.css) and Working from / Team (team.css) in dark mode. Made from their light colours by tools/darkgen.py: every light surface, dark ink and pale line mapped onto the dark palette above. */
:root[data-theme="dark"] .cal{--ink:#E6E9F2;--ink2:#C9CFE0;--mut:#A3AAC2;--line:#2E3654;--line2:#2E3654;--bd:#2E3654;--pg:#20263C}
:root[data-theme="dark"] .calpill{background:#4A371C;color:#C1A484}
:root[data-theme="dark"] .calpill.link{background:#1B2136}
:root[data-theme="dark"] .calpill.ok{background:#2A3150;color:#84AE93}
:root[data-theme="dark"] .calpill.warn{background:#4A1C24;color:#D4828F}
:root[data-theme="dark"] .calsrch input{background:#1B2136}
:root[data-theme="dark"] .calsrch input::placeholder{color:#6F7896}
:root[data-theme="dark"] .calbtn{background:#1B2136}
:root[data-theme="dark"] .calsq{background:#1B2136}
:root[data-theme="dark"] .calseg button.on{background:#1B2136}
:root[data-theme="dark"] .calfpop{background:#1B2136}
:root[data-theme="dark"] .calprompt{background:#4A341C;border-color:#76532D}
:root[data-theme="dark"] .calplacing{background:#1C274A;color:#8A8DD4}
:root[data-theme="dark"] .caltab{background:#232A42}
:root[data-theme="dark"] .calcard{background:#1B2136}
:root[data-theme="dark"] .calpanel .t2card{background:#1B2136}
:root[data-theme="dark"] .cgdh .cap.over{color:#D7B584}
:root[data-theme="dark"] .cgdh.today{background:#4A2E1C}
:root[data-theme="dark"] .ci.ad{background:#1C274A;color:#8A8DD4}
:root[data-theme="dark"] .cgcol.we{background:rgba(0,0,0,0.35)}
:root[data-theme="dark"] .cgoff{background:rgba(0,0,0,0.28)}
:root[data-theme="dark"] .cgsel{color:#8A8DD4}
:root[data-theme="dark"] .ci.ev{background:#1B2136}
:root[data-theme="dark"] .ci.prop{background:#1B2136;color:#8A8DD4}
:root[data-theme="dark"] .cicons .i-rep{background:rgba(0,0,0,0.35);color:#E6E9F2}
:root[data-theme="dark"] .i-ok{background:#1B2136;color:#82B9A0}
:root[data-theme="dark"] .i-log{background:#1B2136}
:root[data-theme="dark"] .i-warn{color:#E6E9F2}
:root[data-theme="dark"] .ci.ev.lab .i-warn{background:#1B2136}
:root[data-theme="dark"] .cmc.out{background:#20263C}
:root[data-theme="dark"] .cmc.out .cmd{color:#6F7896}
:root[data-theme="dark"] .cmh .cap.over{color:#D7B584}
:root[data-theme="dark"] .mi.ev{background:#1B2136}
:root[data-theme="dark"] .mi.prop{color:#8A8DD4}
:root[data-theme="dark"] .calmod{--ink:#E6E9F2;--ink2:#C9CFE0;--mut:#A3AAC2;--line:#2E3654;--bd:#2E3654;--pg:#20263C;background:#1B2136}
:root[data-theme="dark"] .calx:hover{background:#232A42}
:root[data-theme="dark"] .cseg{background:#232A42}
:root[data-theme="dark"] .cseg button{color:#C9CFE0}
:root[data-theme="dark"] .cseg button.on{background:#1B2136}
:root[data-theme="dark"] .cin{color:#C9CFE0}
:root[data-theme="dark"] .cloggd{color:#82B9A0}
:root[data-theme="dark"] .cbtn.cta:disabled{background:#2A3150}
:root[data-theme="dark"] .cbtn.sec{background:#1B2136}
:root[data-theme="dark"] .cbtn.sec:hover{background:#232A42}
:root[data-theme="dark"] .cbtn.ghost:hover{background:#232A42}
:root[data-theme="dark"] .cbtn.danger{background:#1B2136;border-color:#762D39}
:root[data-theme="dark"] .cbtn.danger:hover{background:#4A1C23}
:root[data-theme="dark"] .cstat{background:#1C394A;color:#83C1DC}
:root[data-theme="dark"] .cstat.soon{background:#1C204A;color:#8A8DD4}
:root[data-theme="dark"] .cstat.hold{color:#AEA073}
:root[data-theme="dark"] .cstat.track{background:#4A341C;color:#C19873}
:root[data-theme="dark"] .crange{background:#232A42}
:root[data-theme="dark"] .cmet b{color:#DDA673}
:root[data-theme="dark"] .cbar{background:#232A42}
:root[data-theme="dark"] .cwarnrow{background:#4A3F1C;color:#B6A573}
:root[data-theme="dark"] .cdesc{background:#20263C}
:root[data-theme="dark"] .cpc{background:#1B2136}
:root[data-theme="dark"] .cpc.on .cpbox::after{border-color:#1B2136}
:root[data-theme="dark"] .cpm b.g{color:#82B9A0}
:root[data-theme="dark"] .cpbar{background:#232A42}
:root[data-theme="dark"] .elc option{color:#E6E9F2}
:root[data-theme="dark"] .calmenu{background:#1B2136;color:#E6E9F2}
:root[data-theme="dark"] .cmhd{color:#A3AAC2}
:root[data-theme="dark"] .cmhd button{color:#A3AAC2}
:root[data-theme="dark"] .cmhd button:hover{color:#E6E9F2}
:root[data-theme="dark"] .cml,
:root[data-theme="dark"] .cmi{color:#E6E9F2}
:root[data-theme="dark"] .cml:hover,
:root[data-theme="dark"] .cmi:hover{background:#20263C}
:root[data-theme="dark"] .cml.on{background:#232A42}
:root[data-theme="dark"] .cml .ck{color:#8CC8A3}
:root[data-theme="dark"] .cmsep{background:#232A42}
:root[data-theme="dark"] .cmsw .sw.on{box-shadow:0 0 0 2px #1B2136,0 0 0 4px #192341}
@media (max-width:767px){
:root[data-theme="dark"] .calbody.sheet .calpanel{background:#1B2136}
}
:root[data-theme="dark"] .ftbar{background:#20263C}
:root[data-theme="dark"] .ftbar em{color:#A3AAC2}
:root[data-theme="dark"] .ftwork{background:#1B2136;border-left-color:#2E3654;border-right-color:#2E3654}
:root[data-theme="dark"] .ftscale i{color:#A3AAC2}
:root[data-theme="dark"] .ftall .ftbar{background:#1B2136;border-color:#2E3654}
:root[data-theme="dark"] .ftfree{background:#1C4A2C}
:root[data-theme="dark"] .cchk.big{color:#E6E9F2}
:root[data-theme="dark"] .bklink{color:#A3AAC2}
:root[data-theme="dark"] .clbl.sm{color:#C9CFE0}
:root[data-theme="dark"] .cfld{color:#A3AAC2}
:root[data-theme="dark"] .bkrow{border-color:#2E3654}
:root[data-theme="dark"] .cgroup .grst{background:#232A42}
:root[data-theme="dark"] .cgroup .grst.ok{background:#1D492F;color:#84B6A0}
:root[data-theme="dark"] .cgroup .grst.bk{background:#232A42;color:#E6E9F2}
:root[data-theme="dark"] .ccreate .ctg{background:#1B2136}
:root[data-theme="dark"] .ccreate .ctg.on i{color:#6F7896}
:root[data-theme="dark"] .ccreate .ctp{background:#232A42}
:root[data-theme="dark"] .ccreate .ctp button:hover{background:#1B2136}
:root[data-theme="dark"] .calmod .calicon{color:#C9CFE0}
:root[data-theme="dark"] .calmod .calicon:hover{background:#232A42}
:root[data-theme="dark"] .calmod .cerow{color:#E6E9F2}
:root[data-theme="dark"] .calmod .cerow small{color:#A3AAC2}
:root[data-theme="dark"] .calmod .ceic{color:#A3AAC2}
:root[data-theme="dark"] .calmod .cwho2 .cwe{color:#6F7896}
:root[data-theme="dark"] .calmod .cwho2 i{color:#A3AAC2}
:root[data-theme="dark"] .calmod .cans{background:#232A42;color:#A3AAC2}
:root[data-theme="dark"] .calmod .cans.yes{background:#1C4A2D;color:#82B9A0}
:root[data-theme="dark"] .calmod .cans.no{background:#4A1C24;color:#D4828F}
:root[data-theme="dark"] .calmod .cans.maybe{background:#4A3F1C;color:#B6A573}
:root[data-theme="dark"] .calmod .cersvp{border-top-color:#2E3654}
:root[data-theme="dark"] .calmod .cersvp span{color:#C9CFE0}
:root[data-theme="dark"] #view-teamold .tm{--ink:#E6E9F2;--ink2:#C9CFE0;--mut:#A3AAC2;--dim:#6F7896;--line:#2E3654;--bd:#2E3654;--pg:#20263C}
:root[data-theme="dark"] .tm .tmcard{background:#1B2136}
:root[data-theme="dark"] .tm .tmbtn{background:#1B2136}
:root[data-theme="dark"] .tm .tmbtn:hover{background:#20263C}
:root[data-theme="dark"] .tm .tmicon:hover{background:#232A42}
:root[data-theme="dark"] .tm .tmstrip{background:#1B2136}
:root[data-theme="dark"] .tm .tmavs .tmav{border-color:#1B2136}
:root[data-theme="dark"] .tm .tmmore{background:#232A42;border-color:#1B2136}
:root[data-theme="dark"] .tm .tmtomp{background:#1B2136}
:root[data-theme="dark"] .tmchip.need{border-color:#762D3A}
:root[data-theme="dark"] .tmtile.need{background:#1B2136}
:root[data-theme="dark"] .tm .tmmini .past i{color:#6F7896}
:root[data-theme="dark"] .tm .tmneed{color:#D4828F;background:#4A1C24}
:root[data-theme="dark"] .tm .tmmyd.today{background:#4A321C}
:root[data-theme="dark"] .tm .tmpill.need{background:#1B2136;color:#D4828F}
:root[data-theme="dark"] .tm .tmseg button,
:root[data-theme="dark"] .tmpick .tmseg button{background:#1B2136}
:root[data-theme="dark"] .tm .tmseg button.on,
:root[data-theme="dark"] .tmpick .tmseg button.on{background:#3A4363}
:root[data-theme="dark"] .tm .tmgrid thead th{background:#1B2136}
:root[data-theme="dark"] .tm .tmgrid .tmname{background:#1B2136}
:root[data-theme="dark"] .tm .tmday.past b,
:root[data-theme="dark"] .tm .tmday.past span{color:#6F7896}
:root[data-theme="dark"] .tm .tmday.sel{background:#20263C}
:root[data-theme="dark"] .tm .tmgrid tbody td{border-bottom-color:#2E3654}
:root[data-theme="dark"] .tm .tmgrid tbody td.tmc.sel{background:#20263C}
:root[data-theme="dark"] .tm .tmgrid tbody tr.me td{background:#232A42}
:root[data-theme="dark"] .tm .tmgrid tbody tr.me td.tmc.sel{background:#344A1C}
:root[data-theme="dark"] .tm .tmpin.on{color:#E6E9F2}
:root[data-theme="dark"] .tm .tmpin:hover{background:#232A42}
:root[data-theme="dark"] .tm .tmfoot td{background:#20263C}
:root[data-theme="dark"] .tm .tmfoot td.tmname{background:#20263C}
:root[data-theme="dark"] .tm .tmfoot td.past b{color:#6F7896}
:root[data-theme="dark"] .tm .tmfull{background:#4A2F1C}
:root[data-theme="dark"] .tm .tmsearch{background:#1B2136}
:root[data-theme="dark"] .tm .tmf{background:#1B2136}
:root[data-theme="dark"] .tm .tmf i{background:var(--t,#232A42)}
:root[data-theme="dark"] .tm .tmf.on{background:#3A4363}
:root[data-theme="dark"] .tm .tmpc{background:#1B2136}
:root[data-theme="dark"] .tm .tmme{background:#1C2B4A}
:root[data-theme="dark"] .tm .tmbadge.need{background:#4A1C24;color:#D4828F}
:root[data-theme="dark"] .tm .tmpres>i{background:#282E3E}
:root[data-theme="dark"] .tm .tmtrack{background:#232A42}
:root[data-theme="dark"] .tm .tmnow{background:#3A4363;box-shadow:0 0 0 2px #1B2136}
:root[data-theme="dark"] .tm .tmempty{background:#1B2136}
:root[data-theme="dark"] .tmpick{background:#1B2136;border-color:#2E3654;color:#E6E9F2}
:root[data-theme="dark"] .tmpick .tmpkh span{color:#A3AAC2}
:root[data-theme="dark"] .tmpick .tmseg{border-color:#2E3654}
:root[data-theme="dark"] .tmov .tmmod{background:#1B2136;color:#E6E9F2}
:root[data-theme="dark"] .tmov .tmnote{color:#A3AAC2}
:root[data-theme="dark"] .tmov .tmicon{color:#C9CFE0}
:root[data-theme="dark"] .tmov .tmicon:hover{background:#232A42}
:root[data-theme="dark"] .tmov .tmprefs{border-top-color:#2E3654}
:root[data-theme="dark"] .tmov .tmpref{border-bottom-color:#2E3654}
:root[data-theme="dark"] .tmov .tmchk,
:root[data-theme="dark"] .tmov .tmus{color:#C9CFE0}
:root[data-theme="dark"] .tmov select{border-color:#2E3654;color:#E6E9F2;background:#1B2136}
/* Working from: the tiles and chips take their colours from the place (inline --s solid, --t tint, --x text) - in the dark the
   tint is a deep version of the place's colour, its text a light one */
:root[data-theme="dark"] .tmchip{background:color-mix(in srgb,var(--x) 26%,#1B2136) !important;color:color-mix(in srgb,var(--x) 45%,#fff) !important}
:root[data-theme="dark"] .tmtile.past,:root[data-theme="dark"] .tm .tmpill.past{background:color-mix(in srgb,var(--s) 30%,#1B2136) !important;color:color-mix(in srgb,var(--s) 55%,#fff) !important;opacity:1 !important}
:root[data-theme="dark"] .tm .tmf i{background:color-mix(in srgb,var(--x,#8D95B0) 30%,#1B2136) !important;color:#E6E9F2 !important}
:root[data-theme="dark"] .tmtile[style*="--s:#D5D9E2"]:not(.past),:root[data-theme="dark"] .tm .tmpill[style*="--s:#D5D9E2"]:not(.past){background:#4A5270 !important;color:#E6E9F2 !important}
/* 1232 (Ellie: "the items and assets [need] to be just a bit lighter in darkmode, the colour is too similar to the
   background"): cards and rows on All Assets and My Tasks lifted off the page - assets a step lighter, their tasks a
   half-step under them, the hover lighter again */
:root[data-theme="dark"] .mtv .mtcard, :root[data-theme="dark"] .mtv .mtrow, :root[data-theme="dark"] .altv .mtcard { background: #252C47 !important; border-color: #353E60 !important; }
:root[data-theme="dark"] .altv .altkids .mtcard, :root[data-theme="dark"] .mtv .mtcard .mtcard { background: #1F2640 !important; border-color: #313A5A !important; }
:root[data-theme="dark"] .altv .altlist { background: #232A45 !important; border-color: #353E60 !important; }
:root[data-theme="dark"] .altv .altlrow + .altlrow { border-color: #313A5A !important; }
:root[data-theme="dark"] .altv .altlrow.kid { background: #1E2540 !important; }
:root[data-theme="dark"] .altv .altlrow:hover { background: #2C3456 !important; }
:root[data-theme="dark"] .altv .altlrow.kid:hover { background: #283050 !important; }
:root[data-theme="dark"] .altv .altladd { background: #1E2540 !important; border-color: #313A5A !important; }
:root[data-theme="dark"] .altv .althead { background: #2A3150 !important; border-color: #353E60 !important; }
