.teacher{padding-block:2rem 3rem}
.teacher h1{font-size:clamp(2.6rem,6vw,4.5rem);margin:.5rem 0 1.25rem}
.teacher h1::after{display:none}
.teacher h2{font-size:clamp(1.75rem,3vw,2.4rem);margin-bottom:.75rem}
.teacher h3{margin-top:1rem}
.teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.teacher-card{background:#fffcf5;border:1px solid var(--line);padding:clamp(1rem,3vw,1.6rem);margin-bottom:1rem}
.teacher form{display:grid;gap:.65rem;margin-top:1rem}
.teacher label{display:grid;gap:.2rem}
.teacher .check{display:flex;align-items:center;gap:.45rem}
.teacher input:not([type=checkbox]),.teacher select{width:100%;padding:.55rem;min-height:2.7rem;background:white;border:1px solid #85765f;border-radius:.3rem;color:var(--ink);font:inherit}
.teacher button{justify-self:start;cursor:pointer;font:inherit}
.teacher :is(input,button,select):focus-visible{outline:3px solid #875921;outline-offset:3px}
.teacher-notice{padding:.7rem 1rem;margin-bottom:1rem;border-left:3px solid var(--gold);background:#fffaf1}
.record-list{list-style:none;padding:0;margin:.75rem 0 0}
.record-list li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.4rem 1rem;padding:.5rem 0;border-top:1px solid var(--line)}
@media(max-width:660px){.teacher-grid{grid-template-columns:1fr;gap:0}}
.teacher textarea{width:100%;font:inherit;color:var(--ink);background:white;border:1px solid #85765f;border-radius:.3rem;padding:.55rem}
.teacher-card .button{margin-top:.45rem}

@media (max-width: 660px) {
  .teacher { padding-block: 1.25rem 2rem; }
  .teacher h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; }
  .teacher, .teacher-card { overflow-wrap: anywhere; }
  .teacher-grid, .teacher form { grid-template-columns: minmax(0, 1fr); }
  .teacher :is(input, select, textarea, button) { min-width: 0; }
  .teacher :is(input:not([type=checkbox]), select, textarea) { min-height: 44px; font-size: 1rem; }
  .teacher .button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .65rem .8rem;
    text-align: center;
  }
  .teacher summary { min-height: 44px; padding-block: .55rem; }
  .teacher .record-list a { display: inline-block; min-height: 44px; padding-block: .55rem; }
  .teacher .check { min-height: 44px; }
}

.lesson-note {white-space:pre-wrap}
.worksheet-list li {align-items:center}
.worksheet-list form {margin:0}

.level-links { display:flex; flex-wrap:wrap; gap:.45rem; margin-bottom:1rem; }
.teacher .level-links .button { width:auto; min-width:44px; }
@media print {
  .screen-only, .top, button, #listen-status {display:none!important}
  .teacher-card {background:white; border-color:#777; break-inside:avoid}
  details:not([open]) > :not(summary) {display:block}
}

.teacher video {max-width:100%; height:auto; display:block;}

.rubric-meta {margin-bottom:.8rem}
.rubric-edition {max-width:48rem}
.rubric-edition h2:not(:first-child) {margin-top:1.6rem}
.rubric-edition audio {display:block;width:min(100%,30rem);margin-top:1rem}
.teacher .rubric-filter {margin:0;align-items:end;grid-template-columns:1fr 1fr auto}
@media(max-width:660px){.teacher .rubric-filter {grid-template-columns:1fr}}
.guide-link {margin-top:.75rem}

#padaria-player img {width:min(100%,45rem);aspect-ratio:16/10;object-fit:cover;border-radius:.35rem}
.player-settings {display:flex;align-items:end;flex-wrap:wrap;gap:1rem;margin:.8rem 0}
.player-settings label {min-width:10rem}
[data-quiz] [data-result]:empty {display:none}
[data-result] {font-size:.9rem}

.flash-deck {max-width:40rem}
.flash-deck img {width:100%;object-fit:cover;aspect-ratio:3/2;margin:.7rem 0}
.flash-deck [data-example] {margin-top:.65rem}
.flash-deck [aria-pressed=true] {background:#315c4b}

.schedule-visual {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(11rem,1fr);gap:.55rem;overflow-x:auto;padding:.7rem 0}
.schedule-day {border:1px solid var(--line);border-radius:.4rem;padding:.55rem;background:white}
.schedule-day h3 {margin:.15rem 0 .45rem;font-size:1.15rem}
.schedule-day ul {margin:0;padding:0;list-style:none}
.schedule-day li {display:grid;line-height:1.35;border-left:3px solid var(--gold);padding:.3rem .5rem;background:#f4eee1;margin-bottom:.35rem}

.daily-figures {margin-top:1rem;gap:1.25rem}
.daily-figures section {border:1px solid var(--line);padding:.8rem}
.daily-figures h3 {margin:0 0 .4rem}
.daily-figures strong {font-size:1.4rem}

.contact-state {display:inline-block;border-radius:.3rem;padding:.2rem .55rem;margin:.1rem 0 .5rem;font-weight:650}
.contact-todo {color:#7b2224;background:#ffebe9}
.contact-waiting {color:#654501;background:#fff0bf}
.contact-done {color:#20513a;background:#e3f4e8}

.finance-overflow {overflow-x:auto}
.finance-overflow table {border-collapse:collapse;width:100%;min-width:45rem;text-align:left}
.finance-overflow th,.finance-overflow td {padding:.55rem;border-bottom:1px solid var(--line)}
.finance-overflow thead {background:#f4eee1}
.finance-filters {grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));align-items:end}
.finance-peaks {display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:1rem}
.finance-peaks dt {font-weight:700}
.finance-peaks dd {margin:0}
.finance-note {margin-top:.75rem}

#padaria-player video {width:min(100%,48rem);margin:.5rem 0}
#padaria-player audio {display:block;width:min(100%,30rem);margin:.8rem 0}
.bakery-scenes {display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:.65rem;margin:1rem 0}
.bakery-scenes figure {margin:0}
.bakery-scenes figcaption {margin-top:.35rem}

.guide-prices {width:100%;border-collapse:collapse;text-align:left;margin:.85rem 0}
.guide-prices caption {text-align:left;font-weight:700;margin-bottom:.35rem}
.guide-prices :is(th,td) {padding:.4rem;border-bottom:1px solid var(--line)}
.guide-prices td {white-space:nowrap}

.student-identity {display:flex;gap:1rem;align-items:center;margin:1rem 0}
.student-identity h1 {margin:.2rem 0 .45rem}
.student-avatar {display:inline-grid;place-items:center;width:5rem;height:5rem;flex:none;border-radius:50%;object-fit:cover;background:#e7dfce;color:#183345;font-size:1.4rem;font-weight:700}

.dashboard-nav,.dashboard-actions {display:flex;flex-wrap:wrap;gap:.55rem;margin:.7rem 0 1rem}
.dashboard-nav a,.dashboard-actions a {border:1px solid var(--line);border-radius:.35rem;padding:.45rem .7rem;background:white;color:var(--ink)}
.dashboard-actions a {display:grid;gap:.15rem;min-width:10rem;text-decoration:none}
.dashboard-actions a:hover {text-decoration:underline}
.dashboard-actions span {font-size:.9rem}
#active-students li[hidden] {display:none}
#alunos label {max-width:25rem}
#agenda,#resumo-diario,#alunos,#renovacoes {scroll-margin-top:1rem}

.tone-agenda {border-left:.38rem solid #17667a;background:#f1fafc}
.tone-students {border-left:.38rem solid #70529b;background:#f8f3ff}
.tone-money {border-left:.38rem solid #277154;background:#f1f9f4}
.tone-content {border-left:.38rem solid #2d689f;background:#f1f7ff}
.tone-access {border-left:.38rem solid #596481;background:#f3f5fb}
.tone-alert {border-left:.38rem solid #a7651f;background:#fff3de}
.profile-schedule {margin:0 0 1rem;padding:.55rem .8rem;background:#f8f3ff;border-left:.38rem solid #70529b}
.dashboard-nav a:nth-child(1) {background:#e1f3f7}
.dashboard-nav a:nth-child(2) {background:#f0e6fc}
.dashboard-nav a:nth-child(3),.dashboard-nav a:nth-child(4) {background:#e4f4e9}
.dashboard-nav a:nth-child(5) {background:#e6effb}
.daily-three {display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr))}
.daily-three .daily-net {background:#e3f4e9;border-color:#9ac4ae}

.student-schedule {display:block;margin-top:.15rem}
.finance-summary {display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.65rem}
.finance-summary div {padding:.7rem;border:1px solid var(--line);border-radius:.4rem;background:#f1f9f4}
.finance-summary dt {font-size:.9rem}
.finance-summary dd {margin:.15rem 0 0;font-weight:700;font-size:1.25rem}

.contact-page {
  min-height: 100vh;
  background: #f7f2e7;
}

.contact-page .contact-layout {
  display: grid;
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 5rem);
}

.contact-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #d9c396;
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--burgundy);
  color: #fff8e9;
  text-align: center;
}

.contact-intro-copy {
  align-self: center;
  padding: clamp(1.8rem, 5vw, 3rem);
}

.contact-envelope {
  position: relative;
  min-height: 15rem;
}

.contact-envelope img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-intro h1::after {
  margin-inline: auto;
}

.contact-intro h1 {
  margin: 0 auto .8rem;
  color: inherit;
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
}

.contact-intro p {
  max-width: 30rem;
  margin: 0 auto;
  color: #f4e6c9;
  line-height: 1.6;
}

.contact-page .contact-form {
  margin: 0;
  padding: clamp(1.25rem, 5vw, 3rem);
  border: 1px solid #d9c396;
  border-top: 0;
  border-radius: 0 0 1.5rem 1.5rem;
  background: #fffcf7;
  box-shadow: 0 14px 32px #3c352515;
}

.contact-form form {
  max-width: 38rem;
  margin-inline: auto;
}

.contact-form textarea,
.contact-form input {
  border-color: #c6bdac;
  border-radius: .65rem;
}

.contact-form .button {
  display: block;
  margin-inline: auto;
  padding-inline: 2rem;
  border-radius: 2rem;
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff8e9;
}

.contact-form .button:hover {
  background: var(--burgundy-dark);
}

@media (max-width: 640px) {
  .contact-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-envelope {
    min-height: 0;
    height: clamp(8rem, 31vw, 12rem);
  }

  .contact-envelope img {
    object-position: center 58%;
  }
}

.sharing-photo {
  width: auto;
  max-width: 100%;
  max-height: 26rem;
  object-fit: contain;
  margin-block: 1rem;
}

.sharing-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-photo {
  display: block;
  width: 100%;
  max-height: 23rem;
  object-fit: cover;
  border-radius: .5rem;
  margin-block: .8rem;
}

.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr));
  gap: 1rem;
  margin-block: 1.25rem;
}
.guide-category-grid a {
  display: grid;
  border: 1px solid var(--line);
  border-radius: .8rem;
  overflow: hidden;
  background: #fffaf1;
  text-decoration: none;
}
.guide-category-grid img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.guide-category-grid strong { padding: .7rem 1rem; }
.guide-category-grid a:hover,
.guide-category-grid a[aria-current] { outline: 2px solid var(--ink); }
.guide-illustration { margin: 0 0 .8rem; }
.guide-illustration figcaption { font-size: .85rem; }

.portugal-news .news-banner {
  background: #f7f4ef;
  color: #452630;
  border: 1px solid #e6ded6;
  border-radius: 1rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: 1.4rem;
}
.portugal-news .news-banner h1 { color: inherit; margin: 0 0 .5rem; }
.portugal-news .news-banner p { margin: 0; }
.portugal-news .level-links .button { background: #f7f4ef; color: #512d39; }
.portugal-news .level-links [aria-current="page"],
.portugal-news .news-story .button { background: #663447; color: #fff; }
.portugal-news .news-story { border-top: .2rem solid #663447; background: #fff; }
.portugal-news .news-study { border-top: 1px solid #e6ded6; margin-top: 1.25rem; }
.portugal-news .news-study h3 { color: #512d39; margin: 1.2rem 0 .55rem; }
.portugal-news .news-study dt { font-weight: 700; }
.portugal-news .news-study dd { margin: 0 0 .75rem; }
.portugal-news .news-study dd em { display: block; }
.portugal-news .news-study details { background: #f7f4ef; border-radius: .35rem; margin-bottom: .45rem; padding: .6rem .8rem; }
.portugal-news .news-study summary, .portugal-news .news-photo-credits summary { cursor: pointer; }
.portugal-news .news-study details p { margin: .5rem 0 0; }
.portugal-news .news-photo { margin: 0 0 1rem; }
.portugal-news .news-photo img {
  display: block;
  width: 100%;
  max-height: 23rem;
  object-fit: cover;
  object-position: center 55%;
  border-radius: .65rem;
}
.portugal-news .news-photo figcaption { font-size: .875rem; margin-top: .45rem; }

.portugal-news .news-photo-credits { font-size: .75rem; color: #5e5357; margin-top: .2rem; }
.portugal-news .news-level { border-top: 1px solid #e6ded6; padding: .65rem 0; }
.portugal-news .news-level > summary { color: #512d39; font-weight: 700; cursor: pointer; }

.quick-practice-level { border-top: 1px solid #e6ded6; margin-top: 1rem; padding-top: .6rem; }
.quick-practice-level > details { background: #f7f4ef; padding: .65rem .85rem; border-radius: .35rem; margin-bottom: .45rem; }
.quick-practice-level summary { cursor: pointer; }

.teacher-menu section { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; padding:.65rem; border:1px solid var(--line); border-radius:.45rem; }
.teacher-menu section strong { flex-basis:100%; }
.teacher-menu section a, .profile-menu a { background:#fff; }
.lesson-totals { display:flex; flex-wrap:wrap; gap:1rem; }
.lesson-totals strong { font-size:1.65rem; margin-right:.25rem; }
.lesson-months { overflow-x:auto; }
.lesson-months table { width:100%; border-collapse:collapse; }
.lesson-months th, .lesson-months td { text-align:left; padding:.55rem; border-bottom:1px solid var(--line); }

.student-profile .profile-heading {
  background:#243f49; color:white; padding:clamp(1.3rem,4vw,2.7rem);
  border-radius:1rem; border-bottom:.35rem solid #ccac79;
}
.student-profile .profile-heading a {color:#f5e4c8;}
.student-profile .profile-heading h1 {margin:.8rem 0 .25rem;color:white;font:500 clamp(2rem,4vw,3rem)/1.1 Georgia,serif;}
.student-profile .profile-heading p {margin:.3rem 0;color:#e3edef;}
.profile-layout {display:grid;grid-template-columns:minmax(10rem,13rem) minmax(0,1fr);gap:1.4rem;align-items:start;margin-top:1.3rem;}
.profile-layout .profile-menu {display:grid;gap:.2rem;position:sticky;top:.7rem;margin:0;padding:.6rem;background:#edf2f2;border-radius:.75rem;}
.profile-layout .profile-menu a {background:transparent;color:#24444d;border:0;border-radius:.4rem;padding:.55rem .7rem;text-align:left;}
.profile-layout .profile-menu a:hover,.profile-layout .profile-menu a:focus-visible {background:white;}
.profile-sections .teacher-card {margin:0 0 1rem;background:white;border:1px solid #d5dfe0;border-radius:.8rem;padding:clamp(1rem,3vw,1.8rem);}
.profile-sections h2 {color:#243f49;font-family:Georgia,serif;}
.profile-sections .lesson-months tbody tr:last-child {background:#eaf2ef;font-weight:bold;}
@media(max-width:760px){
 .profile-layout {display:block;}
 .profile-layout .profile-menu {position:static;display:flex;flex-wrap:nowrap;overflow-x:auto;margin-bottom:1rem;}
 .profile-layout .profile-menu a {flex:none;}
}
#dados-aluno {position:relative;}
#dados-aluno h2 {padding-right:5rem;}
.profile-facts {margin:0;display:grid;gap:.45rem;}
.profile-facts div {display:grid;grid-template-columns:minmax(7rem,32%) 1fr;gap:.6rem;}
.profile-facts dt {font-weight:600;}
.profile-facts dd {margin:0;white-space:pre-line;}
.profile-edit>summary {position:absolute;top:1.2rem;right:1.2rem;color:#245060;text-decoration:underline;cursor:pointer;}
.teacher-card .payment-due,.payment-due strong {color:#951f30;}
.balance-alert {background:#fff1f1;border-left:4px solid #aa2939;padding:.8rem 1rem;}
