/* Shared reading and interaction scale. Branding variables remain school-owned. */
body{line-height:1.55}.shell,main,#content{min-width:0}main{max-width:1700px;margin-inline:auto}h1,h2,h3,strong{overflow-wrap:anywhere}button{touch-action:manipulation}button:disabled{cursor:not-allowed}.primary{font-size:13px;min-height:44px}.help,.note,.empty,.entry p{font-size:13px}.entry p,.help,.entry-foot,.date,.account-row small,.topic-item small,.topic-choice small{color:var(--ink)}.help{opacity:.8}.link{font-size:12px;min-height:40px;white-space:normal;text-align:left}.entry-foot{font-size:12px}.badge,.date{font-size:12px}.section-head>span,.stat span,.stat small,.access{font-size:12px}.stat small{line-height:1.5}.stat{min-width:0}.toolbar{flex-wrap:wrap}.toolbar>div{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:8px}.toolbar select{max-width:100%;font-size:14px;min-height:44px}.search-box input{font-size:14px;min-height:44px}nav button .nav-long{font-size:13px}nav button{min-height:46px}.panel>h2,.panel .section-head h2{font-size:19px}.panel .section-head{flex-wrap:wrap;align-items:flex-start}.account-row p,.account-row small{font-size:12px}.account-row strong{font-size:14px}dialog label,.settings label{font-size:13px}dialog .help,dialog .form-error,dialog legend{font-size:13px}.topic-choice strong{font-size:14px}.topic-choice p,.topic-choice small{font-size:12px}dialog .topic-selector{max-height:380px}.topic-tools{display:flex;gap:12px;flex-wrap:wrap}table th{font-size:12px;color:var(--ink);font-weight:600}table td{font-size:13px}table td p{font-size:12px}.right .event strong{font-size:13px}.right .event p{font-size:12px}.book-tabs button{min-height:44px}.form-grid>*{min-width:0}dialog .modal-head{position:relative}.heading{min-height:140px}.schedule-panel{overflow:visible}.schedule-panel .section-head .help{margin:6px 0 0}.schedule-panel h2{margin:0}.timetable-legend{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.timetable-subject{display:inline-block;padding:5px 9px;border-radius:6px;font-size:12px;font-weight:600;max-width:100%;overflow-wrap:anywhere}.tone-0{--slot-bg:#eaf2fb;--slot-ink:#254f7a}.tone-1{--slot-bg:#e6f4ec;--slot-ink:#246142}.tone-2{--slot-bg:#fff1dc;--slot-ink:#805314}.tone-3{--slot-bg:#f0eafa;--slot-ink:#644385}.tone-4{--slot-bg:#fbeaec;--slot-ink:#8e3b4a}.tone-5{--slot-bg:#e7f4f4;--slot-ink:#21646b}.timetable-subject{background:var(--slot-bg);color:var(--slot-ink)}.timetable-scroll{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;isolation:isolate}.timetable{min-width:780px;width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}.timetable caption,.daily-timetable caption{text-align:left;padding:14px;background:var(--brand-softer);font-size:13px;font-weight:600;caption-side:top;color:var(--ink)}.timetable th,.timetable td{padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);vertical-align:top}.timetable thead th{background:var(--brand-soft);font-size:12px;color:var(--ink);font-weight:700}.timetable th:first-child{width:100px;position:sticky;left:0;z-index:2;background:var(--brand-softer)}.timetable thead th:first-child{background:var(--brand-soft);z-index:3}.timetable th span,.daily-timetable th span{display:block;font-size:11px;font-weight:400;white-space:nowrap;margin-top:4px}.timetable-cell{background:var(--slot-bg)}.timetable-lesson{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--slot-ink)}.timetable-lesson strong{font-size:14px;line-height:1.45}.timetable-lesson>span{font-size:12px;overflow-wrap:anywhere}.timetable-lesson .timetable-time{font-size:11px;font-weight:600}.timetable-free{background:#fff;color:#9aa7ac;text-align:center}.timetable-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.timetable-actions .link{font-size:11px;color:var(--slot-ink,var(--green));min-height:36px;padding:5px 0;text-decoration:underline;text-underline-offset:3px}.schedule-mobile{display:none}.schedule-footnote{font-size:12px;line-height:1.7;color:var(--ink);margin:18px 0 0}.daily-table-wrap{overflow:hidden;border:1px solid var(--line);border-radius:10px}.daily-timetable{min-width:0;table-layout:fixed;width:100%}.daily-timetable th,.daily-timetable td{padding:12px 8px;vertical-align:top;font-size:12px}.daily-timetable th:first-child{width:75px}.daily-timetable th:last-child:not(:nth-child(2)){width:75px}.daily-timetable thead{background:var(--brand-softer)}.daily-timetable th time{font-size:13px;white-space:nowrap}.daily-teacher{display:block;margin-top:7px;overflow-wrap:anywhere;font-size:12px}.daily-timetable .timetable-actions{display:grid;gap:3px}.timetable-empty{padding:24px 12px!important;text-align:center}.schedule-week-details{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.schedule-week-details summary{font-weight:600;font-size:13px;cursor:pointer;padding:8px 0}.schedule-day-tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:14px}.schedule-day-tabs button{min-width:0;min-height:44px;border:1px solid var(--line);border-radius:8px;background:white;font-size:12px;color:var(--ink)}.schedule-day-tabs button[aria-pressed=true]{background:var(--green);color:white;border-color:var(--green)}.school-top{display:contents}
@media(max-width:1100px){.layout{grid-template-columns:1fr}.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat small{font-size:11px}.entry-foot{flex-wrap:wrap}}
@media(max-width:900px){.schedule-desktop{display:none}.schedule-mobile{display:block}.panel{padding:20px}.heading{padding:24px}.right{grid-template-columns:1fr}.calendar-body{grid-template-columns:1fr}}
@media(max-width:700px){body{padding-bottom:env(safe-area-inset-bottom)}main{padding:18px 16px 28px}.heading{padding:22px 18px}.heading p{font-size:13px;max-width:none}.heading .primary{font-size:13px;min-height:44px}.heading h1{font-size:26px}.topline,.demo span{font-size:11px}.demo{font-size:9px;letter-spacing:.5px}.demo{flex-wrap:wrap}.eyebrow{font-size:10px}.stat{padding:15px 10px}.stat strong{font-size:25px}.stat span{font-size:11px}.stat small{display:none}.stat-icon{display:none}.entry p,.entry .link,.help,.empty{font-size:13px}.entry-top{flex-wrap:wrap;gap:8px}.entry h3{font-size:19px}.entry-foot{font-size:12px}.badge,.date{font-size:11px}.access{font-size:11px}.toolbar{gap:8px}.toolbar select{font-size:14px;max-width:100%}.search-box input{font-size:14px}.panel{padding:18px 14px}.book-tabs{gap:6px}.book-tabs button{font-size:12px}.lesson-search form{grid-template-columns:1fr}.lesson-search label{font-size:13px}.lesson-search input,.lesson-search select{font-size:16px;min-height:44px}.school-calendar{padding:16px 12px}.calendar-legend{gap:7px}.calendar-tag{font-size:12px}.calendar-controls{gap:5px}.calendar-controls strong{min-width:120px;font-size:13px}dialog{width:calc(100% - 20px);padding:22px 18px;max-height:calc(100dvh - 32px)}dialog input,dialog select,dialog textarea{font-size:16px}.topic-selector{max-height:330px}.form-grid{grid-template-columns:1fr}.palette-options{grid-template-columns:repeat(2,minmax(0,1fr))}.account-row{align-items:flex-start}.account-row p,.account-row small{font-size:12px}.book-card h3{overflow-wrap:anywhere}.book-card-actions{flex-wrap:wrap}.section-head h2{font-size:18px}.section-head>span{font-size:12px}.timetable-actions .link{min-height:42px}.schedule-day-tabs button{font-size:11px}.schedule-panel .section-head .primary{width:100%}.school-page-header .profile{flex-shrink:0}.school-page-header .header-school{min-width:0}#toast{bottom:calc(16px + env(safe-area-inset-bottom))}.panel:has(table):not(.schedule-panel)::after{content:'Em tabelas largas, deslize para os lados para ver todas as colunas.';display:block;font-size:11px;margin-top:12px;color:var(--ink)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media (max-width: 700px) {
  .school-top { display: block; position: sticky; top: 0; z-index: 35; }
  .school-top .school-page-header { position: relative; }
  #app #appNavigation {
    position: static; display: flex; gap: 6px; padding: 8px 14px;
    width: 100%; overflow-x: auto; background: white;
    border-bottom: 1px solid var(--line); scrollbar-width: thin;
  }
  #app #appNavigation button {
    display: flex; flex: 0 0 auto; flex-direction: row; gap: 6px;
    padding: 8px 11px; min-height: 44px; color: var(--ink);
    white-space: nowrap; border-bottom: 2px solid transparent;
  }
  #app #appNavigation .nav-short { display: block; font-size: 12px !important; }
  #app #appNavigation .nav-long { display: none; }
  #app #appNavigation button.active {
    background: var(--brand-soft); color: var(--green);
    border-bottom-color: var(--green);
  }
}
