@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #1c3434;
  --ink-soft: #506461;
  --muted: #858e89;
  --paper: #f5f5f0;
  --white: #fffefa;
  --line: #e4e6df;
  --forest: #1d3937;
  --orange: #eaa74e;
  --piac: #f07d54;
  --ingles: #438fc7;
  --proyecto: #9074c6;
  --ipe: #27a77f;
  --shadow: 0 16px 42px rgba(29, 57, 55, .08);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 242px; padding: 32px 22px 22px; background: var(--forest); color: #f7f5ed; }
.brand { display: flex; align-items: center; gap: 12px; padding: 1px 7px 0; text-decoration: none; }
.brand-mark { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 13px; background: #f1b55c; transform: rotate(-4deg); }
.brand-mark span { width: 18px; height: 21px; background: var(--forest); clip-path: polygon(50% 0,100% 100%,73% 100%,50% 47%,28% 100%,0 100%); transform: translateY(1px); }
.brand-mark i { position: absolute; top: 8px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #9676cf; }
.brand-name { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.brand-name > span { color: #f1b55c; }
.brand-name small { display: block; margin-top: 7px; color: #a9b8ac; font: 600 8px/1 'DM Sans', sans-serif; letter-spacing: 1.35px; }
.sidebar-label { margin: 63px 0 14px 9px; color: #9eb1a6; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.main-nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; color: #b9c8bd; font-size: 12px; font-weight: 500; text-decoration: none; transition: .18s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fffefa; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.095); }
.nav-icon { width: 19px; color: #eab25f; font-size: 18px; text-align: center; }
.nav-count { display: grid; place-items: center; width: 21px; height: 21px; margin-left: auto; border-radius: 7px; background: rgba(255,255,255,.12); color: #f3c577; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.help-card { position: relative; overflow: hidden; padding: 19px 17px 17px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.065); }
.help-spark { position: absolute; top: 15px; right: 16px; color: #f0b25c; font-size: 19px; }
.help-card strong { display: block; margin-top: 9px; font: 700 17px/1.28 Manrope, sans-serif; letter-spacing: -.45px; }
.help-card p { margin: 10px 0 15px; color: #adbbb1; font-size: 10px; line-height: 1.55; }
.text-button { padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: 11px; font-weight: 700; }
.text-button span { margin-left: 5px; }
.help-card .text-button { color: #f3c577; font-size: 10px; }
.sidebar-foot { display: flex; align-items: center; gap: 8px; margin: 18px 4px 0; color: #9aada1; font-size: 9px; letter-spacing: .1px; }
.status-dot, .today-dot { width: 7px; height: 7px; border-radius: 50%; background: #6ac49d; box-shadow: 0 0 0 3px rgba(106,196,157,.13); }
.main-content { max-width: 1510px; margin-left: 242px; padding: 0 52px 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 80px; border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; align-items: center; gap: 12px; color: #8a938e; font-size: 9px; font-weight: 700; letter-spacing: 1.05px; }
.breadcrumbs strong { color: #344d49; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.crumb-slash { color: #c7ccc4; }
.top-actions { display: flex; align-items: center; gap: 20px; }
.today-chip { display: flex; align-items: center; gap: 9px; color: #596862; font-size: 10px; font-weight: 600; }
.today-dot { width: 6px; height: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 0; border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 700; transition: .2s ease; }
.button-dark { background: var(--forest); color: #fffefa; box-shadow: 0 4px 10px rgba(29,57,55,.1); }
.button-dark:hover { background: #2a4c48; transform: translateY(-1px); }
.button-plus { color: #f2b15c; font-size: 15px; line-height: 1; }
.mobile-brand { display: none; }
.welcome-section { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 245px; overflow: hidden; margin-top: 30px; padding: 38px 49px; border-radius: 17px; background: #e9eee7; }
.welcome-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #718079; font-size: 8px; font-weight: 700; letter-spacing: 1.6px; }
.eyebrow-line { width: 19px; height: 2px; background: #edae56; }
h1, h2, p { margin-top: 0; }
h1 { margin: 17px 0 10px; color: #203d39; font: 750 clamp(35px, 4.2vw, 52px)/1.04 Manrope, sans-serif; letter-spacing: -2.5px; }
h1 em { color: #b17d3a; font-style: normal; }
.welcome-subtitle { margin: 0; color: #667670; font-size: 12px; }
.welcome-note { position: relative; z-index: 1; width: 221px; margin-right: 17px; padding: 18px 19px 16px; border: 1px solid rgba(255,255,255,.82); border-radius: 13px; background: rgba(255,255,255,.57); box-shadow: 0 10px 28px rgba(66,91,72,.06); }
.note-top { display: flex; align-items: center; gap: 8px; color: #79857d; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.note-icon { color: #b58442; font-size: 15px; }
.welcome-note p { margin: 13px 0 14px; color: #324b44; font: 600 12px/1.55 Manrope, sans-serif; }
.note-tags { display: flex; gap: 13px; color: #68746d; font-size: 8px; font-weight: 600; }
.note-tags span { display: flex; align-items: center; gap: 5px; }
.note-tags i { width: 7px; height: 7px; border-radius: 2px; }
.legend-active { background: #e2a650; }
.legend-muted { background: #c7ccc6; }
.welcome-orbit { position: absolute; width: 264px; height: 264px; border: 1px solid rgba(93,125,99,.09); border-radius: 50%; }
.orbit-one { right: 219px; top: -122px; }
.orbit-two { right: 248px; top: -92px; width: 204px; height: 204px; }
.overview-row { display: grid; grid-template-columns: 1.2fr 1.1fr .85fr; gap: 14px; margin-top: 16px; }
.overview-card { min-height: 113px; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.overview-label { display: flex; align-items: center; justify-content: space-between; color: #858e87; font-size: 8px; font-weight: 700; letter-spacing: 1.15px; }
.overview-symbol { color: #bb9251; font-size: 15px; }
.next-class { overflow: hidden; margin-top: 12px; color: #27443f; font: 700 15px/1.2 Manrope, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.overview-meta { margin-top: 5px; color: #87918a; font-size: 9px; }
.course-number { margin-top: 7px; color: #304b43; font: 750 23px/1 Manrope, sans-serif; letter-spacing: -.8px; }
.course-number span { margin-left: 6px; color: #829088; font: 500 9px 'DM Sans', sans-serif; letter-spacing: 0; }
.mini-color-row { display: flex; align-items: center; gap: 5px; margin-top: 13px; }
.swatch { width: 9px; height: 9px; border-radius: 3px; }
.swatch.piac { background: var(--piac); }.swatch.ingles { background: var(--ingles); }.swatch.proyecto { background: var(--proyecto); }.swatch.ipe { background: var(--ipe); }
.mini-color-row span { margin-left: 5px; color: #828d85; font-size: 8px; }
.term-label { margin-top: 5px; color: #2a4640; font: 750 25px/1.1 Manrope, sans-serif; letter-spacing: -1px; }
.term-label span { color: #bd8a47; }
.schedule-section, .subjects-section, .platform-section { margin-top: 39px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.small-eyebrow { font-size: 8px; letter-spacing: 1.55px; }
h2 { margin: 8px 0 0; color: #243f3b; font: 700 23px/1.15 Manrope, sans-serif; letter-spacing: -.8px; }
.week-control { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: #435b53; cursor: pointer; font-size: 19px; line-height: 1; }
.icon-button:hover { border-color: #c4cec4; background: #fff; }
.week-label { min-width: 112px; border: 0; background: transparent; color: #4d6259; cursor: pointer; font-size: 10px; font-weight: 700; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.shift-tabs { display: flex; gap: 5px; padding: 4px; border: 1px solid #e4e7df; border-radius: 10px; background: #eeefe9; }
.shift-tab { min-height: 31px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #77827a; cursor: pointer; font-size: 9px; font-weight: 600; }
.shift-tab span { margin-left: 5px; color: #9ba39d; font-size: 8px; font-weight: 500; }
.shift-tab.selected { background: #fffefa; color: #344e45; box-shadow: 0 2px 6px rgba(42,57,45,.08); }
.shift-tab.selected span { color: #7d8c82; }
.calendar-source { display: flex; align-items: center; gap: 7px; color: #8b958d; font-size: 9px; }
.source-dot { width: 6px; height: 6px; border-radius: 50%; background: #8aaf91; }
.days-wrap { overflow-x: auto; padding-bottom: 6px; scrollbar-color: #ccd3ca transparent; scrollbar-width: thin; }
.days-grid { display: grid; grid-template-columns: repeat(5, minmax(144px, 1fr)); gap: 9px; min-width: 840px; }
.day-column { min-height: 199px; overflow: hidden; border: 1px solid #e5e8e1; border-radius: 11px; background: rgba(255,254,250,.74); }
.day-column.is-today { border-color: #bbcfbf; box-shadow: 0 0 0 2px rgba(114,157,120,.1); }
.day-head { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 11px; border-bottom: 1px solid #e9ebe5; }
.day-name { color: #64746c; font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.day-date { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 8px; color: #9ba49d; font-size: 9px; }
.is-today .day-date { background: var(--forest); color: #fffefa; font-weight: 700; }
.day-events { display: grid; align-content: start; gap: 7px; padding: 8px; }
.empty-day { display: grid; place-items: center; min-height: 117px; color: #b0b7b0; font-size: 9px; }
.event-card { position: relative; overflow: hidden; padding: 9px 8px 8px 10px; border: 1px solid transparent; border-radius: 8px; transition: transform .16s ease, box-shadow .16s ease; }
.event-card:hover { transform: translateY(-1px); box-shadow: 0 4px 11px rgba(48,67,59,.08); }
.event-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: currentColor; content: ''; }
.event-card.active-piac { border-color: #f3d7c9; background: #fff0e9; color: var(--piac); }
.event-card.active-ingles { border-color: #d0e4f0; background: #eaf4fa; color: var(--ingles); }
.event-card.active-proyecto { border-color: #e1d9ef; background: #f2eef9; color: var(--proyecto); }
.event-card.active-ipe { border-color: #cde9de; background: #e8f5ef; color: var(--ipe); }
.event-card.convalidated { border-color: #e5e7e2; background: repeating-linear-gradient(135deg, #f0f1ed 0, #f0f1ed 8px, #ebede8 8px, #ebede8 16px); color: #9ba39b; }
.event-time { display: block; margin-bottom: 5px; color: currentColor; font-size: 8px; font-weight: 700; letter-spacing: .15px; }
.event-name { display: block; color: #314742; font: 700 9px/1.35 Manrope, sans-serif; }
.convalidated .event-name { color: #77827b; }
.event-place { display: block; margin-top: 4px; color: #89958b; font-size: 7px; }
.event-links { display: flex; gap: 8px; margin-top: 7px; }
.event-links a { color: #617c6e; font-size: 7px; font-weight: 700; text-decoration: none; }
.event-links a:hover { text-decoration: underline; }
.event-links .team-link { color: #316d98; }
.break-pill { display: flex; align-items: center; gap: 7px; margin: 0 8px; color: #a0a8a0; font-size: 7px; }
.break-pill::before, .break-pill::after { height: 1px; flex: 1; background: #e6e8e2; content: ''; }
.schedule-footnote { display: flex; align-items: flex-start; gap: 8px; margin-top: 9px; color: #8b948d; font-size: 8px; line-height: 1.6; }
.footnote-mark { display: grid; place-items: center; width: 13px; height: 13px; flex: 0 0 auto; border: 1px solid #c3c9c1; border-radius: 50%; color: #838d84; font: 700 8px Georgia, serif; }
.inline-action { padding: 0; border: 0; background: transparent; color: #44685c; cursor: pointer; font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.subjects-section { padding-top: 2px; }
.subject-heading { margin-bottom: 15px; }
.quiet-count { margin-bottom: 3px; color: #8c968d; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.subjects-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.subject-card { position: relative; min-height: 151px; overflow: hidden; padding: 15px 14px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.subject-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--subject); content: ''; }
.subject-card[data-subject="piac"] { --subject: var(--piac); }
.subject-card[data-subject="ingles"] { --subject: var(--ingles); }
.subject-card[data-subject="proyecto"] { --subject: var(--proyecto); }
.subject-card[data-subject="ipe"] { --subject: var(--ipe); }
.subject-card-top { display: flex; align-items: center; justify-content: space-between; }
.subject-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--subject); }
.subject-state { color: #849087; font-size: 7px; font-weight: 700; letter-spacing: .65px; }
.subject-card h3 { min-height: 35px; margin: 13px 0 4px; color: #2e4742; font: 700 12px/1.35 Manrope, sans-serif; }
.subject-fullname { min-height: 23px; color: #89938c; font-size: 8px; line-height: 1.45; }
.subject-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.subject-links a { padding: 5px 8px; border: 1px solid #e4e8e2; border-radius: 6px; color: #52665d; font-size: 8px; font-weight: 600; text-decoration: none; transition: .15s ease; }
.subject-links a:hover { border-color: #cbd6cb; background: #f5f7f2; }
.subject-edit { margin-left: auto; border: 0 !important; background: transparent !important; color: #987744 !important; cursor: pointer; }
.platform-section { margin-top: 37px; }
.platform-edit { margin-bottom: 2px; color: #52685d; font-size: 9px; }
.platform-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.platform-card { display: flex; align-items: center; gap: 11px; min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.platform-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.platform-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: 10px; color: #fff; font: 700 11px Manrope, sans-serif; }
.platform-icon.onedrive { background: linear-gradient(135deg,#337ec4,#45aece); }
.platform-icon.teams { background: #6d65b5; }
.platform-icon.aules { background: #df8849; }
.platform-icon.moodle { background: #e97837; }
.platform-info { min-width: 0; }
.platform-name { display: block; color: #354e47; font: 700 10px Manrope, sans-serif; }
.platform-sub { display: block; overflow: hidden; max-width: 145px; margin-top: 4px; color: #89938b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.platform-arrow { margin-left: auto; color: #a3aaa3; font-size: 14px; }
.platform-note { margin: 10px 0 0; color: #89938d; font-size: 8px; }
.note-asterisk { margin-right: 3px; color: #bc8a49; font-weight: 700; }
.page-footer { display: flex; align-items: center; gap: 8px; margin-top: 47px; padding-top: 15px; border-top: 1px solid var(--line); color: #9ba29b; font-size: 7px; font-weight: 700; letter-spacing: 1.1px; }
.footer-mark { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 5px; background: #dfe9dc; color: #526b5b; font: 800 9px Manrope, sans-serif; letter-spacing: 0; }
.footer-right { margin-left: auto; color: #a5aaa3; font-size: 8px; font-weight: 500; letter-spacing: 0; }
.links-dialog { width: min(610px, calc(100vw - 26px)); max-width: none; max-height: min(85vh, 820px); overflow: hidden; padding: 0; border: 1px solid #e3e7df; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 28px 90px rgba(14,38,32,.27); }
.links-dialog::backdrop { background: rgba(23,43,39,.49); backdrop-filter: blur(3px); }
.links-dialog form { display: flex; max-height: min(85vh, 820px); flex-direction: column; }
.dialog-topline { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 0; }
.dialog-overline { color: #859189; font-size: 8px; font-weight: 700; letter-spacing: 1.35px; }
.dialog-close { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e4e7df; border-radius: 8px; background: white; color: #66746c; cursor: pointer; font-size: 20px; }
.links-dialog h2 { margin: 11px 26px 0; font-size: 22px; }
.dialog-description { margin: 7px 26px 16px; color: #828c84; font-size: 10px; line-height: 1.5; }
.dialog-fields { overflow-y: auto; padding: 0 26px 12px; }
.field-group { margin: 0 0 14px; padding: 13px 13px 9px; border: 1px solid #e7e9e3; border-radius: 10px; background: #fbfbf7; }
.field-group-title { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #344c43; font: 700 10px Manrope, sans-serif; }
.field-color { width: 8px; height: 8px; border-radius: 3px; background: #a8b0a7; }
.field-group[data-subject="piac"] .field-color { background: var(--piac); }
.field-group[data-subject="ingles"] .field-color { background: var(--ingles); }
.field-group[data-subject="proyecto"] .field-color { background: var(--proyecto); }
.field-group[data-subject="ipe"] .field-color { background: var(--ipe); }
.field-row { display: grid; grid-template-columns: 115px 1fr; align-items: center; gap: 9px; margin: 6px 0; }
.field-row label { color: #76827a; font-size: 8px; font-weight: 600; }
.field-row input { width: 100%; min-width: 0; height: 33px; padding: 0 9px; border: 1px solid #e2e6df; border-radius: 7px; outline: 0; background: white; color: #435b51; font-size: 9px; }
.field-row input:focus { border-color: #9bb19e; box-shadow: 0 0 0 3px rgba(114,157,120,.13); }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 26px 19px; border-top: 1px solid #e9ebe5; background: #fffefa; }
.save-note { color: #929a92; font-size: 8px; }
.dialog-footer > div { display: flex; gap: 8px; }
.button-quiet { border: 1px solid #e5e8e1; background: white; color: #66756c; }
.save-button { min-height: 35px; font-size: 9px; }
.toast { position: fixed; z-index: 20; right: 25px; bottom: 25px; padding: 12px 17px; border-radius: 9px; background: var(--forest); color: white; box-shadow: var(--shadow); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (min-width: 1500px) { .main-content { margin-right: auto; } }
@media (max-width: 1120px) {
  .sidebar { width: 210px; padding-right: 17px; padding-left: 17px; }
  .main-content { margin-left: 210px; padding-right: 30px; padding-left: 30px; }
  .welcome-section { padding-right: 33px; padding-left: 35px; }
  .subjects-list, .platform-list { grid-template-columns: repeat(2, 1fr); }
  .subject-card { min-height: 143px; }
}
@media (max-width: 780px) {
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 0 20px 22px; }
  .topbar { height: 64px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: #26433c; font: 800 13px Manrope, sans-serif; letter-spacing: -.4px; }
  .brand-mark.small { width: 27px; height: 27px; border-radius: 9px; }
  .brand-mark.small span { width: 12px; height: 14px; }
  .brand-mark.small i { top: 5px; right: 5px; width: 5px; height: 5px; }
  .breadcrumbs { display: none; }
  .today-chip { display: none; }
  .top-actions { margin-left: auto; }
  .button { min-height: 34px; padding: 0 11px; font-size: 9px; }
  .welcome-section { min-height: 221px; margin-top: 20px; padding: 28px 26px; }
  .welcome-note { width: 190px; margin-right: 0; padding: 15px; }
  .welcome-note p { font-size: 10px; }
  h1 { font-size: 40px; }
  .overview-row { grid-template-columns: 1.1fr 1fr; }
  .term-card { grid-column: span 2; min-height: 87px; }
  .term-label { display: inline-block; margin-top: 8px; margin-right: 8px; font-size: 21px; }
  .term-card .overview-meta { display: inline-block; }
  .schedule-section, .subjects-section, .platform-section { margin-top: 31px; }
  .days-grid { grid-template-columns: repeat(5, minmax(142px, 1fr)); }
  .platform-card { min-height: 67px; }
}
@media (max-width: 560px) {
  .main-content { padding-right: 14px; padding-left: 14px; }
  .top-actions { gap: 0; }
  .button { padding: 0 10px; }
  .welcome-section { min-height: 224px; align-items: flex-start; margin-top: 14px; padding: 25px 22px; }
  .welcome-copy { max-width: 60%; }
  h1 { margin-top: 15px; font-size: 36px; letter-spacing: -1.7px; }
  .welcome-subtitle { max-width: 205px; font-size: 10px; line-height: 1.5; }
  .welcome-note { position: absolute; right: 13px; bottom: 13px; width: 174px; padding: 11px 12px; }
  .note-top { font-size: 7px; }
  .welcome-note p { margin: 7px 0; font-size: 9px; }
  .note-tags { gap: 9px; font-size: 7px; }
  .welcome-orbit { right: 25px; }
  .overview-row { gap: 8px; margin-top: 10px; }
  .overview-card { min-height: 101px; padding: 12px; }
  .overview-label { font-size: 7px; letter-spacing: .7px; }
  .next-class { font-size: 12px; }
  .overview-meta { font-size: 8px; }
  .course-number { font-size: 20px; }
  .course-number span { display: block; margin: 3px 0 0; font-size: 8px; }
  .mini-color-row { gap: 4px; margin-top: 9px; }
  .mini-color-row span { font-size: 7px; }
  h2 { font-size: 20px; }
  .section-heading { align-items: end; }
  .week-control { gap: 4px; }
  .week-label { min-width: 97px; font-size: 9px; }
  .icon-button { width: 27px; height: 27px; }
  .schedule-toolbar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .shift-tab { padding: 0 9px; font-size: 8px; }
  .shift-tab span { margin-left: 2px; font-size: 7px; }
  .calendar-source { font-size: 8px; }
  .subjects-list, .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .subject-card { min-height: 149px; padding: 12px 10px; }
  .subject-card h3 { font-size: 11px; }
  .subject-links { gap: 4px; }
  .subject-links a { padding: 5px 6px; font-size: 7px; }
  .platform-card { gap: 7px; min-height: 66px; padding: 8px; }
  .platform-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 9px; }
  .platform-name { font-size: 9px; }
  .platform-sub { max-width: 95px; font-size: 7px; }
  .platform-arrow { font-size: 12px; }
  .subject-heading .quiet-count { font-size: 7px; }
  .platform-edit { max-width: 105px; font-size: 8px; }
  .page-footer { margin-top: 34px; font-size: 6px; letter-spacing: .7px; }
  .footer-right { max-width: 105px; font-size: 7px; text-align: right; }
  .field-row { grid-template-columns: 86px 1fr; gap: 6px; }
  .dialog-topline { padding: 17px 16px 0; }
  .links-dialog h2 { margin-right: 16px; margin-left: 16px; }
  .dialog-description { margin-right: 16px; margin-left: 16px; }
  .dialog-fields { padding-right: 16px; padding-left: 16px; }
  .dialog-footer { align-items: flex-start; flex-direction: column; padding: 12px 16px 15px; }
  .dialog-footer > div { width: 100%; justify-content: flex-end; }
  .save-note { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }


/* Tema elegido: blanco, lila suave y lavanda */
:root {
  --ink: #39314a;
  --ink-soft: #625a70;
  --muted: #837b90;
  --paper: #f7f4fa;
  --white: #fffefe;
  --line: #e9e3ef;
  --forest: #392d4f;
  --orange: #a987d7;
  --piac: #8d69c2;
  --ingles: #718acb;
  --proyecto: #b17cc6;
  --ipe: #8273bf;
  --shadow: 0 16px 42px rgba(57, 45, 79, .09);
}
.sidebar { background: #392d4f; }
.brand-mark { background: #c2a7ed; }
.brand-mark i { background: #f5efff; }
.brand-name > span, .help-card .text-button { color: #cab5f1; }
.sidebar-label { color: #b9adc9; }
.nav-link { color: #d0c7dd; }
.nav-link.active { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.11); }
.nav-icon, .help-spark, .button-plus { color: #c9aff0; }
.nav-count { color: #e2d4fa; }
.sidebar-foot { color: #c1b7cf; }
.welcome-section { background: #eee8f5; }
.welcome-orbit { border-color: rgba(126, 98, 162, .12); }
h1 { color: #352b47; }
h1 em { color: #8866b5; }
.welcome-subtitle { color: #6e647c; }
.welcome-note p { color: #433653; }
.note-top { color: #786b89; }
.note-icon, .overview-symbol { color: #9272be; }
.eyebrow { color: #766d82; }
.eyebrow-line { background: #aa8bd0; }
.note-tags { color: #6f667d; }
.legend-active { background: #a987d7; }
.legend-muted { background: #cac5d0; }
.overview-label { color: #82798b; }
.next-class, .course-number, .term-label { color: #40354f; }
.overview-meta { color: #8a8294; }
.term-label span { color: #9b7bc5; }
.icon-button { color: #55466c; }
.week-label { color: #5f5271; }
.shift-tab { color: #7b7188; }
.shift-tab.selected { color: #514164; }
.shift-tab span { color: #9a90a5; }
.day-name { color: #71677e; }
.day-column.is-today { border-color: #c5b1df; box-shadow: 0 0 0 2px rgba(169,135,215,.12); }
.is-today .day-date { background: #5a4775; }
.event-card.active-piac { border-color: #ded0ef; background: #f2eaf9; color: #8d69c2; }
.event-card.active-ingles { border-color: #d5def2; background: #edf1fb; color: #718acb; }
.event-card.active-proyecto { border-color: #e8d7ec; background: #f7eef8; color: #a76dbb; }
.event-card.active-ipe { border-color: #dcd7ed; background: #f0eef9; color: #8273bf; }
.event-card.convalidated { border-color: #e4e0e9; background: repeating-linear-gradient(135deg, #f1eff4 0, #f1eff4 8px, #ebe8ef 8px, #ebe8ef 16px); color: #a09aa8; }
.event-name { color: #45394f; }
.convalidated .event-name { color: #807a87; }
.event-place, .event-links a { color: #857993; }
.event-links .team-link { color: #6c70a9; }
.break-pill { color: #9b94a1; }
.break-pill::before, .break-pill::after { background: #e8e4ec; }
.inline-action { color: #786099; }
.subject-card h3, .platform-name { color: #40354f; }
.subject-fullname, .subject-state { color: #847b90; }
.subject-links a { border-color: #e6e0ed; color: #655875; }
.subject-links a:hover { border-color: #cfc0e1; background: #f8f4fc; }
.subject-edit, .platform-edit { color: #8267a5 !important; }
.platform-icon.onedrive { background: linear-gradient(135deg,#7d76bb,#a891d0); }
.platform-icon.teams { background: #7369a7; }
.platform-icon.aules { background: #9175b5; }
.platform-icon.moodle { background: #a57bb4; }
.platform-sub, .platform-arrow, .platform-note { color: #8b8296; }
.footer-mark { background: #ede5f5; color: #695480; }
.links-dialog { border-color: #e4dceb; }
.dialog-overline { color: #837891; }
.dialog-close { color: #6d617c; }
.dialog-description, .save-note { color: #867e90; }
.field-group { border-color: #e8e2ee; background: #fbf9fd; }
.field-group-title { color: #493a59; }
.field-group[data-subject="piac"] .field-color { background: #8d69c2; }
.field-group[data-subject="ingles"] .field-color { background: #718acb; }
.field-group[data-subject="proyecto"] .field-color { background: #b17cc6; }
.field-group[data-subject="ipe"] .field-color { background: #8273bf; }
.field-row label { color: #796f86; }
.field-row input:focus { border-color: #aa91ca; box-shadow: 0 0 0 3px rgba(169,135,215,.15); }
.button-quiet { color: #6c607a; }
.toast { background: #392d4f; }
.brand-mark.small { background: #c2a7ed; }
@media (max-width: 780px) { .is-today .day-date { background: #5a4775; } }

.main-content h2 { color: #4b3b61; }
.breadcrumbs strong { color: #57456b; }
.status-dot, .today-dot, .source-dot { background: #a48acb; box-shadow: 0 0 0 3px rgba(164, 138, 203, .15); }
.today-chip, .calendar-source { color: #786d87; }

@media (max-width: 560px) {
  .welcome-section { min-height: auto; align-items: flex-start; flex-direction: column; padding: 24px 22px; }
  .welcome-copy { width: 100%; max-width: 100%; }
  .welcome-note { position: relative; right: auto; bottom: auto; width: 100%; margin: 13px 0 0; padding: 11px 12px; }
}

.profile-sticker {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 2px;
  border: 1px solid #e2d8ee;
  border-radius: 50%;
  background: #f0eaf8;
  object-fit: contain;
  box-shadow: 0 2px 7px rgba(57, 45, 79, .1);
}
@media (max-width: 780px) {
  .profile-sticker { width: 33px; height: 33px; }
  .top-actions { gap: 9px; }
}
@media (max-width: 560px) {
  .profile-sticker { width: 30px; height: 30px; }
  .top-actions { gap: 7px; }
}

.platform-icon.sharepoint { background: #766398; }
.platform-icon.onlyoffice { background: #a67a9f; }
.platform-icon.gemini { background: linear-gradient(135deg, #4f7de5, #9465d5); }
.platform-icon.notebooklm { background: linear-gradient(135deg, #6c5ac7, #a34e93); }
.platform-icon.whatsapp { background: #128c7e; }
.platform-icon.discord { background: #5865f2; }
.platform-note a { margin-left: 3px; color: #786099; font-weight: 700; text-decoration: none; }
.platform-note a:hover { text-decoration: underline; text-underline-offset: 2px; }
.platform-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1120px) {
  .platform-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Paleta cálida inspirada en el sticker: lavanda, melocotón, rosa y miel */
:root {
  --ink: #392f3b;
  --ink-soft: #625360;
  --muted: #8b7d89;
  --paper: #faf7fb;
  --white: #fffdfa;
  --line: #ede4eb;
  --forest: #413240;
  --orange: #f1c452;
  --piac: #a94e34;
  --ingles: #4f679c;
  --proyecto: #9d3f6b;
  --ipe: #694f89;
  --shadow: 0 16px 42px rgba(65, 50, 64, .09);
}
body { background: var(--paper); color: var(--ink); }
.sidebar { background: #413240; color: #fbf7f2; }
.brand-mark, .brand-mark.small { background: #f1c452; }
.brand-mark span { background: #413240; }
.brand-mark i { background: #df6e9a; }
.brand-name > span, .help-card .text-button { color: #e9a7c1; }
.sidebar-label, .sidebar-foot { color: #c8b9c7; }
.nav-link { color: #d9ceda; }
.nav-link.active { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.12); }
.nav-icon, .help-spark, .button-plus { color: #f0c96c; }
.nav-count { color: #f7e2a8; }
.welcome-section { background: #f0e8f4; }
.welcome-orbit { border-color: rgba(186, 119, 153, .13); }
h1 { color: #392f3b; }
h1 em { color: #966cb2; }
.welcome-subtitle, .note-top { color: #746675; }
.welcome-note { border-color: rgba(255,255,255,.92); background: rgba(255,253,250,.78); box-shadow: 0 10px 28px rgba(91, 63, 81, .06); }
.welcome-note p, .next-class, .course-number, .term-label { color: #463442; }
.note-icon, .overview-symbol { color: #c7839e; }
.eyebrow-line { background: #d493ae; }
.legend-active { background: #d889a8; }
.legend-muted { background: #d4cdd4; }
.term-label span { color: #a17bb5; }
.icon-button, .overview-card, .day-column, .subject-card, .platform-card { border-color: var(--line); }
.day-column.is-today { border-color: #d7a9c0; box-shadow: 0 0 0 2px rgba(216, 137, 168, .13); }
.is-today .day-date { background: #805f91; }
.event-card.active-piac { border-color: #efd4c8; background: #fbede6; color: var(--piac); }
.event-card.active-ingles { border-color: #d5dff0; background: #edf1fa; color: var(--ingles); }
.event-card.active-proyecto { border-color: #efd4e1; background: #faedf3; color: var(--proyecto); }
.event-card.active-ipe { border-color: #dfd5eb; background: #f2eef8; color: var(--ipe); }
.event-card.convalidated { border-color: #e7e0e7; background: repeating-linear-gradient(135deg, #f3f0f3 0, #f3f0f3 8px, #ede9ee 8px, #ede9ee 16px); color: #958a98; }
.event-name, .subject-card h3, .platform-name, .main-content h2 { color: #433543; }
.convalidated .event-name { color: #837a86; }
.event-place, .event-links a, .platform-sub, .platform-arrow { color: #837582; }
.event-links .team-link { color: #6978a8; }
.break-pill, .overview-label, .overview-meta, .subject-fullname, .subject-state { color: #897d89; }
.break-pill::before, .break-pill::after { background: #e8e0e7; }
.source-dot { background: #cda34d; }
.status-dot, .today-dot { background: #dc8eaa; box-shadow: 0 0 0 3px rgba(220, 142, 170, .16); }
.button-dark { background: #413240; }
.button-dark:hover { background: #574150; }
.platform-edit, .subject-edit { color: #946b9e !important; }
.subject-links a { border-color: #e9dfe8; color: #665565; }
.subject-links a:hover { border-color: #d7bfd0; background: #fbf3f7; }
.platform-icon.onedrive { background: linear-gradient(135deg, #826eaa, #b087b8); }
.platform-icon.teams { background: #75668f; }
.platform-icon.aules { background: #c98959; }
.platform-icon.moodle { background: #c77d66; }
.platform-icon.sharepoint { background: #795f97; }
.platform-icon.onlyoffice { background: #b46683; }
.platform-note, .footer-right, .page-footer { color: #928591; }
.platform-note a { color: #986689; }
.footer-mark { background: #f2e7ec; color: #8b637b; }
.links-dialog { border-color: #eadfe7; box-shadow: 0 28px 90px rgba(55, 39, 54, .25); }
.links-dialog::backdrop { background: rgba(44, 34, 47, .48); }
.dialog-overline, .dialog-description, .save-note { color: #857687; }
.dialog-close { border-color: #e9dfe7; color: #735d73; }
.field-group { border-color: #e9dfe9; background: #fcf8fb; }
.field-group-title { color: #4b394c; }
.field-row label { color: #796b7b; }
.field-row input { border-color: #e8dfe6; color: #493b4a; }
.field-row input:focus { border-color: #c78eaa; box-shadow: 0 0 0 3px rgba(199, 142, 170, .16); }
.button-quiet { border-color: #e8dfe6; color: #6f5d70; }
.toast { background: #413240; }
.profile-sticker { border-color: #e8cdd9; background: #faf0f3; box-shadow: 0 2px 8px rgba(96, 56, 77, .14); }


/* Ajustes de legibilidad: textos secundarios mayores en escritorio y móvil */
.brand-name small { font-size: 9px; }
.sidebar-label, .sidebar-foot, .breadcrumbs { font-size: 10px; }
.breadcrumbs strong { font-size: 12px; }
.today-chip { font-size: 11px; }
.button, .text-button { font-size: 11px; }
.help-card p { font-size: 11px; }
.help-card .text-button { font-size: 11px; }
.eyebrow, .small-eyebrow { font-size: 9px; }
.welcome-subtitle { font-size: 13px; }
.note-top, .overview-label { font-size: 9px; }
.welcome-note p { font-size: 13px; }
.note-tags, .mini-color-row span { font-size: 9px; }
.course-number span { font-size: 10px; }
.overview-meta, .week-label, .calendar-source { font-size: 10px; }
.shift-tab { font-size: 10px; }
.shift-tab span { font-size: 9px; }
.day-name { font-size: 10px; }
.day-date { font-size: 10px; }
.empty-day { font-size: 10px; }
.event-time { font-size: 10px; }
.event-name { font-size: 11px; }
.event-place, .event-links a, .break-pill { font-size: 9px; }
.schedule-footnote { font-size: 10px; }
.footnote-mark { font-size: 9px; }
.quiet-count, .subject-state { font-size: 9px; }
.subject-card h3 { font-size: 13px; }
.subject-fullname, .subject-links a { font-size: 9px; }
.platform-edit { font-size: 10px; }
.platform-name { font-size: 11px; }
.platform-sub, .platform-note { font-size: 9px; }
.platform-arrow { font-size: 15px; }
.page-footer { font-size: 8px; }
.footer-right { font-size: 9px; }
.dialog-overline, .field-row label, .save-note { font-size: 10px; }
.field-row input { font-size: 13px; }
@media (max-width: 560px) {
  .brand-name small { font-size: 8.5px; }
  .sidebar-label, .sidebar-foot, .breadcrumbs { font-size: 9px; }
  .breadcrumbs strong, .today-chip { font-size: 10px; }
  .button, .text-button { font-size: 10px; }
  .help-card p, .help-card .text-button { font-size: 10px; }
  .eyebrow, .small-eyebrow { font-size: 8.5px; }
  .welcome-subtitle { font-size: 11px; }
  .note-top, .overview-label { font-size: 8.5px; }
  .welcome-note p { font-size: 11px; }
  .note-tags, .mini-color-row span { font-size: 8.5px; }
  .course-number span, .overview-meta { font-size: 10px; }
  .week-label, .calendar-source { font-size: 10px; }
  .shift-tab { font-size: 9px; }
  .shift-tab span { font-size: 8.5px; }
  .day-name, .day-date { font-size: 10px; }
  .empty-day { font-size: 10px; }
  .event-time, .event-place, .event-links a { font-size: 9px; }
  .event-name { font-size: 11px; }
  .break-pill, .schedule-footnote { font-size: 9px; }
  .footnote-mark { font-size: 9px; }
  .quiet-count, .subject-state { font-size: 8.5px; }
  .subject-card h3 { font-size: 12px; }
  .subject-fullname { font-size: 9.5px; }
  .subject-links a { font-size: 8.5px; }
  .platform-edit { font-size: 9px; }
  .platform-name { font-size: 10px; }
  .platform-sub, .platform-note { font-size: 9px; }
  .platform-arrow { font-size: 14px; }
  .page-footer { font-size: 8px; }
  .footer-right { font-size: 8.5px; }
  .dialog-overline, .field-row label, .save-note { font-size: 9px; }
  .field-row input { font-size: 13px; }
}


/* Marca Admin&Finanzas */
.brand-name { max-width: 160px; font-size: 14px; letter-spacing: -.55px; line-height: 1.05; }
.brand-name small { font-size: 8px; letter-spacing: .9px; }
.mobile-brand { gap: 7px; font-size: 12px; letter-spacing: -.3px; }
.mobile-brand b { white-space: nowrap; }
@media (max-width: 360px) {
  .mobile-brand { gap: 5px; font-size: 11px; letter-spacing: -.35px; }
}


/* Movimiento discreto del sticker de Admin&Finanzas */
.profile-sticker {
  animation: admin-sticker-float 4.8s ease-in-out infinite;
  will-change: transform;
}
@keyframes admin-sticker-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 2px 8px rgba(96, 56, 77, .14);
  }
  50% {
    transform: translateY(-2px) rotate(2deg);
    box-shadow: 0 5px 13px rgba(150, 102, 137, .22);
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-sticker {
    animation: none;
    will-change: auto;
  }
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--forest);
  color: #fffefa;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #a94e34; outline-offset: 3px; }
.mobile-section-nav { display: none; }
.form-error {
  margin: 0 26px 12px;
  padding: 10px 12px;
  border: 1px solid #e7c4c1;
  border-radius: 8px;
  background: #fff3f1;
  color: #873d36;
  font-size: 12px;
  line-height: 1.5;
}
.field-row input[aria-invalid="true"] { border-color: #b24a42; box-shadow: 0 0 0 2px rgba(178, 74, 66, .12); }
.links-dialog [hidden] { display: none !important; }

@media (max-width: 780px) {
  .mobile-section-nav {
    position: sticky;
    z-index: 4;
    top: 0;
    display: flex;
    gap: 7px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-nav-link {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: #665565;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
  }
  .mobile-nav-link.active { border-color: var(--forest); background: var(--forest); color: #fffefa; }
  .form-error { margin-right: 16px; margin-left: 16px; }
}

@media (max-width: 380px) {
  .mobile-section-nav { gap: 5px; }
  .mobile-nav-link { min-height: 34px; padding: 0 10px; font-size: 11px; }
}


/* Ilustración de bienvenida con movimiento tranquilo y no intrusivo */
.welcome-section { isolation: isolate; }
.welcome-illustration {
  position: absolute;
  z-index: 0;
  right: 252px;
  bottom: -18px;
  width: clamp(155px, 21vw, 260px);
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  filter: drop-shadow(0 10px 11px rgba(76, 51, 77, .12));
  transform-origin: 50% 82%;
  animation: welcome-sticker-drift 7s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}
@keyframes welcome-sticker-drift {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}
@media (max-width: 1120px) {
  .welcome-illustration { right: 220px; width: clamp(135px, 19vw, 205px); }
}
@media (max-width: 780px) {
  .welcome-illustration { right: 205px; width: clamp(130px, 23vw, 185px); }
}
@media (max-width: 560px) {
  .welcome-illustration {
    top: 14px;
    right: 12px;
    bottom: auto;
    width: clamp(82px, 26vw, 112px);
    opacity: .62;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-illustration { animation: none; transform: none; }
}


/* Una ilustración propia en cada una de las cuatro asignaturas activas */
.subject-card { min-height: 194px; }
.subject-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 76px;
  margin-top: 8px;
}
.subject-card-copy { flex: 1; min-width: 0; }
.subject-card h3 { min-height: 0; margin: 0 0 5px; }
.subject-fullname { min-height: 0; }
.subject-art {
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 9px;
  filter: drop-shadow(0 4px 5px rgba(65, 50, 64, .12));
  transition: transform .22s ease;
}
.subject-card:hover .subject-art { transform: translateY(-2px) rotate(2deg); }
.subject-links { margin-top: auto; padding-top: 8px; }
@media (max-width: 560px) {
  .subject-card { min-height: 214px; }
  .subject-card-main { gap: 5px; }
  .subject-art { width: 56px; height: 56px; }
  .subject-card h3 { line-height: 1.25; }
}
@media (prefers-reduced-motion: reduce) {
  .subject-card:hover .subject-art { transform: none; }
}


/* Organización inteligente: información local, optativa y accionable */
.smart-section { margin-top: 35px; }
.smart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.smart-card {
  display: flex;
  min-width: 0;
  min-height: 202px;
  flex-direction: column;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.smart-card-top { display: flex; width: 100%; align-items: center; gap: 8px; }
.smart-card-icon { color: #a86b91; font-size: 17px; line-height: 1; }
.smart-kicker { color: #8b7d89; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.smart-card h3 { margin: 13px 0 6px; color: #433543; font: 700 15px/1.25 Manrope, sans-serif; }
.smart-copy { margin: 0 0 11px; color: #6f6370; font-size: 11px; line-height: 1.5; }
.smart-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #413240;
  color: #fffdfa;
  cursor: pointer;
  font: 700 11px 'DM Sans', sans-serif;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}
.smart-button:hover { background: #574150; transform: translateY(-1px); }
.smart-button-quiet { border: 1px solid #e9dfe8; background: #fbf6fa; color: #70576c; }
.smart-button-quiet:hover { border-color: #d7bfd0; background: #f7edf3; }
.smart-link-button { box-sizing: border-box; }
.smart-status { margin: 9px 0 0; color: #6f6370; font-size: 10px; line-height: 1.4; }
.smart-status.is-enabled { color: #55765f; font-weight: 600; }
.preferred-shift { margin: 1px 0 10px; color: #594455; font: 700 17px Manrope, sans-serif; }
.next-class-countdown { margin-top: 7px; color: #8d5474; font-size: 12px; font-weight: 700; }
.next-class-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.smart-inline-link, .smart-inline-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #e9dfe8;
  border-radius: 8px;
  background: #fbf6fa;
  color: #70576c;
  cursor: pointer;
  font: 700 10px 'DM Sans', sans-serif;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.smart-inline-link:hover, .smart-inline-button:hover { border-color: #d7bfd0; background: #f7edf3; color: #64415a; }
.next-class-actions [hidden] { display: none !important; }
@media (max-width: 1120px) {
  .smart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart-card:last-child { grid-column: 1 / -1; min-height: 160px; }
}
@media (max-width: 780px) {
  .mobile-section-nav { overflow-x: auto; scrollbar-width: none; }
  .mobile-section-nav::-webkit-scrollbar { display: none; }
  .mobile-nav-link { flex: 0 0 auto; white-space: nowrap; }
}
@media (max-width: 560px) {
  .smart-grid { grid-template-columns: 1fr; }
  .smart-card, .smart-card:last-child { min-height: 0; grid-column: auto; }
  .smart-card { padding: 15px; }
  .smart-button { min-height: 38px; font-size: 11px; }
  .smart-copy { font-size: 12px; }
  .smart-status { font-size: 10px; }
  .next-class-countdown { font-size: 12px; }
  .smart-inline-link, .smart-inline-button { min-height: 28px; padding: 0 8px; font-size: 10px; }
  .next-class-actions { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .smart-button, .smart-inline-link, .smart-inline-button { transition: none; }
  .smart-button:hover { transform: none; }
}
