@font-face {
  font-family: Lato;
  src: url("/static/lato.e1b3b5908c9c.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Noto;
  src: url("/static/noto.dc4ab4d5e593.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --navy: #10213f;
  --paper: #f6f2eb;
  --coral: #ff7a59;
  --sage: #a7d9c8;
  --sky: #9ec9ff;
  --ink: #24334a;
  --muted: #657184;
  --line: #e4e5e6;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf9f6;
  color: var(--ink);
  font:
    16px/1.6 Lato,
    Arial,
    sans-serif;
}
h1,
h2,
h3 {
  color: var(--navy);
  font-family: Noto, Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  margin: 10px 0 12px;
}
h2 {
  font-size: 25px;
}
h3 {
  font-size: 19px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #3777ba;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.skip {
  position: fixed;
  top: -70px;
  background: white;
  padding: 12px;
  z-index: 100;
}
.skip:focus {
  top: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 35px 22px 20px;
  z-index: 10;
}
.logo {
  width: 188px;
  height: auto;
  object-fit: contain;
  margin: 0 5px 36px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: bold;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  color: #526075;
  border-radius: 7px;
  padding: 12px 15px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.nav button.active {
  background: #e7e6e0;
  color: var(--navy);
  font-weight: bold;
}
.nav button:hover {
  background: #eeece6;
}
.nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 26px;
}
.sidebar-bottom p {
  margin: 3px 0;
  font-size: 12px;
  color: var(--muted);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sage);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--navy);
}
.identity {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.identity strong {
  font-size: 13px;
}
.workspace {
  margin-left: 245px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 44px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  color: var(--muted);
}
.topbar .brand-small {
  display: none;
}
.main {
  max-width: 1400px;
  padding: 36px 44px 64px;
  margin: auto;
}
.welcome {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.welcome p {
  margin: 0;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  padding: 4px 11px;
  background: #e4f2ec;
  color: #235b47;
  font-size: 12px;
  white-space: nowrap;
}
.tag.warn {
  background: #fff0d5;
  color: #805a1b;
}
.tag.blue {
  background: #e5eefc;
  color: #315581;
}
.tag.gray {
  background: #eceef1;
  color: #566376;
}
.hero {
  background: var(--navy);
  color: white;
  border-radius: 13px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 238px;
  margin-bottom: 28px;
}
.hero h2 {
  color: white;
  font-size: 30px;
  margin: 16px 0 10px;
}
.hero p {
  color: #c8d2e1;
  margin: 5px 0;
}
.hero .eyebrow {
  color: var(--sage);
}
.hero-art {
  font-family: Noto, Georgia, serif;
  font-size: 76px;
  line-height: 1;
  color: #ffffff12;
  transform: rotate(-10deg);
  max-width: 210px;
  user-select: none;
}
.hero .button {
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: white;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  line-height: 1.6;
  min-height: 42px;
}
.button:hover {
  filter: brightness(1.1);
}
.button.coral {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--navy);
}
.button.secondary {
  background: transparent;
  color: var(--navy);
  border-color: #cbd0d7;
}
.button.small {
  min-height: 34px;
  padding: 5px 11px;
  font-size: 12px;
}
.button.danger {
  background: #a33737;
  border-color: #a33737;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  padding: 4px;
  font-size: 13px;
}
.grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}
.stat,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
}
.stat strong {
  font-family: Noto, Georgia, serif;
  display: block;
  font-size: 29px;
  margin: 4px 0;
  color: var(--navy);
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.card h2 {
  font-size: 21px;
  margin: 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.card + .card {
  margin-top: 24px;
}
.row {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 17px;
  align-items: center;
}
.row:first-child {
  border-top: 0;
}
.row-content {
  flex: 1;
  min-width: 0;
}
.row-content strong {
  font-size: 14px;
}
.row p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 13px;
}
.date-tile {
  background: var(--paper);
  width: 54px;
  min-width: 54px;
  border-radius: 6px;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  text-transform: uppercase;
  line-height: 1.5;
}
.date-tile b {
  font-size: 21px;
  display: block;
  color: var(--navy);
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  margin-top: 0;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input {
  max-width: 300px;
}
.spacer {
  flex: 1;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #f4f4f1;
}
th,
td {
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
td .button {
  margin-right: 5px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 8px;
  overflow: auto;
  padding-bottom: 10px;
}
.day {
  min-height: 290px;
  background: #f0f0eb;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
}
.day.today {
  border-color: var(--coral);
}
.day h3 {
  font:
    700 12px Lato,
    Arial;
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.lesson {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #d1e4db;
  border-left: 3px solid #65a98e;
  background: #e8f4ee;
  border-radius: 5px;
  padding: 11px;
  margin: 8px 0;
  color: var(--navy);
  font-size: 12px;
}
.lesson b {
  display: block;
}
.lesson.cancelled {
  background: #ededed;
  border-color: #d4d4d4;
  color: #707070;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 15px;
}
.field label {
  font-weight: bold;
}
.field small {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #bfc7cf;
  background: white;
  color: var(--ink);
  border-radius: 5px;
  padding: 10px 12px;
  width: 100%;
  min-height: 43px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  margin: 16px 0;
}
.check input {
  flex-shrink: 0;
  margin-top: 4px;
}
.full {
  grid-column: 1/-1;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.error {
  color: #a32828;
  background: #fff0ee;
  border: 1px solid #f2c5bf;
  border-radius: 5px;
  padding: 12px;
  font-size: 13px;
}
.notice {
  background: #ecf4fd;
  border: 1px solid #d3e2f6;
  padding: 15px 18px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 22px;
}
.notice.warn {
  background: #fff4df;
  border-color: #f3dfb4;
}
.notes-head {
  background: var(--paper);
  padding: 28px 30px;
  border-radius: 10px;
  margin-bottom: 24px;
  border: 1px solid #e7e3dc;
  position: relative;
}
.notes-head .eyebrow {
  color: #ab452d;
}
.notes-head h2 {
  margin: 8px 0 4px;
  font-size: 28px;
}
.notes-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.notes-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.notes-section:last-of-type {
  border-bottom: 0;
}
.notes-section h3 {
  font-family: Noto, Georgia, serif;
  font-size: 16px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}
.notes-section h3 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--navy);
  font-family: Lato, sans-serif;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.notes-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: #faf9f6;
  padding: 14px 18px;
  border-radius: 8px;
  border-left: 3px solid var(--sage);
}
.notes-body p {
  margin: 6px 0;
}
.balance-number {
  font-family: Noto, Georgia, serif;
  font-size: 48px;
  line-height: 1.1;
  color: var(--navy);
  display: inline-block;
}
.autosave-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.autosave-status.saving {
  color: var(--muted);
  background: #f0f0eb;
}
.autosave-status.saved {
  color: #235b47;
  background: #e4f2ec;
}
.autosave-status.pending {
  color: #805a1b;
  background: #fff4df;
}
.autosave-status.error {
  color: #a32828;
  background: #fff0ee;
}
.autosave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.tabbar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.tabbar button {
  border: 0;
  background: transparent;
  padding: 8px 17px;
  font-size: 13px;
  border-radius: 5px;
}
.tabbar button.active {
  background: var(--navy);
  color: white;
}
dialog {
  border: 0;
  border-radius: 12px;
  width: min(780px, 94vw);
  max-height: 90vh;
  padding: 34px;
  color: var(--ink);
  box-shadow: 0 24px 90px #0003;
}
dialog::backdrop {
  background: #10213f80;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-top: 0;
  padding-right: 24px;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  z-index: 100;
  font-size: 14px;
  max-width: 90vw;
  display: none;
}
#toast.show {
  display: block;
}
.loading {
  padding: 100px;
  text-align: center;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-art {
  background: var(--navy);
  color: var(--paper);
  padding: 70px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-art img {
  width: 210px;
}
.auth-art h1 {
  color: var(--paper);
  font-size: clamp(40px, 4.3vw, 65px);
  line-height: 1.2;
}
.auth-art h1 em {
  color: var(--sage);
  font-weight: 400;
}
.auth-art p {
  max-width: 410px;
  color: #b8c6d9;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-form {
  width: 100%;
  max-width: 410px;
}
.auth-form h2 {
  font-size: 31px;
}
.auth-form .button {
  width: 100%;
}
.auth-form footer {
  font-size: 12px;
  margin-top: 40px;
  color: var(--muted);
}
.policy {
  max-width: 780px;
  padding: 48px 24px;
  margin: auto;
}
.policy img {
  display: block;
  margin: 40px 0;
}
.mobile-toggle {
  display: none;
}
.profile-grid {
  max-width: 730px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--paper);
  padding: 16px;
  font-size: 12px;
}
.footnote {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 1100px) {
  .main {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .sidebar {
    width: 220px;
    padding: 28px 16px;
  }
  .workspace {
    margin-left: 220px;
  }
  .logo {
    width: 175px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.15s;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 50px #0003;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .topbar .brand-small {
    display: block;
    width: 120px;
  }
  .topbar .desktop-label {
    display: none;
  }
  .mobile-toggle {
    display: block;
    border: 0;
    background: transparent;
    font-size: 24px;
  }
  .main {
    padding: 25px 18px;
  }
  .welcome {
    display: block;
  }
  .welcome .tag {
    margin-top: 15px;
  }
  .hero {
    padding: 26px;
    min-height: 230px;
  }
  .hero h2 {
    font-size: 26px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .card {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    display: none;
  }
  .auth-main {
    padding: 30px 24px;
  }
  .auth-form:before {
    content: "English TalkLab";
    font-family: Noto, Georgia;
    font-size: 23px;
    color: var(--navy);
  }
  .row {
    gap: 10px;
  }
  .row .button {
    padding: 5px 9px;
  }
  .topbar select {
    max-width: 125px;
  }
  .toolbar > * {
    flex-grow: 1;
  }
  .calendar {
    grid-template-columns: repeat(7, 155px);
  }
  dialog {
    padding: 27px 20px;
    width: 95vw;
    border-radius: 12px;
  }
  .hero .button {
    width: 100%;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    z-index: 90;
    align-items: center;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 16px rgba(16, 33, 63, 0.05);
  }
  .bottom-nav button {
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--muted);
    padding: 6px 10px;
    min-height: 48px;
    min-width: 48px;
    cursor: pointer;
  }
  .bottom-nav button.active {
    color: var(--navy);
    font-weight: bold;
  }
  .bottom-nav button.active svg {
    stroke: var(--coral);
  }
  .bottom-nav button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
  }
  .main {
    padding-bottom: 85px;
  }
}
.bottom-nav {
  display: none;
}
.washi-tape {
  position: relative;
}
.washi-tape::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 28px;
  width: 90px;
  height: 24px;
  background: rgba(214, 198, 151, 0.65);
  transform: rotate(-3.5deg);
  pointer-events: none;
  border-radius: 2px;
  z-index: 2;
}
dialog[open] {
  animation: modalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
