:root{--bg:#f6f7f9;--panel:#fff;--text:#1d2330;--muted:#6b7280;--line:#e3e6eb;--accent:#2563eb;--today:#2563eb;--sel:#eef3ff;--blue:#2563eb;--green:#16a34a;--red:#dc2626;--orange:#ea7a0c;--purple:#7c3aed;--gray:#64748b;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#12151b;--panel:#1b1f27;--text:#e7e9ee;--muted:#9aa3b2;--line:#2b313c;--sel:#1f2a44;--accent:#4f83ff;--today:#4f83ff}}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:15px/1.4 system-ui,-apple-system,Segoe UI,sans-serif}button{font:inherit;color:inherit;cursor:pointer}.app{flex-direction:column;gap:12px;max-width:1280px;min-height:100%;margin:0 auto;padding:16px;display:flex}.bar{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.bar h1{margin:0;font-size:22px}.nav{flex:1;align-items:center;gap:6px;display:flex}.nav>button:not(.ghost){border:1px solid var(--line);background:var(--panel);border-radius:8px;width:34px;height:34px;font-size:20px;line-height:1}.month{text-align:center;min-width:160px;font-size:17px;font-weight:600}.primary{background:var(--accent);color:#fff;border:0;border-radius:8px;padding:8px 14px;font-weight:600}.primary:disabled{opacity:.6}.ghost{border:1px solid var(--line);background:0 0;border-radius:8px;padding:7px 12px}.danger{color:var(--red);border:1px solid var(--red);background:0 0;border-radius:8px;padding:7px 12px}.wide{width:100%}.error{color:#9b1c1c;background:#fde8e8;border-radius:8px;padding:8px 12px}.layout{flex:1;grid-template-columns:1fr 300px;gap:12px;display:grid}.grid{background:var(--line);border:1px solid var(--line);border-radius:10px;grid-template-rows:auto;grid-template-columns:repeat(7,1fr);gap:1px;display:grid;overflow:hidden}.dow{background:var(--panel);color:var(--muted);text-transform:uppercase;padding:6px 8px;font-size:12px;font-weight:600}.cell{background:var(--panel);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;gap:2px;min-width:0;min-height:104px;padding:4px;display:flex}.cell:hover{background:color-mix(in srgb, var(--sel) 60%, var(--panel))}.cell.out{color:var(--muted);background:color-mix(in srgb, var(--bg) 60%, var(--panel))}.cell.sel{background:var(--sel)}.num{border-radius:50%;place-items:center;width:24px;height:24px;font-size:13px;display:grid}.cell.today .num{background:var(--today);color:#fff;font-weight:700}.chips{flex-direction:column;gap:2px;min-width:0;display:flex}.chip{text-align:left;white-space:nowrap;text-overflow:ellipsis;color:#fff;background:var(--c);border:0;border-radius:4px;padding:1px 5px;font-size:12px;overflow:hidden}.chip b{opacity:.9;font-weight:600}.more{color:var(--muted);padding-left:4px;font-size:11px}.dots{display:none}.c-blue{--c:var(--blue)}.c-green{--c:var(--green)}.c-red{--c:var(--red)}.c-orange{--c:var(--orange)}.c-purple{--c:var(--purple)}.c-gray{--c:var(--gray)}.day{background:var(--panel);border:1px solid var(--line);border-radius:10px;flex-direction:column;align-self:start;gap:10px;padding:14px;display:flex}.day h2{margin:0;font-size:16px}.day h2:first-letter{text-transform:uppercase}.day ul{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.empty{color:var(--muted);margin:0}.item{border-left:4px solid var(--c);background:var(--bg);cursor:pointer;border-radius:6px;flex-direction:column;padding:6px 10px;display:flex}.item:hover{filter:brightness(.97)}.item .time{color:var(--muted);font-size:12px}.item .title{font-weight:600}.item .note{color:var(--muted);white-space:pre-wrap;font-size:13px}.backdrop{z-index:10;background:#0006;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.dialog{background:var(--panel);border-radius:12px;flex-direction:column;gap:12px;width:100%;max-width:420px;padding:20px;display:flex;box-shadow:0 20px 50px #00000040}.dialog h2{margin:0;font-size:18px}.dialog label{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.dialog input:not([type=checkbox]),.dialog textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px}.dialog .check{color:var(--text);flex-direction:row;align-items:center;gap:8px}.row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.colors{gap:8px;display:flex}.swatch{background:var(--c);border:2px solid #0000;border-radius:50%;width:26px;height:26px}.swatch.on{outline:2px solid var(--text);outline-offset:2px}.actions{align-items:center;gap:8px;display:flex}.spacer{flex:1}@media (width<=860px){.app{padding:10px}.layout{grid-template-columns:1fr}.bar>.primary{display:none}.cell{align-items:center;min-height:56px}.chips{display:none}.dots{gap:3px;display:flex}.dots i{background:var(--c);border-radius:50%;width:6px;height:6px}.month{min-width:120px}}
