/* ============================================================
   Home dashboard: Calendar & to-dos view (assets/calendar.js).
   Dark side column + white main panel, pastel time blocks.
   ============================================================ */
.canvas.is-cal { max-width: 1520px; grid-template-columns: 64px minmax(0, 1fr); }
.canvas.is-cal > .events { display: none; }
.c-lav { --c: #E4DAFF; --cd: #6B4FD8; --cm: #A48BFA; } .c-sky { --c: #D3EAFB; --cd: #2A6FB0; --cm: #7DB8F0; } .c-mint { --c: #CDF2DD; --cd: #1E8A55; --cm: #5FD39A; }
.c-sun { --c: #FCEBB6; --cd: #9A6B00; --cm: #F2C94C; } .c-rose { --c: #FAD4DE; --cd: #B83560; --cm: #F28AA7; } .c-peach { --c: #FFDCC8; --cd: #B5541E; --cm: #FFA37A; }

.cx { margin-top: 20px; display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 16px; align-items: start; }
.cx button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.cx svg { width: 16px; height: 16px; }

/* ---------- side ---------- */
.cx__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 28px; background: #121316; color: #fff; }
.cxs { padding: 16px; border-radius: 20px; background: #1C1D21; }
.cxs__h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.cxs__h small { font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .45); }
.mm__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mm__h b { font-size: 15px; font-weight: 600; }
.mm__h span { display: flex; gap: 6px; }
.mm__h button { width: 30px; height: 30px; border-radius: 9px; background: #2A2B30; display: grid; place-items: center; }
.mm__h button:hover { background: #3A3B41; }
.mm__w, .mm__r { display: grid; grid-template-columns: repeat(7, 1fr); }
.mm__w span { text-align: center; font-size: 11px; color: rgba(255, 255, 255, .45); padding-bottom: 6px; }
.mm__r { border-radius: 999px; padding: 2px 0; }
.mm__r.is-wk { background: rgba(255, 255, 255, .08); }
.mm__d { position: relative; height: 30px; border-radius: 50%; font-size: 12.5px; color: rgba(255, 255, 255, .85); display: grid; place-items: center; margin: 0 auto; width: 30px; }
.mm__d:hover { background: rgba(255, 255, 255, .12); }
.mm__d.is-pad { color: rgba(255, 255, 255, .25); }
.mm__d.has::after { content: ""; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: #B9A6FF; }
.mm__d.is-today { color: #B9A6FF; font-weight: 700; }
.mm__d.is-cur { background: #A48BFA; color: #121316; font-weight: 700; }
.mm__d.is-cur::after { background: #121316; }

.cxs--next { background: linear-gradient(160deg, #26272D, #1C1D21); }
.nx__top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.nx__in { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(164, 139, 250, .2); color: #CBBEFF; font-weight: 600; }
.nx__in svg { width: 12px; height: 12px; }
.nx__t { display: block; margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.nx__p { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.nx__acts { display: flex; gap: 8px; margin-top: 12px; }
.nx__acts > * { height: 32px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25) !important; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.nx__acts .is-p { background: #A48BFA !important; border-color: #A48BFA !important; color: #121316 !important; }

.src { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.src input { position: absolute; opacity: 0; pointer-events: none; }
.src i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .35); display: grid; place-items: center; flex: none; transition: background-color .15s; }
.src input:checked + i { background: #A48BFA; border-color: #A48BFA; }
.src input:checked + i::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #121316; border-bottom: 2px solid #121316; transform: rotate(-45deg) translate(1px, -1px); }
.src input:focus-visible + i { outline: 2px solid #fff; outline-offset: 2px; }
.src em { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(164, 139, 250, .25); color: #CBBEFF; font: 600 11px/20px var(--font-display); text-align: center; font-style: normal; }

.cat { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 90px; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.cat .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cm); }
.cat b { font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.cat__bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.cat__bar i { display: block; height: 100%; border-radius: inherit; background: var(--cm); transition: width .4s ease; }
.cat__x { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; opacity: 0; background: #2A2B30 !important; }
.cat__x svg { width: 12px; height: 12px; }
.cat:hover .cat__x { opacity: 1; }
.cat__add { display: flex; gap: 6px; margin-top: 8px; }
.cat__add input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 0; border-radius: 9px; background: #2A2B30; color: #fff; font: inherit; font-size: 13px; outline: 0; }
.cat__add input::placeholder { color: rgba(255, 255, 255, .4); }
.cat__add button { width: 32px; height: 32px; border-radius: 9px; background: #2A2B30 !important; display: grid; place-items: center; }

.g__p { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.g__btn { width: 100%; height: 38px; border-radius: 11px; background: #fff !important; color: #121316 !important; font-weight: 600 !important; font-size: 13.5px !important; display: flex; align-items: center; justify-content: center; gap: 8px; }
.g__acts { display: flex; gap: 6px; margin-top: 10px; }
.g__acts > * { flex: 1; height: 32px; border-radius: 9px; background: #2A2B30 !important; font-size: 12.5px !important; font-weight: 600; display: grid; place-items: center; cursor: pointer; }
.g__acts > *:hover { background: #3A3B41 !important; }

/* ---------- main panel ---------- */
.cx__main { min-width: 0; padding: 22px; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 var(--line); }
.cxh { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.cxh h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: flex; padding: 4px; border-radius: 14px; background: #F2F3F5; }
.seg button { height: 34px; padding: 0 18px; border-radius: 10px; font-size: 13.5px !important; font-weight: 600 !important; color: var(--muted) !important; transition: background-color .15s, color .15s; }
.seg button.is-on { background: #fff; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cxh__nav { justify-self: end; display: flex; gap: 6px; }
.cxh__nav button { height: 38px; min-width: 38px; border-radius: 12px; background: #F2F3F5 !important; display: grid; place-items: center; }
.cxh__nav button:hover { background: #E8E9EC !important; }
.cxh__today { padding: 0 16px; font-weight: 700 !important; font-size: 13.5px !important; }

/* day tiles */
.cxw { margin-top: 18px; display: grid; grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.cxw__ic { display: grid; place-items: center; color: var(--muted); }
.cxw__ic svg { width: 20px; height: 20px; }
.cxw__d { padding: 12px 6px; border-radius: 16px; background: #F4F5F7 !important; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: background-color .15s; }
.cxw__d:hover { background: #ECEDF0 !important; }
.cxw__d span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cxw__d b { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.cxw__d.is-today span { color: #6B4FD8; font-weight: 600; }
.cxw__d.is-cur { background: var(--ink) !important; color: #fff !important; }
.cxw__d.is-cur span { color: rgba(255, 255, 255, .7); }

/* all-day row */
.cxa { margin-top: 10px; display: grid; grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); gap: 8px; }
.cxa__l { font-size: 11px; color: var(--muted); padding-top: 6px; text-align: right; }
.cxa__c { min-height: 30px; display: flex; flex-direction: column; gap: 4px; }
.chip { display: flex; align-items: center; gap: 6px; width: 100%; padding: 5px 8px; border-radius: 8px; background: var(--c) !important; color: var(--ink) !important; font-size: 11.5px !important; font-weight: 600 !important; text-align: left; line-height: 1.25; }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip:hover { filter: brightness(.96); }
.chip.is-todo { cursor: grab; }
.chip__box { flex: none; width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--cd); }
.chip--fly { position: fixed; z-index: 500; width: 180px; pointer-events: none; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35); transform: rotate(-2deg); }

/* time grid */
.cxg__scroll { margin-top: 10px; height: min(640px, calc(100vh - 330px)); min-height: 380px; overflow-y: auto; border-radius: 18px; background: #F7F8FA; scrollbar-width: thin; }
.cxg { position: relative; display: grid; grid-template-columns: 44px repeat(var(--n), minmax(0, 1fr)); column-gap: 8px; padding: 0 8px 0 0; }
.cxg__hours { position: relative; }
.cxg__hours span { position: absolute; right: 4px; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.cxg__col { position: relative; background-image: repeating-linear-gradient(to bottom, rgba(14, 14, 16, .07) 0 1px, transparent 1px 52px); cursor: crosshair; touch-action: none; }
.cxg__col.is-today { background-color: rgba(164, 139, 250, .05); }
.cxg__col.is-target { background-color: rgba(164, 139, 250, .14); }
.cxg__now { position: absolute; left: -4px; right: 0; height: 2px; background: #E5484D; z-index: 3; pointer-events: none; }
.cxg__now::before { content: ""; position: absolute; left: -3px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E5484D; }

.evb { position: absolute; z-index: 2; padding: 7px 9px; border-radius: 12px; background: var(--c); color: var(--ink); overflow: hidden; cursor: grab; touch-action: none; display: flex; flex-direction: column; gap: 2px; transition: box-shadow .15s, transform .15s; }
.evb:hover { box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.evb b { font-size: 12.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.evb > span { font-size: 11.5px; color: rgba(14, 14, 16, .6); }
.evb__loc { display: flex; align-items: center; gap: 3px; } .evb__loc svg { width: 11px; height: 11px; }
.evb.is-short { flex-direction: row; align-items: center; gap: 6px; padding: 2px 8px; }
.evb.is-short b { -webkit-line-clamp: 1; font-size: 11.5px; }
.evb.is-ro { cursor: pointer; background: repeating-linear-gradient(135deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 80%, #fff) 8px 16px); }
.evb.is-drag { z-index: 6; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .45); cursor: grabbing; opacity: .95; }
.evb.is-ghost { z-index: 5; outline: 2px dashed var(--cd); outline-offset: -2px; opacity: .85; pointer-events: none; }
.evb__rs { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.evb__rs::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: rgba(14, 14, 16, .2); opacity: 0; transition: opacity .15s; }
.evb:hover .evb__rs::after { opacity: 1; }
.cx__tip { margin-top: 10px; font-size: 12px; color: var(--faint, #9A9DA4); }

/* month */
.cxm { margin-top: 18px; }
.cxm__w { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.cxm__w span { font-size: 12px; font-weight: 600; color: var(--muted); padding-left: 8px; }
.cxm__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cxm__c { min-height: 108px; padding: 6px; border-radius: 14px; background: #F7F8FA; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cxm__c.is-other { opacity: .45; }
.cxm__c.is-cur { box-shadow: inset 0 0 0 2px var(--ink); }
.cxm__n { align-self: flex-start; width: 26px; height: 26px; border-radius: 50%; font-size: 12.5px !important; font-weight: 600 !important; display: grid; place-items: center; }
.cxm__n:hover { background: #E8E9EC !important; }
.cxm__c.is-today .cxm__n { background: var(--ink) !important; color: #fff !important; }
.mchip { width: 100%; padding: 3px 7px; border-radius: 7px; background: var(--c) !important; font-size: 11px !important; font-weight: 600 !important; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mchip em { font-style: normal; font-weight: 500; opacity: .7; margin-right: 4px; }
.cxm__more { font-size: 11px !important; color: var(--muted) !important; text-align: left; padding-left: 7px; }

/* board */
.kban__add { margin-top: 18px; display: flex; gap: 8px; }
.kban__add input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: #F2F3F5; font: inherit; color: var(--ink); outline: 0; }
.kban__add input:focus { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.kban__add button { height: 46px; padding: 0 20px; border-radius: 14px; background: var(--ink) !important; color: #fff !important; font-weight: 700 !important; }
.kban { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kban__col { padding: 12px; border-radius: 20px; background: #F4F5F7; min-height: 320px; transition: background-color .15s, box-shadow .15s; }
.kban__col.is-over { background: #ECEAFB; box-shadow: inset 0 0 0 2px #A48BFA; }
.kban__h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; font-size: 14px; font-weight: 700; }
.kban__h span { display: flex; align-items: center; gap: 8px; }
.kban__h .dot { width: 9px; height: 9px; border-radius: 50%; background: #F2C94C; }
.kban__col--doing .kban__h .dot { background: #5B8DEF; } .kban__col--done .kban__h .dot { background: #3CB179; }
.kban__h em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 8px; border-radius: 999px; background: #fff; }
.kban__list { display: flex; flex-direction: column; gap: 8px; }
.kc { padding: 12px 12px 10px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); cursor: grab; transition: box-shadow .15s, transform .15s, opacity .15s; }
.kc:hover { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.kc.is-ghost { opacity: .35; }
.kc.is-pri { box-shadow: inset 3px 0 0 #E5484D, 0 1px 0 rgba(0, 0, 0, .06); }
.kc__t { font-size: 14px; font-weight: 600; line-height: 1.35; }
.kban__col--done .kc__t { color: var(--muted); text-decoration: line-through; }
.kc__m { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kc__tag { padding: 2px 8px; border-radius: 999px; background: #EFEAFE; color: #6B4FD8; font-size: 11.5px; font-weight: 600; }
.kc__due { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #F2F3F5; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.kc__due svg { width: 11px; height: 11px; }
.kc__due.is-late { background: #FDE2E6; color: #B83560; } .kc__due.is-today { background: #FCEBB6; color: #8A5E00; }
.kc__acts { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.kc:hover .kc__acts { opacity: 1; }
.kc__acts button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--muted) !important; }
.kc__acts button:hover { background: #F2F3F5 !important; color: var(--ink) !important; }
.kc__acts svg { width: 14px; height: 14px; }
.kban__empty { padding: 18px 12px; border-radius: 14px; border: 1.5px dashed rgba(14, 14, 16, .12); color: var(--muted); font-size: 12.5px; text-align: center; }

/* popover */
.cxp { position: absolute; z-index: 600; width: 320px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .04); animation: cxp .18s ease-out; }
@keyframes cxp { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.cxp button { font: inherit; border: 0; cursor: pointer; }
.cxp svg { width: 18px; height: 18px; flex: none; color: var(--ink); }
.cxp__t { width: 100%; border: 0; outline: 0; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); background: none; padding: 0 0 6px; }
.cxp__t::placeholder { color: #B5B8BF; }
.cxp__row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cxp__row input:not([type=checkbox]), .cxp__row select { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #F2F3F5; font: inherit; font-size: 14px; color: var(--ink); outline: 0; }
.cxp__row select:disabled { opacity: .4; }
.cxp__row input:focus, .cxp__row select:focus { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.cxp__ad { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.cxp__ad input { accent-color: var(--ink); }
.cxp__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cxp__cats button { padding: 6px 12px; border-radius: 10px; background: var(--c); color: var(--cd); font-size: 12.5px; font-weight: 600; opacity: .55; transition: opacity .15s, box-shadow .15s; }
.cxp__cats button:hover { opacity: .85; }
.cxp__cats button.is-on { opacity: 1; box-shadow: inset 0 0 0 1.5px var(--cd); }
.cxp__acts { display: flex; gap: 8px; margin-top: 18px; }
.cxp__x { height: 44px; padding: 0 14px; border-radius: 13px; background: #F2F3F5; color: var(--muted); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.cxp__x svg { width: 15px; height: 15px; color: currentColor; }
.cxp__x:hover { color: #B83560; }
.cxp__save { flex: 1; height: 44px; border-radius: 13px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }

@media (max-width: 1280px) { .cx { grid-template-columns: 236px minmax(0, 1fr); } .cxs { padding: 14px; } .cxw__d span { font-size: 11.5px; } .seg button { padding: 0 12px; } }
@media (max-width: 900px) { .cx { grid-template-columns: 1fr; } .cx__side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
@media (max-width: 760px) {
  .cx__main { padding: 14px; border-radius: 22px; }
  .cxh { grid-template-columns: 1fr auto; } .cxh .seg { grid-column: 1 / -1; order: 3; } .seg button { flex: 1; padding: 0 8px; }
  .cxw, .cxa, .cxg { min-width: 640px; } .cxw__d span { font-size: 11px; }
  .cxm__c { min-height: 64px; } .mchip { font-size: 0 !important; height: 6px; padding: 0; }
  .kban { grid-template-columns: 1fr; }
  .cx__main { overflow-x: auto; }
  .cxp { width: calc(100vw - 24px); }
}

/* fixes: titles never squeeze to nothing; times stay on one line */
.evb > * { flex-shrink: 0; }
.evb > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evb b { display: -webkit-box; }
/* mini month: cells shrink with the column */
.mm__d { width: min(30px, 100%); aspect-ratio: 1; height: auto; }
/* weekday labels: full name when there's room, short otherwise */
.cxw__d .s { display: none; }
@media (max-width: 1280px) {
  .cxw__d .l { display: none; } .cxw__d .s { display: inline; }
  .cxh { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .cxh .seg { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 900px) { .cx__main { order: -1; } }
@media (max-width: 760px) { .canvas.is-cal { grid-template-columns: 1fr; } }

/* side column on the right */
@media (min-width: 901px) {
  .cx { grid-template-columns: minmax(0, 1fr) 272px; }
  .cx__side { order: 2; }
}
@media (min-width: 901px) and (max-width: 1280px) { .cx { grid-template-columns: minmax(0, 1fr) 236px; } }

/* ---------- 2026-10-26: more views, search, repeats, reminders, timed tasks (CALENDAR_CHECKLIST.md) ---------- */
.cxh { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t tools" "v v"; row-gap: 12px; }
.cxh h2 { grid-area: t; }
.cxh__views { grid-area: v; justify-self: start; flex-wrap: wrap; }
.cxh__views button { padding: 0 13px; }
.cxh__tools { grid-area: tools; display: flex; align-items: center; gap: 8px; justify-self: end; }
.cxh__search { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 12px; background: #F2F3F5; }
.cxh__search input { width: 150px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); outline: 0; }
.cxh__search:focus-within { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.cxh__new { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--ink) !important; color: #fff !important; font-weight: 700 !important; font-size: 13.5px !important; }
.cxh__new svg { width: 15px; height: 15px; }
/* working hours: the rest of the day is shaded */
.cxg__col { background-image: linear-gradient(to bottom, rgba(14, 14, 16, .035) 0 var(--ws, 0), transparent var(--ws, 0) var(--we, 100%), rgba(14, 14, 16, .035) var(--we, 100%)), repeating-linear-gradient(to bottom, rgba(14, 14, 16, .07) 0 1px, transparent 1px 52px); }
.evb.is-done { opacity: .55; } .evb.is-done b { text-decoration: line-through; }
.evb__rep { margin-right: 4px; font-style: normal; opacity: .7; }
.evb--task { flex-direction: row; align-items: flex-start; gap: 6px; padding-left: 6px; background: color-mix(in srgb, var(--c) 55%, #fff); border: 1.5px solid var(--cm); cursor: grab; }
.evb--task b { flex: 1; } .evb--task > span { margin-left: auto; }
.evb__chk { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px !important; border: 1.5px solid var(--cd) !important; background: #fff !important; cursor: pointer; }
.evb__chk:hover { background: var(--cm) !important; }
.cxp__row--2 select { flex: 1.4; } .cxp__ic { width: 18px; text-align: center; font-weight: 700; color: var(--ink); }
.cxp__days { gap: 4px; padding-left: 28px; } .cxp__days[hidden] { display: none; }
.cxp__days label { flex: 1; } .cxp__days input { position: absolute; opacity: 0; }
.cxp__days span { display: grid; place-items: center; height: 30px; border-radius: 9px; background: #F2F3F5; font-size: 12px; font-weight: 700; cursor: pointer; }
.cxp__days input:checked + span { background: var(--ink); color: #fff; }
.cxp__notes { width: 100%; margin-top: 10px; padding: 10px 12px; border: 0; border-radius: 12px; background: #F2F3F5; font: inherit; font-size: 13.5px; color: var(--ink); resize: vertical; outline: 0; }
.cxp__notes:focus { box-shadow: 0 0 0 2px var(--ink); background: #fff; }
.cxp [name=until][hidden] { display: none; }
/* year */
.cxy { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 22px; margin-top: 18px; }
.cxy__h { margin-bottom: 6px; font-weight: 700 !important; font-size: 14px !important; }
.cxy__h:hover { text-decoration: underline; }
.cxy__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cxy__g i { font-style: normal; text-align: center; font-size: 10.5px; color: var(--muted); }
.cxy__d { height: 26px; border-radius: 8px; font-size: 11.5px !important; display: grid; place-items: center; }
.cxy__d:hover { background: #F2F3F5 !important; }
.cxy__d.has1 { background: #EDE7FF !important; } .cxy__d.has2 { background: #D8CCFF !important; } .cxy__d.has3 { background: #A48BFA !important; color: #fff !important; }
.cxy__d.is-today { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 800 !important; }
/* agenda + search results */
.cxag { margin-top: 18px; display: flex; flex-direction: column; }
.cxag__day { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line, rgba(0, 0, 0, .06)); }
.cxag__day.is-today .cxag__date b { background: var(--ink); color: #fff; }
.cxag__date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.cxag__date b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; font-size: 17px; }
.cxag__date span { font-size: 11.5px; color: var(--muted); }
.cxag__list { display: flex; flex-direction: column; gap: 2px; }
.cxag__i { display: grid; grid-template-columns: 12px 108px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-align: left; font-size: 14px !important; }
.cxag__i:hover { background: #F2F3F5 !important; }
.cxag__i .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cm); }
.cxag__t { font-size: 12.5px; color: var(--muted); } .cxag__i b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cxag__i em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.cxag__none { margin: 30px 0; text-align: center; color: var(--muted); }
@media (max-width: 760px) { .cxh { grid-template-areas: "t" "tools" "v"; grid-template-columns: 1fr; } .cxh__tools { justify-self: stretch; flex-wrap: wrap; } .cxh__search { flex: 1; } .cxag__i { grid-template-columns: 12px 1fr; } .cxag__i b { grid-column: 2; } .cxag__i em { display: none; } }
html[data-theme="dark"] .cxh__search, html[data-theme="dark"] .cxp__days span, html[data-theme="dark"] .cxp__notes { background: rgba(var(--fg-rgb), .08); color: var(--paper); }
html[data-theme="dark"] .cxh__search input { color: var(--paper); }
html[data-theme="dark"] .cxag__i:hover, html[data-theme="dark"] .cxy__d:hover { background: rgba(var(--fg-rgb), .08) !important; }

.cx__full { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 20px; border-radius: 22px; background: var(--ink); color: #fff; }
.cx__full b { font-size: 16px; } .cx__full span { font-size: 13.5px; opacity: .75; }
.cx__full::after { content: "→"; margin-left: auto; font-size: 20px; }

/* the class timetable: a faint layer you can plan over (clicks go through to the grid) */
.evb--tt { z-index: 1; pointer-events: none; background: rgba(var(--fg-rgb, 14, 14, 16), .045); border: 1px dashed rgba(var(--fg-rgb, 14, 14, 16), .16); color: var(--muted); box-shadow: none !important; }
.evb--tt b { font-weight: 600; color: var(--muted); } .evb--tt > span { color: var(--faint, var(--muted)); }
.cxs--tray { display: flex; flex-direction: column; gap: 5px; }
.cxs__task { cursor: grab; } .cxs__task em { margin-left: auto; flex: none; font-style: normal; font-size: 10.5px; opacity: .7; }
.c-tt { --c: transparent; --cd: #8b8d98; --cm: #c4c6cf; }

/* ---------- compact toolbar on /calendar (AI45_CAL.mount(el, {compact: true}), owner 2026-10-26: like Google Calendar):
   one row, the side column folds away behind the menu button ---------- */
.cx--c { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.cx--c .cx__side { display: none; }
.cx--c.is-side { grid-template-columns: 260px minmax(0, 1fr); }
.cx--c.is-side .cx__side { display: flex; }
.cx--c .cx__main { padding: 10px 14px 14px; border-radius: 26px; }
.cxh.cxh--c { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.cxh--c h2 { margin: 0 8px 0 4px; font-size: 22px; font-weight: 700; }
.cxh__gap { flex: 1; }
.cxh__menu, .cxh__arr { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--paper); }
.cxh__menu svg, .cxh__arr svg { width: 20px; height: 20px; }
.cxh__menu:hover, .cxh__arr:hover, .cx--c.is-side .cxh__menu { background: rgba(var(--fg-rgb), .07) !important; }
.cxh--c .cxh__today { height: 36px; padding: 0 16px; margin-left: 2px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.cxh--c .cxh__today:hover { background: rgba(var(--fg-rgb), .05) !important; }
.cxh--c .cxh__search { border-radius: 999px; }
.cxh--c .cxh__search input { width: 120px; }
.cxh--c .seg { border-radius: 999px; }
.cxh--c .seg button { border-radius: 999px; padding: 0 14px; }
.cxh__more { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.cxh__more.is-on { background: var(--card); color: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.cxh--c .cxh__new { border-radius: 999px; padding: 0 16px 0 12px; }
@media (max-width: 900px) { .cx--c.is-side { grid-template-columns: 1fr; } .cxh--c h2 { font-size: 18px; } .cxh--c .cxh__search input { width: 80px; } }
.cxh--c .seg, .cxh--c .cxh__search { background: rgba(var(--fg-rgb), .06); }
.cxh--c .seg button.is-on { background: var(--card); color: var(--paper) !important; }
.cxh--c .cxh__search input { color: var(--paper); }
.cxh--c .cxh__search:focus-within { background: var(--card); box-shadow: 0 0 0 2px var(--paper); }
/* a busy day: capped all-day row and "+N more" blocks (2026-10-27) */
.cxa__more { width: 100%; height: 24px; border-radius: 8px; background: rgba(14, 14, 16, .06) !important; font-size: 11.5px !important; font-weight: 700 !important; color: var(--muted) !important; }
.cxa__more:hover { background: rgba(14, 14, 16, .12) !important; }
.cxa.is-open .cxa__c { max-height: 260px; overflow-y: auto; }
.evb--more { z-index: 3; align-items: center; justify-content: center; text-align: center; background: var(--ink) !important; color: #fff !important; cursor: pointer; }
.evb--more b { font-size: 14px !important; } .evb--more span { color: rgba(255, 255, 255, .75) !important; font-size: 11px; }
.cxmore { position: absolute; z-index: 650; width: 320px; max-height: 380px; overflow: auto; padding: 8px; border-radius: 18px; background: var(--card); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .05); }
.cxmore__h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 8px; font-size: 13.5px; }
.cxmore .cxag__i { grid-template-columns: 12px 92px minmax(0, 1fr); width: 100%; } .cxmore .cxag__i em { display: none; }
.cx { position: relative; }

.evb.is-drag { transition: none !important; will-change: top, height; cursor: grabbing; }
.cxg__col.is-target { box-shadow: inset 0 0 0 2px rgba(164, 139, 250, .5); }

/* the live now line across every day (owner, 2026-10-28): the scheme's accent, the time in a pill in the gutter, a dot on today */
.cxg { --gw: 44px; }
.pla .cxg { --gw: 66px; grid-template-columns: var(--gw) repeat(var(--n), minmax(0, 1fr)); }
.cxg__nowl { position: absolute; left: var(--gw); right: 8px; height: 0; border-top: 2px solid var(--orange, #E37239); z-index: 4; pointer-events: none; opacity: .9; }
.cxg__nowl b { position: absolute; left: calc(2px - var(--gw)); top: -11px; padding: 2px 7px; border-radius: 999px; background: var(--orange, #E37239); color: var(--on-accent, #fff); font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.cxg__now { height: 0 !important; background: none !important; left: 0 !important; }
.cxg__now::before { left: -6px !important; top: -6px !important; width: 12px !important; height: 12px !important; background: var(--orange, #E37239) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange, #E37239) 25%, transparent); }
.cxg__col.is-today { background-color: color-mix(in srgb, var(--orange, #E37239) 5%, transparent); }
