:root {
  color-scheme: light;
  --paper:#fdf8f2; --white:#fffdf8; --ink:#1d3a2c; --muted:#465f52;
  --green:#1d3a2c; --leaf:#4a6356; --line:#dcd3c4; --gold:#f39c12;
  --meeting:#dbe9f4; --shoot:#fce4af; --publish:#dce9d6; --other:#e9e2ef;
  font-family: "Segoe UI", system-ui, sans-serif;
  color:var(--ink); background:var(--paper);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
button,input,textarea,select { font:inherit; }
button,a,input,textarea,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
a { color:inherit; }
:focus-visible { outline:3px solid #986318; outline-offset:3px; }
h1,h2,p { margin:0; }
h1,h2 { font-family:Georgia,serif; font-weight:400; }
h1 { font-size:clamp(2.55rem,6vw,4.15rem); line-height:1; letter-spacing:-.055em; }
h2 { font-size:1.65rem; letter-spacing:-.035em; }
button { border:1px solid var(--line); border-radius:9px; background:var(--white); color:var(--ink); padding:.6rem .9rem; min-height:42px; font-weight:650; }
button:hover { filter:brightness(.96); }
button:disabled { cursor:wait; opacity:.65; }
.primary { background:var(--gold); color:#282f22; border-color:transparent; padding:.7rem 1rem; }
.ghost { background:transparent; border-color:transparent; }
.top { display:flex; align-items:center; justify-content:space-between; gap:1rem; color:#fffdf4; background:var(--green); padding:1.05rem max(1rem,calc((100% - 1260px) / 2)); }
.brand-link { display:flex; align-items:center; gap:1rem; text-decoration:none; }
.wordmark { font-size:1.57rem; letter-spacing:.12em; line-height:.92; font-weight:850; display:inline-flex; flex-direction:column; gap:.37em; width:max-content; }
.wordmark span { font-size:.37em; letter-spacing:.31em; }
.brand-partner { display:flex; align-items:center; gap:.55rem; font-size:.85rem; white-space:nowrap; color:#e2e9da; }
.account { display:flex; align-items:center; gap:.55rem; white-space:nowrap; font-size:.85rem; }
.avatar { display:grid; place-items:center; border-radius:50%; width:33px; height:33px; background:#e0e9da; color:var(--green); font-weight:750; }
.account button { color:inherit; padding:.4rem .6rem; }
.nav { display:flex; gap:.5rem 1.75rem; background:var(--white); border-bottom:1px solid var(--line); padding:0 max(1rem,calc((100% - 1260px) / 2)); }
.nav a { padding:1rem .15rem .88rem; border-bottom:3px solid transparent; text-decoration:none; color:var(--muted); font-weight:650; }
.nav a[aria-current="page"] { border-color:#a47828; color:var(--ink); }
.workspace { width:min(1260px,calc(100% - 2rem)); margin:0 auto; padding:2.2rem 0 3.5rem; }
.page-head { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin:0 0 1.65rem; }
.page-head p { color:var(--muted); margin-top:.65rem; }
.eyebrow { display:block; font-size:.75rem; font-weight:750; letter-spacing:.13em; color:var(--leaf); margin-bottom:.7rem; }
.calendar-layout { display:grid; grid-template-columns:minmax(0,2.4fr) minmax(250px,1fr); align-items:start; gap:1.15rem; }
.panel { background:var(--white); border:1px solid var(--line); border-radius:15px; overflow:hidden; min-width:0; }
.panel-heading { display:flex; align-items:center; justify-content:space-between; padding:1rem; gap:.6rem; border-bottom:1px solid var(--line); }
.panel-heading h2 { text-transform:capitalize; }
.calendar-controls { display:flex; align-items:center; gap:.25rem; }
.calendar-controls button { padding:.35rem .6rem; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.weekday { text-align:center; border-bottom:1px solid var(--line); padding:.55rem 0; color:var(--muted); font-size:.8rem; font-weight:700; }
.day { border:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; height:clamp(62px,7vw,92px); min-width:0; display:flex; align-items:start; flex-direction:column; gap:.27rem; padding:.45rem; overflow:hidden; }
.day:nth-child(7n) { border-right:0; }
.day.outside { color:#69746b; background:#f2f2e9; }
.day.selected { box-shadow:inset 0 0 0 2px #657f61; background:#eef3e9; }
.day-num { min-width:1.65rem; padding:.08rem .2rem; text-align:center; font-size:.86rem; }
.day.today .day-num { background:var(--green); color:white; border-radius:1rem; }
.event-mini { width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; text-align:left; border-radius:4px; padding:.12rem .25rem; font-size:.72rem; }
.mini-list { display:grid; min-width:0; width:100%; gap:.2rem; }
.legend { display:flex; flex-wrap:wrap; gap:.45rem; padding:.85rem; }
.badge { display:inline-flex; width:max-content; max-width:100%; align-items:center; border-radius:999px; padding:.25rem .57rem; font-size:.76rem; font-weight:700; background:#edf0e6; color:#283b2c; }
.meeting { background:var(--meeting); } .shoot { background:var(--shoot); } .publish { background:var(--publish); } .other { background:var(--other); }
.agenda { padding:1rem; display:grid; gap:.7rem; }
.agenda h2 { text-transform:capitalize; }
.agenda .new-day { justify-self:start; }
.empty { color:var(--muted); padding:1.1rem; border:1px dashed #d9ddcf; border-radius:11px; overflow-wrap:anywhere; }
.item { border:1px solid var(--line); border-radius:11px; padding:.85rem; display:grid; gap:.45rem; overflow-wrap:anywhere; }
.item-title { font-size:1.05rem; font-weight:700; }
.meta { color:var(--muted); font-size:.87rem; }
.row-actions { display:flex; flex-wrap:wrap; gap:.45rem; align-items:center; }
.row-actions button,.row-actions a { font-size:.86rem; }
.row-actions a { padding:.55rem .1rem; font-weight:650; }
.cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr)); gap:1rem; }
.card { background:var(--white); border:1px solid var(--line); border-radius:13px; display:grid; gap:.65rem; padding:1.1rem; align-content:start; overflow-wrap:anywhere; }
.card h2 { font-size:1.52rem; }
.card .description { white-space:pre-wrap; }
.assignment { background:#eef2e8; padding:.65rem .75rem; border-radius:8px; display:grid; gap:.2rem; }
.assignment strong { font-size:.9rem; }
.tabs-filter { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1rem; }
.tabs-filter button[aria-pressed="true"] { color:white; background:var(--green); border-color:var(--green); }
.editor-page { max-width:920px; margin:auto; }
.editor-page .page-head { margin-top:1.1rem; }
.script-title { margin-bottom:1rem; }
#editor.ql-container { background:var(--white); font:inherit; min-height:310px; border-color:var(--line); border-radius:0 0 11px 11px; }
.ql-toolbar.ql-snow { background:#ecefe5; border-color:var(--line); border-radius:11px 11px 0 0; }
.ql-toolbar.ql-snow button { min-height:24px; }
.ql-editor { min-height:310px; padding:1.2rem; overflow-wrap:anywhere; line-height:1.65; }
.ql-editor p img { max-width:100%; max-height:600px; object-fit:contain; vertical-align:bottom; }
.editor-actions { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin-top:1rem; }
label { display:grid; gap:.4rem; color:var(--ink); font-weight:650; min-width:0; }
input,select,textarea { width:100%; min-width:0; background:var(--white); border:1px solid #aeb9ad; border-radius:8px; padding:.66rem .7rem; color:var(--ink); font-weight:400; }
textarea { resize:vertical; min-height:105px; }
dialog { width:min(520px,calc(100% - 1.4rem)); max-height:calc(100% - 1.4rem); border:1px solid var(--line); border-radius:16px; color:var(--ink); background:var(--white); padding:1.15rem; }
dialog::backdrop { background:#182b21a8; }
.modal-head,.modal-actions { display:flex; justify-content:space-between; gap:.55rem; align-items:center; }
.modal-actions { justify-content:flex-end; margin-top:.8rem; }
#fields { display:grid; gap:.85rem; margin-top:.85rem; }
.form-error { color:#9a3525; min-height:1.15em; overflow-wrap:anywhere; font-size:.88rem; margin-top:.35rem; }
.toast { position:fixed; bottom:1rem; right:1rem; left:auto; max-width:calc(100% - 2rem); z-index:3; background:var(--green); border-radius:9px; color:white; padding:.8rem 1rem; box-shadow:0 5px 24px #182b2133; }
.startup { padding:2rem; }
.login { min-height:100svh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.login-art { background:var(--green); color:#fff9e6; display:flex; flex-direction:column; justify-content:space-between; padding:clamp(1.6rem,6vw,6rem); min-height:320px; }
.login-art-copy span { color:#f6cf7b; font-size:.8rem; font-weight:750; letter-spacing:.14em; }
.login-art-copy p { font:400 clamp(2.5rem,5vw,5.5rem)/1 Georgia,serif; letter-spacing:-.055em; margin-top:.65rem; }
.login-form { align-self:center; width:min(400px,calc(100% - 3rem)); margin:2.8rem auto; display:grid; gap:1.1rem; }
.login-form .eyebrow { margin-bottom:0; }
.login-form h1 { margin-bottom:.45rem; }
@media (max-width:850px) { .calendar-layout { grid-template-columns:1fr; } }
@media (max-width:560px) {
  .top { padding:.7rem 1rem; } .account #user-name { display:none; } .brand-link { gap:.65rem; }
  .nav { justify-content:space-between; } .nav a { padding:.78rem .15rem; }
  .workspace { padding-top:1.4rem; width:calc(100% - 1.25rem); }
  .page-head { align-items:start; flex-wrap:wrap; gap:.75rem; margin-bottom:1rem; }
  .panel-heading { padding:.65rem; } .panel-heading h2 { font-size:1.35rem; }
  .day { height:56px; align-items:center; padding:.25rem; }
  .mini-list { display:flex; justify-content:center; gap:3px; }
  .event-mini { flex:0 0 7px; width:7px; height:7px; font-size:0; border-radius:50%; padding:0; }
  .event-mini.meeting { background:#739eb5; } .event-mini.shoot { background:#b37d1e; }
  .event-mini.publish { background:#648056; } .event-mini.other { background:#9874a8; }
  .login { grid-template-columns:1fr; } .login-art { min-height:210px; gap:1.7rem; }
  .login-art-copy p { font-size:2.65rem; } .login-form { margin:1.7rem auto; }
}
.button { display:inline-flex; min-height:42px; align-items:center; text-decoration:none; border-radius:9px; font-weight:650; }
.button:hover { filter:brightness(.96); }
.reference-list { margin-top:1.3rem; background:var(--white); border:1px solid var(--line); padding:.9rem 1rem; border-radius:10px; overflow-wrap:anywhere; }
.reference-list ul { margin:.55rem 0 0; padding-left:1.3rem; }
.ql-snow .ql-tooltip { z-index:1; left:0 !important; max-width:100%; white-space:normal; }
.panel-heading h2,.agenda h2 { text-transform:none; }
.panel-heading h2::first-letter,.agenda h2::first-letter { text-transform:uppercase; }
.ql-snow .ql-tooltip::before { content:"Enlace"; }
.ql-snow .ql-tooltip[data-mode=link]::before { content:"Pegá el enlace"; }
.ql-snow .ql-tooltip a.ql-action::after { content:"Editá"; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::after { content:"Guardá"; }
.ql-snow .ql-tooltip a.ql-remove::before { content:"Quitá"; }

@font-face {
  font-family: "Tenor Sans";
  src: url(tenor-sans.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
.top { color:var(--green); background:var(--paper); border-bottom:1px solid var(--line); }
.brand-logo { width:56px; height:46px; object-fit:contain; }
.wordmark { display:block; font:400 1.58rem/1 "Tenor Sans",sans-serif; letter-spacing:.025em; }
.brand-partner { color:var(--leaf); }
.nav a[aria-current="page"] { border-color:var(--gold); }
.primary { background:var(--green); color:var(--paper); border-radius:999px; }
h1,h2 { font-weight:700; }
.login-art { background:#efe8dd; color:var(--green); }
.login-logo { display:block; width:clamp(110px,19vw,210px); height:auto; }
.login-art-copy span { color:var(--leaf); }
.login-art-copy p { font-weight:700; }
@media(max-width:560px) {
  .brand-logo { width:43px; height:35px; }
  .wordmark { font-size:1.28rem; }
}
@media(max-width:370px) { .brand-logo { display:none; } }
