:root{--fg:#1d2733;--muted:#5b6876;--bg:#f4f6f8;--card:#fff;--line:#d5dbe1;--accent:#0b6b5c;--danger:#a12b2b;color:var(--fg);font-family:system-ui,sans-serif}*{box-sizing:border-box}body{background:var(--bg);margin:0;font-size:16px;line-height:1.45}h1,h2,h3{margin:.2em 0 .5em}.center{text-align:center;margin-top:3rem}.topbar{background:var(--card);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:1rem;padding:.6rem 1rem;display:flex}.topbar .who{color:var(--muted);margin-left:auto}.tabs{border-bottom:1px solid var(--line);background:var(--card);gap:.25rem;padding:.5rem 1rem 0;display:flex;overflow-x:auto}.tabs button{background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;padding:.6rem .9rem}.tabs button[aria-current=page]{border-bottom-color:var(--accent);font-weight:600}.content{max-width:60rem;margin:1rem auto;padding:0 1rem 3rem}.card{background:var(--card);border:1px solid var(--line);border-radius:8px;margin:1rem 0;padding:1rem}.login{place-items:center;min-height:100vh;padding:1rem;display:grid}.login .card{width:100%;max-width:24rem}.form-grid{gap:.8rem;display:grid}label{gap:.25rem;font-weight:500;display:grid}label.inline{align-items:center;gap:.4rem;margin-right:1rem;display:inline-flex}fieldset{border:1px solid var(--line);border-radius:6px;padding:.6rem .8rem}input,select,button{font:inherit;border:1px solid var(--line);background:#fff;border-radius:6px;padding:.5rem .65rem}input[type=radio],input[type=checkbox]{width:auto;padding:0}button{cursor:pointer}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button.danger{color:var(--danger);border-color:var(--danger)}button:focus-visible,input:focus-visible,select:focus-visible{outline-offset:1px;outline:3px solid #7ab8ff}.section-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.actions{flex-wrap:wrap;gap:.5rem;display:flex}.msg{border-radius:6px;margin:.6rem 0;padding:.6rem .8rem}.msg.error{color:var(--danger);background:#fbe9e9}.msg.ok{color:var(--accent);background:#e5f4ef}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;padding:.5rem .4rem}.band-row{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.band-row input[type=time]{width:8.5rem}.badge{background:#eef1f4;border-radius:999px;padding:.1rem .5rem;font-size:.85rem}.badge.open{color:var(--accent);background:#e5f4ef}.muted{color:var(--muted)}@media (width<=640px){table,thead,tbody,tr,td{display:block}thead{position:absolute;left:-9999px}tr{border-bottom:2px solid var(--line);padding:.4rem 0}td{border:0;padding:.2rem 0}td[data-label]:before{content:attr(data-label) ": ";font-weight:600}}textarea{font:inherit;border:1px solid var(--line);resize:vertical;border-radius:6px;width:100%;padding:.5rem .65rem}textarea:focus-visible{outline-offset:1px;outline:3px solid #7ab8ff}button:disabled{opacity:.55;cursor:not-allowed}.badge.confirmed{color:var(--accent);background:#e5f4ef}.badge.reminded{color:#26479a;background:#e8eefc}.badge.pending{color:#7a5a00;background:#fdf3dc}.badge.cancelled,.badge.alert{color:var(--danger);background:#fbe9e9}tr.cancelled td{color:var(--muted);text-decoration:line-through}tr.cancelled td[data-label=Estado],tr.cancelled td.actions{text-decoration:none}.chat{gap:.6rem;margin:0;padding:0;list-style:none;display:grid}.chat li{background:#eef1f4;border-radius:10px;max-width:85%;padding:.5rem .7rem}.chat li.out{background:#e5f4ef;justify-self:end}.chat li p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0 0}.chat .who{margin-right:.6rem;font-weight:600}.chat .when{color:var(--muted);font-size:.85rem}.xcal-toolbar{flex-wrap:wrap;align-items:center;gap:.4rem;margin-bottom:.5rem;display:flex}.xcal-title{text-align:center;min-width:10rem;margin:0 .4rem}.xcal-title:first-letter{text-transform:uppercase}.xcal-grid{gap:2px;display:grid}.xcal-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.xcal-head div{text-align:center;color:var(--muted);padding:.2rem 0;font-size:.85rem;font-weight:600}.xcal-cell{border:1px solid var(--line);cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border-radius:6px;flex-direction:column;gap:.1rem;min-height:4.2rem;padding:.2rem .3rem;display:flex;overflow:hidden}.xcal-cell.empty{cursor:default;background:0 0;border:0}.xcal-cell.closed{background:repeating-linear-gradient(135deg,#f2f4f6,#f2f4f6 6px,#e9edf0 6px 12px)}.xcal-cell.today .xcal-num{background:var(--accent);color:#fff;border-radius:999px;padding:0 .4rem}.xcal-cell.selected{outline:3px solid var(--accent);outline-offset:-3px;background:#e5f4ef;font-weight:600}.xcal-cell:focus-visible{outline-offset:1px;outline:3px solid #7ab8ff}.xcal-num{align-self:flex-start;font-size:.9rem}.xcal-tag{color:var(--muted);overflow-wrap:anywhere;font-size:.72rem;line-height:1.2}.xcal-tag.hol{color:#7a2b8f}.xcal-tag.ex{color:var(--accent);font-weight:600}.xcal-help{font-size:.85rem}.xcal-actions{border:1px solid var(--accent);background:#f7fbfa;border-radius:8px;gap:.8rem;margin:.8rem 0;padding:.8rem;display:grid}.xcal-actions h4{overflow-wrap:anywhere;margin:0}@media (width<=640px){.xcal-cell{min-height:3.2rem;padding:.15rem}.xcal-tag{font-size:.62rem}}.content:has(.agenda){max-width:80rem}.summary{margin:.2rem 0 .6rem;font-weight:600}.agenda-toolbar{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:.6rem;display:flex}.agenda-title{text-transform:none;flex:12rem;margin:0}.agenda-toolbar button[aria-pressed=true]{font-weight:600}.tg{background:var(--card);border:1px solid var(--line);border-radius:8px;overflow:hidden}.tg-head,.tg-body{grid-template-columns:3.2rem repeat(var(--days), minmax(5.5rem, 1fr));display:grid}.tg-head{border-bottom:1px solid var(--line);z-index:5;background:var(--card);position:sticky;top:0}.tg-dayhead{text-align:center;border-left:1px solid var(--line);flex-direction:column;align-items:center;gap:.1rem;padding:.35rem .3rem;display:flex}.tg-dayhead .tg-wd{color:var(--muted);text-transform:uppercase;font-size:.8rem}.tg-dayhead .tg-dn{font-size:1.15rem;font-weight:600}.tg-dayhead.today .tg-dn{background:var(--accent);color:#fff;border-radius:999px;padding:0 .5rem}.tg-hol{color:#7a2b8f;font-size:.72rem;line-height:1.2}.tg-closedlabel{color:var(--muted);font-size:.72rem}.tg-scroll{max-height:75vh;overflow:auto}.tg-head,.tg-body{min-width:min-content}.tg-body,.tg-hours{position:relative}.tg-hour{color:var(--muted);font-size:.72rem;position:absolute;right:.3rem;transform:translateY(-.5em)}.tg-hour:first-child{transform:none}.tg-col{border-left:1px solid var(--line);position:relative}.tg-col.today{background:#f7fbfa}.tg-line{border-top:1px solid #eceff2;position:absolute;left:0;right:0}.tg-line.half{border-top-style:dashed;border-top-color:#f1f3f5}.tg-closed{background:repeating-linear-gradient(135deg,#f2f4f6,#f2f4f6 6px,#e7ebee 6px 12px);position:absolute;left:0;right:0}.tg-now{z-index:3;pointer-events:none;border-top:2px solid #c0392b;position:absolute;left:0;right:0}.tg-now:after{content:"";background:#c0392b;border-radius:50%;width:8px;height:8px;position:absolute;top:-5px;right:-4px}.ev{z-index:2;text-align:left;border:1px solid;border-left-width:4px;border-radius:5px;padding:.1rem .3rem;font-size:.78rem;line-height:1.2;display:block;position:absolute;overflow:hidden}.ev .ev-who{font-weight:700}.ev-pending{color:#5c4400;background:#fdf3dc;border-color:#c9a227}.ev-confirmed{border-color:var(--accent);color:#064d42;background:#e5f4ef}.ev-cancelled{color:#7a1f16;background:#fbe4e1;border-color:#c0392b}.legend{color:var(--muted);flex-wrap:wrap;gap:.4rem 1.2rem;margin:.2rem 0 .6rem;padding:0;font-size:.85rem;list-style:none;display:flex}.legend li{align-items:center;gap:.4rem;display:flex}.legend-dot{border:1px solid;border-left-width:4px;border-radius:3px;width:14px;height:14px;display:inline-block}.legend-rem{background:#26479a;border:0;border-radius:50%;width:8px;height:8px}.ev-rem{background:#26479a;border-radius:50%;width:8px;height:8px;position:absolute;top:3px;right:3px}.ev:focus-visible,.chip:focus-visible{outline-offset:1px;z-index:4;outline:3px solid #7ab8ff}.mv{gap:2px;display:grid}.mv-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;display:grid}.mv-head div{text-align:center;color:var(--muted);font-size:.85rem;font-weight:600}.mv-cell{background:var(--card);border:1px solid var(--line);border-radius:6px;flex-direction:column;gap:.15rem;min-height:6.5rem;padding:.2rem;display:flex;overflow:hidden}.mv-cell.empty{background:0 0;border:0}.mv-cell.closed{background:repeating-linear-gradient(135deg,#f7f8f9,#f7f8f9 6px,#eef1f3 6px 12px)}.mv-num{background:0 0;border:0;border-radius:999px;align-self:flex-start;padding:.05rem .4rem;font-weight:600}.mv-cell.today .mv-num{background:var(--accent);color:#fff}.mv-hol{color:#7a2b8f;font-size:.72rem}.mv-closed{color:var(--muted);font-size:.72rem}.chip{text-align:left;white-space:nowrap;text-overflow:ellipsis;border:1px solid;border-left-width:4px;border-radius:4px;padding:.05rem .3rem;font-size:.75rem;overflow:hidden}.more{color:var(--accent);text-align:left;background:0 0;border:0;padding:.05rem .3rem;font-size:.75rem;text-decoration:underline}.dlg-backdrop{z-index:10;background:#141e2873;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.dlg{width:100%;max-width:28rem;max-height:90vh;margin:0;overflow:auto}.dlg-list{grid-template-columns:auto 1fr;gap:.3rem .8rem;margin:.4rem 0 1rem;display:grid}.dlg-list dt{font-weight:600}.dlg-list dd{overflow-wrap:anywhere;margin:0}@media (width<=699px){.tg-head,.tg-body{grid-template-columns:2.6rem repeat(var(--days), minmax(4.2rem, 1fr))}.mv-cell{min-height:4.5rem}.chip{font-size:.65rem}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.mv-cell:not(.empty){cursor:pointer}.mv-cell:not(.empty):not(.closed):hover{background:#f6faf8}.mv-cell button{cursor:pointer}.ev-block{color:#2b3a4a;background:#e9eef4;border-color:#5f7790}.ev-free{opacity:.85;background:#f7f9fb;border-style:dashed}.ev-conflict{outline-offset:-1px;outline:2px solid #c0392b}.ev-flag{color:#a12b2b;text-transform:uppercase;font-size:.68rem;font-weight:700;display:block}.ev.movable{cursor:grab;touch-action:none}.ev.dragging{opacity:.45}.ev-resize{cursor:ns-resize;height:10px;position:absolute;bottom:0;left:0;right:0}.ev-ghost{z-index:6;border:2px dashed var(--accent);pointer-events:none;color:#064d42;background:#0b6b5c1f;border-radius:5px;padding:.1rem .3rem;font-size:.75rem;font-weight:700;position:absolute;left:2px;right:2px}.tg-col{cursor:copy}.tg-allday{grid-template-columns:3.2rem repeat(var(--days), minmax(5.5rem, 1fr));border-bottom:1px solid var(--line);min-width:min-content;display:grid}.tg-allday-label{color:var(--muted);text-align:right;padding:.2rem;font-size:.68rem}.tg-allday-cell{border-left:1px solid var(--line);flex-direction:column;gap:2px;min-width:0;padding:2px;display:flex}.agenda-help{margin:.2rem 0 .5rem;font-size:.85rem}.toast{z-index:20;color:#fff;background:#1d2733;border-radius:8px;align-items:center;gap:.8rem;max-width:calc(100vw - 2rem);padding:.5rem .6rem .5rem 1rem;display:flex;position:fixed;bottom:1rem;left:50%;transform:translate(-50%);box-shadow:0 4px 16px #00000040}.toast button{color:#1d2733;background:#fff}.matches{flex-direction:column;gap:.25rem;display:flex}.matches button{text-align:left}.kind-switch{align-items:center;gap:1rem;display:flex}.badge.conflict{color:var(--danger);background:#fbe9e9;margin-left:.3rem}@media (width<=699px){.tg-allday{grid-template-columns:2.6rem repeat(var(--days), minmax(4.2rem, 1fr))}}.agenda-inline{z-index:7;margin:.3rem 0;position:sticky;top:0}.agenda-inline.warn{color:#5c4400;background:#fdf3dc}.brand-logo{width:auto;height:44px}.login-logo{width:auto;height:72px;margin:0 auto .25rem;display:block}.login-sub{text-align:center;color:var(--muted);margin:0 0 .5rem}
