@font-face{
  font-family:"Space Grotesk";
  src:url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-style:normal;
  font-weight:300 700;
  font-display:swap;
}

:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --panel-2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted-2: rgba(255,255,255,.55);

  --accent: #6ee7ff;
  --accent-2: #a78bfa; /* morado */
  --accent-3: #34d399; /* verde */
  --danger: #fb7185;

  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --radius-sm: 14px;
  --ring: 0 0 0 6px rgba(110,231,255,.14);

  --maxw: 1100px;
  --font:"Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(167,139,250,.25), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, rgba(110,231,255,.18), transparent 55%),
    radial-gradient(800px 500px at 30% 110%, rgba(52,211,153,.10), transparent 60%),
    var(--bg);
}

html.tray-preopen body{
  padding-left:300px;
}
html.tray-preopen::before{
  content:"";
  position:fixed;
  inset:0 auto 0 0;
  z-index:79;
  width:300px;
  border-right:1px solid rgba(255,255,255,.12);
  background:rgba(11,16,32,.94);
  box-shadow:10px 0 28px rgba(0,0,0,.22);
}
html.theme-light.tray-preopen::before{
  border-right-color:var(--border);
  background:var(--panel);
  box-shadow:var(--shadow);
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }

.container{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 44px;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,.65);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  padding: 14px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand__mark{
  width: 36px; height: 36px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(110,231,255,.22), rgba(167,139,250,.18));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.brand__text--muted{ color: var(--muted); font-weight: 700; }
.topbar__nav{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  flex:0 0 auto;
}
.topbar__link{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}
.topbar__link:hover{
  color: var(--text);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.topbar__link--soon{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:default;
}
.topbar__link--soon:hover{
  color:var(--muted);
  border-color:transparent;
  background:transparent;
}
.topbar__soon{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:2px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.topbar-icon-btn{
  width:40px;
  height:40px;
  display:inline-grid;
  place-items:center;
  padding:0;
  border-radius:999px;
  border-color:rgba(255,255,255,.12);
  background:rgba(255,255,255,.055);
  color:var(--text);
  cursor:pointer;
}
.topbar-icon-btn svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.topbar-icon-btn:hover{
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.10);
  color:var(--text);
}
.hero{
  margin: 12px 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.hero h1{
  margin: 0 0 8px;
  font-size: clamp(22px, 4vw, 34px);
  letter-spacing: -0.6px;
}
.hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.section{ margin-top: 18px; }
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section__head h2{
  margin: 0;
  font-size: 18px;
  color: rgba(255,255,255,.9);
}
.section__hint{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 900px){
  .cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .cards-grid{ grid-template-columns: 1fr; }
}

.card{
  position: relative;
  display:flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px 15px;
  min-height: 96px;
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(110,231,255,.35);
  background: linear-gradient(180deg, rgba(110,231,255,.10), rgba(255,255,255,.03));
}
.card__media{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  height: 42px;
}
.card__icon{
  width: 42px;
  height: 42px;
  opacity: .95;
}
.card__body{
  flex: 1;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.card__title{
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height:1.25;
}
.card__desc{
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.35;
}
.card__arrow{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 12px;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.panel{
  margin-top: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel h1{ margin: 0 0 10px; font-size: 22px; }
.muted{ color: var(--muted); }

.list{
  margin: 10px 0 16px;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

.btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
}
.btn:hover{ border-color: rgba(110,231,255,.35); background: rgba(110,231,255,.08); }

.about-legal{
  margin:22px 0 18px;
  padding-top:20px;
  border-top:1px solid var(--border);
}
.about-legal__head{
  margin-bottom:12px;
}
.about-legal__eyebrow{
  margin:0 0 4px;
  color:var(--accent);
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}
.about-legal h2{
  margin:0 0 4px;
  font-size:18px;
}
.about-legal__head .muted{
  margin:0;
}
.legal-disclosure{
  border-top:1px solid var(--border);
}
.legal-disclosure:last-of-type{
  border-bottom:1px solid var(--border);
}
.legal-disclosure summary{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 4px;
  color:var(--text);
  font-weight:700;
  cursor:pointer;
  list-style:none;
}
.legal-disclosure summary::-webkit-details-marker{
  display:none;
}
.legal-disclosure summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
  border-radius:8px;
}
.legal-disclosure__hint{
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.legal-disclosure[open] .legal-disclosure__hint::before{
  content:"Cerrar";
}
.legal-disclosure[open] .legal-disclosure__hint{
  font-size:0;
}
.legal-disclosure[open] .legal-disclosure__hint::before{
  font-size:12px;
}
.legal-copy{
  max-width:78ch;
  padding:2px 4px 18px;
  color:var(--muted);
  line-height:1.65;
}
.legal-copy h3{
  margin:18px 0 5px;
  color:var(--text);
  font-size:15px;
}
.legal-copy p{
  margin:0 0 10px;
}
.legal-copy__notice{
  margin-top:16px !important;
  padding:12px 14px;
  border-left:3px solid var(--accent);
  background:rgba(110,231,255,.06);
  color:var(--text);
}
.about-back{
  margin-top:2px;
}
.about-contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:20px 4px 2px;
}
.about-contact h2{
  margin:0 0 4px;
}
.about-contact p{
  margin:0;
}

@media(max-width:520px){
  .legal-disclosure summary{
    min-height:48px;
  }
  .legal-copy{
    font-size:14px;
  }
  .about-contact{
    align-items:flex-start;
    flex-direction:column;
  }
}

.ai-professor-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:8px 0 16px;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.025);
}
.ai-professor-card__label{
  margin:0 0 2px;
  color:var(--accent);
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.ai-professor-card h3{
  margin:0 0 2px;
  font-size:14px;
}
.ai-professor-card p{
  margin:0;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.35;
}
.ai-professor-card__btn{
  flex:0 0 auto;
  min-height:30px;
  padding:5px 8px;
  gap:5px;
  border-color:transparent;
  background:transparent;
  color:var(--accent);
  font-size:12px;
  box-shadow:none;
}
.ai-professor-card__btn svg{
  width:15px;
  height:15px;
  stroke:currentColor;
}
.ai-professor-card__btn:hover{
  border-color:rgba(110,231,255,.18);
  background:rgba(110,231,255,.06);
}

.global-search{
  position: relative;
  width: min(420px, 42vw);
  flex:1 1 360px;
  margin-left: auto;
}
.global-search__label{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.global-search__input{
  width: 100%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  outline: none;
}
.global-search__input:focus{
  border-color: rgba(110,231,255,.45);
  box-shadow: var(--ring);
}
.global-search__input::placeholder{ color: var(--muted-2); }
.global-search__results{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 50;
  width: min(640px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(11,16,32,.96);
  box-shadow: var(--shadow);
}
.global-search__card{
  margin-bottom: 8px;
}
.global-search__card:last-child{ margin-bottom: 0; }
.global-search__meta{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.global-search__tag{
  flex: 0 0 auto;
  border: 1px solid rgba(110,231,255,.28);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.global-search__empty{
  margin: 0;
  padding: 10px;
  color: var(--muted);
}
.global-search mark{
  border-radius: 5px;
  background: rgba(110,231,255,.24);
  color: var(--text);
  padding: 0 2px;
}

.tray-trigger{
  width:42px;
  height:40px;
  display:inline-grid;
  place-items:center;
  cursor:pointer;
  font:inherit;
  color:var(--text);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
  margin-left:0;
  margin-right:8px;
}
.tray-trigger__bar{
  display:block;
  width:17px;
  height:2px;
  margin:2px 0;
  border-radius:999px;
  background:currentColor;
}
.tray-trigger:hover{
  color:var(--text);
  background:rgba(110,231,255,.10);
  border-color:rgba(110,231,255,.34);
}
.tray-shell{
  position:fixed;
  inset:0 auto 0 0;
  z-index:80;
  width:300px;
  pointer-events:none;
  transform:translateX(-100%);
}
.tray-transition-enabled .tray-shell{
  transition:transform .24s ease;
}
.tray-open .tray-shell{
  pointer-events:auto;
  transform:translateX(0);
}
.tray-open{
  padding-left:300px;
}
.tray-transition-enabled.tray-open,
.tray-transition-enabled:not(.tray-open){
  transition:padding-left .24s ease;
}
.tray-panel{
  height:100%;
  display:flex;
  flex-direction:column;
  border-right:1px solid rgba(255,255,255,.12);
  background:rgba(11,16,32,.94);
  box-shadow:10px 0 28px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
}
.tray-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.tray-kicker{
  margin:0 0 4px;
  color:var(--muted-2);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.tray-head h2{
  margin:0;
  font-size:18px;
}
.tray-close{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
  font:inherit;
  font-size:20px;
  line-height:1;
}
.tray-content{
  flex:1;
  overflow:auto;
  padding:10px;
}
.tray-accordion{
  border-bottom:1px solid rgba(255,255,255,.08);
}
.tray-accordion__trigger{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:0;
  background:transparent;
  color:var(--text);
  padding:13px 8px;
  font:inherit;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.tray-accordion__label{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  text-align:left;
}
.tray-accordion__label svg,
.tray-chevron svg{
  width:18px;
  height:18px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tray-accordion__label > svg{
  color:var(--muted-2);
}
.tray-accordion__trigger:hover{
  color:var(--accent);
}
.tray-chevron{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  color:var(--muted-2);
}
.tray-chevron svg{
  width:16px;
  height:16px;
  transition:transform .16s ease;
}
.tray-accordion.is-open .tray-chevron svg{
  transform:rotate(180deg);
}
.tray-accordion.is-open .tray-accordion__label > svg{
  color:var(--accent);
}
.tray-close{
  display:grid;
  place-items:center;
}
.tray-close svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tray-accordion__body{
  display:none;
  padding:0 4px 14px;
}
.tray-accordion.is-open .tray-accordion__body{
  display:block;
}
.tray-help,
.tray-empty{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.tray-field{
  display:grid;
  gap:7px;
  margin-bottom:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}
.tray-field input,
.tray-field textarea,
.tray-field select{
  width:100%;
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  min-height:44px;
  padding:11px 13px;
  font:inherit;
  font-size:13px;
  font-weight:750;
  outline:none;
  resize:vertical;
}
.tray-field input:focus,
.tray-field textarea:focus,
.tray-field select:focus{
  border-color:rgba(110,231,255,.42);
  box-shadow:var(--ring);
}
.tray-field select{
  appearance:none;
  text-overflow:ellipsis;
}
.tray-submit{
  width:100%;
  justify-content:center;
}
.agenda-board{
  position:fixed;
  z-index:83;
  left:auto;
  right:16px;
  top:72px;
  bottom:24px;
  width:min(960px, calc(100vw - 32px));
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px);
  transition:opacity .18s ease, transform .18s ease;
}
.agenda-open .agenda-board{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}
.agenda-board__panel{
  height:100%;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:rgba(11,16,32,.96);
  box-shadow:0 18px 54px rgba(0,0,0,.34);
  backdrop-filter:blur(18px);
}
.agenda-board__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 18px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.agenda-board__head h2{
  margin:2px 0 0;
  color:var(--text);
  font-size:20px;
  letter-spacing:0;
}
.agenda-layout{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) minmax(340px, .75fr);
}
.agenda-calendar{
  min-width:0;
  display:flex;
  flex-direction:column;
  padding:16px 18px 18px;
  border-right:1px solid rgba(255,255,255,.08);
}
.agenda-calendar__toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.agenda-calendar__toolbar h3,
.agenda-selected-day h3{
  margin:2px 0 0;
  color:var(--text);
  font-size:17px;
  line-height:1.28;
}
.agenda-calendar__nav{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  cursor:pointer;
}
.agenda-calendar__nav svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.agenda-calendar__nav:hover{
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.10);
}
.agenda-weekdays{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:6px;
  margin-bottom:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-align:center;
}
.agenda-calendar__grid{
  min-height:0;
  flex:1;
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  grid-auto-rows:minmax(78px, 1fr);
  gap:6px;
}
.agenda-day{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  padding:8px;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
}
.agenda-day:hover,
.agenda-day.is-selected{
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.10);
}
.agenda-day.is-today .agenda-day__number{
  color:var(--accent);
}
.agenda-day--empty{
  pointer-events:none;
  opacity:.25;
}
.agenda-day__number{
  font-size:12px;
  font-weight:900;
}
.agenda-day__items{
  display:grid;
  gap:3px;
}
.agenda-day__items span,
.agenda-day__items small{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-radius:6px;
  background:rgba(255,255,255,.07);
  color:var(--muted);
  padding:3px 5px;
  font-size:10px;
  font-weight:800;
}
.agenda-day__items span[class*="agenda-type-"]{
  color:var(--text);
}
.agenda-editor{
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:0;
}
.agenda-selected-day{
  padding:16px 18px 0;
}
.agenda-form{
  display:grid;
  gap:12px;
  padding:12px 18px 14px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.agenda-form__row{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.agenda-form__row--type{
  grid-template-columns:1fr;
}
.agenda-form .tray-field{
  margin-bottom:0;
}
.agenda-filter{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding:12px 18px 0;
}
.agenda-filter__btn{
  min-height:30px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:var(--muted);
  padding:6px 10px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.agenda-filter__btn:hover,
.agenda-filter__btn.is-active{
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.12);
  color:var(--text);
}
.agenda-list{
  display:grid;
  gap:8px;
  overflow:auto;
  padding:12px 18px 18px;
}
.agenda-item{
  position:relative;
  display:grid;
  gap:6px;
  padding:12px 40px 12px 14px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.045);
  border-left-width:4px;
}
.agenda-item__check{
  display:flex;
  align-items:flex-start;
  gap:8px;
  color:var(--text);
  font-size:13px;
  font-weight:750;
  line-height:1.35;
}
.agenda-item__check strong,
.agenda-item__check small{
  display:block;
}
.agenda-item__check small{
  margin-top:3px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
}
.agenda-item__check input{
  margin-top:2px;
  accent-color:var(--accent);
}
.agenda-item__meta{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.agenda-item__meta span{
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.agenda-type-badge{
  color:var(--text) !important;
}
.agenda-type-tarea{ --agenda-type-color:#6ee7ff; }
.agenda-type-parcial{ --agenda-type-color:#fb7185; }
.agenda-type-clase{ --agenda-type-color:#60a5fa; }
.agenda-type-entrega{ --agenda-type-color:#34d399; }
.agenda-type-estudio{ --agenda-type-color:#a78bfa; }
.agenda-type-recordatorio{ --agenda-type-color:#fbbf24; }
.agenda-type-examen{ --agenda-type-color:#fb7185; }
.agenda-type-trabajo{ --agenda-type-color:#34d399; }
.agenda-type-sesion-de-estudio{ --agenda-type-color:#a78bfa; }
.agenda-item[class*="agenda-type-"]{
  border-left-color:var(--agenda-type-color);
}
.agenda-type-badge[class*="agenda-type-"],
.agenda-mini-item b[class*="agenda-type-"],
.agenda-day__items span[class*="agenda-type-"]{
  border-color:color-mix(in srgb, var(--agenda-type-color) 34%, transparent);
  background:color-mix(in srgb, var(--agenda-type-color) 16%, transparent);
}
.agenda-item__remove{
  position:absolute;
  top:8px;
  right:8px;
}
.agenda-item.is-done{
  opacity:.66;
}
.agenda-item.is-done .agenda-item__check strong{
  text-decoration:line-through;
}
.agenda-mini-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.agenda-open-btn{
  margin-top:10px;
}
.agenda-mini-item{
  width:100%;
  display:grid;
  gap:3px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:9px 10px;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.agenda-mini-item span{
  font-size:12px;
  font-weight:800;
}
.agenda-mini-item small{
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.agenda-mini-item b{
  font-weight:900;
  padding:2px 5px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
}
.agenda-board{
  top:66px;
  bottom:18px;
  right:18px;
  width:min(1120px, calc(100vw - 36px));
}
.agenda-board__panel{
  border-radius:14px;
  background:#0b1020;
}
.agenda-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.agenda-toolbar__main,
.agenda-toolbar__actions,
.agenda-toolbar__nav{
  display:flex;
  align-items:center;
  gap:8px;
}
.agenda-toolbar h2{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.15;
  letter-spacing:0;
}
.agenda-toolbar__today,
.agenda-assistant-btn,
.agenda-widget-sync-btn,
.agenda-create-btn,
.agenda-save-btn{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:var(--text);
  padding:8px 12px;
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.agenda-create-btn,
.agenda-save-btn{
  border-color:rgba(110,231,255,.26);
  background:rgba(110,231,255,.12);
}
.agenda-create-btn svg,
.agenda-assistant-btn svg,
.agenda-widget-sync-btn svg,
.agenda-save-btn svg{
  width:15px;
  height:15px;
  fill:currentColor;
}
.agenda-toolbar__today:hover,
.agenda-assistant-btn:hover,
.agenda-widget-sync-btn:hover,
.agenda-create-btn:hover,
.agenda-save-btn:hover{
  border-color:rgba(110,231,255,.38);
  background:rgba(110,231,255,.16);
}
.agenda-save-btn:disabled{
  opacity:.48;
  cursor:not-allowed;
  border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
}
.agenda-layout{
  grid-template-columns:minmax(0, 1fr) 340px;
}
.agenda-form__row--type{
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
}
.agenda-form__row--type .tray-field:last-child{
  grid-column:1 / -1;
}
.agenda-form__row--time{
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
}
.agenda-calendar{
  min-height:0;
  padding:0;
  border-right:1px solid rgba(255,255,255,.10);
}
.agenda-weekdays{
  gap:0;
  margin:0;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.agenda-weekdays span{
  padding:10px 8px;
  border-right:1px solid rgba(255,255,255,.07);
}
.agenda-calendar__grid{
  gap:0;
  grid-auto-rows:minmax(92px, 1fr);
}
.agenda-day{
  border:0;
  border-right:1px solid rgba(255,255,255,.075);
  border-bottom:1px solid rgba(255,255,255,.075);
  border-radius:0;
  background:transparent;
  padding:7px;
}
.agenda-day:hover{
  background:rgba(255,255,255,.045);
}
.agenda-day.is-selected{
  background:rgba(110,231,255,.10);
  box-shadow:inset 0 0 0 1px rgba(110,231,255,.35);
}
.agenda-day.is-outside{
  background:rgba(255,255,255,.018);
  color:var(--muted-2);
}
.agenda-day__number{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:999px;
}
.agenda-day.is-today .agenda-day__number{
  background:var(--accent);
  color:#06111f;
}
.agenda-day__items{
  gap:4px;
}
.agenda-day__items > span,
.agenda-day__items > small{
  min-width:0;
}
.agenda-event-pill{
  min-width:0;
  display:flex;
  align-items:center;
  gap:5px;
  border:0 !important;
  border-radius:8px !important;
  padding:4px 6px !important;
  color:var(--text) !important;
}
.agenda-event-pill i{
  width:6px;
  height:6px;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--agenda-type-color);
}
.agenda-event-pill span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border:0;
  background:transparent;
  color:inherit;
  padding:0;
  font:inherit;
}
.agenda-editor{
  min-height:0;
  background:rgba(255,255,255,.025);
}
.agenda-selected-day{
  padding:16px 16px 0;
}
.agenda-selected-day h3{
  font-size:16px;
}
.agenda-form{
  margin:12px 16px 0;
  padding:12px;
  gap:9px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.04);
}
.agenda-form .tray-field{
  gap:5px;
  font-size:12px;
}
.agenda-form .tray-field input,
.agenda-form .tray-field textarea,
.agenda-form .tray-field select{
  min-height:40px;
  padding:9px 12px;
}
.agenda-form textarea{
  min-height:54px;
}
.agenda-save-btn{
  width:100%;
}
.agenda-save-btn span,
.agenda-assistant-btn span,
.agenda-create-btn span{
  white-space:nowrap;
}
.agenda-assistant-btn{
  border-color:rgba(167,139,250,.28);
  background:rgba(167,139,250,.10);
}
.agenda-widget-sync-btn{
  border-color:rgba(96,165,250,.28);
  background:rgba(96,165,250,.10);
}
.agenda-widget-sync-btn[hidden]{
  display:none;
}
.agenda-assistant-btn:hover{
  border-color:rgba(167,139,250,.42);
  background:rgba(167,139,250,.16);
}
.agenda-editor.is-assistant-open > :not(.agenda-assistant){
  display:none;
}
.agenda-assistant{
  min-height:0;
  overflow:auto;
  overflow-x:hidden;
  padding:18px 16px;
}
.agenda-assistant[hidden]{
  display:none;
}
.agenda-assistant__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.agenda-assistant__head h3{
  margin:2px 0 0;
  color:var(--text);
  font-size:18px;
  line-height:1.25;
}
.agenda-assistant__close{
  width:32px;
  height:32px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
}
.agenda-assistant__close:hover{
  border-color:rgba(167,139,250,.34);
  background:rgba(167,139,250,.10);
  color:var(--text);
}
.agenda-assistant__close svg{
  width:16px;
  height:16px;
  stroke-width:1.8;
}
.agenda-assistant__intro{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.agenda-assistant__form{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.agenda-assistant__form .tray-field{
  gap:5px;
  margin:0;
  font-size:12px;
}
.agenda-assistant__form textarea{
  min-height:112px;
  line-height:1.45;
}
.agenda-assistant__dates{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.agenda-assistant__dates .tray-field,
.agenda-assistant__dates input{
  min-width:0;
}
.agenda-assistant__hint{
  margin:-3px 0 0;
  color:var(--muted-2);
  font-size:11px;
  line-height:1.4;
}
.agenda-assistant__interpret,
.agenda-assistant__confirm{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid rgba(167,139,250,.34);
  border-radius:10px;
  background:rgba(167,139,250,.15);
  color:var(--text);
  padding:9px 12px;
  font:inherit;
  font-size:13px;
  font-weight:850;
  cursor:pointer;
}
.agenda-assistant__confirm.is-delete{
  border-color:rgba(248,113,113,.34);
  background:rgba(248,113,113,.12);
}
.agenda-assistant__confirm.is-delete:hover{
  border-color:rgba(248,113,113,.52);
  background:rgba(248,113,113,.18);
}
.agenda-assistant__interpret:hover,
.agenda-assistant__confirm:hover{
  border-color:rgba(167,139,250,.52);
  background:rgba(167,139,250,.21);
}
.agenda-assistant__interpret:disabled{
  opacity:.7;
  cursor:wait;
}
.agenda-assistant__interpret svg{
  width:16px;
  height:16px;
  stroke-width:1.6;
}
.agenda-assistant__status{
  margin-top:12px;
  border-radius:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  line-height:1.45;
}
.agenda-assistant__status:empty{
  display:none;
}
.agenda-assistant__status.is-error,
.agenda-assistant__status.is-success,
.agenda-assistant__status.is-info{
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.035);
}
.agenda-assistant__status.is-error{
  border-color:rgba(248,113,113,.28);
  color:#fca5a5;
}
.agenda-assistant__status.is-success{
  border-color:rgba(74,222,128,.28);
  color:#86efac;
}
.agenda-assistant__preview{
  margin-top:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.agenda-assistant__preview[hidden]{
  display:none;
}
.agenda-assistant__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 11px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.agenda-assistant__summary strong{
  color:var(--text);
  font-size:13px;
}
.agenda-assistant__summary span{
  color:var(--muted);
  font-size:11px;
}
.agenda-assistant__schedule-list{
  display:grid;
}
.agenda-assistant__schedule{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:9px 11px;
  border-bottom:1px solid rgba(255,255,255,.07);
  color:var(--muted);
  font-size:11px;
}
.agenda-assistant__schedule:last-child{
  border-bottom:0;
}
.agenda-assistant__schedule strong{
  min-width:0;
  overflow:hidden;
  color:var(--text);
  font-size:12px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.agenda-assistant__confirm{
  width:100%;
  margin-top:10px;
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.13);
}
.agenda-assistant__confirm[hidden]{
  display:none;
}
.agenda-assistant__privacy{
  margin:12px 0 0;
  color:var(--muted-2);
  font-size:11px;
  text-align:center;
}
.agenda-filter{
  padding:12px 16px 0;
}
.agenda-list{
  padding:12px 16px 16px;
}
.agenda-type-sesion-de-estudio{
  --agenda-type-color:#a78bfa;
}
.agenda-mini-item:hover{
  border-color:rgba(110,231,255,.26);
  background:rgba(110,231,255,.08);
}
.bandeja-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  flex-wrap:wrap;
}
.topic-professor-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:30px;
  padding:5px 8px;
  border:1px solid rgba(110,231,255,.22);
  border-radius:999px;
  background:rgba(110,231,255,.055);
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  line-height:1;
}
.topic-professor-btn svg{
  width:14px;
  height:14px;
  fill:currentColor;
}
.topic-professor-btn:hover{
  border-color:rgba(110,231,255,.42);
  background:rgba(110,231,255,.11);
}
.bandeja-mini-actions{
  display:flex;
  gap:6px;
  position:absolute;
  top:12px;
  right:12px;
  background:rgba(11,16,32,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:4px;
  backdrop-filter:blur(10px);
}
.bandeja-card-wrap{ position:relative; }
.topic-card.bandeja-card-wrap{
  padding-right:104px;
}
.topic-card.bandeja-card-wrap > :first-child{
  min-width:0;
}
.bandeja-action-btn{
  min-height:34px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:8px 10px;
  font:inherit;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.bandeja-action-btn.is-active{
  border-color:rgba(110,231,255,.45);
  background:rgba(110,231,255,.14);
}
.bandeja-checks{
  display:grid;
  gap:10px;
}
.bandeja-check{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.bandeja-check input{ accent-color: var(--accent); }
.bandeja-list{
  display:grid;
  gap:8px;
  margin-top:10px;
}
.subject-toggle{
  position:absolute;
  top:12px;
  right:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,16,32,.58);
  color:var(--text);
  border-radius:999px;
  padding:7px 10px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.subject-toggle:hover{
  border-color:rgba(110,231,255,.34);
  background:rgba(110,231,255,.12);
}

@media(max-width: 760px){
  .topbar{
    flex-wrap: wrap;
    gap: 10px;
  }
  .global-search{
    order: 3;
    width: 100%;
    margin-left: 0;
  }
  .global-search__results{
    left: 0;
    right: auto;
    width: 100%;
  }
  .bandeja-checks{
    grid-template-columns:1fr;
  }
  .agenda-form__row{
    grid-template-columns:1fr;
  }
  .agenda-board{
    left:10px;
    right:10px;
    top:14px;
    bottom:14px;
    width:auto;
    transform:translateY(8px);
  }
  .agenda-open .agenda-board{
    transform:translateY(0);
  }
  .agenda-board__panel{
    border-radius:16px;
  }
  .agenda-toolbar{
    align-items:flex-start;
    flex-wrap:wrap;
    gap:10px;
    padding:12px;
  }
  .agenda-toolbar__main{
    min-width:0;
    flex:1 1 100%;
    align-items:flex-start;
  }
  .agenda-toolbar__actions{
    width:100%;
    justify-content:space-between;
  }
  .agenda-toolbar h2{
    font-size:18px;
  }
  .agenda-toolbar__today,
  .agenda-assistant-btn,
  .agenda-widget-sync-btn,
  .agenda-create-btn{
    min-height:34px;
    padding:7px 10px;
  }
  .agenda-layout{
    display:flex;
    flex-direction:column;
    overflow-x:hidden;
    overflow-y:auto;
  }
  .agenda-widget-sync-btn span{
    display:none;
  }
  .agenda-calendar{
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:0;
  }
  .agenda-weekdays span{
    padding:8px 4px;
    font-size:10px;
  }
  .agenda-calendar__grid{
    grid-auto-rows:58px;
    flex:none;
  }
  .agenda-day{
    border-radius:0;
    padding:5px;
  }
  .agenda-event-pill{
    display:none;
  }
  .agenda-day__items small{
    display:inline-flex;
  }
  .agenda-editor{
    flex:none;
  }
  .agenda-board.is-assistant-open .agenda-calendar{
    display:none;
  }
  .agenda-board.is-assistant-open .agenda-editor{
    flex:1;
    overflow:auto;
  }
  .agenda-assistant{
    padding:14px;
  }
  .agenda-assistant__form{
    padding:12px;
  }
  .agenda-board__head,
  .agenda-form,
  .agenda-filter,
  .agenda-list{
    padding-left:14px;
    padding-right:14px;
  }
  .agenda-form__row--type{
    grid-template-columns:1fr;
  }
  .ai-professor-card{
    align-items:center;
    flex-direction:row;
  }
  .ai-professor-card__btn{
    width:auto;
    justify-content:center;
  }
  .tray-shell{
    width:min(320px, 80vw);
  }
  .tray-open{
    padding-left:0;
  }
  html.tray-preopen body{
    padding-left:0;
  }
  html.tray-preopen::before{
    display:none;
  }
}

.breadcrumbs{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  margin: 18px 0 12px;
  font-size: 14px;
}
.breadcrumbs a{ color: var(--muted); }
.breadcrumbs a:hover{ color: var(--text); }
.sep{ opacity: .5; }

.topic-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media(max-width: 700px){
  .topic-grid{ grid-template-columns: 1fr; }
}

.topic-card{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  transition: transform .15s ease, border-color .15s ease;
}
.topic-card:hover{
  transform: translateY(-2px);
  border-color: rgba(167,139,250,.35);
}
.topic-card__title{
  margin: 0;
  font-size: 15.5px;
}
.topic-card__meta{
  color: var(--muted);
  font-size: 12.5px;
}
.topic-card__go{
  width: 36px; height: 36px;
  border-radius: 14px;
  display:grid; place-items:center;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.loading-placeholder{
  min-height:84px;
  display:flex;
  align-items:center;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(255,255,255,.035);
  color:var(--muted);
  padding:14px;
  font-size:14px;
}

.topic-page-head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.topic-page-head h1{
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.5px;
}
.topic-page-head p{ margin: 6px 0 0; color: var(--muted); line-height: 1.5; }

.sections{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.empty-section{
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  padding: 14px;
}
.empty-section__title{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.empty-section__body{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.hr{
  height: 1px;
  background: rgba(255,255,255,.10);
  margin: 16px 0;
}

.footer{
  margin-top: 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 13px;
  padding-top: 14px;
}
.footer__dot{ opacity: .6; }

kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 2px 8px;
  border-radius: 8px;
  color: rgba(255,255,255,.86);
}
/* ===== Categorías de recursos ===== */

.resource-categories{
  display:grid;
  gap:14px;
}

.resource-card{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:18px;
  border-radius:var(--radius);

  border:1px solid rgba(255,255,255,.10);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.06),
      rgba(255,255,255,.03)
    );

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;

  cursor:pointer;
}

.resource-card:hover{
  transform:translateY(-2px);

  border-color:rgba(110,231,255,.35);

  background:
    linear-gradient(
      180deg,
      rgba(110,231,255,.08),
      rgba(255,255,255,.03)
    );
}

.resource-card h3{
  margin:0 0 6px;
}

.resource-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.resource-card span{
  font-size:24px;
  opacity:.8;
}
.video-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap:20px;
}

.video-card{
  display:block;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  transition:.2s;
}

.video-card:hover{
  transform:translateY(-3px);
  border-color:rgba(110,231,255,.4);
}

.video-card img{
  width:100%;
  display:block;
}

.video-card__content{
  padding:16px;
}

.video-card__content h3{
  margin:0 0 8px;
}

.video-card__content p{
  margin:0;
  color:var(--muted);
}
/* ===== PDFs ===== */

.pdf-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.pdf-card{
  display:block;
  overflow:hidden;

  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);

  background:rgba(255,255,255,.04);

  transition:.2s;
}

.pdf-card:hover{
  transform:translateY(-3px);
  border-color:rgba(110,231,255,.4);
}

.pdf-preview{
  height:220px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:32px;
  font-weight:700;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.03)
    );
}

.pdf-card__content{
  padding:16px;
}

.pdf-card__content h3{
  margin:0 0 8px;
}

.pdf-card__content p{
  margin:0;
  color:var(--muted);
}
/* ===== Herramientas ===== */

.tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}

.tool-card{
  display:block;
  overflow:hidden;

  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);

  background:rgba(255,255,255,.04);

  transition:.2s;
}

.tool-card:hover{
  transform:translateY(-3px);
  border-color:rgba(110,231,255,.4);
}

.tool-preview{
  height:220px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:64px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.08),
      rgba(255,255,255,.03)
    );
}

.tool-card__content{
  padding:16px;
}

.tool-card__content h3{
  margin:0 0 8px;
}

.tool-card__content p{
  margin:0;
  color:var(--muted);
}
.video-card{
  display:block;
  overflow:hidden;
  text-decoration:none;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  transition:.2s;
}

.video-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.25);
}

.video-card img{
  width:100%;
  display:block;
  aspect-ratio:16/9;
  object-fit:cover;
}

.video-card__body{
  padding:14px;
}

.video-card__title{
  margin:0;
  font-size:1rem;
  font-weight:600;
}

/* ===== Cierre visual ===== */

.card,
.topic-card,
.resource-card,
.video-card,
.pdf-card,
.tool-card,
.bandeja-check{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
  box-shadow:0 12px 34px rgba(0,0,0,.20);
}

.card:hover,
.topic-card:hover,
.resource-card:hover,
.video-card:hover,
.pdf-card:hover,
.tool-card:hover{
  transform:translateY(-2px);
  border-color:rgba(110,231,255,.34);
  background:linear-gradient(180deg, rgba(110,231,255,.095), rgba(255,255,255,.032));
}

.topic-card,
.resource-card{
  min-height:84px;
}

.resource-categories{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.video-grid,
.pdf-grid,
.tool-grid{
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}

.video-card{
  color:var(--text);
}

.video-card__body,
.pdf-card__content,
.tool-card__content{
  padding:14px;
}

.video-card__title{
  line-height:1.35;
}

.bandeja-mini-actions{
  background:rgba(11,16,32,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius:999px;
  padding:4px;
  backdrop-filter:blur(10px);
}

.bandeja-action-btn{
  min-height:34px;
  line-height:1;
}

.bandeja-list-card{
  align-items:flex-start;
}

@media(max-width:900px){
  .resource-categories{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .container{
    width:min(var(--maxw), calc(100% - 24px));
    padding-top:16px;
  }

  .section__head{
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }

  .topbar__nav{
    gap:8px;
  }

  .topbar__link{
    padding:9px 10px;
  }

  .tray-trigger{
    order:0;
    margin-left:0;
    margin-right:0;
  }

  .global-search__tag{
    white-space:normal;
    text-align:right;
  }
}

/* ===== Anti-flash tema claro =====
   El CSS base original nace oscuro. Estas reglas fuerzan que el tema claro
   pinte claro desde el primer CSS cargado, antes de cualquier script tardio. */
html.theme-light{
  --bg:#edf1f5 !important;
  --panel:#f7f9fb !important;
  --panel-2:#e8edf3 !important;
  --border:#d2dae5 !important;
  --text:#263244 !important;
  --muted:#657387 !important;
  --muted-2:#8795a8 !important;
  --accent:#1a73e8 !important;
  --accent-2:#34a853 !important;
  --accent-3:#fbbc04 !important;
  --danger:#d93025 !important;
  --shadow:0 10px 30px rgba(15,23,42,.08) !important;
  --ring:0 0 0 4px rgba(26,115,232,.14) !important;
  color-scheme:light;
}

html.theme-light body{
  color:var(--text) !important;
  background:
    radial-gradient(900px 420px at 15% -15%, rgba(26,115,232,.055), transparent 60%),
    radial-gradient(760px 360px at 95% -10%, rgba(52,168,83,.04), transparent 55%),
    var(--bg) !important;
}

html.theme-light .topbar{
  background:rgba(247,249,251,.94) !important;
  border-bottom-color:rgba(196,207,220,.9) !important;
  box-shadow:0 1px 2px rgba(15,23,42,.04) !important;
}

html.theme-light .hero,
html.theme-light .panel,
html.theme-light .card,
html.theme-light .topic-card,
html.theme-light .resource-card,
html.theme-light .video-card,
html.theme-light .pdf-card,
html.theme-light .tool-card,
html.theme-light .empty-section,
html.theme-light .global-search__results,
html.theme-light .ai-professor-card,
html.theme-light .bandeja-check,
html.theme-light .agenda-board__panel,
html.theme-light .agenda-item,
html.theme-light .agenda-mini-item,
html.theme-light .agenda-day{
  color:var(--text) !important;
  background:var(--panel) !important;
  border-color:var(--border) !important;
  box-shadow:var(--shadow) !important;
}

html.theme-light .hero h1,
html.theme-light .panel h1,
html.theme-light .section__head h2,
html.theme-light .topic-page-head h1,
html.theme-light .card__title,
html.theme-light .topic-card__title,
html.theme-light .video-card__title,
html.theme-light .resource-card h3,
html.theme-light .pdf-card__content h3,
html.theme-light .tool-card__content h3,
html.theme-light .brand,
html.theme-light .topbar__link,
html.theme-light .btn{
  color:var(--text) !important;
}

html.theme-light .hero p,
html.theme-light .section__hint,
html.theme-light .muted,
html.theme-light .card__desc,
html.theme-light .topic-card__meta,
html.theme-light .global-search__meta,
html.theme-light .tray-help,
html.theme-light .tray-empty,
html.theme-light .resource-card p,
html.theme-light .video-card__content p,
html.theme-light .pdf-card__content p,
html.theme-light .tool-card__content p,
html.theme-light .breadcrumbs,
html.theme-light .breadcrumbs a{
  color:var(--muted) !important;
}

html.theme-light .global-search__input,
html.theme-light .tray-field input,
html.theme-light .tray-field textarea,
html.theme-light .tray-field select{
  background:var(--panel-2) !important;
  border-color:transparent !important;
  color:var(--text) !important;
}

html.theme-light .tray-panel,
html.theme-light .bandeja-mini-actions,
html.theme-light .subject-toggle,
html.theme-light .bandeja-action-btn,
html.theme-light .tray-close,
html.theme-light .agenda-filter__btn,
html.theme-light .agenda-calendar__nav,
html.theme-light .topbar-icon-btn{
  background:var(--panel) !important;
  border-color:var(--border) !important;
  color:var(--text) !important;
  box-shadow:var(--shadow) !important;
}

html.theme-light .agenda-filter__btn.is-active,
html.theme-light .agenda-filter__btn:hover,
html.theme-light .agenda-mini-item:hover,
html.theme-light .agenda-day:hover,
html.theme-light .agenda-day.is-selected,
html.theme-light .topbar-icon-btn:hover{
  border-color:rgba(26,115,232,.28) !important;
  background:rgba(26,115,232,.08) !important;
}

html.theme-light .agenda-calendar{
  background:var(--panel) !important;
}

html.theme-light .agenda-board__panel{
  background:var(--panel) !important;
}

html.theme-light .agenda-editor{
  background:var(--panel-2) !important;
}

html.theme-light .agenda-weekdays,
html.theme-light .agenda-calendar,
html.theme-light .agenda-day{
  border-color:var(--border) !important;
}

html.theme-light .agenda-day{
  background:transparent !important;
  box-shadow:none !important;
}

html.theme-light .agenda-day.is-outside{
  background:var(--panel-2) !important;
  color:var(--muted) !important;
}

html.theme-light .agenda-day.is-today .agenda-day__number{
  background:var(--accent) !important;
  color:#fff !important;
}

html.theme-light .agenda-event-pill,
html.theme-light .agenda-type-badge,
html.theme-light .agenda-mini-item b{
  color:var(--text) !important;
}

/* ===== Pomodoro ===== */
.pomodoro-top-btn{
  position:relative;
}
.pomodoro-top-btn.is-running::after{
  content:"";
  position:absolute;
  top:5px;
  right:5px;
  width:7px;
  height:7px;
  border:2px solid #0b1020;
  border-radius:999px;
  background:var(--accent-3);
}
.pomodoro-menu{
  --pomodoro-top:72px;
  --pomodoro-right:16px;
  position:fixed;
  z-index:84;
  top:var(--pomodoro-top);
  right:var(--pomodoro-right);
  width:min(370px, calc(100vw - 20px));
  max-height:calc(100vh - var(--pomodoro-top) - 12px);
  opacity:0;
  pointer-events:none;
  transform:translateY(-7px) scale(.985);
  transform-origin:top right;
  transition:opacity .16s ease, transform .16s ease;
}
.pomodoro-open .pomodoro-menu{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.pomodoro-menu__panel{
  --pomodoro-color:var(--accent);
  max-height:inherit;
  overflow:auto;
  padding:16px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:rgba(11,16,32,.97);
  box-shadow:0 20px 54px rgba(0,0,0,.38);
  color:var(--text);
  backdrop-filter:blur(18px);
  scrollbar-width:thin;
}
.pomodoro-menu__panel[data-mode="short"]{
  --pomodoro-color:var(--accent-3);
}
.pomodoro-menu__panel[data-mode="long"]{
  --pomodoro-color:var(--accent-2);
}
.pomodoro-head,
.pomodoro-head__actions,
.pomodoro-controls,
.pomodoro-summary,
.pomodoro-switch{
  display:flex;
  align-items:center;
}
.pomodoro-head{
  justify-content:space-between;
  gap:14px;
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.pomodoro-menu.is-dragging .pomodoro-head{
  cursor:grabbing;
}
.pomodoro-menu.is-dragging{
  transition:none;
}
.pomodoro-head h2{
  margin:2px 0 0;
  font-size:18px;
  line-height:1.25;
  letter-spacing:0;
}
.pomodoro-head__actions{
  gap:6px;
}
.pomodoro-icon-btn,
.pomodoro-secondary-btn{
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.05);
  color:var(--muted);
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.pomodoro-icon-btn{
  width:34px;
  height:34px;
}
.pomodoro-icon-btn[hidden]{
  display:none;
}
.pomodoro-secondary-btn{
  width:42px;
  height:42px;
  flex:0 0 auto;
}
.pomodoro-icon-btn svg,
.pomodoro-secondary-btn svg{
  width:17px;
  height:17px;
  fill:currentColor;
}
.pomodoro-icon-btn:hover,
.pomodoro-icon-btn.is-active,
.pomodoro-secondary-btn:hover{
  border-color:color-mix(in srgb, var(--pomodoro-color) 42%, transparent);
  background:color-mix(in srgb, var(--pomodoro-color) 12%, transparent);
  color:var(--text);
}
.pomodoro-modes{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:4px;
  margin-top:16px;
  padding:4px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  background:rgba(255,255,255,.035);
}
.pomodoro-mode{
  min-width:0;
  min-height:34px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  padding:7px 8px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.pomodoro-mode:hover{
  color:var(--text);
}
.pomodoro-mode.is-active{
  background:color-mix(in srgb, var(--pomodoro-color) 14%, transparent);
  color:var(--text);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--pomodoro-color) 30%, transparent);
}
.pomodoro-timer{
  position:relative;
  width:220px;
  height:220px;
  margin:16px auto 12px;
}
.pomodoro-ring{
  width:100%;
  height:100%;
  transform:rotate(-90deg);
}
.pomodoro-ring circle{
  fill:none;
  stroke-width:8;
}
.pomodoro-ring__track{
  stroke:rgba(255,255,255,.085);
}
.pomodoro-ring__progress{
  stroke:var(--pomodoro-color);
  stroke-linecap:round;
  stroke-dasharray:603.19;
  stroke-dashoffset:603.19;
  transition:stroke-dashoffset .12s linear, stroke .2s ease;
}
.pomodoro-time{
  position:absolute;
  inset:0;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:4px;
}
.pomodoro-time strong{
  font-size:44px;
  line-height:1;
  letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.pomodoro-time strong.is-long{
  font-size:34px;
}
.pomodoro-time strong.is-very-long{
  font-size:25px;
}
.pomodoro-time span{
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.pomodoro-task{
  display:grid;
  gap:6px;
  margin:0 2px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.pomodoro-task input,
.pomodoro-duration input{
  width:100%;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:rgba(255,255,255,.055);
  color:var(--text);
  font:inherit;
  outline:none;
}
.pomodoro-task input{
  min-height:42px;
  padding:10px 12px;
}
.pomodoro-task input:focus,
.pomodoro-duration input:focus{
  border-color:color-mix(in srgb, var(--pomodoro-color) 50%, transparent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--pomodoro-color) 12%, transparent);
}
.pomodoro-controls{
  justify-content:center;
  gap:10px;
  margin-top:14px;
}
.pomodoro-start-btn{
  min-width:150px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid color-mix(in srgb, var(--pomodoro-color) 58%, transparent);
  border-radius:12px;
  background:var(--pomodoro-color);
  color:#06111f;
  padding:10px 18px;
  font:inherit;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  transition:filter .15s ease, transform .15s ease;
}
.pomodoro-start-btn:hover{
  filter:brightness(1.06);
}
.pomodoro-start-btn:active{
  transform:translateY(1px);
}
.pomodoro-icon-btn:focus-visible,
.pomodoro-secondary-btn:focus-visible,
.pomodoro-mode:focus-visible,
.pomodoro-start-btn:focus-visible,
.pomodoro-task input:focus-visible,
.pomodoro-duration input:focus-visible{
  outline:2px solid var(--pomodoro-color);
  outline-offset:2px;
}
.pomodoro-start-btn svg{
  width:17px;
  height:17px;
  fill:currentColor;
}
.pomodoro-summary{
  justify-content:space-between;
  gap:12px;
  margin-top:15px;
  padding:11px 12px;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.pomodoro-summary strong{
  min-width:27px;
  min-height:27px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:color-mix(in srgb, var(--pomodoro-color) 14%, transparent);
  color:var(--text);
}
.pomodoro-settings{
  margin-top:14px;
  padding:13px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:13px;
  background:rgba(255,255,255,.035);
}
.pomodoro-settings[hidden]{
  display:none;
}
.pomodoro-settings__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
}
.pomodoro-duration{
  min-width:0;
  display:grid;
  gap:5px;
  color:var(--muted);
  font-size:11px;
  font-weight:750;
}
.pomodoro-duration__input{
  position:relative;
}
.pomodoro-duration input{
  min-height:38px;
  padding:8px 30px 8px 9px;
  font-weight:800;
}
.pomodoro-duration small{
  position:absolute;
  top:50%;
  right:8px;
  color:var(--muted-2);
  font-size:10px;
  pointer-events:none;
  transform:translateY(-50%);
}
.pomodoro-switch{
  gap:9px;
  margin-top:12px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  line-height:1.3;
}
.pomodoro-switch input{
  width:16px;
  height:16px;
  flex:0 0 auto;
  accent-color:var(--pomodoro-color);
}

html.theme-light .pomodoro-top-btn.is-running::after{
  border-color:#fff;
}
html.theme-light .pomodoro-menu__panel{
  background:rgba(247,249,251,.98);
  border-color:var(--border);
  box-shadow:0 18px 48px rgba(15,23,42,.18);
}
html.theme-light .pomodoro-icon-btn,
html.theme-light .pomodoro-secondary-btn,
html.theme-light .pomodoro-modes,
html.theme-light .pomodoro-settings,
html.theme-light .pomodoro-task input,
html.theme-light .pomodoro-duration input{
  border-color:var(--border);
  background:var(--panel-2);
  color:var(--text);
}
html.theme-light .pomodoro-ring__track{
  stroke:#e8edf4;
}
html.theme-light .pomodoro-summary{
  border-color:var(--border);
}

@media(max-width:760px){
  .pomodoro-menu{
    right:10px;
    width:min(370px, calc(100vw - 20px));
    max-height:calc(100vh - var(--pomodoro-top) - 10px);
  }
  .pomodoro-menu__panel{
    padding:14px;
    border-radius:14px;
  }
  .pomodoro-head{
    cursor:default;
    touch-action:auto;
  }
  .pomodoro-timer{
    width:194px;
    height:194px;
    margin-top:13px;
  }
  .pomodoro-time strong{
    font-size:39px;
  }
  .pomodoro-settings__grid{
    grid-template-columns:1fr;
  }
}

@media(prefers-reduced-motion:reduce){
  .pomodoro-menu,
  .pomodoro-ring__progress,
  .pomodoro-start-btn{
    transition:none;
  }
}

/* Configuracion libre de sesiones por bloques */
.pomodoro-menu__panel[data-phase="break"]{
  --pomodoro-color:var(--accent-3);
}
.pomodoro-config{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:8px;
  margin-top:16px;
}
.pomodoro-number-control{
  min-width:0;
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  text-align:center;
}
.pomodoro-number-control > small{
  min-height:13px;
  color:var(--muted-2);
  font-size:10px;
  font-weight:750;
}
.pomodoro-stepper{
  min-width:0;
  display:grid;
  grid-template-columns:30px minmax(34px, 1fr) 30px;
  align-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  background:rgba(255,255,255,.045);
}
.pomodoro-stepper button{
  width:30px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.pomodoro-stepper button:hover{
  background:color-mix(in srgb, var(--pomodoro-color) 13%, transparent);
  color:var(--text);
}
.pomodoro-stepper button svg{
  width:15px;
  height:15px;
  fill:currentColor;
}
.pomodoro-stepper input{
  min-width:0;
  width:100%;
  height:38px;
  border:0;
  border-right:1px solid rgba(255,255,255,.08);
  border-left:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:transparent;
  color:var(--text);
  padding:0 3px;
  font:inherit;
  font-size:13px;
  font-weight:900;
  text-align:center;
  outline:none;
  appearance:textfield;
}
.pomodoro-stepper input::-webkit-inner-spin-button,
.pomodoro-stepper input::-webkit-outer-spin-button{
  margin:0;
  appearance:none;
}
.pomodoro-stepper:focus-within{
  border-color:color-mix(in srgb, var(--pomodoro-color) 50%, transparent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--pomodoro-color) 12%, transparent);
}
.pomodoro-cycle-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.pomodoro-cycle-status strong{
  color:var(--pomodoro-color);
  font-size:11px;
  text-transform:uppercase;
}
.pomodoro-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:13px;
}
.pomodoro-options .pomodoro-switch{
  min-width:0;
  align-items:flex-start;
  margin-top:0;
  padding:9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.025);
}
.pomodoro-options .pomodoro-switch span{
  overflow-wrap:anywhere;
}
html.theme-light .pomodoro-stepper,
html.theme-light .pomodoro-cycle-status,
html.theme-light .pomodoro-options .pomodoro-switch{
  border-color:var(--border);
  background:var(--panel-2);
}
html.theme-light .pomodoro-stepper input{
  border-color:var(--border);
  color:var(--text);
}

@media(max-width:420px){
  .pomodoro-config{
    gap:6px;
  }
  .pomodoro-stepper{
    grid-template-columns:27px minmax(30px, 1fr) 27px;
  }
  .pomodoro-stepper button{
    width:27px;
  }
  .pomodoro-options{
    grid-template-columns:1fr;
  }
  .pomodoro-time strong.is-long{
    font-size:31px;
  }
  .pomodoro-time strong.is-very-long{
    font-size:23px;
  }
}

/* Selector de rueda y sonidos del temporizador */
.pomodoro-config{
  align-items:start;
  margin-top:12px;
}
.pomodoro-wheel-control{
  min-width:0;
  display:grid;
  grid-template-rows:24px 15px 34px 15px 24px;
  align-items:center;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 30%, transparent 70%, rgba(255,255,255,.055));
  touch-action:pan-x;
  user-select:none;
}
.pomodoro-wheel-control button{
  width:100%;
  height:24px;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--muted-2);
  cursor:pointer;
}
.pomodoro-wheel-control button:hover{
  background:color-mix(in srgb, var(--pomodoro-color) 12%, transparent);
  color:var(--text);
}
.pomodoro-wheel-control button svg{
  width:15px;
  height:15px;
  fill:currentColor;
}
.pomodoro-wheel-control > small{
  display:block;
  color:var(--muted-2);
  font-size:10px;
  font-weight:750;
  line-height:15px;
  text-align:center;
  opacity:.72;
}
.pomodoro-wheel-control input{
  min-width:0;
  width:100%;
  height:34px;
  border:0;
  border-top:1px solid rgba(255,255,255,.09);
  border-bottom:1px solid rgba(255,255,255,.09);
  border-radius:0;
  background:color-mix(in srgb, var(--pomodoro-color) 8%, transparent);
  color:var(--text);
  padding:0 4px;
  font:inherit;
  font-size:15px;
  font-weight:900;
  text-align:center;
  outline:none;
  appearance:textfield;
}
.pomodoro-wheel-control input::-webkit-inner-spin-button,
.pomodoro-wheel-control input::-webkit-outer-spin-button{
  margin:0;
  appearance:none;
}
.pomodoro-wheel-control:focus-within{
  border-color:color-mix(in srgb, var(--pomodoro-color) 48%, transparent);
  box-shadow:0 0 0 4px color-mix(in srgb, var(--pomodoro-color) 11%, transparent);
}
.pomodoro-start-btn.is-alarm{
  border-color:rgba(251,113,133,.58);
  background:#fb7185;
  color:#24070d;
}
.pomodoro-options--single{
  grid-template-columns:1fr;
}
.pomodoro-options--single .pomodoro-switch{
  justify-content:center;
}
.pomodoro-sound-toggle{
  width:100%;
  min-height:42px;
  display:grid;
  grid-template-columns:20px 1fr 18px;
  align-items:center;
  gap:9px;
  margin-top:12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  padding:9px 11px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}
.pomodoro-sound-toggle:hover,
.pomodoro-sound-toggle.is-open{
  border-color:color-mix(in srgb, var(--pomodoro-color) 34%, transparent);
  background:color-mix(in srgb, var(--pomodoro-color) 8%, transparent);
  color:var(--text);
}
.pomodoro-sound-toggle svg{
  width:17px;
  height:17px;
  fill:currentColor;
}
.pomodoro-sound-toggle svg:last-child{
  transition:transform .16s ease;
}
.pomodoro-sound-toggle.is-open svg:last-child{
  transform:rotate(180deg);
}
.pomodoro-sound-panel{
  display:grid;
  gap:12px;
  margin-top:8px;
  padding:12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.pomodoro-sound-panel[hidden]{
  display:none;
}
.pomodoro-sound-row{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:end;
  gap:9px;
}
.pomodoro-sound-row label,
.pomodoro-volume{
  min-width:0;
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.pomodoro-sound-row select{
  width:100%;
  min-height:38px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:8px 10px;
  font:inherit;
  font-size:12px;
  font-weight:800;
  outline:none;
}
.pomodoro-ambient-btn{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid color-mix(in srgb, var(--pomodoro-color) 34%, transparent);
  border-radius:10px;
  background:color-mix(in srgb, var(--pomodoro-color) 10%, transparent);
  color:var(--text);
  padding:8px 10px;
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.pomodoro-ambient-btn.is-playing{
  background:color-mix(in srgb, var(--pomodoro-color) 18%, transparent);
}
.pomodoro-ambient-btn svg{
  width:14px;
  height:14px;
  fill:currentColor;
}
.pomodoro-volume input{
  width:100%;
  accent-color:var(--pomodoro-color);
}
.pomodoro-now-playing{
  min-height:14px;
  margin:0;
  color:var(--pomodoro-color);
  font-size:11px;
  font-weight:800;
}
.pomodoro-spotify-player{
  grid-column:1 / -1;
  min-width:0;
}
.pomodoro-spotify-player[hidden],
.pomodoro-volume[hidden],
.pomodoro-ambient-btn[hidden]{
  display:none;
}
.pomodoro-spotify-player iframe{
  display:block;
  width:100%;
  height:152px;
  border:0;
  border-radius:10px;
}
html.theme-light .pomodoro-wheel-control,
html.theme-light .pomodoro-sound-toggle,
html.theme-light .pomodoro-sound-panel,
html.theme-light .pomodoro-sound-row select{
  border-color:var(--border);
  background:var(--panel-2);
  color:var(--text);
}
html.theme-light .pomodoro-wheel-control input{
  border-color:var(--border);
  color:var(--text);
}

@media(max-width:420px){
  .pomodoro-config{
    gap:7px;
  }
  .pomodoro-wheel-control{
    grid-template-rows:22px 14px 32px 14px 22px;
  }
  .pomodoro-wheel-control button{
    height:22px;
  }
  .pomodoro-sound-row{
    grid-template-columns:1fr;
  }
}

/* Vista compacta del temporizador */
.pomodoro-menu__panel{
  padding:12px;
}
.pomodoro-head h2{
  font-size:17px;
}
.pomodoro-cycle-status{
  margin-top:7px;
  padding:6px 9px;
}
.pomodoro-timer{
  width:160px;
  height:160px;
  margin:7px auto 4px;
}
.pomodoro-time strong{
  font-size:36px;
}
.pomodoro-config{
  margin-top:6px;
}
.pomodoro-number-control{
  gap:3px;
}
.pomodoro-wheel-control{
  grid-template-rows:18px 11px 28px 11px 18px;
}
.pomodoro-wheel-control button{
  height:18px;
}
.pomodoro-wheel-control button svg{
  width:13px;
  height:13px;
}
.pomodoro-wheel-control > small{
  line-height:11px;
}
.pomodoro-wheel-control input{
  height:28px;
}
.pomodoro-wheel-control button:disabled{
  opacity:.2;
  cursor:default;
}
.pomodoro-wheel-control.is-rolling-up > :not(button){
  animation:pomodoro-wheel-up .14s ease-out;
}
.pomodoro-wheel-control.is-rolling-down > :not(button){
  animation:pomodoro-wheel-down .14s ease-out;
}
@keyframes pomodoro-wheel-up{
  from{ transform:translateY(5px); opacity:.5; }
  to{ transform:translateY(0); opacity:1; }
}
@keyframes pomodoro-wheel-down{
  from{ transform:translateY(-5px); opacity:.5; }
  to{ transform:translateY(0); opacity:1; }
}
.pomodoro-controls{
  margin-top:7px;
}
.footer__links{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
}
.footer__links::before{
  content:"·";
  opacity:.6;
}
.footer__links a{
  color:inherit;
  text-decoration:none;
}
.footer__links a:hover,
.footer__links a:focus-visible{
  color:var(--text);
}
.agenda-day__streak{
  position:absolute;
  top:8px;
  right:8px;
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:rgba(245,158,11,.1);
  color:#f59e0b;
}
.agenda-day__streak svg{
  width:11px;
  height:11px;
  fill:currentColor;
}
.agenda-day.has-study-streak{
  background-image:linear-gradient(135deg,rgba(245,158,11,.035),transparent 45%);
}
html.theme-light .agenda-day__streak{
  background:rgba(217,119,6,.09);
  color:#c66a03;
}
.pomodoro-streak{
  min-width:0;
  display:grid;
  grid-template-columns:30px minmax(0, 1fr) auto;
  align-items:center;
  gap:9px;
  margin-top:8px;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:rgba(255,255,255,.025);
}
.pomodoro-streak__icon{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:color-mix(in srgb, var(--pomodoro-color) 11%, transparent);
  color:var(--pomodoro-color);
}
.pomodoro-streak__icon svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.pomodoro-streak__copy{
  min-width:0;
  display:grid;
  gap:1px;
}
.pomodoro-streak__copy strong{
  color:var(--text);
  font-size:11.5px;
}
.pomodoro-streak__copy small{
  color:var(--muted-2);
  font-size:9.5px;
  line-height:1.25;
}
.pomodoro-streak__today{
  max-width:82px;
  color:var(--muted);
  font-size:9.5px;
  font-weight:800;
  line-height:1.2;
  text-align:right;
}
.pomodoro-streak.is-active .pomodoro-streak__icon{
  background:rgba(52,211,153,.12);
  color:#6ee7b7;
}
.pomodoro-streak.is-recovery .pomodoro-streak__icon{
  color:#f5c86b;
}
.streak-top-btn{
  position:relative;
  color:#f59e0b !important;
}
.streak-top-btn svg{
  fill:currentColor;
}
.streak-top-btn.has-streak{
  background:rgba(245,158,11,.08) !important;
}
.streak-top-btn.is-complete::after{
  content:"";
  position:absolute;
  right:4px;
  bottom:4px;
  width:6px;
  height:6px;
  border:2px solid var(--panel);
  border-radius:999px;
  background:#34d399;
}
.notification-alert-top-btn{
  position:relative;
  color:#ef4444 !important;
  background:color-mix(in srgb,#ef4444 7%,transparent) !important;
}
.notification-alert-top-btn[hidden]{display:none!important}
.notification-alert-top-btn svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.notification-alert-top-btn:hover{
  border-color:color-mix(in srgb,#ef4444 24%,transparent) !important;
  background:color-mix(in srgb,#ef4444 12%,transparent) !important;
}
.streak-menu{
  position:fixed;
  inset:0;
  z-index:85;
  visibility:hidden;
  pointer-events:none;
}
.streak-open .streak-menu{
  visibility:visible;
}
.streak-menu__panel{
  position:fixed;
  max-height:calc(100vh - 20px);
  overflow:auto;
  padding:14px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px;
  background:rgba(11,16,32,.97);
  box-shadow:0 20px 54px rgba(0,0,0,.36);
  color:var(--text);
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px) scale(.985);
  transform-origin:top right;
  transition:opacity .16s ease,transform .16s ease;
  backdrop-filter:blur(18px);
  scrollbar-width:none;
}
.streak-menu__panel::-webkit-scrollbar{
  display:none;
}
.streak-open .streak-menu__panel{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.streak-menu__head,
.streak-menu__summary,
.streak-menu__footer,
.streak-calendar__head{
  display:flex;
  align-items:center;
}
.streak-menu__head{
  justify-content:space-between;
  gap:12px;
}
.streak-menu__head h2{
  margin:2px 0 0;
  font-size:17px;
}
.streak-menu__close,
.streak-calendar__head button{
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.09);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}
.streak-menu__close{
  width:34px;
  height:34px;
  border-radius:999px;
}
.streak-menu__close:hover,
.streak-calendar__head button:hover{
  background:rgba(255,255,255,.055);
  color:var(--text);
}
.streak-menu__close svg,
.streak-calendar__head button svg{
  width:15px;
  height:15px;
  fill:currentColor;
}
.streak-menu__summary{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:10px;
  margin-top:13px;
  padding:10px;
  border-radius:12px;
  background:rgba(245,158,11,.065);
}
.streak-menu__mark{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:rgba(245,158,11,.12);
  color:#f59e0b;
}
.streak-menu__mark svg{
  width:21px;
  height:21px;
  fill:currentColor;
}
.streak-menu__main{
  min-width:0;
  display:grid;
  gap:1px;
}
.streak-menu__main small{
  color:var(--muted-2);
  font-size:9.5px;
  font-weight:700;
  text-transform:uppercase;
}
.streak-menu__main strong{
  font-size:17px;
}
.streak-menu__progress{
  max-width:86px;
  color:#f6b94e;
  font-size:10px;
  font-weight:800;
  line-height:1.25;
  text-align:right;
}
.streak-time-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:0 10px;
  padding:9px 0;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.streak-time-summary>span{
  min-width:0;
  display:grid;
  gap:2px;
}
.streak-time-summary>span+span{
  padding-left:12px;
  border-left:1px solid rgba(255,255,255,.07);
}
.streak-time-summary small{
  color:var(--muted-2);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.streak-time-summary strong{
  overflow:hidden;
  color:var(--text);
  font-size:13px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.streak-menu__message{
  min-height:30px;
  margin:8px 2px 10px;
  color:var(--muted);
  font-size:10.5px;
  line-height:1.4;
}
.streak-chart{
  margin-bottom:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}
.streak-chart__head,
.streak-chart>footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.streak-chart__head>div:first-child{
  display:grid;
  gap:2px;
}
.streak-chart__head small{
  color:var(--muted-2);
  font-size:8.5px;
  font-weight:800;
  letter-spacing:.06em;
}
.streak-chart__head strong{
  font-size:15px;
}
.streak-chart__range{
  display:flex;
  gap:2px;
  padding:2px;
  border-radius:9px;
  background:rgba(255,255,255,.045);
}
.streak-chart__range button{
  min-height:26px;
  padding:0 8px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:9.5px;
  font-weight:750;
  cursor:pointer;
}
.streak-chart__range button.is-active{
  background:rgba(139,181,255,.13);
  color:var(--accent);
}
.streak-chart__plot{
  position:relative;
  margin-top:5px;
  padding-bottom:14px;
}
.streak-chart__plot svg{
  width:100%;
  height:98px;
  display:block;
  overflow:visible;
}
.streak-chart__plot text{
  fill:var(--muted-2);
  font-size:8px;
  font-weight:650;
}
.streak-chart__grid{
  stroke:rgba(255,255,255,.07);
  stroke-width:1;
}
.streak-chart__area{
  fill:rgba(139,181,255,.08);
}
.streak-chart__line{
  fill:none;
  stroke:var(--accent);
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.streak-chart__point{
  fill:var(--accent);
  stroke:var(--panel);
  stroke-width:1.5;
}
.streak-chart__labels{
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  height:13px;
}
.streak-chart__labels span{
  position:absolute;
  transform:translateX(-50%);
  color:var(--muted-2);
  font-size:8px;
  font-weight:700;
}
.streak-chart>footer{
  padding-top:7px;
  border-top:1px solid rgba(255,255,255,.06);
  color:var(--muted);
  font-size:9.5px;
}
.streak-chart>footer strong{
  color:var(--text);
}
.streak-calendar{
  padding:10px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  background:rgba(255,255,255,.018);
}
.streak-calendar__head{
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.streak-calendar__head>strong{
  font-size:12px;
}
.streak-calendar__head>span{
  display:flex;
  gap:4px;
}
.streak-calendar__head button{
  width:27px;
  height:27px;
  border-radius:8px;
}
.streak-calendar__head button:first-child svg{
  transform:rotate(-90deg);
}
.streak-calendar__head button:last-child svg{
  transform:rotate(-90deg);
}
.streak-calendar__weekdays,
.streak-calendar__grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.streak-calendar__weekdays span{
  padding:2px 0 5px;
  color:var(--muted-2);
  font-size:9px;
  font-weight:800;
  text-align:center;
}
.streak-calendar__day{
  position:relative;
  min-height:30px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.streak-calendar__day.is-outside{
  opacity:.32;
}
.streak-calendar__day.is-today{
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 46%,transparent);
  color:var(--text);
}
.streak-calendar__day.is-active{
  background:rgba(245,158,11,.11);
  color:#ffd58a;
}
.streak-calendar__day svg{
  position:absolute;
  right:3px;
  bottom:3px;
  width:8px;
  height:8px;
  fill:#f59e0b;
}
.streak-menu__footer{
  justify-content:space-between;
  gap:10px;
  margin-top:9px;
  padding:7px 2px 0;
  color:var(--muted);
  font-size:10.5px;
}
.streak-menu__footer strong{
  color:var(--text);
}
html.theme-light .pomodoro-streak{
  border-color:var(--border);
  background:var(--panel-2);
}
html.theme-light .pomodoro-streak.is-active .pomodoro-streak__icon{
  background:rgba(19,121,91,.1);
  color:#13795b;
}
html.theme-light .pomodoro-streak.is-recovery .pomodoro-streak__icon{
  color:#9a6700;
}
html.theme-light .streak-menu__panel{
  border-color:var(--border);
  background:rgba(247,249,251,.98);
  box-shadow:0 18px 46px rgba(15,23,42,.16);
}
html.theme-light .streak-menu__summary{
  background:rgba(217,119,6,.07);
}
html.theme-light .streak-menu__progress{
  color:#9a6700;
}
html.theme-light .streak-time-summary,
html.theme-light .streak-time-summary>span+span{
  border-color:rgba(15,23,42,.08);
}
html.theme-light .streak-calendar{
  border-color:var(--border);
  background:var(--panel-2);
}
html.theme-light .streak-chart{
  border-color:var(--border);
  background:var(--panel-2);
}
html.theme-light .streak-chart__grid,
html.theme-light .streak-chart>footer{
  border-color:rgba(15,23,42,.08);
  stroke:rgba(15,23,42,.08);
}
html.theme-light .streak-calendar__day.is-active{
  background:rgba(217,119,6,.1);
  color:#7c4a03;
}

@media(max-width:420px){
  .streak-menu__panel{
    padding:12px;
  }
  .streak-menu__summary{
    margin-top:10px;
    padding:8px;
  }
  .streak-calendar{
    padding:8px;
  }
}
.pomodoro-secondary-btn{
  width:38px;
  height:38px;
}
.pomodoro-start-btn{
  min-height:40px;
}
.pomodoro-summary{
  margin-top:7px;
  padding:6px 9px;
}
.pomodoro-options{
  margin-top:7px;
}
.pomodoro-options .pomodoro-switch{
  padding:6px 8px;
}
.pomodoro-sound-toggle{
  min-height:35px;
  margin-top:7px;
  padding:6px 10px;
}
.pomodoro-sound-panel{
  grid-template-columns:1fr 1fr;
  gap:6px 10px;
  margin-top:5px;
  padding:7px;
}
.pomodoro-sound-row,
.pomodoro-now-playing{
  grid-column:1 / -1;
}
.pomodoro-sound-row{
  align-items:center;
}
.pomodoro-sound-row label{
  grid-template-columns:auto minmax(0, 1fr);
  align-items:center;
  gap:7px;
}
.pomodoro-sound-row select,
.pomodoro-ambient-btn{
  min-height:32px;
  padding-top:6px;
  padding-bottom:6px;
}
.pomodoro-volume{
  grid-template-columns:minmax(0, 1fr) minmax(52px, 76px);
  align-items:center;
  gap:6px;
}
.pomodoro-volume input{
  min-width:0;
}
.pomodoro-now-playing{
  min-height:11px;
  line-height:1.1;
}

@media(max-width:760px){
  .pomodoro-menu__panel{
    padding:11px;
  }
  .pomodoro-timer{
    width:160px;
    height:160px;
    margin-top:7px;
  }
  .pomodoro-time strong{
    font-size:36px;
  }
}

@media(max-width:420px){
  .pomodoro-sound-row{
    grid-template-columns:minmax(0, 1fr) auto;
  }
}

/* Configuracion desplegable del temporizador */
.pomodoro-settings-toggle{
  width:100%;
  min-height:38px;
  display:grid;
  grid-template-columns:18px minmax(0, 1fr) 16px;
  align-items:center;
  gap:9px;
  margin-top:10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:11px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  padding:7px 10px;
  font:inherit;
  font-size:12px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
}
.pomodoro-settings-toggle:hover,
.pomodoro-settings-toggle.is-open{
  border-color:color-mix(in srgb, var(--pomodoro-color) 34%, transparent);
  background:color-mix(in srgb, var(--pomodoro-color) 8%, transparent);
  color:var(--text);
}
.pomodoro-settings-toggle svg{
  width:16px;
  height:16px;
  fill:currentColor;
}
.pomodoro-settings-toggle svg:last-child{
  transition:transform .16s ease;
}
.pomodoro-settings-toggle.is-open svg:last-child{
  transform:rotate(180deg);
}
.pomodoro-settings-panel{
  margin-top:6px;
  padding:8px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.pomodoro-settings-panel[hidden]{
  display:none;
}
.pomodoro-settings-panel .pomodoro-config{
  margin-top:0;
}
html.theme-light .pomodoro-settings-toggle,
html.theme-light .pomodoro-settings-panel{
  border-color:var(--border);
  background:var(--panel-2);
  color:var(--text);
}

@media(max-width:420px){
  .pomodoro-settings-toggle{
    font-size:11.5px;
  }
  .pomodoro-settings-panel{
    padding:7px;
  }
}

/* El panel se compacta al desplegar opciones para evitar desplazamiento interno. */
.pomodoro-menu__panel{
  overflow:hidden;
  scrollbar-width:none;
}
.pomodoro-menu__panel.is-config-open{
  padding:10px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-head h2{
  font-size:15px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-cycle-status{
  margin-top:5px;
  padding:5px 8px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-timer{
  width:116px;
  height:116px;
  margin:5px auto 3px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-time strong{
  font-size:29px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-time span{
  font-size:10px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-controls{
  gap:7px;
  margin-top:4px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-streak{
  margin-top:4px;
  padding:5px 7px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-streak__icon{
  width:26px;
  height:26px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-secondary-btn{
  width:34px;
  height:34px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-start-btn{
  min-height:35px;
  padding:6px 14px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-settings-toggle{
  min-height:33px;
  margin-top:5px;
  padding:5px 9px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-settings-panel{
  margin-top:4px;
  padding:6px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-number-control{
  gap:2px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-wheel-control{
  grid-template-rows:15px 9px 24px 9px 15px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-wheel-control button{
  height:15px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-wheel-control input{
  height:24px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-summary{
  margin-top:5px;
  padding:4px 7px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-summary strong{
  min-width:23px;
  min-height:23px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-options{
  margin-top:5px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-options .pomodoro-switch{
  padding:5px 7px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-sound-toggle{
  min-height:32px;
  margin-top:5px;
  padding:5px 9px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-sound-panel{
  gap:4px 8px;
  margin-top:4px;
  padding:6px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-sound-row select,
.pomodoro-menu__panel.is-config-open .pomodoro-ambient-btn{
  min-height:28px;
  padding-top:4px;
  padding-bottom:4px;
}
.pomodoro-menu__panel.is-config-open .pomodoro-spotify-player iframe{
  height:80px;
}
.pomodoro-menu__panel.is-sound-open .pomodoro-timer{
  width:88px;
  height:88px;
  margin:3px auto 2px;
}
.pomodoro-menu__panel.is-sound-open .pomodoro-time strong{
  font-size:24px;
}

@media(max-height:700px){
  .pomodoro-menu__panel.is-config-open{
    padding:8px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-head .tray-kicker{
    display:none;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-icon-btn{
    width:30px;
    height:30px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-timer{
    width:70px;
    height:70px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-time strong{
    font-size:23px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-config{
    gap:6px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-wheel-control{
    grid-template-rows:13px 7px 22px 7px 13px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-wheel-control button{
    height:13px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-wheel-control input{
    height:22px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-summary,
  .pomodoro-menu__panel.is-config-open .pomodoro-options,
  .pomodoro-menu__panel.is-config-open .pomodoro-sound-toggle{
    margin-top:3px;
  }
  .pomodoro-menu__panel.is-config-open .pomodoro-spotify-player iframe{
    height:64px;
  }
}

html.theme-light .agenda-assistant__form,
html.theme-light .agenda-assistant__preview,
html.theme-light .agenda-assistant__status.is-error,
html.theme-light .agenda-assistant__status.is-success,
html.theme-light .agenda-assistant__status.is-info{
  background:var(--panel) !important;
  border-color:var(--border) !important;
}

html.theme-light .agenda-assistant__close,
html.theme-light .agenda-assistant-btn{
  color:var(--text) !important;
  border-color:var(--border) !important;
  background:var(--panel) !important;
}

/* Avisos y ventana compacta del temporizador en celulares. */
.pomodoro-device-alerts{
  display:none;
}

@media (max-width:760px), (max-width:900px) and (pointer:coarse){
  .pomodoro-options--single{
    grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
    gap:6px;
  }
  .pomodoro-options--single .pomodoro-switch{
    justify-content:flex-start;
  }
  .pomodoro-device-alerts{
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:6px;
    padding:6px 7px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    background:rgba(255,255,255,.025);
    color:var(--muted);
    font-size:10px;
    font-weight:750;
  }
  .pomodoro-device-alerts > span{
    min-width:0;
    display:flex;
    align-items:center;
    gap:5px;
  }
  .pomodoro-device-alerts > span span{
    overflow-wrap:anywhere;
  }
  .pomodoro-device-alerts svg{
    width:14px;
    height:14px;
    flex:0 0 auto;
    fill:currentColor;
  }
  .pomodoro-device-alerts button{
    min-height:25px;
    border:1px solid color-mix(in srgb, var(--pomodoro-color) 36%, transparent);
    border-radius:8px;
    background:color-mix(in srgb, var(--pomodoro-color) 10%, transparent);
    color:var(--text);
    padding:4px 6px;
    font:inherit;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
  }
  .pomodoro-device-alerts button:disabled{
    cursor:default;
    opacity:.68;
  }
  html.theme-light .pomodoro-device-alerts{
    border-color:var(--border);
    background:var(--panel-2);
  }

  .pomodoro-menu.is-mobile-floating{
    top:0;
    right:auto;
    bottom:auto;
    left:0;
    width:min(310px, calc(100vw - 24px));
    max-height:none;
    transform:translateY(12px) scale(.97);
    transform-origin:bottom right;
  }
  .pomodoro-open .pomodoro-menu.is-mobile-floating{
    transform:translateY(0) scale(1);
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-menu__panel{
    padding:10px;
    border-radius:18px;
    box-shadow:0 18px 54px rgba(0,0,0,.48);
    backdrop-filter:blur(22px);
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-head{
    cursor:default;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-head .tray-kicker,
  .pomodoro-menu.is-mobile-floating .pomodoro-settings-toggle,
  .pomodoro-menu.is-mobile-floating .pomodoro-settings-panel{
    display:none;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-head h2{
    margin:0;
    font-size:14px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-icon-btn{
    width:30px;
    height:30px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-cycle-status{
    margin-top:6px;
    padding:5px 8px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-timer{
    width:104px;
    height:104px;
    margin:6px auto 4px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-time strong{
    font-size:28px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-time span{
    font-size:10px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-controls{
    gap:7px;
    margin-top:4px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-secondary-btn{
    width:34px;
    height:34px;
  }
  .pomodoro-menu.is-mobile-floating .pomodoro-start-btn{
    min-width:132px;
    min-height:36px;
    padding:6px 12px;
  }
}

/* Instalacion guiada en celulares. */
.app-install-btn{
  display:none;
}
.app-install-sheet[hidden]{
  display:none;
}
.app-install-sheet{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  align-items:end;
  justify-items:center;
  padding:12px;
}
.app-install-sheet__backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(2,6,18,.66);
  backdrop-filter:blur(5px);
}
.app-install-sheet__panel{
  position:relative;
  z-index:1;
  width:min(430px, 100%);
  max-height:calc(100dvh - 24px);
  overflow:auto;
  padding:16px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:16px;
  background:#101727;
  box-shadow:0 24px 68px rgba(0,0,0,.5);
  color:var(--text);
}
.app-install-sheet__panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.app-install-sheet__identity{
  min-width:0;
  display:flex;
  align-items:center;
  gap:11px;
}
.app-install-sheet__identity img{
  width:48px;
  height:48px;
  flex:0 0 auto;
  border-radius:12px;
}
.app-install-sheet__identity small{
  color:var(--muted-2);
  font-size:10px;
  font-weight:800;
}
.app-install-sheet__identity h2{
  margin:2px 0 0;
  font-size:17px;
}
.app-install-sheet__close{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.04);
  color:var(--muted);
  cursor:pointer;
}
.app-install-sheet__close svg,
.app-install-steps svg,
.app-install-sheet__primary svg{
  width:18px;
  height:18px;
  fill:currentColor;
}
.app-install-sheet__lead{
  margin:16px 0 12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.app-install-steps{
  display:grid;
  gap:0;
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid rgba(255,255,255,.08);
}
.app-install-steps li{
  min-height:54px;
  display:grid;
  grid-template-columns:25px minmax(0, 1fr) 22px;
  align-items:center;
  gap:9px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.app-install-steps li > span{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:color-mix(in srgb, var(--accent) 14%, transparent);
  color:var(--text);
  font-size:11px;
  font-weight:900;
}
.app-install-steps p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}
.app-install-steps strong{
  color:var(--text);
}
.app-install-steps svg{
  color:var(--accent);
}
.app-install-sheet__note{
  margin:12px 0 0;
  color:var(--muted-2);
  font-size:11px;
  line-height:1.45;
}
.app-install-sheet__note strong{
  color:var(--muted);
}
.app-install-sheet__primary{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin-top:14px;
  border:1px solid transparent;
  border-radius:11px;
  background:var(--accent);
  color:#07111f;
  padding:9px 14px;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
html.theme-light .app-install-sheet__panel{
  border-color:var(--border);
  background:#f7f9fb;
  box-shadow:0 24px 58px rgba(15,23,42,.24);
}
html.theme-light .app-install-sheet__close,
html.theme-light .app-install-steps li,
html.theme-light .app-install-steps{
  border-color:var(--border);
}
html.theme-light .app-install-sheet__close{
  background:var(--panel-2);
}

@media (max-width:760px), (max-width:900px) and (pointer:coarse){
  .app-install-btn{
    display:inline-grid;
  }
}

.pomodoro-platform-note{
  margin:8px 0 0;
  padding:8px 10px;
  border:1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius:9px;
  background:color-mix(in srgb, var(--accent) 7%, transparent);
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}

.pomodoro-pip-video,
.pomodoro-pip-canvas{
  position:fixed;
  left:-20px;
  bottom:-12px;
  width:16px;
  height:9px;
  aspect-ratio:16 / 9;
  opacity:.01;
  pointer-events:none;
}

/* Cuenta y sincronizacion entre dispositivos */
.account-top-btn{position:relative}
.account-top-btn__status{
  position:absolute;
  right:3px;
  bottom:3px;
  width:8px;
  height:8px;
  border:2px solid var(--panel);
  border-radius:999px;
  background:var(--muted-2);
}
.account-top-btn.is-connected .account-top-btn__status{background:#34d399}
.account-shell{
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  border:0;
  color:inherit;
  overflow:hidden;
  z-index:1400;
  display:grid;
  grid-template-rows:minmax(0,1fr);
  place-items:center;
  padding:18px;
  background:rgba(3,7,18,.58);
  backdrop-filter:blur(7px);
}
.account-shell[hidden]{display:none}
.account-shell::backdrop{background:transparent}
body.account-open{overflow:hidden}
.account-panel{
  width:min(100%,430px);
  min-height:0;
  max-height:min(680px,100%);
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:22px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 26px 80px rgba(0,0,0,.42);
}
.account-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.account-head h2{margin:2px 0 0;font-size:22px}
.account-intro,.account-unavailable p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.55;
}
.account-form,.account-password-form{display:grid;gap:12px}
.account-security{min-width:0}
.account-captcha{min-height:65px;max-width:100%;border-radius:6px}
.account-captcha-feedback{display:grid;gap:6px;margin-top:6px}
.account-captcha-feedback p{margin:0;font-size:.8125rem;line-height:1.5;color:var(--muted)}
.account-captcha-feedback .account-link{justify-self:start;min-height:44px;text-align:left}
.account-form label,.account-password-form label{
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:13px;
  font-weight:750;
}
.account-form input,.account-password-form input{
  width:100%;
  min-height:45px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  outline:none;
  background:var(--panel-2);
  color:var(--text);
}
.account-form input:focus,.account-password-form input:focus{border-color:var(--accent);box-shadow:var(--ring)}
.account-primary,.account-secondary,.account-link{
  min-height:42px;
  padding:9px 14px;
  border-radius:10px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.account-primary{
  border:1px solid rgba(110,231,255,.25);
  background:var(--accent);
  color:#07111f;
}
.account-primary:hover{filter:brightness(1.06)}
.account-secondary{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.055);
  color:var(--text);
}
.account-secondary:hover{
  border-color:rgba(110,231,255,.30);
  background:rgba(110,231,255,.08);
}
.account-link{
  min-height:32px;
  padding:4px 8px;
  border:0;
  background:transparent;
  color:var(--muted);
}
.account-link:hover{color:var(--text)}
.account-primary:disabled,.account-secondary:disabled,.account-link:disabled{
  cursor:wait;
  opacity:.6;
}
.account-loading{
  min-height:170px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  color:var(--muted);
}
.account-loading[hidden],.account-auth[hidden],.account-profile[hidden],.account-unavailable[hidden]{display:none}
.account-password-form[hidden]{display:none}
.account-spinner{
  width:28px;
  height:28px;
  border:3px solid rgba(255,255,255,.14);
  border-top-color:var(--accent);
  border-radius:999px;
  animation:account-spin .8s linear infinite;
}
@keyframes account-spin{to{transform:rotate(360deg)}}
.account-profile{display:grid;gap:13px}
.account-sync-usage{border-block:1px solid var(--border);padding-block:8px;min-width:0}
.account-sync-usage summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px;font-weight:650}
.account-sync-usage dl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;margin:8px 0 14px;font-size:12px}
.account-sync-usage dt{color:var(--muted);overflow-wrap:anywhere}
.account-sync-usage dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.account-sync-usage small{display:block;color:var(--muted);font-size:12px;line-height:1.5}
.account-sync-usage .account-link{margin-top:8px;min-height:44px;font-size:12px}
.account-identity{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.035);
}
.account-identity>div{min-width:0;display:grid;gap:3px}
.account-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-identity span:not(.account-avatar){color:var(--muted);font-size:12px}
.account-avatar{
  width:40px;
  height:40px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(110,231,255,.12);
  color:var(--accent);
}
.account-avatar svg{width:20px;height:20px;fill:currentColor}
.account-benefits{display:grid;gap:7px;padding:2px 4px 6px}
.account-benefits p{
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px;
}
.account-benefits svg{width:16px;height:16px;flex:0 0 auto;fill:#34d399}
.account-referrals{
  display:grid;
  gap:10px;
  padding:13px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(110,231,255,.025);
}
.account-referrals[hidden],.account-referral-phone[hidden],.account-referral-otp[hidden],.account-referral-share[hidden],.account-referral-claim[hidden]{display:none}
.account-referrals>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.account-referrals>header>div{min-width:0;display:grid;gap:2px}
.account-referrals>header strong{font-size:13px}
.account-referrals>header small,.account-referral-progress{color:var(--muted);font-size:11px;line-height:1.4}
.account-referral-discount{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:rgba(110,231,255,.10);color:var(--accent);font-size:10px;font-weight:850}
.account-referral-phone,.account-referral-otp,.account-referral-claim{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px}
.account-referrals label{display:grid;gap:5px;color:var(--muted);font-size:11px;font-weight:750}
.account-referrals input{width:100%;min-height:38px;padding:8px 10px;border:1px solid rgba(255,255,255,.12);border-radius:9px;outline:none;background:var(--panel-2);color:var(--text);font:inherit}
.account-referrals input:focus{border-color:var(--accent);box-shadow:var(--ring)}
.account-referrals .account-secondary{min-height:38px;padding:7px 10px;font-size:11px;white-space:nowrap}
.account-referral-share{display:flex;align-items:center;justify-content:space-between;gap:10px}
.account-referral-share>div{display:grid;gap:2px}
.account-referral-share small{color:var(--muted);font-size:10px}
.account-referral-share strong{font-size:16px;letter-spacing:1px}
.account-referral-progress{margin:0}
.account-whatsapp{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.account-whatsapp[hidden]{display:none}
.account-whatsapp__icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(52,211,153,.10);
  color:#6ee7b7;
}
.account-whatsapp__icon svg{width:18px;height:18px;fill:currentColor}
.account-whatsapp__copy{min-width:0;display:grid;gap:2px}
.account-whatsapp__copy strong{font-size:13px}
.account-whatsapp__copy small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.account-whatsapp .account-secondary{min-height:34px;padding:6px 10px;font-size:12px}
.account-whatsapp .account-link{grid-column:3;min-height:28px;padding:3px 6px;font-size:11px}
.account-app-actions{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
}
.account-update{
  width:100%;
  min-height:58px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.account-update:hover{
  border-color:rgba(110,231,255,.28);
  background:rgba(110,231,255,.07);
}
.account-update:active{transform:scale(.99)}
.account-update:disabled{cursor:wait;opacity:.65}
.account-update>svg{
  width:21px;
  height:21px;
  flex:0 0 auto;
  fill:currentColor;
  color:var(--accent);
}
.account-update>span{min-width:0;display:grid;gap:3px}
.account-update strong{font-size:13px}
.account-update small{color:var(--muted);font-size:11px;line-height:1.35}
.account-android-widgets{
  margin-top:12px;
  display:grid;
  gap:6px;
}
.account-android-widgets[hidden]{display:none}
.account-android-widgets>strong{font-size:13px}
.account-android-widgets>small{color:var(--muted);font-size:11px;line-height:1.35}
.account-android-widgets>div{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:3px;
}
.account-android-widgets .account-secondary{min-height:36px;padding:7px 8px;font-size:12px}
.account-desktop-widgets .account-secondary:disabled{
  cursor:wait;
  opacity:.6;
}
.account-widget-installer{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:3px;
  padding:9px 11px;
  border:1px solid rgba(110,231,255,.22);
  border-radius:11px;
  background:rgba(110,231,255,.055);
  color:var(--text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.account-widget-installer:hover{border-color:rgba(110,231,255,.38);background:rgba(110,231,255,.09)}
.account-widget-installer:active{transform:scale(.99)}
.account-widget-installer>svg{width:19px;height:19px;flex:0 0 auto;fill:currentColor;color:var(--accent)}
.account-widget-installer>span{min-width:0;display:grid;gap:2px}
.account-widget-installer strong{font-size:12px}
.account-widget-installer small{color:var(--muted);font-size:10px;line-height:1.3}
.account-status{
  min-height:20px;
  margin:14px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}
.account-status[data-type="error"]{color:#fca5a5}
.account-status[data-type="success"]{color:#6ee7b7}
.account-privacy{
  margin:12px 0 0;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted-2);
  font-size:11px;
  line-height:1.45;
}
html.theme-light .account-shell{background:rgba(38,50,68,.28)}
html.theme-light .account-panel{
  border-color:rgba(86,105,130,.20);
  box-shadow:0 26px 70px rgba(38,50,68,.20);
}
html.theme-light .account-form input{border-color:rgba(86,105,130,.22)}
html.theme-light .account-password-form input{border-color:rgba(86,105,130,.22)}
html.theme-light .account-primary{color:#fff}
html.theme-light .account-secondary,html.theme-light .account-identity{border-color:rgba(86,105,130,.18)}
html.theme-light .account-whatsapp{border-color:rgba(86,105,130,.16);background:rgba(86,105,130,.025)}
html.theme-light .account-referrals{border-color:rgba(86,105,130,.16);background:rgba(66,133,244,.025)}
html.theme-light .account-referrals input{border-color:rgba(86,105,130,.20)}
html.theme-light .account-widget-installer{border-color:rgba(66,133,244,.22);background:rgba(66,133,244,.045)}
html.theme-light .account-app-actions{border-color:rgba(86,105,130,.14)}
html.theme-light .account-update{border-color:rgba(86,105,130,.18);background:rgba(86,105,130,.035)}
html.theme-light .account-status[data-type="error"]{color:#b3261e}
html.theme-light .account-status[data-type="success"]{color:#137333}

@media (max-width:600px){
  .account-shell{align-items:end;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
  .account-panel{
    width:100%;
    max-height:100%;
    padding:18px;
    border-radius:15px;
  }
  .account-head{margin-bottom:14px}
  .account-referrals>header{align-items:center}
  .account-referral-phone,.account-referral-otp,.account-referral-claim{grid-template-columns:1fr}
}

/* Agenda: la IA es la accion principal y la carga manual queda plegada. */
.agenda-assistant{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:17px 16px;
  background:linear-gradient(155deg,color-mix(in srgb,var(--panel) 96%,#0c1c34),var(--panel));
}
.agenda-assistant__head{
  margin-bottom:0;
}
.agenda-assistant__head h3{
  font-size:20px;
}
.agenda-assistant__conversation{
  min-height:190px;
  max-height:min(390px,46dvh);
  display:flex;
  flex-direction:column;
  gap:9px;
  overflow:auto;
  padding:8px 2px 12px;
  scrollbar-width:thin;
}
.agenda-assistant__message{
  max-width:90%;
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  color:var(--muted);
  background:color-mix(in srgb,var(--panel-2) 72%,transparent);
  font-size:12px;
  line-height:1.45;
}
.agenda-assistant__message p{
  margin:0;
}
.agenda-assistant__message--ai{
  align-self:flex-start;
  border-bottom-left-radius:5px;
}
.agenda-assistant__message--user{
  align-self:flex-end;
  border-color:color-mix(in srgb,var(--accent) 25%,transparent);
  border-bottom-right-radius:5px;
  color:var(--text);
  background:color-mix(in srgb,var(--accent) 14%,var(--panel-2));
}
.agenda-assistant__message[hidden]{display:none}
.agenda-assistant__avatar{
  width:24px;
  height:24px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:var(--accent-2);
  background:color-mix(in srgb,var(--accent-2) 12%,transparent);
}
.agenda-assistant__avatar svg{
  width:14px;
  height:14px;
  fill:currentColor;
}
.agenda-assistant__form{
  gap:7px;
  padding:10px 0 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:transparent;
}
.agenda-assistant__composer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:7px;
  padding:7px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:13px;
  background:color-mix(in srgb,var(--panel-2) 74%,transparent);
}
.agenda-assistant__composer:focus-within{
  border-color:color-mix(in srgb,var(--accent) 42%,transparent);
  box-shadow:var(--ring);
}
.agenda-assistant__form .agenda-assistant__composer textarea{
  min-height:52px;
  max-height:130px;
  resize:none;
  padding:8px;
  border:0;
  outline:0;
  background:transparent;
  box-shadow:none;
}
.agenda-assistant__composer .agenda-assistant__interpret{
  width:auto;
  min-width:86px;
  min-height:42px;
  margin:0;
  padding:8px 12px;
  border-radius:10px;
  color:#07111f;
  background:var(--accent);
}
.agenda-assistant__context{
  color:var(--muted-2);
  font-size:10px;
}
.agenda-assistant__context summary{
  width:max-content;
  cursor:pointer;
  list-style:none;
}
.agenda-assistant__context summary::-webkit-details-marker{display:none}
.agenda-assistant__context summary::before{content:"＋";margin-right:5px}
.agenda-assistant__context[open] summary::before{content:"−"}
.agenda-assistant__context .agenda-assistant__dates{
  margin-top:8px;
}
.agenda-assistant__status{
  position:relative;
  max-width:90%;
  align-self:flex-start;
  margin:0;
  padding:10px 12px 10px 38px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px 14px 14px 5px;
  color:var(--muted);
  background:color-mix(in srgb,var(--panel-2) 72%,transparent);
  font-size:12px;
  font-weight:700;
}
.agenda-assistant__status::before{
  content:"✦";
  position:absolute;
  left:12px;
  color:var(--accent-2);
}
.agenda-assistant__status:empty{display:none}
.agenda-assistant__status.is-error,.agenda-assistant__status.is-success,.agenda-assistant__status.is-info{
  padding:10px 12px 10px 38px;
  background:color-mix(in srgb,var(--panel-2) 72%,transparent);
}
.agenda-assistant__preview{
  width:94%;
  align-self:flex-start;
  margin:0;
  border-radius:14px 14px 14px 5px;
  background:color-mix(in srgb,var(--panel-2) 72%,transparent);
}
.agenda-assistant__confirm{
  width:94%;
  align-self:flex-start;
  margin:0;
}
.agenda-assistant__privacy{
  margin:0;
}
.agenda-assistant-btn{
  border-color:rgba(110,231,255,.45);
  background:var(--accent);
  color:#07111f;
  box-shadow:0 6px 18px rgba(56,189,248,.16);
}
.agenda-assistant-btn:hover{
  border-color:var(--accent);
  background:var(--accent);
  color:#07111f;
  filter:brightness(1.06);
}
.agenda-create-btn{
  border-color:rgba(255,255,255,.12);
  background:transparent;
  color:var(--muted);
}
.agenda-manual{
  margin:14px 16px 0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(255,255,255,.025);
  overflow:hidden;
}
.agenda-manual__summary{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  color:var(--text);
  cursor:pointer;
  list-style:none;
}
.agenda-manual__summary::-webkit-details-marker,
.agenda-note-details > summary::-webkit-details-marker{
  display:none;
}
.agenda-manual__summary > svg{
  width:17px;
  height:17px;
  flex:0 0 auto;
  fill:currentColor;
  color:var(--muted);
}
.agenda-manual__summary > span{
  min-width:0;
  flex:1;
  display:grid;
  gap:2px;
}
.agenda-manual__summary strong{
  font-size:13px;
}
.agenda-manual__summary small{
  color:var(--muted-2);
  font-size:11px;
  font-weight:650;
}
.agenda-manual__summary > svg:last-child{
  width:15px;
  height:15px;
  transition:transform .16s ease;
}
.agenda-manual[open] .agenda-manual__summary{
  border-bottom:1px solid rgba(255,255,255,.08);
}
.agenda-manual[open] .agenda-manual__summary > svg:last-child{
  transform:rotate(180deg);
}
.agenda-manual .agenda-selected-day{
  padding:14px 14px 0;
}
.agenda-manual .agenda-form{
  margin:0;
  padding:11px 14px 14px;
  border:0;
  border-radius:0;
  background:transparent;
}
.agenda-note-details{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:9px;
}
.agenda-note-details > summary{
  color:var(--muted);
  cursor:pointer;
  list-style:none;
  font-size:12px;
  font-weight:750;
}
.agenda-note-details[open] > summary{
  margin-bottom:9px;
  color:var(--text);
}
.agenda-note-details .tray-field{
  margin:0;
}
html.theme-light .agenda-assistant-btn{
  color:#fff;
}
html.theme-light .agenda-create-btn,
html.theme-light .agenda-manual{
  border-color:rgba(86,105,130,.18);
}
html.theme-light .agenda-manual{
  background:rgba(86,105,130,.035);
}
html.theme-light .agenda-assistant{
  background:linear-gradient(155deg,color-mix(in srgb,var(--panel) 96%,#e7f0ff),var(--panel));
}
html.theme-light .agenda-assistant__message,
html.theme-light .agenda-assistant__status,
html.theme-light .agenda-assistant__preview{
  border-color:rgba(86,105,130,.14);
}

/* Un unico desplazamiento en telefonos y tablets tactiles. */
@media (max-width:980px), (pointer:coarse){
  .agenda-board{
    inset:6px;
    width:auto;
  }
  .agenda-board__panel{
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
  }
  .agenda-board__panel::-webkit-scrollbar{
    display:none;
  }
  .agenda-toolbar{
    position:static;
    flex:none;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:10px;
    padding:11px 12px;
  }
  .agenda-toolbar__main{
    min-width:0;
    flex:1 1 100%;
    align-items:flex-start;
  }
  .agenda-toolbar__actions{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .agenda-toolbar__actions .tray-close{
    margin-left:auto;
  }
  .agenda-layout{
    min-height:auto;
    flex:none;
    display:flex;
    flex-direction:column;
    overflow:visible;
  }
  .agenda-calendar{
    flex:none;
    border-right:0;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .agenda-calendar__grid{
    flex:none;
    grid-auto-rows:60px;
  }
  .agenda-day__items{
    display:flex;
    gap:3px;
  }
  .agenda-event-pill{
    width:6px;
    height:6px;
    display:block !important;
    flex:0 0 auto;
    padding:0 !important;
    border-radius:999px !important;
    background:var(--agenda-type-color) !important;
  }
  .agenda-event-pill i,
  .agenda-event-pill span{
    display:none;
  }
  .agenda-editor,
  .agenda-board.is-assistant-open .agenda-editor,
  .agenda-assistant,
  .agenda-list{
    min-height:auto;
    flex:none;
    overflow:visible;
  }
  .agenda-board.is-assistant-open .agenda-calendar{
    display:none;
  }
  .agenda-manual{
    margin:12px;
  }
  .agenda-assistant{
    padding:14px 12px max(14px,env(safe-area-inset-bottom));
  }
  .agenda-assistant__conversation{
    min-height:150px;
    max-height:36dvh;
  }
  .agenda-assistant__composer{
    grid-template-columns:minmax(0,1fr) 44px;
  }
  .agenda-assistant__composer .agenda-assistant__interpret{
    width:44px;
    min-width:44px;
    height:44px;
    padding:0;
  }
  .agenda-assistant__composer .agenda-assistant__interpret span{
    display:none;
  }
  .agenda-filter,
  .agenda-list{
    padding-left:12px;
    padding-right:12px;
  }
}

/* La interfaz se reorganiza por ancho disponible, tambien en pantalla dividida. */
@media (max-width:900px){
  .topbar__nav > a.topbar__link,
  .topbar__nav > .topbar__link--soon{
    display:none;
  }

  .topbar__nav{
    width:auto;
    min-width:0;
  }
}

@media (max-width:1024px){
  .tray-shell{
    width:min(320px, 80vw);
  }

  .tray-open,
  html.tray-preopen body{
    padding-left:0;
  }

  html.tray-preopen::before{
    display:none;
  }
}

@media (max-width:420px){
  .topbar{
    padding:12px;
  }

  .brand__text{
    display:none;
  }
}

@media (max-width:760px), (pointer:coarse){
  .global-search__results,
  .tray-content,
  .pomodoro-menu__panel,
  .app-install-sheet__panel,
  .account-panel{
    scrollbar-width:none;
  }

  .global-search__results::-webkit-scrollbar,
  .tray-content::-webkit-scrollbar,
  .pomodoro-menu__panel::-webkit-scrollbar,
  .app-install-sheet__panel::-webkit-scrollbar,
  .account-panel::-webkit-scrollbar{
    display:none;
  }
}

/* En tablets hay espacio suficiente para leer las anotaciones del mes. */
@media (min-width:600px) and (pointer:coarse){
  .agenda-calendar__grid{
    grid-auto-rows:92px;
  }

  .agenda-day__items{
    display:grid;
    gap:3px;
  }

  .agenda-event-pill{
    width:auto;
    height:auto;
    display:flex !important;
    align-items:center;
    gap:4px;
    padding:3px 5px !important;
    border-radius:7px !important;
    background:color-mix(in srgb, var(--agenda-type-color) 16%, transparent) !important;
  }

  .agenda-event-pill i,
  .agenda-event-pill span{
    display:block;
  }
}

/* Calendario semanal como vista principal, con el mes disponible sin cambiar de pantalla. */
.agenda-view-switch{
  display:flex;
  align-items:center;
  gap:2px;
  padding:2px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  background:rgba(255,255,255,.045);
}

.agenda-view-switch button{
  min-height:30px;
  padding:5px 9px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.agenda-view-switch button.is-active{
  background:rgba(110,231,255,.13);
  color:var(--text);
}

.agenda-calendar[data-view="week"] .agenda-calendar__grid{
  grid-template-rows:minmax(210px,1fr);
  grid-auto-rows:minmax(210px,1fr);
}

.agenda-calendar[data-view="week"] .agenda-day{
  min-height:210px;
}

html.theme-light .agenda-view-switch{
  border-color:rgba(15,23,42,.12);
  background:rgba(15,23,42,.035);
}

html.theme-light .agenda-view-switch button.is-active{
  background:rgba(37,99,235,.10);
}

@media (max-width:980px), (pointer:coarse){
  .agenda-calendar[data-view="week"] .agenda-calendar__grid{
    grid-template-rows:112px;
    grid-auto-rows:112px;
  }

  .agenda-calendar[data-view="week"] .agenda-day{
    min-height:112px;
    padding:6px 4px;
  }

  .agenda-calendar[data-view="week"] .agenda-day__items{
    display:grid;
    gap:3px;
  }

  .agenda-calendar[data-view="week"] .agenda-event-pill{
    width:auto;
    height:auto;
    display:flex !important;
    align-items:center;
    gap:3px;
    padding:3px 4px !important;
    border-radius:6px !important;
    background:color-mix(in srgb,var(--agenda-type-color) 16%,transparent) !important;
  }

  .agenda-calendar[data-view="week"] .agenda-event-pill i,
  .agenda-calendar[data-view="week"] .agenda-event-pill span{
    display:block;
  }

  .agenda-calendar[data-view="week"] .agenda-event-pill span{
    overflow:hidden;
    font-size:8px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}

@media (max-width:560px){
  .agenda-view-switch{
    order:2;
  }

  .agenda-calendar[data-view="week"] .agenda-calendar__grid{
    grid-template-rows:90px;
    grid-auto-rows:90px;
  }

  .agenda-calendar[data-view="week"] .agenda-day{
    min-height:90px;
    padding:4px 2px;
  }

  .agenda-calendar[data-view="week"] .agenda-event-pill{
    padding:2px 3px !important;
  }

  .agenda-calendar[data-view="week"] .agenda-event-pill i{
    display:none;
  }
}
