:root {
    --font-heading: "Playfair Display", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #17121f;
    --muted: #6d6578;
    --paper: #fbf6ee;
    --paper-warm: #f7efe6;
    --card: #ffffff;
    --line: rgba(38, 29, 54, 0.1);
    --shadow-soft: 0 22px 70px rgba(48, 34, 70, 0.11);
    --signature-gradient: linear-gradient(135deg, #171633 0%, #31508f 27%, #7853a4 55%, #b94872 78%, #e7a9ad 100%);
    --button-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(231, 169, 173, 0.28), transparent 32rem),
        linear-gradient(180deg, #fff8ef 0%, var(--paper) 44%, #f8efe9 100%);
}

.app-page {
    padding: 52px 0 96px;
}

.app-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 34px;
}

.app-eyebrow {
    margin-bottom: 12px;
    color: #8c5275;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.app-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.98;
}

.app-subtitle {
    max-width: 720px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

.premium-card,
.premium-panel,
.auth-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 241, 0.76));
    box-shadow: var(--shadow-soft);
}

.premium-card {
    height: 100%;
    padding: 34px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 74px rgba(48, 34, 70, 0.14);
}

.premium-card h2,
.premium-card h3,
.premium-panel h2,
.auth-card h1,
.app-section-title {
    font-family: var(--font-heading);
    color: var(--ink);
}

.premium-card h2,
.premium-card h3 {
    margin-bottom: 14px;
    font-size: 1.9rem;
    line-height: 1.1;
}

.premium-card p,
.premium-panel p,
.empty-state {
    color: var(--muted);
    line-height: 1.65;
}

.premium-panel {
    padding: 30px;
    margin-bottom: 28px;
}

.app-tabs {
    margin-top: 30px;
}

.app-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.72);
    box-shadow: 0 16px 42px rgba(58, 43, 78, 0.08);
}

.app-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    color: rgba(23, 18, 31, 0.64);
    font-weight: 800;
    background: transparent;
    transform: translateY(0) scale(1);
    transition:
        transform 180ms var(--button-ease),
        background 180ms var(--button-ease),
        color 180ms var(--button-ease),
        box-shadow 180ms var(--button-ease);
}

.app-tab:hover {
    color: var(--ink);
    transform: translateY(-1px);
}

.app-tab:active {
    transform: translateY(0) scale(0.97);
}

.app-tab.is-active {
    color: #fff;
    background: var(--signature-gradient);
    box-shadow: 0 14px 30px rgba(120, 83, 164, 0.2);
}

.app-tab-badge {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.94);
    border-radius: 999px;
    background: linear-gradient(135deg, #b94872, #7853a4);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    box-shadow:
        0 12px 24px rgba(120, 83, 164, 0.24),
        0 5px 12px rgba(185, 72, 114, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.app-tab.is-active .app-tab-badge {
    border-color: rgba(255, 255, 255, 0.98);
    background: #fff;
    color: #8f315a;
    box-shadow:
        0 12px 24px rgba(58, 43, 78, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.app-tab:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.24);
}

.app-tab-panel[hidden] {
    display: none;
}

/* Student guide */
.student-guide {
    --guide-border: rgba(120, 83, 164, 0.14);
    position: relative;
}

.guide-hero,
.guide-timezone,
.guide-payment,
.guide-footer {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(circle at 90% 12%, rgba(231, 169, 173, 0.32), transparent 20rem),
        radial-gradient(circle at 8% 8%, rgba(120, 83, 164, 0.13), transparent 18rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.84));
    box-shadow: var(--shadow-soft);
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
    align-items: center;
    min-height: 370px;
    padding: clamp(32px, 6vw, 72px);
}

.guide-hero-copy { position: relative; z-index: 2; }
.guide-hero h2,
.guide-section h3,
.guide-timezone h3,
.guide-payment h3,
.guide-footer h3 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
}

.guide-hero h2 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.98; }
.guide-hero-copy > p:not(.app-eyebrow) { max-width: 660px; margin: 20px 0 14px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.7; }
.guide-hero-copy > span { color: #795d83; font-size: 0.9rem; font-weight: 800; }
.guide-hero-art { position: relative; min-height: 230px; }
.guide-art-calendar { position: absolute; top: 16px; right: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 210px; padding: 55px 24px 25px; border: 1px solid rgba(255,255,255,.84); border-radius: 26px; background: rgba(255,255,255,.76); box-shadow: 0 24px 50px rgba(65,42,83,.15); transform: rotate(4deg); }
.guide-art-calendar::before { content: ""; position: absolute; inset: 0 0 auto; height: 38px; border-radius: 26px 26px 0 0; background: var(--signature-gradient); }
.guide-art-calendar span { position: absolute; top: -8px; width: 8px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 3px 8px rgba(23,18,31,.2); }
.guide-art-calendar span:nth-child(1) { left: 42px; } .guide-art-calendar span:nth-child(2) { left: 101px; } .guide-art-calendar span:nth-child(3) { right: 42px; }
.guide-art-calendar i { aspect-ratio: 1; border-radius: 8px; background: rgba(120,83,164,.1); }
.guide-art-calendar i:nth-of-type(5) { background: linear-gradient(135deg,#7853a4,#b94872); box-shadow: 0 7px 14px rgba(120,83,164,.25); }
.guide-art-book { position: absolute; right: 145px; bottom: 4px; width: 112px; height: 78px; border-radius: 8px 8px 16px 16px; background: linear-gradient(135deg,#20254f,#7853a4); box-shadow: 0 18px 32px rgba(48,34,70,.22); transform: rotate(-8deg); }
.guide-art-book::after { content: ""; position: absolute; top: 10px; bottom: 10px; left: 50%; width: 1px; background: rgba(255,255,255,.4); }
.guide-art-book span { position: absolute; right: 17px; top: 18px; width: 25px; height: 3px; border-radius: 9px; background: #fff; box-shadow: 0 9px 0 rgba(255,255,255,.65); }

.guide-nav { position: sticky; top: 104px; z-index: 15; display: flex; gap: 6px; margin: 18px 0 52px; padding: 7px; overflow-x: auto; border: 1px solid rgba(255,255,255,.78); border-radius: 999px; background: rgba(255,252,247,.94); box-shadow: 0 14px 34px rgba(58,43,78,.09); scrollbar-width: none; backdrop-filter: blur(14px); }
.guide-nav::-webkit-scrollbar { display: none; }
.guide-nav a { flex: 1 0 auto; padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 800; text-align: center; text-decoration: none; transition: color 160ms ease, background 160ms ease; }
.guide-nav a:hover, .guide-nav a:focus-visible { color: #7853a4; background: rgba(120,83,164,.08); outline: 0; }
.guide-nav a.is-active { color: #fff; background: var(--signature-gradient); box-shadow: 0 9px 20px rgba(120,83,164,.18); }
.guide-section { padding: 18px 0 72px; scroll-margin-top: 160px; }
.guide-section-heading { max-width: 740px; margin-bottom: 26px; }
.guide-section-heading h3, .guide-timezone h3, .guide-payment h3, .guide-footer h3 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; }
.guide-section-heading > p:not(.app-eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.guide-heading-centered { margin-right: auto; margin-left: auto; text-align: center; }
.guide-card-grid { display: grid; gap: 20px; }
.guide-card-grid-two, .guide-rhythm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-card-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-card, .guide-rhythm-card, .guide-feature-card { padding: 28px; border: 1px solid rgba(255,255,255,.82); border-radius: 24px; background: linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,248,241,.76)); box-shadow: 0 18px 46px rgba(48,34,70,.08); }
.guide-card h4, .guide-rhythm-card h4, .guide-feature-card h4, .guide-change-grid h4 { margin: 18px 0 9px; color: var(--ink); font-family: var(--font-heading); font-size: 1.55rem; }
.guide-card p, .guide-rhythm-card p, .guide-feature-card p, .guide-change-grid p, .guide-frequency p { margin: 0; color: var(--muted); line-height: 1.65; }
.guide-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.72); border-radius: 17px; color: #fff; background: var(--signature-gradient); box-shadow: 0 12px 25px rgba(120,83,164,.2); }
.guide-icon svg, .guide-globe svg { width: 25px; height: 25px; }
.guide-icon-small { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 14px; }
.guide-icon-small svg { width: 20px; height: 20px; }
.guide-callout { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 22px; border: 1px solid var(--guide-border); border-radius: 20px; background: rgba(120,83,164,.07); }
.guide-callout p { margin: 0; color: #503e5b; font-weight: 700; line-height: 1.55; }
.guide-rhythm-grid { display: grid; gap: 20px; }
.guide-example-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.guide-example-chips span { padding: 8px 11px; border: 1px solid var(--guide-border); border-radius: 999px; color: #654579; background: rgba(120,83,164,.07); font-size: .77rem; font-weight: 800; }
.guide-card-note { padding-top: 17px; border-top: 1px solid var(--line); font-size: .9rem; }
.guide-frequency { margin-top: 20px; padding: 26px; border: 1px solid var(--guide-border); border-radius: 24px; background: rgba(255,255,255,.55); }
.guide-frequency > p:first-child { color: var(--ink); font-weight: 800; }
.guide-frequency > div { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 17px 0 14px; }
.guide-frequency > div > span { display: flex; align-items: center; justify-content: center; min-height: 70px; padding: 12px; border: 1px solid var(--guide-border); border-radius: 18px; color: #594763; background: rgba(255,255,255,.74); font-weight: 800; text-align: center; }
.guide-frequency > div > span.is-recommended { position: relative; border-color: rgba(120,83,164,.3); color: #654579; background: linear-gradient(135deg,rgba(120,83,164,.11),rgba(231,169,173,.14)); }
.guide-frequency .is-recommended small { position: absolute; top: -10px; padding: 3px 9px; border-radius: 99px; color: #fff; background: var(--signature-gradient); font-size: .61rem; letter-spacing: .06em; text-transform: uppercase; }
.guide-frequency-footer { font-size: .9rem; text-align: center; }
.guide-change-section { padding: clamp(28px,5vw,54px); border: 1px solid rgba(255,255,255,.76); border-radius: 28px; background: radial-gradient(circle at 95% 5%,rgba(231,169,173,.25),transparent 20rem),linear-gradient(145deg,rgba(255,255,255,.87),rgba(248,241,250,.74)); box-shadow: var(--shadow-soft); }
.guide-change-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.guide-change-grid h4 { margin-top: 0; }
.guide-change-grid p + p { margin-top: 10px; }
.guide-love-callout { display: inline-flex; gap: 8px; margin-top: 22px; padding: 13px 18px; border: 1px solid rgba(185,72,114,.18); border-radius: 999px; color: #8f315a; background: linear-gradient(135deg,rgba(120,83,164,.09),rgba(231,169,173,.18)); }
.guide-late-card { display: flex; align-items: center; gap: 25px; padding: 26px; border: 1px solid rgba(255,255,255,.8); border-radius: 23px; background: rgba(255,255,255,.67); }
.guide-clock { flex: 0 0 auto; position: relative; width: 94px; height: 94px; border: 7px solid rgba(120,83,164,.16); border-radius: 50%; background: rgba(255,255,255,.8); box-shadow: 0 15px 30px rgba(58,43,78,.09); }
.guide-clock::before, .guide-clock::after { content: ""; position: absolute; left: 50%; bottom: 50%; width: 3px; border-radius: 9px; background: #7853a4; transform-origin: bottom; }
.guide-clock::before { height: 26px; transform: translateX(-50%) rotate(10deg); }.guide-clock::after { height: 19px; transform: translateX(-50%) rotate(120deg); }
.guide-feature-card { text-align: center; }
.guide-feature-card h4 { font-size: 1.3rem; }
.guide-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-bottom: 18px; }
.guide-contact-website .btn { margin-top: 20px; }
.guide-support-note { margin: 28px 0 18px; color: var(--ink); font-family: var(--font-heading); font-size: 1.35rem; }
.guide-timezone { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; margin-bottom: 72px; padding: clamp(28px,5vw,50px); scroll-margin-top: 160px; }
.guide-globe { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; color: #fff; background: var(--signature-gradient); box-shadow: 0 20px 40px rgba(120,83,164,.24); }
.guide-globe svg { width: 44px; height: 44px; }
.guide-timezone p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.guide-gradient-text { color: transparent; background: var(--signature-gradient); background-clip: text; -webkit-background-clip: text; font-weight: 800; }
.guide-advice-list { display: grid; gap: 12px; }
.guide-advice-list > div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 18px; min-height: 86px; padding: 14px 20px; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: rgba(255,255,255,.7); box-shadow: 0 12px 32px rgba(48,34,70,.06); }
.guide-advice-list .guide-icon { width: 48px; height: 48px; border-radius: 16px; }
.guide-advice-list p { margin: 0; color: #493b52; font-weight: 750; }
.guide-number { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; color: #fff; background: var(--signature-gradient); font-size: .7rem; font-weight: 900; }
.guide-closing-line { margin: 22px 0 0; color: var(--ink); font-family: var(--font-heading); font-size: 1.35rem; text-align: center; }
.guide-payment { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; padding: 30px; scroll-margin-top: 160px; }
.guide-payment h3 { font-size: 2rem; }.guide-payment > div > p:last-child { margin: 8px 0 0; color: var(--muted); }
.guide-payment-method { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--guide-border); border-radius: 20px; background: rgba(255,255,255,.72); }
.guide-payment-method small, .guide-payment-method strong { display: block; }.guide-payment-method small { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }.guide-payment-method strong { margin-top: 2px; color: var(--ink); }
.guide-payment-method button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 14px; color: #fff; background: var(--signature-gradient); font-weight: 800; }
.guide-payment-method button:focus-visible { outline: 3px solid rgba(120,83,164,.25); outline-offset: 3px; }
.guide-footer { display: flex; align-items: center; gap: 22px; padding: 34px; }.guide-footer h3 { font-size: 2rem; }.guide-footer p { margin: 7px 0; color: var(--muted); }.guide-footer-copy > span { color: #8c5275; font-family: var(--font-heading); font-weight: 700; }.guide-footer-copy { flex: 1; }.guide-footer-action { flex: 0 0 auto; }
.guide-toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 11px 18px; border-radius: 999px; color: #fff; background: #29213a; box-shadow: 0 14px 34px rgba(23,18,31,.28); font-size: .84rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 180ms ease, transform 180ms ease; }
.guide-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Student and teacher questions */
.questions-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: radial-gradient(circle at 92% 8%,rgba(231,169,173,.23),transparent 14rem),linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,248,241,.82)); }
.questions-intro .guide-icon { flex: 0 0 auto; font-family: var(--font-heading); font-size: 1.7rem; }
.question-limit-callout { display: grid; gap: 5px; margin-bottom: 28px; padding: 20px 22px; border: 1px solid rgba(120,83,164,.18); border-radius: 20px; color: #5d456b; background: linear-gradient(135deg,rgba(120,83,164,.09),rgba(231,169,173,.13)); }
.question-limit-callout span { color: var(--muted); }
.student-question-form textarea, .question-answer-form textarea { resize: vertical; min-height: 120px; }
.question-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.question-form-footer > span { max-width: 570px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.questions-history-heading { margin-top: 38px; }
.student-question-list, .teacher-question-list { display: grid; gap: 20px; }
.student-question-card, .teacher-question-card { margin-bottom: 0; }
.question-card-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; cursor: pointer; list-style: none; }
.question-card-summary::-webkit-details-marker { display: none; }
.question-card-summary::marker { content: ""; }
.question-card-body { padding-top: 20px; }
.question-summary-toggle { flex: 0 0 auto; position: relative; width: 38px; height: 38px; border: 1px solid rgba(120,83,164,.15); border-radius: 50%; background: rgba(120,83,164,.06); }
.question-summary-toggle::before, .question-summary-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 99px; background: #7853a4; transform: translate(-50%,-50%); transition: transform 160ms ease; }
.question-summary-toggle::after { transform: translate(-50%,-50%) rotate(90deg); }
details[open] > .question-card-summary .question-summary-toggle::after { transform: translate(-50%,-50%) rotate(0); }
.question-card-summary:focus-visible { outline: 3px solid rgba(120,83,164,.22); outline-offset: 8px; border-radius: 12px; }
.student-question-card.is-pending, .teacher-question-card.is-unanswered { border-color: rgba(185,72,114,.2); }
.student-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.question-card-summary.student-question-meta { margin-bottom: 0; }
.student-question-meta span, .question-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #7853a4; background: rgba(120,83,164,.09); font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.student-question-card.is-pending .student-question-meta span, .teacher-question-card.is-unanswered .question-status { color: #8f315a; background: rgba(185,72,114,.1); }
.student-question-meta time { color: var(--muted); font-size: .8rem; }
.question-message { padding: 20px; border: 1px solid rgba(120,83,164,.11); border-radius: 19px; background: rgba(255,255,255,.58); }
.question-message small { display: block; margin-bottom: 7px; color: #8c5275; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.question-message p { margin: 0; color: #403548; line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.question-answer { margin-top: 14px; border-color: rgba(120,83,164,.18); background: linear-gradient(135deg,rgba(120,83,164,.07),rgba(231,169,173,.09)); }
.teacher-question-card summary h2 { margin: 10px 0 3px; font-family: var(--font-heading); font-size: 1.75rem; }
.teacher-question-card summary p { margin: 0; color: var(--muted); font-size: .82rem; }
.question-answer-form { margin-top: 22px; }
.question-teacher-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.question-ignored-note { padding: 14px 16px; border-radius: 16px; color: var(--muted); background: rgba(38,29,54,.045); font-size: .82rem; line-height: 1.55; }

.calendar-shell {
    overflow: visible;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.calendar-week-link {
    position: relative;
    min-width: 138px;
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.calendar-week-link[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.48;
}

.calendar-week-link.is-loading {
    opacity: 1;
    color: transparent !important;
}

.calendar-week-link.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(120, 83, 164, 0.22);
    border-top-color: #7853a4;
    border-radius: 50%;
    animation: calendar-week-spin 650ms linear infinite;
}

.calendar-shell.is-week-loading .calendar-grid {
    opacity: 0.62;
    transition: opacity 160ms ease;
}

@keyframes calendar-week-spin {
    to { transform: rotate(360deg); }
}

form.is-ajax-submitting {
    pointer-events: none;
}

form.is-ajax-submitting > :not(.booking-confirm-actions) {
    opacity: 0.72;
    transition: opacity 160ms ease;
}

button.is-loading {
    position: relative;
    cursor: wait;
}

.calendar-timezone {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.calendar-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-carousel-nav {
    display: none;
}

.calendar-day {
    min-width: 0;
    position: relative;
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(38, 29, 54, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.64);
}

.calendar-now-line {
    position: absolute;
    left: 10px;
    right: 10px;
    z-index: 1;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b94872, #7853a4);
    box-shadow: 0 0 0 4px rgba(185, 72, 114, 0.1);
}

.calendar-now-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #b94872;
    transform: translate(-2px, -50%);
}

.calendar-selection-bar {
    position: sticky;
    top: 96px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% 18%, rgba(231, 169, 173, 0.28), transparent 15rem),
        radial-gradient(circle at 12% 12%, rgba(120, 83, 164, 0.13), transparent 14rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 241, 0.78));
    box-shadow: 0 20px 54px rgba(54, 39, 73, 0.09);
}

.calendar-selection-bar.is-disabled {
    justify-content: flex-start;
}

.calendar-credit-gate {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(120, 83, 164, 0.18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 10%, rgba(255, 255, 255, 0.9), transparent 10rem),
        radial-gradient(circle at 88% 20%, rgba(231, 169, 173, 0.3), transparent 13rem),
        linear-gradient(135deg, rgba(247, 240, 252, 0.96), rgba(255, 246, 239, 0.94));
    box-shadow:
        0 20px 54px rgba(54, 39, 73, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.calendar-credit-gate::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -72px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(120, 83, 164, 0.1);
    border-radius: 50%;
    box-shadow:
        0 0 0 22px rgba(120, 83, 164, 0.035),
        0 0 0 46px rgba(185, 72, 114, 0.025);
    pointer-events: none;
}

.calendar-credit-gate-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 18px;
    color: #fff;
    background: var(--signature-gradient);
    box-shadow:
        0 14px 30px rgba(120, 83, 164, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
}

.calendar-credit-gate-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.calendar-credit-gate-kicker {
    display: block;
    margin-bottom: 4px;
    color: #8c5275;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.calendar-credit-gate-copy strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
    line-height: 1.12;
}

.calendar-credit-gate-copy p {
    max-width: 650px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.calendar-credit-gate-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
    min-height: 48px;
}

.calendar-credit-gate-action span {
    font-size: 1.15rem;
    transition: transform 160ms var(--button-ease);
}

.calendar-credit-gate-action:hover span {
    transform: translateX(3px);
}

.calendar-selection-bar strong,
.calendar-selection-bar span {
    display: block;
}

.calendar-selection-bar strong {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
}

.calendar-selection-bar span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.calendar-selection-bar .btn {
    min-width: 190px;
}

.calendar-selection-bar .btn:disabled {
    display: none;
}

.calendar-day.is-today {
    border-color: rgba(185, 72, 114, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 241, 0.78)),
        radial-gradient(circle at top right, rgba(231, 169, 173, 0.24), transparent 12rem);
}

.calendar-day.is-past-day {
    border-color: rgba(38, 29, 54, 0.05);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.38), rgba(247, 239, 230, 0.28));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
    opacity: 0.62;
}

.calendar-day.is-past-day .calendar-day-header {
    opacity: 0.64;
}

.calendar-day.is-past-day .calendar-slot.is-booked {
    opacity: 1;
}

.calendar-day-header {
    margin-bottom: 10px;
}

.calendar-day-name,
.calendar-day-header strong {
    display: block;
}

.calendar-day-name {
    color: #8c5275;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.calendar-day-header strong {
    margin-top: 3px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.16rem;
}

.calendar-slot-list {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    display: grid;
    gap: 7px;
}

.calendar-empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar-gap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    min-height: 24px;
    color: rgba(109, 101, 120, 0.58);
}

.calendar-gap span {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 83, 164, 0.2), transparent);
}

.calendar-gap small {
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.calendar-slot {
    min-width: 0;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid rgba(120, 83, 164, 0.12);
    border-radius: 14px;
    color: inherit;
    text-align: left;
    background: #fff;
    box-shadow: 0 8px 18px rgba(54, 39, 73, 0.045);
    transition:
        transform 160ms var(--button-ease),
        border-color 160ms var(--button-ease),
        background 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease);
}

.calendar-slot strong {
    display: block;
}

.calendar-slot strong {
    color: #2c2436;
    font-size: 0.84rem;
}

.calendar-slot-content > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.calendar-slot-content .calendar-slot-duration {
    display: inline-flex;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #5d4382;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(120, 83, 164, 0.1);
}

.calendar-slot-content {
    width: 100%;
    min-width: 0;
}

.calendar-slot-content strong,
.calendar-slot-content strong span {
    white-space: nowrap;
}

.calendar-slot-time {
    color: #2c2436;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.calendar-slot-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: transparent;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    background: transparent;
    white-space: nowrap;
    transition:
        color 160ms var(--button-ease),
        background 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease);
}

.calendar-slot-action:not(:empty) {
    color: #fff;
    background: var(--signature-gradient);
    box-shadow: 0 10px 20px rgba(120, 83, 164, 0.16);
}

.calendar-slot.is-booked {
    align-items: flex-start;
    padding: 12px;
    border-color: rgba(38, 29, 54, 0.1);
    background: rgba(247, 239, 230, 0.72);
}
.calendar-slot[data-lesson-card="true"] { cursor:pointer; overflow:hidden; }
.calendar-slot[data-lesson-card="true"]::after { content:""; position:absolute; inset:auto -25% -70% 35%; height:80px; background:radial-gradient(circle,rgba(185,72,114,.14),transparent 68%); transition:transform 180ms ease; pointer-events:none; }
.calendar-slot[data-lesson-card="true"]:hover,.calendar-slot[data-lesson-card="true"]:focus-visible { transform:translateY(-2px); border-color:rgba(120,83,164,.5); box-shadow:0 16px 30px rgba(54,39,73,.13); outline:0; }
.calendar-slot[data-lesson-card="true"]:hover::after { transform:translate(-12px,-8px) scale(1.15); }
.calendar-booked-time { flex-wrap:wrap; display:flex!important; align-items:center; justify-content:space-between; gap:8px; }
.calendar-booked-time em { padding:3px 7px; border-radius:999px; color:#68448d; background:rgba(120,83,164,.1); font-family:var(--font-body); font-size:.63rem; font-style:normal; font-weight:900; }
.calendar-slot-focus { display:block; max-width:100%; margin-top:7px; color:#4d3b5e!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.calendar-credit-alert { margin-top:7px; color:#b52f49!important; }
.calendar-slot.is-credit-warning { border-color:rgba(190,55,75,.42); background:linear-gradient(135deg,#fff5f6,#fff); box-shadow:0 10px 24px rgba(190,55,75,.12); }
.calendar-slot.is-credit-warning .calendar-slot-note { color:#b52f49; }
.calendar-lesson-kind { display:block!important; margin-bottom:7px; color:#8c5275!important; font-size:.58rem!important; font-weight:900!important; letter-spacing:.09em; line-height:1!important; text-transform:uppercase; white-space:normal; overflow-wrap:anywhere; }
.calendar-slot.is-booked:not(.is-credit-warning):has(.calendar-lesson-kind:first-child) { border-left:3px solid rgba(120,83,164,.55); }

/* A skipped weekly occurrence remains visible without blocking the available time. */
.calendar-slot.is-cancelled {
    border: 1px solid #d7d9dd;
    border-left: 3px solid #b1b5bc;
    background: #f1f2f4;
    box-shadow: none;
    color: #6d727a;
}
.calendar-slot.is-cancelled strong { color: #6d727a; }
.calendar-slot.is-cancelled .calendar-lesson-kind { color: #777d85!important; }
.calendar-slot.is-cancelled .calendar-booked-time em { color: #6d727a; background: #e3e5e8; }
.calendar-slot-content .calendar-cancelled-label {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e0e2e6;
    color: #555b65;
    font-size: .68rem;
    font-weight: 800;
}
.calendar-slot-content .calendar-cancelled-note {
    display: block;
    margin-top: 5px;
    color: #737983;
    font-size: .68rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Student identity stays readable even in narrow calendar columns. */
.calendar-slot .calendar-student-name {
    display: block;
    margin: 2px 0 9px;
    color: #493354;
    font-family: var(--font-body);
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: -.015em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.lesson-detail-heading .lesson-student-label {
    margin: 16px 0 5px;
    color: #8c5275;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lesson-detail-heading [data-lesson-title] {
    overflow-wrap: anywhere;
}

.calendar-slot > form {
    display: contents;
}

.calendar-slot-cancel {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(185, 72, 114, 0.22);
    border-radius: 999px;
    color: #9e3f63;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 18px rgba(54, 39, 73, 0.06);
    transition:
        transform 160ms var(--button-ease),
        background 160ms var(--button-ease),
        color 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease);
}

.calendar-slot-cancel:hover,
.calendar-slot-cancel:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #b94872, #7853a4);
    box-shadow: 0 14px 26px rgba(185, 72, 114, 0.18);
    transform: translateY(-1px);
}

.calendar-slot-cancel:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(185, 72, 114, 0.2);
}

.calendar-slot-cancel:active {
    transform: translateY(0) scale(0.94);
}

.calendar-slot.is-unavailable {
    opacity: 0.48;
    background: rgba(247, 239, 230, 0.52);
}

.calendar-slot.is-mine {
    border-color: rgba(120, 83, 164, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 239, 230, 0.78)),
        radial-gradient(circle at top right, rgba(120, 83, 164, 0.16), transparent 10rem);
}

.calendar-slot.is-preview,
.calendar-slot.is-in-range {
    border-color: rgba(120, 83, 164, 0.34);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 239, 255, 0.8)),
        radial-gradient(circle at top right, rgba(120, 83, 164, 0.16), transparent 9rem);
    box-shadow: 0 16px 34px rgba(54, 39, 73, 0.1);
}

.calendar-slot.is-duration-choice {
    border-color: rgba(120, 83, 164, 0.22);
}

.calendar-slot.is-muted-choice {
    opacity: 0.42;
}

.calendar-slot.is-muted-choice:hover {
    opacity: 0.72;
}

.calendar-slot.is-range-start,
.calendar-slot.is-range-end {
    border-color: rgba(185, 72, 114, 0.42);
}

.calendar-slot.is-available:hover,
.calendar-slot.is-available:focus-visible {
    border-color: rgba(120, 83, 164, 0.3);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 241, 0.86)),
        radial-gradient(circle at top right, rgba(231, 169, 173, 0.18), transparent 8rem);
    box-shadow: 0 14px 28px rgba(54, 39, 73, 0.09);
    transform: translateY(-1px);
}

.calendar-slot.is-available:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.22),
        0 14px 28px rgba(54, 39, 73, 0.09);
}

.calendar-slot.is-available:active {
    transform: translateY(0) scale(0.985);
}

.booking-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.booking-confirm-modal.is-open {
    display: flex;
}

.booking-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 18, 31, 0.42);
    backdrop-filter: blur(12px);
}

.booking-confirm-card {
    position: relative;
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 241, 0.92)),
        radial-gradient(circle at top right, rgba(231, 169, 173, 0.24), transparent 16rem);
    box-shadow: 0 32px 90px rgba(23, 18, 31, 0.26);
    max-height: calc(100dvh - 44px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.booking-repeat-choice { display:flex; gap:12px; align-items:flex-start; margin-top:18px; padding:16px 18px; border:1px solid rgba(120,83,164,.18); border-radius:18px; background:linear-gradient(135deg,rgba(120,83,164,.08),rgba(231,169,173,.1)); cursor:pointer; }
.booking-repeat-choice input { margin-top:4px; accent-color:#7853a4; }
.booking-repeat-choice span,.booking-repeat-choice strong,.booking-repeat-choice small { display:block; }
.booking-repeat-choice strong { color:var(--ink); }
.booking-repeat-choice small { margin-top:4px; color:var(--muted); line-height:1.45; }
.lesson-detail-card { width:min(620px,100%); padding:0; overflow:hidden; }
.lesson-detail-heading { padding:38px 42px 28px; background:radial-gradient(circle at 90% 0,rgba(231,169,173,.3),transparent 15rem),linear-gradient(145deg,#fff,#faf4ff); border-bottom:1px solid rgba(120,83,164,.1); }
.lesson-detail-heading h2 { margin:12px 0 8px; font-size:2.25rem; }.lesson-detail-heading p { margin:0; color:#5d4b6d; font-weight:800; }
.lesson-type-pill { display:inline-flex; padding:6px 10px; border-radius:999px; color:#fff; background:var(--signature-gradient); font-size:.65rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.lesson-focus-form,.lesson-cancel-form,.lesson-reschedule-note { margin:0 42px; }.lesson-focus-form { padding:28px 0 22px; }.lesson-focus-form label { display:block; margin-bottom:9px; color:var(--ink); font-weight:900; }.lesson-focus-form .btn { width:100%; margin-top:14px; }
.lesson-reschedule-note { display:grid; gap:3px; padding:15px 17px; border-radius:16px; color:#5c4770; background:rgba(120,83,164,.07); }.lesson-reschedule-note span { font-size:.82rem; }
.lesson-cancel-form { padding:4px 0 34px; }.lesson-cancel-button { width:100%; margin-top:16px; padding:10px; border:0; color:#a23e5d; background:transparent; font-weight:850; }.lesson-cancel-button:hover { color:#fff; border-radius:12px; background:#ad4264; }

.booking-confirm-card::-webkit-scrollbar {
    display: none;
}

.booking-scroll-hint {
    display: none;
}

@keyframes booking-scroll-cue {
    0%, 100% { transform: translateY(-1px); }
    50% { transform: translateY(3px); }
}

.booking-confirm-card h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1;
}

.booking-confirm-summary {
    margin: 22px 0 0;
    color: #30283b;
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.6;
}

.booking-confirm-note {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.booking-duration-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
}

.booking-duration-options legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #8c5275;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.booking-duration-choice {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 116px;
    padding: 18px;
    border: 1px solid rgba(120, 83, 164, 0.16);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 241, 0.66)),
        radial-gradient(circle at 92% 10%, rgba(231, 169, 173, 0.18), transparent 8rem);
    color: var(--ink);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    overflow: hidden;
    transition:
        transform 180ms var(--button-ease),
        border-color 180ms var(--button-ease),
        box-shadow 180ms var(--button-ease),
        background 180ms var(--button-ease);
}

.booking-duration-choice:hover {
    border-color: rgba(120, 83, 164, 0.28);
    transform: translateY(-1px);
    box-shadow:
        0 16px 34px rgba(54, 39, 73, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.booking-duration-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-duration-choice::before {
    content: "";
    justify-self: end;
    grid-row: 1;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(23, 18, 31, 0.58);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.booking-duration-choice::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 25px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: transparent;
    transform: translateY(-50%);
}

.booking-duration-choice span {
    display: grid;
    align-content: center;
    gap: 6px;
    min-height: 64px;
    padding-right: 0;
    transform: translateY(-2px);
}

.booking-duration-choice strong,
.booking-duration-choice small {
    display: block;
}

.booking-duration-choice strong {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.38rem;
    line-height: 1;
}

.booking-duration-choice small {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 750;
    line-height: 1.25;
}

.booking-duration-choice.is-selected {
    border-color: rgba(120, 83, 164, 0.54);
    background:
        linear-gradient(135deg, rgba(120, 83, 164, 0.96), rgba(185, 72, 114, 0.9)),
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, 0.24), transparent 8rem);
    box-shadow:
        0 18px 42px rgba(120, 83, 164, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.booking-duration-choice.is-selected::before {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.16);
}

.booking-duration-choice.is-selected::after {
    background: #fff;
}

.booking-duration-choice.is-selected strong,
.booking-duration-choice.is-selected small {
    color: #fff;
}

.booking-duration-choice.is-disabled {
    cursor: not-allowed;
    opacity: 1;
    transform: none;
    border-color: rgba(91, 76, 101, 0.28);
    border-style: dashed;
    background:
        linear-gradient(145deg, rgba(239, 235, 240, 0.96), rgba(247, 243, 246, 0.92)),
        radial-gradient(circle at 90% 10%, rgba(91, 76, 101, 0.08), transparent 7rem);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.66),
        inset 0 10px 24px rgba(74, 57, 82, 0.035);
}

.booking-duration-choice.is-disabled:hover {
    transform: none;
    border-color: rgba(91, 76, 101, 0.28);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.66),
        inset 0 10px 24px rgba(74, 57, 82, 0.035);
}

.booking-duration-choice.is-disabled::before {
    border-color: rgba(91, 76, 101, 0.34);
    background: rgba(91, 76, 101, 0.1);
}

.booking-duration-choice.is-disabled::after {
    content: "\00d7";
    top: 29px;
    right: 25px;
    width: 10px;
    height: auto;
    color: rgba(77, 62, 86, 0.7);
    background: transparent;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.booking-duration-choice.is-insufficient-credits {
    border-color: rgba(156, 77, 112, 0.38);
    background:
        linear-gradient(145deg, rgba(241, 234, 239, 0.98), rgba(248, 240, 244, 0.94)),
        radial-gradient(circle at 90% 10%, rgba(185, 72, 114, 0.13), transparent 7rem);
}

.booking-duration-choice.is-insufficient-credits small {
    color: #9b456b;
    font-weight: 850;
}

.booking-duration-lock {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 2px;
    padding: 4px 8px;
    border: 1px solid rgba(91, 76, 101, 0.18);
    border-radius: 999px;
    color: #65596d;
    background: rgba(255, 255, 255, 0.64);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.booking-duration-lock[hidden] {
    display: none;
}

.booking-duration-choice.is-insufficient-credits .booking-duration-lock {
    border-color: rgba(156, 77, 112, 0.2);
    color: #914665;
    background: rgba(255, 250, 252, 0.78);
}

.booking-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.calendar-modal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.teacher-timeoff-until {
    position: relative;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(120, 83, 164, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(231, 169, 173, 0.22), transparent 13rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(250, 244, 255, 0.82));
    box-shadow:
        0 18px 42px rgba(54, 39, 73, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.teacher-timeoff-until[hidden] {
    display: none;
}

.teacher-timeoff-heading strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.1;
}

.teacher-timeoff-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.teacher-timeoff-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin-top: 17px;
}

.teacher-timeoff-fields .form-label {
    color: #574660;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.teacher-timeoff-fields .form-control {
    border-color: rgba(120, 83, 164, 0.2);
    background-color: rgba(255, 255, 255, 0.84);
    box-shadow: inset 0 1px 2px rgba(54, 39, 73, 0.04);
}

.teacher-timeoff-validation {
    margin: 12px 0 0;
    color: #7b5571;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.45;
}

.calendar-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(120, 83, 164, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #3f374a;
    font-weight: 850;
}

.calendar-choice input {
    accent-color: #7853a4;
}

.booking-confirm-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(120, 83, 164, 0.2);
    border-radius: 999px;
    color: #5d4382;
    font-size: 1.15rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.76);
    transform: translateY(0) scale(1);
    transition:
        transform 160ms var(--button-ease),
        background 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease);
}

.booking-confirm-close:hover {
    background: #fff;
    box-shadow: 0 14px 32px rgba(54, 39, 73, 0.12);
    transform: translateY(-1px) scale(1.03);
}

.booking-confirm-close:active {
    transform: translateY(0) scale(0.94);
}

.balance-panel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.balance-panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.balance-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.balance-main-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.72fr) minmax(260px, 1.28fr);
    align-items: center;
    gap: clamp(22px, 3vw, 38px);
    margin-top: 26px;
}

.balance-details {
    min-width: 0;
    padding-left: clamp(20px, 2.5vw, 34px);
    border-left: 1px solid rgba(120, 83, 164, 0.12);
}

.balance-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(120, 83, 164, 0.14);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.balance-status.is-ready {
    color: #506d61;
    border-color: rgba(80, 109, 97, 0.16);
    background: rgba(111, 156, 135, 0.1);
}

.balance-status.is-low {
    color: #914665;
    border-color: rgba(185, 72, 114, 0.16);
    background: rgba(185, 72, 114, 0.09);
}

.balance-value-row {
    display: flex;
    align-items: flex-end;
    gap: 13px;
    margin: 0;
}

.balance-value-row > span {
    padding-bottom: 8px;
    color: #766b82;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.balance-reserved {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border: 1px solid rgba(120, 83, 164, 0.11);
    border-radius: 14px;
    color: #6d6578;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 750;
}

.balance-reserved strong {
    flex: 0 0 auto;
    color: #5d4382;
    font-size: 0.9rem;
}

.balance-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.balance-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
}

.balance-secondary-action {
    min-height: 42px;
    padding: 0 4px;
    border: 0;
    color: #654579;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 850;
}

.balance-secondary-action:hover {
    color: #8f315a;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.home-side-stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-side-stack > .premium-panel {
    margin-bottom: 0;
}

.home-next-lesson-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.home-meet-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 0;
    background:
        radial-gradient(circle at 90% 15%, rgba(120, 83, 164, 0.12), transparent 11rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.86));
}

.home-meet-copy {
    min-width: 0;
}

.home-meet-copy .app-section-title {
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.home-meet-copy .empty-state {
    font-size: 0.86rem;
}

.home-meet-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1;
    white-space: nowrap;
}

.balance-panel::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -90px;
    width: 250px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--signature-gradient);
    opacity: 0.2;
    filter: blur(18px);
}

.balance-number {
    position: relative;
    margin: 0;
    padding-block: 0.08em;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.08;
    color: transparent;
    background: var(--signature-gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.student-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.student-section-heading > span {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(120, 83, 164, 0.16);
    border-radius: 999px;
    background: rgba(120, 83, 164, 0.08);
    color: #7853a4;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.student-section-heading > span.needs-attention {
    border-color: rgba(185, 72, 114, 0.18);
    background: rgba(185, 72, 114, 0.1);
    color: #8f315a;
}

.teacher-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.teacher-overview-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 8%, rgba(231, 169, 173, 0.2), transparent 8rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 241, 0.82));
    box-shadow:
        0 18px 44px rgba(54, 39, 73, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.teacher-overview-card span,
.teacher-overview-card small {
    display: block;
}

.teacher-overview-card span {
    color: #8c5275;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.teacher-overview-card strong {
    display: block;
    margin: 8px 0 1px;
    padding-block: 0.08em;
    color: transparent;
    background: var(--signature-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.teacher-overview-card small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.teacher-duration-options {
    margin-top: 20px;
}

.friendly-empty {
    display: grid;
    gap: 8px;
    padding: 22px;
    border: 1px dashed rgba(120, 83, 164, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.48);
}

.friendly-empty strong {
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    line-height: 1.1;
}

.friendly-empty span {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}

.lesson-purchase-panel {
    position: relative;
    overflow: hidden;
}

.lesson-purchase-panel::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -150px;
    width: 360px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--signature-gradient);
    opacity: 0.1;
    filter: blur(24px);
    pointer-events: none;
}

.lesson-purchase-heading {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.lesson-purchase-heading .empty-state {
    max-width: 820px;
}

.lesson-purchase-panel form {
    position: relative;
    z-index: 1;
}

.lesson-purchase-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.lesson-purchase-action span,
.form-text {
    color: #766b82;
    font-size: 0.88rem;
    line-height: 1.5;
}

.premium-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.premium-table th {
    padding: 0 18px 16px;
    color: #7d7188;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    border: 0;
}

.premium-table td {
    padding: 18px;
    color: #3f374a;
    border-top: 1px solid rgba(38, 29, 54, 0.08);
    vertical-align: middle;
}

.premium-table-compact th {
    padding: 0 12px 12px;
    font-size: 0.7rem;
}

.premium-table-compact td {
    padding: 12px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.table-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.table-row-actions form {
    margin: 0;
}

.premium-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.5);
}

.premium-table tbody tr[hidden] {
    display: none;
}

.table-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.table-page-button {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(120, 83, 164, 0.22);
    border-radius: 999px;
    color: #5d4382;
    font-size: 0.88rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(0) scale(1);
    transition:
        transform 160ms var(--button-ease),
        background 160ms var(--button-ease),
        color 160ms var(--button-ease),
        box-shadow 160ms var(--button-ease),
        opacity 160ms var(--button-ease);
}

.table-page-button:not(:disabled):hover {
    color: #fff;
    background: var(--signature-gradient);
    box-shadow: 0 14px 30px rgba(120, 83, 164, 0.16);
    transform: translateY(-1px);
}

.table-page-button:not(:disabled):active {
    transform: translateY(0) scale(0.96);
}

.table-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.table-page-status {
    color: #766b82;
    font-size: 0.88rem;
    font-weight: 800;
}

.clickable-row {
    cursor: pointer;
}

.clickable-row td {
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.clickable-row:hover td {
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(120, 83, 164, 0.08);
}

.clickable-row:focus {
    outline: none;
}

.clickable-row:focus-visible td {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 2px rgba(120, 83, 164, 0.32);
}

.row-open-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7a4f93;
    font-weight: 800;
    white-space: nowrap;
}

.row-open-label::after {
    content: ">";
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 180ms ease;
}

.clickable-row:hover .row-open-label::after {
    transform: translate(4px, -1px);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 520px);
    gap: 48px;
    align-items: center;
}

.register-shell {
    grid-template-columns: minmax(360px, 0.72fr) minmax(620px, 720px);
    gap: clamp(42px, 5vw, 86px);
    align-items: center;
    width: 100%;
}

.auth-card {
    padding: clamp(30px, 5vw, 48px);
}

.register-card {
    width: 100%;
    justify-self: end;
    padding: clamp(26px, 3vw, 34px);
}

.register-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

.register-form-wide {
    grid-column: 1 / -1;
}

.register-card .form-control,
.register-card .form-select {
    min-height: 48px;
    border-radius: 15px;
}

.register-card .form-label-row {
    margin-bottom: 6px;
}

.register-card .form-text {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.register-reason.form-control {
    min-height: 86px;
}

.register-card .btn-lg {
    min-height: 50px;
    margin-top: 18px;
}

.register-card .auth-privacy-note {
    margin-top: 12px;
}

.auth-story {
    max-width: 660px;
}

.register-shell .auth-story {
    max-width: 600px;
    min-width: 0;
}

.register-shell .auth-story h1 {
    max-width: 11ch;
    font-size: clamp(3.3rem, 5.2vw, 5.6rem);
    overflow-wrap: normal;
}

.auth-story h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
}

.auth-story h1 span {
    color: transparent;
    background: var(--signature-gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.auth-story p {
    margin-top: 22px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.75;
}

.form-label {
    color: #40364c;
    font-weight: 800;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.field-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(120, 83, 164, 0.14);
    border-radius: 999px;
    background: rgba(120, 83, 164, 0.07);
    color: #7853a4;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.field-badge.is-required {
    border-color: rgba(185, 72, 114, 0.18);
    background: rgba(185, 72, 114, 0.1);
    color: #8f315a;
}

.birthday-grid {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
}

.form-control,
.form-select {
    min-height: 52px;
    border: 1px solid rgba(38, 29, 54, 0.12);
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.82);
}

textarea.form-control {
    min-height: 128px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(120, 83, 164, 0.48);
    box-shadow: 0 0 0 0.25rem rgba(120, 83, 164, 0.12);
}

.btn-primary,
.btn-success,
.btn-outline-primary,
.btn-outline-danger,
.btn-link {
    border-radius: 999px;
    font-weight: 800;
}

.btn,
.nav-book,
.nav-logout,
.site-nav .nav-link {
    position: relative;
    transform: translateY(0) scale(1);
    transition:
        transform 180ms var(--button-ease),
        box-shadow 180ms var(--button-ease),
        border-color 180ms var(--button-ease),
        background 180ms var(--button-ease),
        color 180ms var(--button-ease),
        opacity 180ms var(--button-ease);
    will-change: transform;
}

.btn:not(:disabled):not(.disabled):hover,
.nav-book:hover,
.nav-logout:hover,
.site-nav .nav-link:hover {
    transform: translateY(-2px);
}

.btn:not(:disabled):not(.disabled):active,
.btn:not(:disabled):not(.disabled).active,
.nav-book:active,
.nav-logout:active,
.site-nav .nav-link:active {
    transform: translateY(0) scale(0.975);
    transition-duration: 90ms;
}

.btn:focus-visible,
.nav-book:focus-visible,
.nav-logout:focus-visible,
.site-nav .nav-link:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.24);
}

.btn:disabled,
.btn.disabled,
fieldset:disabled .btn {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.58;
}

.btn-primary,
.btn-success {
    border: 0;
    background: var(--signature-gradient);
    box-shadow: 0 14px 30px rgba(120, 83, 164, 0.2);
}

.btn-primary:not(:disabled):not(.disabled):hover,
.btn-success:not(:disabled):not(.disabled):hover {
    box-shadow: 0 20px 42px rgba(120, 83, 164, 0.28);
    filter: saturate(1.04);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled):active {
    box-shadow: 0 10px 22px rgba(120, 83, 164, 0.2);
}

.btn-outline-primary {
    color: #5d4382;
    border-color: rgba(120, 83, 164, 0.32);
}

.btn-outline-primary:hover {
    color: #fff;
    border-color: transparent;
    background: var(--signature-gradient);
    box-shadow: 0 16px 34px rgba(120, 83, 164, 0.18);
}

.btn-outline-danger:hover {
    box-shadow: 0 16px 34px rgba(185, 72, 114, 0.13);
}

.btn-link {
    color: #7853a4;
    text-decoration: none;
}

.premium-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: #6f477d;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(120, 83, 164, 0.1);
}

.calendar-credit-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}

.calendar-credit-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(120, 83, 164, 0.18);
    border-radius: 999px;
    color: #654579;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 8px 20px rgba(54, 39, 73, 0.07);
    font-size: 0.82rem;
    font-weight: 850;
    transition: transform 160ms var(--button-ease), box-shadow 160ms ease, color 160ms ease;
}

.calendar-credit-link:hover {
    color: #8f315a;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(84, 57, 112, 0.13);
}

.lesson-purchase-panel:focus {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.92),
        0 0 0 7px rgba(120, 83, 164, 0.2),
        var(--shadow-soft);
}

.privacy-panel h2:not(:first-child) {
    margin-top: 34px;
}

.privacy-panel p {
    max-width: 860px;
}

.auth-privacy-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

.auth-privacy-note a {
    color: #7853a4;
    font-weight: 800;
    text-decoration: none;
}

.auth-privacy-note a:hover {
    color: #b94872;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-settings-grid > div {
    padding: 20px;
    border: 1px solid rgba(120, 83, 164, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.account-readonly-field {
    position: relative;
    cursor: default;
    user-select: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.account-readonly-field::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 16px;
    height: 12px;
    border: 2px solid rgba(120, 83, 164, 0.38);
    border-radius: 4px;
    pointer-events: none;
}

.account-readonly-field::before {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 30px;
    width: 8px;
    height: 8px;
    border: 2px solid rgba(120, 83, 164, 0.38);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.account-readonly-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-readonly-header em {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid rgba(120, 83, 164, 0.16);
    border-radius: 999px;
    background: rgba(120, 83, 164, 0.08);
    color: #7853a4;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.account-settings-grid span,
.account-settings-grid strong,
.account-settings-grid small {
    display: block;
}

.account-settings-grid span {
    color: #8c5275;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-settings-grid strong {
    margin-top: 8px;
    color: var(--ink);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

.account-settings-grid small {
    margin-top: 8px;
    padding-right: 34px;
    color: rgba(45, 37, 50, 0.58);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.danger-panel {
    border-color: rgba(185, 72, 114, 0.18);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 241, 0.78)),
        radial-gradient(circle at top right, rgba(185, 72, 114, 0.12), transparent 16rem);
}

.delete-confirmation-box {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid rgba(185, 72, 114, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.74);
}

.delete-confirmation-box h3 {
    margin: 0 0 10px;
    color: #8f315a;
    font-family: var(--font-heading);
    font-size: 1.55rem;
}

.delete-confirmation-box p {
    color: var(--muted);
}

.btn-danger {
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, #8f315a, #b94872);
    box-shadow: 0 14px 30px rgba(185, 72, 114, 0.18);
}

.alert {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(48, 34, 70, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 0 10px;
    backdrop-filter: blur(18px);
}

.site-nav {
    padding: 0;
}

.nav-shell {
    min-height: 68px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 252, 247, 0.78);
    box-shadow: 0 14px 40px rgba(58, 43, 78, 0.08);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark img {
    width: clamp(150px, 15vw, 196px);
    height: 58px;
    object-fit: contain;
}

.nav-actions {
    align-items: center;
    gap: 4px;
}

.site-nav .nav-link,
.nav-logout {
    color: rgba(23, 18, 31, 0.72);
    border: 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-nav .nav-link:hover,
.nav-logout:hover {
    color: var(--ink);
}

.nav-book {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: var(--signature-gradient);
    box-shadow: 0 14px 30px rgba(120, 83, 164, 0.25);
}

.site-nav .nav-link.is-active {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: var(--signature-gradient);
    box-shadow: 0 14px 30px rgba(120, 83, 164, 0.25);
}

.nav-book:hover,
.site-nav .nav-link.is-active:hover {
    color: #fff;
    box-shadow: 0 20px 42px rgba(120, 83, 164, 0.3);
}

@media (max-width: 1399.98px) {
    .calendar-shell {
        min-width: 0;
        max-width: 100%;
    }

    .calendar-week-grid {
        display: flex;
        gap: 12px;
        align-items: start;
        width: 100%;
        max-width: 100%;
        padding: 8px 2px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-week-grid::-webkit-scrollbar {
        display: none;
    }

    .calendar-week-grid:focus-visible {
        outline: 3px solid rgba(120, 83, 164, 0.2);
        outline-offset: 3px;
        border-radius: 22px;
    }

    .calendar-carousel-nav {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        align-items: center;
        gap: 12px;
        margin: 0 0 14px;
        padding: 10px 12px;
        border: 1px solid rgba(120, 83, 164, 0.14);
        border-radius: 20px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 241, 0.78)),
            radial-gradient(circle at 50% 0, rgba(120, 83, 164, 0.1), transparent 12rem);
        box-shadow:
            0 12px 30px rgba(54, 39, 73, 0.07),
            inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    .calendar-carousel-arrow {
        display: inline-grid;
        place-items: center;
        width: 46px;
        height: 42px;
        padding: 0;
        border: 1px solid rgba(120, 83, 164, 0.18);
        border-radius: 14px;
        color: #654579;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 8px 18px rgba(54, 39, 73, 0.08);
        font-size: 1.25rem;
        font-weight: 900;
        transition: transform 160ms var(--button-ease), box-shadow 160ms ease, opacity 160ms ease;
    }

    .calendar-carousel-arrow:not(:disabled):hover {
        transform: translateY(-1px);
        box-shadow: 0 11px 24px rgba(84, 57, 112, 0.14);
    }

    .calendar-carousel-arrow:disabled {
        cursor: default;
        opacity: 0.34;
        box-shadow: none;
    }

    .calendar-carousel-progress {
        display: grid;
        justify-items: center;
        gap: 7px;
        min-width: 0;
        color: #5f526a;
        font-size: 0.76rem;
        font-weight: 850;
        letter-spacing: 0.04em;
    }

    .calendar-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 5px;
        width: 100%;
    }

    .calendar-carousel-dot {
        width: min(28px, 10%);
        max-width: 28px;
        height: 20px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .calendar-carousel-dot::before {
        content: "";
        display: block;
        width: 100%;
        height: 5px;
        border-radius: 999px;
        background: rgba(120, 83, 164, 0.16);
        transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
    }

    .calendar-carousel-dot.is-active::before {
        background: linear-gradient(90deg, #7853a4, #b94872);
        box-shadow: 0 4px 10px rgba(120, 83, 164, 0.2);
        transform: scaleY(1.35);
    }

    .calendar-day {
        flex: 0 0 calc((100% - 12px) / 2);
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        scroll-snap-align: start;
        contain: inline-size;
    }

    .calendar-slot,
    .calendar-slot-content {
        min-width: 0;
    }

    .calendar-slot-content span,
    .calendar-slot-note {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 1199.98px) {
    .balance-main-grid {
        grid-template-columns: minmax(120px, 0.58fr) minmax(0, 1.42fr);
        gap: 18px;
    }

    .balance-details {
        padding-left: 18px;
    }

    .register-shell {
        display: block;
    }

    .register-shell .auth-story {
        max-width: 760px;
    }

    .register-shell .auth-story h1 {
        max-width: 12ch;
        font-size: clamp(3.2rem, 9vw, 5.2rem);
    }

    .register-card {
        margin-top: 28px;
    }
}

@media (max-width: 991.98px) {
    .site-header {
        padding: 10px 0 6px;
    }

    .nav-shell {
        border-radius: 26px;
        flex-wrap: wrap;
        gap: 10px;
        min-height: 0;
        padding: 12px 14px;
    }

    .brand-mark img {
        width: 142px;
        height: 46px;
    }

    .site-nav .nav-link,
    .nav-logout {
        white-space: nowrap;
        font-size: 0.9rem;
    }

    .auth-shell,
    .app-hero {
        display: block;
    }

    .register-shell .auth-story h1 {
        font-size: clamp(2.9rem, 12vw, 4.8rem);
    }

    .register-form-grid {
        grid-template-columns: 1fr;
    }

    .register-form-wide {
        grid-column: auto;
    }

    .auth-card {
        margin-top: 28px;
    }

    .home-side-stack {
        grid-template-rows: auto auto;
    }

    .teacher-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-hero { grid-template-columns: minmax(0,1fr) 220px; }
    .guide-card-grid-three { grid-template-columns: 1fr; }
    .guide-feature-card { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; text-align: left; }
    .guide-feature-card .guide-icon { grid-row: 1 / 3; }.guide-feature-card h4 { margin-top: 4px; }
}

@media (max-width: 575.98px) {
    body {
        background:
            radial-gradient(circle at top left, rgba(231, 169, 173, 0.22), transparent 22rem),
            linear-gradient(180deg, #fff8ef 0%, var(--paper) 44%, #f8efe9 100%);
    }

    .nav-shell {
        justify-content: space-between;
        border-radius: 22px;
        padding: 10px 12px 12px;
    }

    .brand-mark img {
        width: 128px;
        height: 42px;
    }

    .nav-actions {
        order: 1;
        width: auto;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
    }

    .nav-actions .nav-link {
        padding-right: 4px;
        padding-left: 4px;
    }

    .nav-book {
        min-height: 38px;
        padding: 0 13px;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .app-page {
        padding: 28px 0 64px;
    }

    .app-hero {
        margin-bottom: 24px;
    }

    .app-title {
        font-size: clamp(2.55rem, 14vw, 3.9rem);
    }

    .app-subtitle,
    .auth-story p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .auth-story h1 {
        font-size: clamp(2.9rem, 15vw, 4.4rem);
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .register-card {
        padding: 22px 16px;
    }

    .register-form-grid {
        gap: 12px;
    }

    .birthday-grid {
        grid-template-columns: 1fr;
    }

    .field-badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.64rem;
    }

    .premium-panel,
    .premium-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .balance-panel {
        display: block;
    }

    .balance-number {
        font-size: 4.4rem;
    }

    .balance-panel-heading {
        align-items: flex-start;
    }

    .balance-status {
        min-height: 28px;
        padding: 0 9px;
        font-size: 0.6rem;
    }

    .balance-value-row {
        margin: 0;
    }

    .balance-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 18px;
    }

    .balance-details {
        padding-top: 18px;
        padding-left: 0;
        border-top: 1px solid rgba(120, 83, 164, 0.12);
        border-left: 0;
    }

    .balance-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .balance-actions .btn,
    .balance-secondary-action {
        width: 100%;
    }

    .home-side-stack {
        gap: 16px;
    }

    .home-next-lesson-card {
        justify-content: flex-start;
    }

    .home-meet-card {
        display: grid;
        gap: 16px;
        min-height: 0;
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .home-meet-action {
        width: 100%;
    }

    .student-section-heading {
        display: grid;
        gap: 12px;
    }

    .teacher-overview-grid {
        display: flex;
        gap: 12px;
        margin-right: -18px;
        padding-right: 18px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .teacher-overview-grid::-webkit-scrollbar {
        display: none;
    }

    .teacher-overview-card {
        flex: 0 0 min(78vw, 280px);
        padding: 19px;
        scroll-snap-align: start;
    }

    .student-section-heading > span {
        justify-self: start;
        white-space: normal;
    }

    .friendly-empty {
        padding: 20px 18px;
    }

    .premium-chip {
        margin-top: 10px;
    }

    .app-tab-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-radius: 24px;
        padding: 7px;
    }

    .app-tab {
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.86rem;
    }

    .guide-hero { display: block; min-height: 0; padding: 30px 22px; border-radius: 24px; }
    .guide-hero h2 { font-size: clamp(2.5rem,13vw,3.6rem); }
    .guide-hero-art { display: none; }
    .guide-nav { position: static; margin: 14px 0 34px; border-radius: 20px; }
    .guide-nav a { flex: 0 0 auto; min-height: 42px; padding: 12px 14px; }
    .guide-section { padding: 10px 0 52px; scroll-margin-top: 20px; }
    .guide-section-heading h3, .guide-timezone h3, .guide-payment h3, .guide-footer h3 { font-size: 2rem; }
    .guide-card-grid-two, .guide-rhythm-grid, .guide-change-grid, .guide-frequency > div, .guide-contact-grid { grid-template-columns: 1fr; }
    .guide-card, .guide-rhythm-card, .guide-feature-card { padding: 22px 18px; }
    .guide-frequency { padding: 22px 16px; }.guide-frequency > div { gap: 14px; }.guide-frequency > div > span { min-height: 58px; }
    .guide-change-section { padding: 26px 18px; }.guide-change-grid { gap: 24px; }
    .guide-late-card { display: block; padding: 22px 18px; }.guide-clock { width: 70px; height: 70px; margin-bottom: 22px; }
    .guide-feature-card { grid-template-columns: auto 1fr; }.guide-feature-card h4 { margin-top: 2px; }
    .guide-timezone { grid-template-columns: 1fr; gap: 20px; margin-bottom: 52px; padding: 26px 20px; border-radius: 24px; }.guide-globe { width: 68px; height: 68px; border-radius: 21px; }.guide-globe svg { width: 32px; height: 32px; }
    .guide-advice-list > div { grid-template-columns: 48px 1fr; gap: 13px; padding: 14px; }.guide-number { width: 46px; height: 46px; }.guide-advice-list .guide-icon { width: 44px; height: 44px; }
    .guide-payment { display: grid; padding: 22px 18px; }.guide-payment-method { width: 100%; }.guide-payment-method > div { min-width: 0; flex: 1; }.guide-payment-method strong { overflow-wrap: anywhere; }.guide-payment-method button { min-width: 70px; }
    .guide-footer { align-items: flex-start; flex-wrap: wrap; padding: 26px 20px; }.guide-footer > .guide-icon { flex: 0 0 auto; width: 45px; height: 45px; }.guide-footer-action { width: 100%; }
    .guide-toast { right: 16px; bottom: 16px; }
    .questions-intro { align-items: flex-start; padding: 22px 18px; }
    .question-form-footer { align-items: stretch; flex-direction: column; }.question-form-footer .btn { width: 100%; }
    .student-question-meta { align-items: flex-start; flex-direction: column; gap: 8px; }
    .student-question-meta .question-summary-toggle { position: absolute; right: 18px; }.student-question-card { position: relative; }
    .question-teacher-actions { display: grid; width: 100%; }.question-teacher-actions .btn { width: 100%; }

    .table-responsive {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .premium-table {
        display: block;
        min-width: 0;
    }

    .premium-table thead {
        display: none;
    }

    .premium-table tbody,
    .premium-table tr,
    .premium-table td {
        display: block;
        width: 100%;
    }

    .premium-table tbody tr[hidden] {
        display: none;
    }

    .premium-table tr {
        padding: 14px 0;
        border-top: 1px solid rgba(38, 29, 54, 0.08);
    }

    .premium-table tr:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .premium-table td {
        display: grid;
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        gap: 12px;
        padding: 8px 0;
        border-top: 0;
        overflow-wrap: anywhere;
    }

    .premium-table td::before {
        content: attr(data-label);
        color: #7d7188;
        font-size: 0.74rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .premium-table td.text-end {
        text-align: left !important;
    }

    .table-pagination {
        justify-content: space-between;
        gap: 8px;
    }

    .table-page-button {
        min-height: 40px;
        padding: 0 12px;
    }

    .calendar-toolbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .calendar-toolbar > div {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .calendar-toolbar > a {
        grid-row: 2;
        width: 100%;
    }

    .calendar-week-grid {
        display: flex;
        gap: 12px;
        max-height: none;
        margin: 0;
        padding: 8px 2px 14px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 2px;
    }

    .calendar-day {
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        min-height: 360px;
        box-sizing: border-box;
        scroll-snap-align: start;
    }

    .calendar-carousel-nav {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 9px;
        border-radius: 18px;
    }

    .calendar-carousel-arrow {
        width: 42px;
        height: 40px;
        border-radius: 13px;
    }

    .calendar-selection-bar {
        top: 78px;
        display: grid;
        gap: 14px;
        padding: 15px;
    }

    .calendar-selection-bar .btn {
        width: 100%;
    }

    .calendar-credit-summary {
        width: 100%;
        justify-content: flex-start;
    }

    .calendar-credit-gate {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
        border-radius: 22px;
    }

    .calendar-credit-gate-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 1.55rem;
    }

    .calendar-credit-gate-copy strong {
        font-size: 1.35rem;
    }

    .calendar-credit-gate-copy p {
        font-size: 0.84rem;
    }

    .calendar-credit-gate-action {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 2px;
    }

    .booking-confirm-modal {
        align-items: flex-start;
        padding:
            max(10px, env(safe-area-inset-top))
            10px
            max(10px, env(safe-area-inset-bottom));
    }

    .booking-confirm-card {
        max-height: calc(100dvh - 20px);
        margin: auto 0;
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .booking-duration-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .booking-duration-choice {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        align-items: stretch;
        min-height: 112px;
        padding: 12px 10px;
    }

    .booking-duration-choice::before {
        grid-column: 1;
        grid-row: 1;
        width: 20px;
        height: 20px;
    }

    .booking-duration-choice::after {
        top: 22px;
        right: 15px;
        transform: translateY(-50%);
    }

    .booking-duration-choice span {
        grid-column: 1;
        grid-row: 2;
        min-height: 62px;
        transform: none;
    }

    .booking-duration-choice strong {
        font-size: 1.12rem;
    }

    .booking-duration-choice small {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .booking-duration-lock {
        padding: 3px 5px;
        font-size: 0.52rem;
        letter-spacing: 0.05em;
    }

    #BookingLessonNote {
        min-height: 88px;
    }

    .booking-confirm-note {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .booking-confirm-actions {
        position: sticky;
        bottom: -20px;
        z-index: 2;
        margin: 16px -20px -20px;
        padding: 20px 20px max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid rgba(120, 83, 164, 0.12);
        background: rgba(255, 249, 243, 0.98);
        box-shadow: 0 -16px 28px rgba(54, 39, 73, 0.08);
        backdrop-filter: blur(14px);
    }

    .booking-scroll-hint {
        position: absolute;
        top: -31px;
        left: 50%;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 12px;
        border: 1px solid rgba(120, 83, 164, 0.18);
        border-radius: 999px;
        color: #6e4d83;
        background: rgba(255, 252, 248, 0.98);
        box-shadow: 0 8px 22px rgba(54, 39, 73, 0.12);
        font-size: 0.7rem;
        font-weight: 850;
        letter-spacing: 0.04em;
        white-space: nowrap;
        transform: translateX(-50%);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .booking-scroll-hint span:last-child {
        color: #b94872;
        font-size: 1rem;
        line-height: 0.8;
        animation: booking-scroll-cue 1.4s ease-in-out infinite;
    }

    .booking-scroll-hint.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, 5px);
    }

    .booking-confirm-actions .btn {
        width: 100%;
    }

    .calendar-modal-options {
        grid-template-columns: 1fr;
    }

    .teacher-timeoff-until {
        padding: 17px;
        border-radius: 19px;
    }

    .teacher-timeoff-fields {
        grid-template-columns: 1fr;
    }

    .premium-table td .btn,
    .premium-table td form {
        width: 100%;
    }

    .account-settings-grid {
        grid-template-columns: 1fr;
    }

    .premium-table td form + form {
        margin-top: 8px;
    }

    .btn-lg,
    .btn-primary.btn-lg,
    .btn-outline-primary.btn-lg {
        width: 100%;
        min-height: 52px;
    }

    .form-control,
    .form-select {
        min-height: 50px;
        border-radius: 14px;
    }
}

@media (max-width: 390px) {
    .brand-mark img {
        width: 116px;
    }

    .nav-book {
        padding: 0 10px;
        font-size: 0.82rem;
    }
}

/* Teacher student directory */
.student-directory-table { table-layout: fixed; }
.student-directory-table th:first-child { width: 32%; }
.student-directory-table th:nth-child(2) { width: 16%; }
.student-directory-table th:nth-child(3) { width: 18%; }
.student-directory-table th:last-child { width: 44px; }
.student-directory-table td { padding: 20px 14px; font-size: .84rem; }
.student-directory-table th { padding-right: 14px; padding-left: 14px; font-size: .68rem; }
.directory-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.directory-avatar { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid rgba(120,83,164,.12); border-radius: 14px; background: linear-gradient(145deg,#f3eaf6,#fbf0ec); color: #78538f; font-size: .95rem; font-weight: 800; }
.directory-person-copy { min-width: 0; }
.directory-name { color: #3f304b; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
.directory-name:hover { color: #7853a4; }
.directory-name:focus-visible { outline: 2px solid #7853a4; outline-offset: 4px; border-radius: 3px; }
.directory-email { display: block; margin-top: 4px; color: #8a7c94; font-size: .75rem; overflow-wrap: anywhere; }
.directory-credit-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #f2ecf6; color: #78538f; font-weight: 850; white-space: nowrap; }
.directory-credit-pill small { font-size: .64rem; font-weight: 600; }
.directory-credit-pill.is-low { background: #fbefed; color: #a86165; }
.directory-reserved { display: block; margin: 5px 0 0 2px; color: #92859b; font-size: .7rem; }
.directory-lesson-date { display: block; font-weight: 700; }
.directory-lesson-time { display: block; margin-top: 4px; color: #8a7c94; font-size: .75rem; }
.directory-unscheduled { color: #998ca3; font-size: .78rem; }
.student-directory-table .directory-secondary { color: #92859b; font-size: .75rem; overflow-wrap: anywhere; }
.directory-mobile-label { display: none; }
.student-directory-table .directory-arrow { padding-left: 0; padding-right: 12px; color: #a58bb7; text-align: right; font-size: 1.1rem; }
.directory-arrow span { display: inline-block; transition: transform 180ms ease; }
.student-directory-table tr:hover .directory-arrow span { transform: translate(2px,-2px); }

@media (max-width: 1100px) and (min-width: 769px) {
    .student-directory-table th:first-child { width: 36%; }
    .student-directory-table .directory-secondary { display: none; }
    .student-directory-table th:nth-child(2) { width: 25%; }
    .student-directory-table th:nth-child(3) { width: auto; }
}

@media (max-width: 768px) {
    .student-directory-panel { padding: 20px 16px; }
    .student-directory-panel .student-section-heading { margin-bottom: 18px; }
    .student-directory-panel .student-section-heading .empty-state { font-size: .82rem; }
    .student-directory-table, .student-directory-table tbody { display: block; width: 100%; min-width: 0; }
    .student-directory-table thead { display: none; }
    .student-directory-table tbody tr { display: grid; position: relative; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px 12px; padding: 16px 0; border-top: 1px solid rgba(120,83,164,.1); }
    .student-directory-table tbody tr:first-child { padding-top: 4px; border-top: 0; }
    .student-directory-table tbody tr[hidden] { display: none; }
    .student-directory-table tbody td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
    .student-directory-table tbody td::before { content: none; }
    .student-directory-table .directory-secondary,
    .student-directory-table .directory-arrow,
    .student-directory-table .directory-email,
    .student-directory-table .directory-reserved { display: none; }
    .directory-person { gap: 10px; }
    .directory-avatar { flex-basis: 32px; height: 32px; border-radius: 11px; font-size: .8rem; }
    .directory-name { font-size: .84rem; }
    .directory-credit-pill { padding: 6px 8px; font-size: .86rem; }
    .directory-credit-pill small { font-size: .58rem; }
    .student-directory-table .directory-next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-left: 42px; font-size: .73rem; }
    .directory-mobile-label { display: inline; color: #998ca3; font-size: .66rem; }
    .directory-lesson-date, .directory-lesson-time { display: inline; margin: 0; font-size: .73rem; }
    .directory-unscheduled { font-size: .73rem; }
}

/* Read-only student background, separate from lesson management. */
.student-facts-heading { margin-bottom: 26px; }
.student-facts-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.student-facts-section { min-width: 0; }
.student-facts-section + .student-facts-section { padding-left: 32px; border-left: 1px solid rgba(120,83,164,.12); }
.student-facts-section h3 { margin: 0 0 16px; color: #78538f; font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.student-facts { margin: 0; }
.student-facts > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(120,83,164,.08); }
.student-facts > div:last-child { border-bottom: 0; }
.student-facts dt { color: #92859b; font-size: .8rem; font-weight: 500; }
.student-facts dd { margin: 0; color: #493354; font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
.student-learning-note { margin-top: 22px; padding: 20px; border: 1px solid rgba(120,83,164,.09); border-radius: 18px; background: linear-gradient(135deg,#faf6fc,#fdf8f5); }
.student-learning-note h4 { margin: 0 0 10px; color: #78538f; font-family: var(--font-body); font-size: .78rem; font-weight: 750; }
.student-learning-note p { margin: 0; color: #695772; font-size: .88rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 768px) {
    .student-facts-panel { padding: 22px 18px; }
    .student-facts-heading { margin-bottom: 22px; }
    .student-facts-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .student-facts-section + .student-facts-section { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid rgba(120,83,164,.12); }
    .student-facts > div { grid-template-columns: 76px minmax(0,1fr); gap: 12px; padding: 11px 0; }
    .student-facts dd { font-size: .82rem; }
    .student-facts dt { font-size: .74rem; }
    .student-learning-note { margin-top: 16px; padding: 16px; }
}

/* One balance, with two clearly identified parts. */
.credit-wallet { background: radial-gradient(ellipse at 100% 0,rgba(120,83,164,.12),transparent 55%),linear-gradient(140deg,#fff,#fffaf6); }
.credit-wallet-total { display: flex; align-items: center; gap: 18px; margin: 10px 0 22px; }
.credit-wallet-total > strong { color: #493354; font-family: var(--font-heading); font-size: clamp(2.8rem,5vw,4.3rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; overflow-wrap: anywhere; min-width: 0; }
.credit-wallet-total > span { color: #493354; font-size: .96rem; font-weight: 750; }
.credit-wallet-total small { display: block; margin-top: 4px; color: #92859b; font-size: .72rem; font-weight: 500; }
.credit-wallet-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #92859b; font-size: .72rem; }
.credit-wallet-divider::after { content: ""; flex: 1; height: 1px; background: rgba(120,83,164,.13); }
.credit-wallet-parts { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 0; }
.credit-wallet-part { display: flex; flex-direction: column; padding: 17px; border: 1px solid rgba(120,83,164,.1); border-radius: 17px; background: rgba(255,255,255,.7); }
.credit-wallet-part.is-free { background: rgba(240,233,247,.65); }
.credit-wallet-part dt { color: #78538f; font-size: .78rem; font-weight: 750; }
.credit-wallet-part dd { margin: 6px 0; color: #493354; font-size: 1.8rem; font-weight: 750; line-height: 1.2; overflow-wrap: anywhere; }
.credit-wallet-part p { margin: 6px 0 0; font-weight: 500; color: #92859b; font-size: .68rem; line-height: 1.5; }
.credit-wallet-explanation { margin: 16px 0 0; color: #92859b; font-size: .74rem; line-height: 1.6; }
.credit-wallet-actions { margin-top: 20px; }
.student-directory-table th:first-child { width: 29%; }
.student-directory-table th.directory-total-column { width: 10%; }
.student-directory-table th.directory-free-column { width: 14%; }
.student-directory-table th.directory-reserved-column { width: 12%; }
.student-directory-table .directory-credit { text-align: center; font-variant-numeric: tabular-nums; }
.student-directory-table th.directory-total-column,
.student-directory-table th.directory-free-column,
.student-directory-table th.directory-reserved-column { text-align: center; letter-spacing: .02em; }
.directory-total strong { color: #493354; font-size: 1.08rem; }
.directory-booked-value { color: #8a7c94; font-weight: 650; }
.directory-credit-caption { display: none; }
@media (max-width: 1100px) and (min-width: 769px) {
    .student-directory-table th:first-child { width: 32%; }
    .student-directory-table th.directory-total-column { width: 12%; }
    .student-directory-table th.directory-free-column { width: 17%; }
    .student-directory-table th.directory-reserved-column { width: 15%; }
    .student-directory-table th { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 768px) {
    .credit-wallet { padding: 22px 18px; }
    .credit-wallet-total { margin-bottom: 18px; gap: 14px; }
    .credit-wallet-total > strong { font-size: 3rem; }
    .credit-wallet-parts { gap: 8px; }
    .credit-wallet-part { padding: 13px 11px; border-radius: 13px; }
    .credit-wallet-part dt { font-size: .72rem; }
    .credit-wallet-part dd { font-size: 1.5rem; }
    .credit-wallet-part p { font-size: .65rem; }
    .credit-wallet-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .credit-wallet-actions .btn { width: auto; flex: 1; }
    .student-directory-table tbody tr { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 8px; }
    .student-directory-table .directory-identity { grid-column: 1 / -1; }
    .student-directory-table .directory-credit { padding: 9px 4px; border-radius: 11px; background: rgba(120,83,164,.04); }
    .student-directory-table .directory-free { background: rgba(120,83,164,.08); }
    .directory-credit-caption { display: block; margin-bottom: 5px; color: #92859b; font-size: .62rem; font-weight: 600; }
    .student-directory-table .directory-credit-pill { padding: 0; background: transparent; font-size: 1rem; }
    .student-directory-table .directory-credit-pill.is-low { color: #a86165; }
    .directory-total strong { font-size: 1rem; }
    .student-directory-table .directory-next { padding-left: 0; }
}

/* Shared record tables: the same quiet typography as the student directory. */
.record-table { table-layout: auto; }
.record-table th { padding: 0 14px 14px; color: #92859b; font-size: .67rem; font-weight: 750; letter-spacing: .06em; }
.record-table td { padding: 18px 14px; border-color: rgba(120,83,164,.09); color: #594963; font-size: .83rem; line-height: 1.55; overflow-wrap: anywhere; }
.record-table tbody tr:hover td { background: rgba(120,83,164,.025); }
.record-table td:first-child { color: #493354; font-weight: 650; }
.record-table .record-date { min-width: 106px; font-size: .76rem; color: #8a7c94; }
.record-table .record-number { font-variant-numeric: tabular-nums; font-weight: 700; }
.record-table .record-note { min-width: 120px; max-width: 320px; color: #92859b; font-size: .76rem; }
.record-table .premium-chip { min-height: 0; padding: 5px 9px; border-radius: 10px; font-size: .68rem; line-height: 1.4; white-space: normal; }
.record-table .record-actions { min-width: 110px; }
.record-table .record-actions .btn { min-height: 36px; padding: 7px 12px; font-size: .72rem; box-shadow: none; }
.record-table .table-row-actions { flex-wrap: wrap; gap: 7px; }
.table-pagination { flex-wrap: wrap; gap: 10px; }
.table-page-button { min-height: 40px; }

/* Let card contents shrink before they push the page beyond the viewport. */
.app-page, .app-tabs, .app-tab-panel, .premium-panel, .premium-card,
.home-side-stack, .student-section-heading > div, .row > [class*="col-"] { min-width: 0; }
.premium-panel, .premium-card { overflow-wrap: anywhere; }
.app-title, .app-subtitle, .app-section-title { overflow-wrap: anywhere; }
.home-meet-card { flex-wrap: wrap; }
.credit-wallet-actions .balance-secondary-action { width: auto; }
.credit-wallet-part { min-width: 0; }

@media (max-width: 991.98px) {
    .premium-panel { padding: 24px; }
    .home-side-stack { gap: 16px; }
    .home-next-lesson-card .app-section-title { font-size: clamp(1.4rem,4vw,2rem); line-height: 1.3; }
    .balance-main-grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .balance-details { border-left: 0; padding: 18px 0 0; border-top: 1px solid rgba(120,83,164,.12); }
}

@media (max-width: 768px) {
    .table-responsive:has(.record-table) { overflow: visible; padding: 0; margin: 0; }
    .record-table, .record-table tbody { display: block; width: 100%; min-width: 0; }
    .record-table thead { display: none; }
    .record-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin: 0 0 12px; padding: 16px; border: 1px solid rgba(120,83,164,.1); border-radius: 16px; background: linear-gradient(135deg,rgba(250,247,252,.7),rgba(255,251,247,.6)); }
    .record-table tbody tr:first-child { padding: 16px; border-top: 1px solid rgba(120,83,164,.1); }
    .record-table tbody tr:last-child { margin-bottom: 0; }
    .record-table tbody tr[hidden] { display: none; }
    .record-table tbody td { display: block; width: auto; min-width: 0; max-width: none; padding: 0; border: 0; font-size: .79rem; background: transparent; }
    .record-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: #998ca3; font-size: .6rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
    .record-table tbody td:first-child { grid-column: 1 / -1; font-size: .86rem; }
    .record-table tbody .record-note { grid-column: 1 / -1; font-size: .75rem; }
    .record-table tbody .record-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(120,83,164,.08); }
    .record-table .record-actions::before { content: none; }
    .record-table td form, .record-table td .btn { width: auto; margin: 0; }
    .record-table .record-actions .btn { min-height: 40px; padding: 9px 14px; }
    .record-table td form + form { margin: 0; }
    .record-table tbody tr:hover td { background: transparent; }
    .table-pagination { justify-content: space-between; }
    .table-page-status { font-size: .72rem; }
    .table-page-button { padding: 8px 12px; font-size: .74rem; }
    .premium-panel, .premium-card { padding: 20px 16px; border-radius: 20px; }
    .student-section-heading { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
    .student-section-heading > span { min-height: 28px; padding: 4px 10px; font-size: .7rem; }
    .student-section-heading .app-section-title { font-size: 1.6rem; }
    .app-eyebrow { font-size: .65rem; letter-spacing: .08em; }
    .home-meet-card { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
    .home-meet-action { min-width: 110px; width: auto; }
    .home-meet-copy { flex: 1 1 150px; }
    .credit-wallet-total { margin-top: 8px; margin-bottom: 16px; }
    .credit-wallet-explanation { font-size: .7rem; }
    .credit-wallet-actions { display: flex; align-items: center; gap: 10px; }
    .credit-wallet-actions .btn { flex: 0 1 auto; min-height: 42px; padding: 10px 16px; font-size: .8rem; }
    .credit-wallet-actions .balance-secondary-action { flex: 0 1 auto; font-size: .78rem; }
    .teacher-overview-grid { gap: 10px; margin-bottom: 18px; }
    .teacher-overview-card { padding: 16px; border-radius: 17px; }
    .teacher-overview-card span { font-size: .6rem; }
    .teacher-overview-card strong { font-size: 2rem; }
    .teacher-overview-card small { font-size: .7rem; line-height: 1.5; }
    .lesson-detail-heading { padding: 30px 20px 20px; }
    .lesson-detail-heading h2 { font-size: 1.7rem; }
    .lesson-focus-form, .lesson-reschedule-note, .lesson-cancel-form { margin-left: 20px; margin-right: 20px; }
}
@media (max-width: 390px) {
    .record-table tbody tr { padding: 13px; gap: 10px 12px; }
    .record-table tbody tr:first-child { padding: 13px; }
    .credit-wallet-total > strong { font-size: 2.7rem; }
    .credit-wallet-part { padding: 12px 9px; }
    .credit-wallet-part dt { font-size: .68rem; }
    .teacher-overview-grid { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 768px) {
    .teacher-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-right: 0; padding-right: 0; overflow: visible; }
    .teacher-overview-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .student-section-heading { display: flex; }
    .record-table .premium-chip { margin-top: 0; }
}
@media (max-width: 575.98px) {
    .app-title { font-size: clamp(2rem,9vw,2.7rem); line-height: 1.12; }
    .app-subtitle { font-size: .9rem; line-height: 1.5; }
}

@media (max-width: 575.98px) {
    .calendar-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .calendar-toolbar > div, .calendar-toolbar > a { min-width: 0; }
    .calendar-toolbar > a { padding: 10px 8px; font-size: .74rem; }
    .calendar-timezone { font-size: .78rem; }
}

/* Teacher-only time off, visually distinct from lessons and bookable slots. */
.calendar-slot.calendar-time-off {
    display: block;
    padding: 12px;
    border: 1px solid rgba(138,124,148,.18);
    border-left: 3px solid #b6a4c2;
    background: repeating-linear-gradient(135deg,transparent,transparent 8px,rgba(138,124,148,.025) 8px,rgba(138,124,148,.025) 10px),linear-gradient(145deg,#f5f0f6,#fbf7f3);
    box-shadow: none;
}
.calendar-time-off-label { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #92809f; font-size: .61rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.calendar-time-off-label > span { font-size: .85rem; line-height: 1; }
.calendar-slot .calendar-time-off-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 5px; color: #6d587a; font-family: var(--font-body); font-size: .76rem; font-weight: 700; line-height: 1.5; }
.calendar-time-off-note { margin: 7px 0 0; color: #99899f; font-size: .7rem; line-height: 1.5; overflow-wrap: anywhere; }

.calendar-time-off[data-time-off-card] { cursor: pointer; transition: border-color 160ms ease,box-shadow 160ms ease; }
.calendar-time-off[data-time-off-card]:hover,
.calendar-time-off[data-time-off-card]:focus-visible { border-color: #a58bb7; box-shadow: 0 8px 18px rgba(109,88,122,.09); }
.calendar-time-off[data-time-off-card]:focus-visible { outline: 2px solid #a58bb7; outline-offset: 3px; }
.time-off-detail-card .lesson-detail-heading { background: linear-gradient(145deg,#f5f0f6,#fbf7f3); }
.time-off-detail-card [data-time-off-range] { font-size: .86rem; line-height: 1.6; overflow-wrap: anywhere; }
.time-off-note-hint { display: block; margin-top: 7px; color: #92859b; font-size: .74rem; }

.credit-form-intro { margin: 0 0 22px; color: #8a7c94; font-size: .86rem; line-height: 1.6; }
.credit-stepper { display: grid; grid-template-columns: 46px minmax(0,1fr) 46px; align-items: center; gap: 10px; }
.credit-stepper button { display: grid; place-items: center; min-height: 46px; padding: 0; border: 1px solid rgba(120,83,164,.16); border-radius: 14px; background: linear-gradient(145deg,#f4edf8,#fff9f4); color: #78538f; font-size: 1.5rem; line-height: 1; transition: background 160ms ease,transform 160ms ease; }
.credit-stepper button:hover:not(:disabled) { background: #eee4f6; transform: translateY(-1px); }
.credit-stepper button:focus-visible { outline: 2px solid #7853a4; outline-offset: 3px; }
.credit-stepper button:disabled { opacity: .4; cursor: default; }
.credit-stepper input { min-width: 0; text-align: center; font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.credit-stepper input::-webkit-inner-spin-button, .credit-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.credit-form-hint { display: block; margin-top: 8px; color: #92859b; font-size: .7rem; line-height: 1.5; }
.credit-payment-fields { min-width: 0; padding: 16px; border: 1px solid rgba(120,83,164,.1); border-radius: 16px; background: rgba(120,83,164,.025); }
.credit-payment-fields[hidden] { display: none; }
.credit-payment-fields legend { float: none; width: auto; margin: 0 0 12px; color: #8a7c94; font-size: .73rem; font-weight: 700; }
.credit-payment-fields .form-label { font-size: .78rem; }
.credit-change-preview { margin: 16px 0 12px; padding: 11px 13px; border-radius: 12px; background: #f3edf7; color: #78538f; font-size: .78rem; font-weight: 650; }
.is-removing-credits .credit-change-preview { background: #fbefed; color: #a86165; }
.credit-submit { width: 100%; min-height: 46px; }
@media (max-width: 575.98px) {
    .credit-form-intro { font-size: .8rem; margin-bottom: 18px; }
    .credit-stepper { grid-template-columns: 44px minmax(0,1fr) 44px; gap: 8px; }
    .credit-payment-fields { padding: 12px; }
    .credit-change-preview { font-size: .74rem; }
}

/* External events are read-only; Preply has its own rose accent. */
.calendar-slot.calendar-google-event {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    background: linear-gradient(135deg, #f0f5fb, #fafcff);
    border: 1px solid #d2deed;
    border-left: 3px solid #6d8caf;
    color: #344a64;
}
.calendar-slot.calendar-google-event.is-preply {
    background: linear-gradient(135deg, #fce4ee, #fff4f8);
    border-color: #edb5ce;
    border-left-color: #d65089;
    color: #862d55;
}
.calendar-google-event .calendar-external-source {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.calendar-google-event .calendar-external-title {
    font-family: var(--font-body);
    font-size: .85rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.calendar-google-event .calendar-external-time { font-size: .78rem; font-weight: 600; }
.calendar-google-event .calendar-external-calendar { font-size: .7rem; overflow-wrap: anywhere; }
