/* Omarchy shell: waybar-style top bar, Hyprland tiling, walker launcher, mako notifications. Colours come from theme.css. */

#desktop { --bar-h: 26px; background: var(--c-bg-darker); }
:root:not([data-theme='tiraos-classic']) #desktop::before { display: none; }
:root[data-theme='tiraos-classic'] #desktop { background:
  radial-gradient(1000px 600px at 80% -10%, color-mix(in srgb, var(--co1) 22%, transparent), transparent 60%),
  radial-gradient(800px 600px at -10% 110%, color-mix(in srgb, var(--co2) 22%, transparent), transparent 60%),
  linear-gradient(#0b1220, #060a11); }

.wallpaper { inset: var(--bar-h) 0 0; }
.wallpaper.img { inset: 0; background: var(--wallpaper) center / cover no-repeat; animation: wpfade .5s ease both; }
@keyframes wpfade { from { opacity: 0; } }

/* Boot and main menu: the theme wallpaper sits behind a veil while loading; on the menu the veil lifts
   to a side gradient that only shades where the text is. */
:root:not([data-theme='tiraos-classic']) #boot { background: var(--wallpaper) center / cover no-repeat, var(--c-bg); }
#boot::before, #boot::after { content: ''; position: fixed; inset: 0; pointer-events: none; transition: opacity .9s ease; }
:root:not([data-theme='tiraos-classic']) #boot::before { background: color-mix(in srgb, var(--c-bg) 84%, transparent); }
#boot::after { opacity: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-bg) 90%, transparent) 0%, color-mix(in srgb, var(--c-bg) 66%, transparent) 36%, transparent 68%), linear-gradient(0deg, color-mix(in srgb, var(--c-bg) 75%, transparent), transparent 28%); }
#boot.menu-mode::before { opacity: 0; }
#boot.menu-mode::after { opacity: 1; }
.boot-log, .boot-load { z-index: 1; transition: opacity .35s ease; }
.menu-screen, .onb, .offer { position: relative; z-index: 1; }
#boot.boot-out .boot-log, #boot.boot-out .boot-load { opacity: 0; }

.boot-load { position: absolute; left: 50%; bottom: 12vh; transform: translateX(-50%); width: min(420px, 80vw); font: 12px var(--mono); color: var(--muted); }
.boot-load-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.boot-load-top b { color: var(--accent); font-weight: 600; }
.boot-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--text) 14%, transparent); overflow: hidden; }
.boot-track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); box-shadow: 0 0 12px var(--accent); transition: width .25s ease; }

.menu-screen { align-self: stretch; width: 100%; min-height: 100%; display: grid; grid-template-columns: minmax(360px, 540px) 1fr; align-items: center; gap: 40px; padding: 7vh 7vw 72px; box-sizing: border-box; }
.menu-col > * { animation: rise .6s ease both; }
.menu-col > :nth-child(2) { animation-delay: .08s; }
.menu-col > :nth-child(3) { animation-delay: .16s; }
.menu-col > :nth-child(4) { animation-delay: .24s; }
.menu-kicker { display: flex; gap: 8px; align-items: center; font: 600 11px var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.menu-kicker svg { width: 15px; height: 15px; }
.menu-brand h1 { margin: 16px 0 0; font: 800 clamp(46px, 6.2vw, 84px)/.95 var(--sans); letter-spacing: -.045em; background: linear-gradient(95deg, var(--text-strong) 10%, var(--accent) 60%, var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px color-mix(in srgb, var(--accent) 25%, transparent)); }
.menu-sub { margin-top: 14px; font: 600 clamp(12px, 1.2vw, 15px) var(--mono); letter-spacing: .42em; text-transform: uppercase; color: var(--text); }
.menu-pitch { max-width: 430px; color: var(--muted); font-size: 14px; line-height: 1.6; margin: 22px 0 26px; }
.menu-items { display: flex; flex-direction: column; gap: 4px; max-width: 450px; }
.menu-item { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 18px 12px 24px; border-radius: var(--r); border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.menu-item::before { content: ''; position: absolute; left: 9px; top: 13px; bottom: 13px; width: 3px; border-radius: 2px; background: var(--accent); transform: scaleY(0); transition: transform .15s; }
.menu-item .mi-label { font: 700 19px var(--sans); letter-spacing: -.01em; color: var(--text-strong); }
.menu-item .mi-sub { font-size: 12.5px; color: var(--muted); }
.menu-item.primary .mi-label { color: var(--accent); }
.menu-item:focus { outline: none; }
.menu-item.on { background: color-mix(in srgb, var(--c-bg) 70%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(6px); backdrop-filter: blur(8px); }
.menu-item.on::before { transform: none; }
.menu-hint { margin-top: 20px; display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.menu-hint kbd { font: 600 10.5px var(--mono); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line2); background: color-mix(in srgb, var(--c-bg) 70%, transparent); color: var(--text); }
.menu-hint kbd:nth-of-type(3) { margin-left: 8px; }
.menu-side { justify-self: end; align-self: end; animation: rise .7s .2s ease both; }
.menu-foot { position: absolute; left: 7vw; right: 7vw; bottom: 22px; display: flex; justify-content: space-between; gap: 20px; font: 11px var(--mono); letter-spacing: .06em; color: var(--muted); }

.save-card { width: 360px; padding: 18px; border-radius: 14px; background: color-mix(in srgb, var(--c-bg) 78%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line)); box-shadow: 0 24px 70px #0008; font-size: 12.5px; }
.save-kicker { display: flex; justify-content: space-between; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.save-kicker span:first-child { color: var(--accent); }
.save-who { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.save-who b { font-size: 16px; color: var(--text-strong); }
.save-av { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font: 700 15px var(--sans); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--c-on-accent); }
.save-role { color: var(--muted); margin-top: 2px; }
.save-logo { margin-left: auto; display: flex; opacity: .95; }
.save-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 0; border-block: 1px solid var(--line); }
.save-stats span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.save-stats b { font: 600 13px var(--mono); color: var(--text-strong); }
.save-pips { display: flex; gap: 4px; padding-top: 3px; }
.save-pips i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--line2); }
.save-pips i.on { background: var(--danger); border-color: var(--danger); }
.save-level { margin-top: 12px; }
.save-level-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: var(--muted); }
.save-bg { margin-top: 2px; font-size: 11px; color: var(--muted); opacity: .8; }
@media (max-width: 900px) {
  .menu-screen { grid-template-columns: 1fr; padding-top: 5vh; }
  .menu-side { justify-self: start; align-self: start; }
  .menu-foot { position: static; }
  .save-card { width: min(360px, 86vw); }
}

/* ---------- bar ---------- */
.obar { position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h); z-index: 900; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 6px; background: var(--c-bg); color: var(--c-fg); font: 12px/1 var(--mono); user-select: none; }
:root[data-theme='tiraos-classic'] .obar { background: color-mix(in srgb, var(--c-bg-darker) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.obar button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; height: var(--bar-h); display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; }
.obar button:hover { color: var(--c-accent); }
.obar .gl svg { width: 13px; height: 13px; display: block; }
.ob-left { display: flex; align-items: center; min-width: 0; }
.ob-mark { padding: 0 9px 0 6px !important; }
.ob-mark svg { width: 15px; height: 15px; display: block; }
.ob-ws { display: flex; align-items: center; }
.ob-ws .ws { min-width: 22px; justify-content: center; padding: 0 4px !important; color: var(--dim) !important; position: relative; }
.ob-ws .ws.used { color: var(--c-fg) !important; }
.ob-ws .ws.on { color: var(--c-accent) !important; font-weight: 700; }
.ob-ws .ws.on::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 3px; height: 2px; background: var(--c-accent); }
.ob-ws .ws:hover { color: var(--c-accent) !important; }
.ob-center { display: flex; align-items: center; gap: 4px; justify-content: center; white-space: nowrap; }
.ob-clock { font-weight: 600; }
.ob-ind { color: var(--muted) !important; }
.ob-ind.warn { color: var(--warn) !important; }
.ob-ind.ok { color: var(--ok) !important; }
.ob-right { display: flex; align-items: center; justify-content: flex-end; min-width: 0; }
.ob-ti { color: var(--c-fg); }
.ob-ti.hot { color: var(--c-accent); }
.ob-ti.on { color: var(--c-accent); }
.ob-ti.bad .gl { color: var(--danger); }
.ob-ti .pips { gap: 3px; }
.ob-ti .pip { width: 6px; height: 6px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-fg) 22%, transparent); border: 0; box-shadow: none; }
.ob-ti .pip.on { background: var(--danger); }
.ob-sep { width: 1px; height: 12px; margin: 0 4px; background: var(--line2); }

/* ---------- tiling ---------- */
.work { position: absolute; top: var(--bar-h); left: 0; right: 0; bottom: 0; }
.windows { inset: 0; bottom: 0; }
.win.tiled { min-width: 0; min-height: 0; border: 2px solid transparent; border-radius: var(--r); box-shadow: none; animation: none;
  background: linear-gradient(var(--win), var(--win)) padding-box, linear-gradient(var(--border-inactive), var(--border-inactive)) border-box;
  transition: left .18s cubic-bezier(.05, .9, .1, 1.05), top .18s cubic-bezier(.05, .9, .1, 1.05), width .18s cubic-bezier(.05, .9, .1, 1.05), height .18s cubic-bezier(.05, .9, .1, 1.05), opacity .14s ease, transform .16s ease; }
.win.tiled.focused { background: linear-gradient(var(--win), var(--win)) padding-box, var(--border-active) border-box; box-shadow: none; }
.win.tiled.opening, .win.tiled.closing { opacity: 0; transform: scale(.87); }
.win.tiled.off { visibility: hidden; opacity: 0; pointer-events: none; transition: none; }
.win.tiled.fs { z-index: 5; }
.win.tiled > .win-body { overflow: hidden; border-radius: max(0px, calc(var(--r) - 2px)); }
:root[data-theme='tiraos-classic'] .win.tiled { box-shadow: 0 18px 44px #0008; }
body.dragging .win.tiled { transition: none; }

.win.tiled > .win-ctl { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 6; height: 7px; overflow: hidden; display: flex; align-items: flex-end; gap: 0; padding: 0 18px; transition: height .12s ease; }
.win.tiled > .win-ctl::before { content: ''; position: absolute; top: 2px; left: 50%; width: 30px; height: 3px; margin-left: -15px; background: var(--line2); opacity: 0; transition: opacity .12s; }
.win.tiled:hover > .win-ctl::before { opacity: 1; }
.win.tiled > .win-ctl:hover, body.swapping .swap-src > .win-ctl { height: 26px; background: var(--c-bg-light); border: 1px solid var(--line2); border-top: 0; padding: 0 2px; }
.win.tiled > .win-ctl:hover::before { opacity: 0; }
.win.tiled > .win-ctl button { width: 28px; height: 24px; border-radius: 0; color: var(--muted); }
.win.tiled > .win-ctl button:hover { background: color-mix(in srgb, var(--c-fg) 10%, transparent); color: var(--c-fg); }
.win.tiled > .win-ctl button.x:hover { background: var(--danger); color: var(--c-bg); }
.win.tiled > .win-ctl .grip { cursor: grab; }
.win.tiled.swap-src { opacity: .55; }
.win.tiled.swap-dst::after { content: ''; position: absolute; inset: 6px; border: 2px dashed var(--c-accent); pointer-events: none; z-index: 7; }
body.swapping, body.swapping * { cursor: grabbing !important; }

.splitter { position: absolute; z-index: 4; }
.splitter.row { cursor: col-resize; }
.splitter.col { cursor: row-resize; }
.splitter::after { content: ''; position: absolute; inset: 0; background: var(--c-accent); opacity: 0; transition: opacity .12s; }
.splitter.row::after { left: 40%; right: 40%; }
.splitter.col::after { top: 40%; bottom: 40%; }
.splitter:hover::after, body.resizing-row .splitter.row::after, body.resizing-col .splitter.col::after { opacity: .7; }
body.resizing-row, body.resizing-row * { cursor: col-resize !important; }
body.resizing-col, body.resizing-col * { cursor: row-resize !important; }

/* ---------- side panel ---------- */
.opanel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 300px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; scrollbar-width: none; z-index: 2; }
.opanel.hidden { display: none; }
.opanel .widget { flex: none; background: var(--win); backdrop-filter: none; border: 2px solid var(--border-inactive); border-radius: var(--r); box-shadow: none; }
:root[data-theme='tiraos-classic'] .opanel .widget { background: color-mix(in srgb, var(--win) 80%, transparent); backdrop-filter: blur(12px); border-width: 1px; border-color: var(--line); }
.opanel .widget h4 { color: var(--c-accent); }
.opanel .widget.nudge { animation: nudge .85s ease-in-out 3; }
@keyframes nudge { 50% { border-color: var(--c-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 25%, transparent); } }
.xp { border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-fg) 12%, transparent); }
.xp > i { background: var(--c-accent); }
:root[data-theme='tiraos-classic'] .xp > i { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.pip { border-radius: var(--r-sm); }

/* ---------- notifications (mako) ---------- */
.toasts { top: calc(var(--bar-h) + 10px); right: 10px; bottom: auto; flex-direction: column; width: 360px; gap: 8px; }
.toast { border: 2px solid transparent; border-radius: var(--r); backdrop-filter: none; box-shadow: none;
  background: linear-gradient(var(--c-bg), var(--c-bg)) padding-box, var(--border-active) border-box; animation: makoin .2s ease both; }
.toast:hover { border-color: transparent; }
.toast.bad { background: linear-gradient(var(--c-bg), var(--c-bg)) padding-box, linear-gradient(var(--danger), var(--danger)) border-box; }
.toast .th { letter-spacing: .04em; text-transform: none; font-weight: 400; }
.toast .bar { height: 2px; opacity: .8; }
.toast.out { animation: makoout .2s ease both; }
@keyframes makoin { from { opacity: 0; transform: translateX(24px); } }
@keyframes makoout { to { opacity: 0; transform: translateX(24px); } }
:root:not([data-theme='tiraos-classic']) .toast .mini,
:root:not([data-theme='tiraos-classic']) .toast .appav { background: none !important; color: var(--c-accent) !important; }
:root:not([data-theme='tiraos-classic']) .toast .av { border-radius: var(--r-sm); }

/* ---------- modals ---------- */
.modal-back { background: color-mix(in srgb, var(--c-bg) 50%, transparent); backdrop-filter: none; }
:root[data-theme='tiraos-classic'] .modal-back { background: #02050acc; backdrop-filter: blur(4px); }
.modal { border: 2px solid transparent; border-radius: var(--r); box-shadow: none;
  background: linear-gradient(var(--win), var(--win)) padding-box, var(--border-active) border-box; }
:root[data-theme='tiraos-classic'] .modal { box-shadow: 0 30px 90px #000d; }

.sysmenu { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.sysmenu .btn { justify-content: flex-start; height: 34px; }
.sysmenu .gl svg { width: 14px; height: 14px; display: block; }
.keys-modal { width: min(560px, 92vw); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 14px; align-items: center; }
.keys kbd { font: 12px var(--mono); color: var(--c-accent); white-space: nowrap; }
.keys span { color: var(--c-fg); }

/* ---------- launcher (walker) ---------- */
.ol-back { position: absolute; inset: 0; z-index: 970; background: color-mix(in srgb, var(--c-bg) 35%, transparent); animation: fade .12s ease both; }
.ol-card { position: absolute; top: 18vh; left: 50%; width: min(560px, 92vw); transform: translateX(-50%); display: flex; flex-direction: column; border: 2px solid transparent; border-radius: var(--r);
  background: linear-gradient(color-mix(in srgb, var(--c-bg) 95%, transparent), color-mix(in srgb, var(--c-bg) 95%, transparent)) padding-box, var(--border-active) border-box;
  animation: olin .14s ease both; }
@keyframes olin { from { opacity: 0; transform: translateX(-50%) scale(.96); } }
.ol-search { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.ol-search .gl svg { width: 16px; height: 16px; display: block; }
.ol-input { flex: 1; background: none; border: 0; outline: 0; color: var(--c-fg); font: 15px var(--mono); }
.ol-input::placeholder { color: var(--dim); }
.ol-list { max-height: 52vh; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; }
.ol-row { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 10px; background: none; border: 0; color: var(--c-fg); font: 13px var(--mono); text-align: left; cursor: pointer; border-radius: var(--r-sm); }
.ol-row .gl svg { width: 15px; height: 15px; display: block; }
.ol-row .gl { color: var(--muted); }
.ol-row.on { background: color-mix(in srgb, var(--c-fg) 8%, transparent); color: var(--c-accent); }
.ol-row.on .gl { color: var(--c-accent); }
.ol-label { flex: 1; }
.ol-hint { color: var(--dim); font-size: 11.5px; }

/* ---------- theme picker ---------- */
.tp-back { position: absolute; inset: 0; z-index: 985; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-bottom: 7vh; outline: none;
  background: linear-gradient(transparent 28%, color-mix(in srgb, var(--c-bg) 94%, transparent) 52%); animation: fade .15s ease both; }
.tp-head { text-align: center; display: flex; flex-direction: column; gap: 4px; font: 12px var(--mono); color: var(--muted); }
.tp-head b { font-size: 18px; color: var(--c-fg-bright); font-weight: 700; }
.tp-track { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 18px calc(50% - 150px); scroll-snap-type: x mandatory; }
.tp-card { flex: none; width: 300px; padding: 0; border: 2px solid var(--border-inactive); border-radius: var(--r); background: var(--tp-bg); color: var(--tp-fg); cursor: pointer; scroll-snap-align: center; overflow: hidden; opacity: .55; transform: scale(.94); transition: transform .18s ease, opacity .18s ease; font: 12px var(--mono); text-align: left; }
.tp-card:hover { opacity: .85; }
.tp-card.on { opacity: 1; transform: scale(1.04); border-color: transparent; background: linear-gradient(var(--tp-bg), var(--tp-bg)) padding-box, var(--border-active) border-box; }
.tp-card img, .tp-classic { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tp-classic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: radial-gradient(260px 160px at 80% 0, #36d6c344, transparent 70%), radial-gradient(220px 160px at 0 100%, #8d6bff44, transparent 70%), linear-gradient(#0b1220, #060a11); }
.tp-classic span { font: 800 30px 'Inter', system-ui, sans-serif; letter-spacing: -.04em; background: linear-gradient(90deg, #36d6c3, #8d6bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tp-classic small { color: #7c89a6; letter-spacing: .3em; text-transform: uppercase; font-size: 10px; }
.tp-meta { display: flex; justify-content: space-between; padding: 8px 10px 4px; }
.tp-name { font-weight: 700; }
.tp-mode { opacity: .6; }
.tp-sw { display: flex; gap: 4px; padding: 2px 10px 10px; }
.tp-sw i { width: 14px; height: 14px; border: 1px solid color-mix(in srgb, var(--tp-fg) 25%, transparent); }
.tp-label { display: flex; justify-content: center; gap: 12px; font: 12px var(--mono); color: var(--muted); }
.tp-label b { color: var(--c-accent); }

/* ---------- narrow tiles ---------- */
.win-body { container: win / inline-size; }
.win-body .toolbar { overflow-x: auto; scrollbar-width: none; }
.win-body .toolbar > * { flex-shrink: 0; }
@container win (max-width: 900px) {
  .tira { flex-direction: column; }
  .tira-board { flex: 0 0 44%; min-height: 0; }
  .tira-head { flex-wrap: wrap; padding: 10px 14px 8px; gap: 8px 14px; }
  .tira-cols { grid-template-columns: repeat(4, minmax(190px, 1fr)); padding: 10px; }
  .tira-detail { width: auto; flex: 1; min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .mail-list { width: 240px; }
  .mail-read .hd { padding: 16px 18px 12px; }
  .mail-read .bd { padding: 14px 18px 24px; }
  .st-side { width: 180px; }
  .xp-objs { width: 150px; }
  .hb-nav { width: 170px; }
  .to-grid { grid-template-columns: 1fr; }
}
@container win (max-width: 820px) {
  .tira-cols { grid-template-columns: repeat(4, minmax(132px, 1fr)); gap: 8px; padding: 8px; }
  .st-side { width: 46px; }
  .st-side .sh > span:first-child, .st-side .st-group, .st-file .nm, .st-file .del { display: none; }
  .st-side .sh { justify-content: center; padding: 8px 0; }
  .st-file { justify-content: center; padding: 6px 0; }
}
@container win (max-width: 620px) {
  .mail { flex-direction: column; }
  .mail-list { width: auto; flex: 0 0 34%; border-right: 0; border-bottom: 1px solid var(--line); }
  .hb-nav { width: 140px; }
}

/* ---------- generic chrome ---------- */
.btn { border-radius: var(--r-sm); }
.btn.primary { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-on-accent); }
.btn.primary:hover { background: color-mix(in srgb, var(--c-accent) 85%, var(--c-fg-bright)); }
:root[data-theme='tiraos-classic'] .btn.primary { background: linear-gradient(180deg, #2fd0bd, #1fa596); border-color: #46e3d1; color: #031513; }
::selection { background: var(--c-selection); }

/* calendar: half days, paydays, bill due dates */
.cal-d > * { position: relative; z-index: 1; }
.cal-d.half::before { content: ''; position: absolute; inset: 0 0 0 50%; background: var(--win); opacity: .6; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.cal-d.pay::after, .cal-d.due::after { content: ''; position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; z-index: 2; }
.cal-d.pay::after { background: var(--ok); }
.cal-d.due::after { background: var(--danger); }
.cal-legend { flex-wrap: wrap; row-gap: 3px; }
.cal-legend i.pay, .cal-legend i.due { width: 6px; height: 6px; border-radius: 50%; }
.cal-legend i.pay { background: var(--ok); }
.cal-legend i.due { background: var(--danger); }
