:root {
  --bg: #f7f4ee; --surface: #fffdf9; --surface-2: #f0ece4; --ink: #26383a; --muted: #6e7774;
  --line: rgba(38,56,58,.11); --orange: #f06f3c; --orange-dark: #d85b2b; --green: #365f55;
  --shadow: 0 18px 60px rgba(52,49,42,.09); --radius: 24px; --sidebar: 244px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button, [data-open-course], [data-open-media], [data-lesson] { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; margin-bottom: 16px; }
h2 { font-size: 30px; line-height: 1.15; margin-bottom: 10px; }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
p { color: var(--muted); }
svg { flex: 0 0 auto; }
.app-layout { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 24px 18px; background: rgba(255,253,249,.92); border-right: 1px solid var(--line); backdrop-filter: blur(18px); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; }
.brand img { width: 46px; height: 46px; border-radius: 15px; box-shadow: 0 8px 20px rgba(240,111,60,.14); }
.brand strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 20px; line-height: 1.1; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.brand--compact { padding: 0; }.brand--compact img { width: 37px; height: 37px; }.brand--compact strong { font-size: 18px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; border: 0; border-radius: 13px; padding: 11px 13px; background: transparent; display: flex; align-items: center; gap: 12px; color: #64706d; text-align: left; transition: .18s ease; }
.nav-item:hover { background: #f5f0e8; color: var(--ink); }.nav-item.is-active { background: #fff0e7; color: var(--orange-dark); font-weight: 600; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 12px; }.profile-chip { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.profile-chip > span, .avatar-button, .large-avatar, .avatar { display: grid; place-items: center; border-radius: 50%; background: #f8d4bf; color: #9a3f1d; font-weight: 700; }
.profile-chip > span { width: 36px; height: 36px; }.profile-chip strong, .profile-chip small { display: block; }.profile-chip small { color: var(--muted); }
.main { grid-column: 2; min-width: 0; }.topbar { position: sticky; top: 0; z-index: 15; height: 78px; padding: 15px clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(247,244,238,.86); backdrop-filter: blur(18px); display: flex; align-items: center; gap: 14px; }
.mobile-brand { display: none; }.search-box { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 14px; padding: 0 14px; }
.search-box input { border: 0; outline: 0; background: transparent; width: 100%; height: 46px; color: var(--ink); }.search-box input::placeholder { color: #949c99; }
.code-button, .avatar-button { border: 0; }.code-button { margin-left: auto; display: flex; align-items: center; gap: 8px; border-radius: 13px; padding: 11px 15px; background: var(--ink); color: white; font-weight: 600; }.avatar-button { width: 42px; height: 42px; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 36px clamp(22px, 4vw, 54px) 80px; }
.home-hero { position: relative; min-height: 430px; border-radius: 34px; padding: clamp(34px, 6vw, 72px); background: linear-gradient(120deg, #f5e6d8 0%, #fff9ef 58%, #e5eee7 100%); overflow: hidden; display: flex; align-items: center; box-shadow: var(--shadow); }
.home-hero:before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; right: -50px; top: -110px; background: rgba(255,255,255,.4); }
.home-hero__copy { position: relative; z-index: 2; max-width: 650px; }.home-hero h1 { font-size: clamp(44px, 6vw, 76px); }.home-hero p { max-width: 560px; font-size: 17px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--orange-dark); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 700; }
.hero-actions, .prejoin-actions { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }.primary-button, .secondary-button, .text-button { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.primary-button { min-height: 46px; padding: 11px 17px; border-radius: 13px; background: var(--orange); color: white; box-shadow: 0 10px 24px rgba(240,111,60,.2); }.primary-button:hover { background: var(--orange-dark); }
.secondary-button { min-height: 46px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.72); }.text-button { background: transparent; padding: 8px 0; color: var(--green); }.text-button svg { transition: transform .2s; }.text-button:hover svg { transform: translateX(3px); }
.hero-bird { position: absolute; right: clamp(25px, 6vw, 100px); width: min(30vw, 310px); aspect-ratio: 1; display: grid; place-items: center; }.hero-bird img { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 22px 25px rgba(45,54,50,.12)); }
.sound-ring { position: absolute; border: 2px solid rgba(240,111,60,.13); border-radius: 50%; }.sound-ring--1 { width: 115%; height: 115%; }.sound-ring--2 { width: 145%; height: 145%; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 54px; }.quick-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 18px; display: flex; align-items: center; gap: 13px; text-align: left; box-shadow: 0 6px 20px rgba(50,48,42,.035); }.quick-card > svg:first-child { color: var(--orange); }.quick-card > svg:last-child { margin-left: auto; }.quick-card span { display: grid; }.quick-card small { color: var(--muted); }
.section-heading, .page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 50px 0 20px; }.page-heading { align-items: center; margin-top: 0; }.page-heading p { font-size: 16px; margin-bottom: 0; }.section-heading .eyebrow { margin-bottom: 4px; }.section-heading h2 { margin: 0; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }.course-grid--wide { grid-template-columns: repeat(3, minmax(0,1fr)); }.course-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: 0 9px 28px rgba(50,48,42,.05); transition: transform .2s, box-shadow .2s; }.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.course-art { height: 174px; padding: 20px; color: white; position: relative; overflow: hidden; }.course-art:before { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; right: -20px; bottom: -65px; }.course-art span { position: relative; z-index: 1; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }.course-art__mark { position: absolute; right: 22px; bottom: 20px; }.course-art--sunrise { background: linear-gradient(135deg, #f49a64, #df6542); }.course-art--forest { background: linear-gradient(135deg, #6b8b79, #31584f); }.course-art--berry { background: linear-gradient(135deg, #987486, #64475c); }
.course-card__body { padding: 22px; }.card-kicker { font-size: 11px; color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 7px; }.course-card__body p, .media-card__copy p { min-height: 48px; margin-bottom: 18px; }.progress { height: 6px; border-radius: 999px; background: #ece8e1; overflow: hidden; }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }.card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 12px; }.card-action { display: flex; align-items: center; justify-content: space-between; color: var(--orange-dark); font-weight: 600; }
.is-locked .course-art, .is-locked .media-card__visual { filter: saturate(.65); }.is-locked .course-card__body { background: #fbf9f5; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }.media-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; transition: transform .2s; }.media-card:hover { transform: translateY(-3px); }.media-card__visual { height: 145px; padding: 18px; position: relative; display: grid; place-items: center; background: #e7eee9; }.media-card__visual--violet, .media-card__visual--audio { background: linear-gradient(135deg, #ede4ef, #d7cadf); }.media-card__visual--sky, .media-card__visual--video { background: linear-gradient(135deg, #dfedf0, #c4dce1); }.media-card__visual--paper, .media-card__visual--pdf { background: linear-gradient(135deg, #f1e8da, #e5d4bd); }.media-glyph { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255,255,255,.65); color: var(--green); box-shadow: 0 10px 30px rgba(50,48,42,.08); }.round-action { position: absolute; right: 15px; bottom: 15px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--orange-dark); }.media-card__copy { padding: 19px; }.media-card__copy h3 { margin-bottom: 6px; }
.live-banner { margin-top: 54px; padding: 26px; border-radius: 24px; background: var(--green); color: white; display: flex; align-items: center; gap: 18px; }.live-banner p { color: rgba(255,255,255,.68); margin-bottom: 0; }.live-banner h2 { margin: 0 0 4px; }.live-banner .eyebrow { color: #ffd8c5; margin-bottom: 3px; }.live-banner .primary-button { margin-left: auto; }.live-banner__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: rgba(255,255,255,.1); }
.filter-row { display: flex; gap: 8px; margin-bottom: 20px; }.badge { display: inline-flex; align-items: center; width: max-content; padding: 5px 10px; border-radius: 999px; background: #eeeae3; color: var(--muted); font-size: 11px; font-weight: 700; }.badge--orange { background: #ffeadf; color: #b94c23; }.badge--light { background: rgba(255,255,255,.17); color: white; }.badge--live { background: #ee4e4e; color: white; }
.detail-page, .viewer-page { max-width: 1120px; margin: 0 auto; }.detail-page > .text-button { transform: rotate(180deg); margin-bottom: 15px; }.detail-page > .text-button svg { transform: rotate(180deg); }.detail-hero { min-height: 270px; padding: clamp(30px, 5vw, 58px); border-radius: 28px; color: white; display: flex; align-items: end; justify-content: space-between; overflow: hidden; }.detail-hero h1 { margin: 12px 0; }.detail-hero p { color: rgba(255,255,255,.76); max-width: 620px; }.detail-hero__stat { text-align: center; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.13); }.detail-hero__stat strong, .detail-hero__stat span { display: block; }.detail-hero__stat strong { font-size: 32px; font-family: "Fraunces", serif; }
.lesson-list { margin-top: 22px; display: grid; gap: 10px; }.lesson-row { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px; display: flex; align-items: center; gap: 14px; text-align: left; }.lesson-row:hover { border-color: rgba(240,111,60,.35); }.lesson-index { width: 34px; color: var(--muted); font-weight: 700; }.lesson-row .media-glyph { width: 44px; height: 44px; border-radius: 13px; }.lesson-copy { flex: 1; }.lesson-copy strong, .lesson-copy small { display: block; }.lesson-copy small { color: var(--muted); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }.viewer-stage { overflow: hidden; min-height: 520px; border-radius: 24px; background: #1e282b; display: grid; place-items: center; }.native-player, .pdf-viewer { width: 100%; height: min(68vh, 720px); border: 0; background: #1e282b; }.demo-media { color: white; text-align: center; padding: 30px; }.demo-media .media-glyph { margin: 0 auto 20px; }.demo-media p { max-width: 480px; color: rgba(255,255,255,.68); }.audio-viewer { width: min(570px, 90%); padding: 55px; border-radius: 26px; background: #f5ece0; text-align: center; }.audio-viewer .media-glyph { margin: 0 auto 20px; }.audio-viewer audio { width: 100%; }.viewer-info { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 24px 4px; }.viewer-info h1 { font-size: 36px; }.viewer-info p { margin: 0; }
.live-event { padding: 26px; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; box-shadow: var(--shadow); }.live-event__date { width: 78px; height: 88px; border-radius: 18px; display: grid; place-content: center; text-align: center; background: #ffeadf; color: var(--orange-dark); }.live-event__date strong, .live-event__date span { display: block; }.live-event__date span { font-size: 20px; font-weight: 700; }.live-event__copy h2 { margin: 9px 0 4px; }.live-event__copy p { margin-bottom: 10px; }.event-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }.info-card { padding: 22px; border-radius: 20px; background: rgba(255,255,255,.55); border: 1px solid var(--line); }.info-card > svg { color: var(--orange); margin-bottom: 16px; }.info-card p { margin-bottom: 0; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(270px,.6fr); gap: 18px; align-items: start; }.upload-card { border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: var(--surface); display: grid; gap: 16px; }.upload-drop { min-height: 220px; padding: 25px; border: 1px dashed rgba(54,95,85,.35); border-radius: 18px; background: #f7faf7; display: grid; place-items: center; align-content: center; text-align: center; }.upload-drop > svg { color: var(--green); margin-bottom: 10px; }.upload-drop h3, .upload-drop p { margin-bottom: 5px; }.upload-drop .secondary-button { margin: 12px 0 8px; }.upload-drop > span { color: var(--muted); font-size: 12px; }.field { display: grid; gap: 7px; }.field > span { font-size: 12px; font-weight: 700; }.field input, .field textarea, .code-field input, .chat-form input { border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); outline: 0; padding: 12px 14px; }.field input:focus, .field textarea:focus, .code-field input:focus { border-color: rgba(240,111,60,.65); box-shadow: 0 0 0 3px rgba(240,111,60,.1); }.field textarea { min-height: 90px; resize: vertical; }.studio-info { display: flex; gap: 13px; padding: 20px; border-radius: 20px; background: #e8f0eb; }.studio-info p { margin: 4px 0 0; }.studio-info__icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: white; color: var(--green); }.upload-wrap { position: relative; }.delete-upload { position: absolute; top: 10px; right: 10px; z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #a64033; }
.empty-state { grid-column: 1/-1; min-height: 220px; border: 1px dashed var(--line); border-radius: 20px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); padding: 25px; }.empty-state h3 { color: var(--ink); margin: 10px 0 4px; }.empty-state p { margin: 0; }
.profile-panel { display: flex; align-items: center; gap: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }.large-avatar { width: 72px; height: 72px; font-size: 22px; }.profile-panel h2 { margin: 0; }.profile-panel p { margin: 3px 0 0; }.settings-list { margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); overflow: hidden; }.settings-list > div { display: flex; align-items: center; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }.settings-list > div:last-child { border-bottom: 0; }.settings-list > div > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #f4eee6; color: var(--orange-dark); }.settings-list p { margin: 2px 0 0; }
.modal-root:empty { display: none; }.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(29,39,40,.55); backdrop-filter: blur(7px); }.modal { position: relative; width: min(520px, 100%); padding: 36px; border-radius: 26px; background: var(--surface); box-shadow: 0 28px 90px rgba(20,25,24,.25); }.modal h2 { margin: 7px 0 10px; }.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f2eee7; display: grid; place-items: center; }.modal-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #ffeadf; color: var(--orange-dark); margin-bottom: 18px; }.code-field { display: flex; gap: 9px; margin: 22px 0 10px; }.code-field input { min-width: 0; flex: 1; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }.code-field input.has-error { border-color: #c7493c; animation: shake .25s; }.modal small { color: var(--muted); }
#toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 10px; }.toast { min-width: 280px; padding: 14px 16px; border-radius: 14px; background: var(--ink); color: white; display: flex; gap: 10px; align-items: center; box-shadow: 0 18px 45px rgba(20,25,24,.24); animation: toastIn .25s ease; }.toast--warning { background: #7e4037; }
.prejoin-page { min-height: 100vh; padding: 30px; background: radial-gradient(circle at 20% 15%, #f5dcca, transparent 30%), radial-gradient(circle at 90% 80%, #dce8df, transparent 32%), var(--bg); display: grid; place-items: center; }.prejoin-card { width: min(1100px,100%); display: grid; grid-template-columns: 1.3fr .8fr; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }.prejoin-preview { position: relative; min-height: 620px; background: #243236; display: grid; place-items: center; overflow: hidden; }.prejoin-preview video { position: absolute; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }.camera-placeholder { display: grid; justify-items: center; gap: 10px; color: rgba(255,255,255,.65); }.prejoin-preview.has-video .camera-placeholder { display: none; }.prejoin-copy { padding: clamp(30px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }.prejoin-copy h1 { font-size: 43px; }.device-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }.device-toggle { border: 1px solid var(--line); border-radius: 13px; background: #f2eee8; padding: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }.device-toggle.is-on { background: #e7f0eb; color: var(--green); }.privacy-note { color: var(--muted); margin-top: 16px; }
.call-shell { height: 100vh; background: #11191c; color: white; display: grid; grid-template-rows: 64px 1fr 92px; overflow: hidden; }.call-header { padding: 0 22px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; background: #172125; }.call-header > div { display: flex; align-items: center; gap: 10px; }.call-header__right { color: rgba(255,255,255,.62); font-size: 12px; }.quality-dot { width: 7px; height: 7px; border-radius: 50%; background: #65cc88; }.call-main { min-height: 0; display: grid; grid-template-columns: 1fr auto; }.participant-grid { min-width: 0; padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0,1fr)); gap: 11px; overflow: auto; }.participant-tile { position: relative; min-height: 180px; border-radius: 17px; background: linear-gradient(145deg,#314146,#1e2b2f); display: grid; place-items: center; overflow: hidden; border: 2px solid transparent; }.participant-tile.is-speaking { border-color: #f49a64; }.participant-tone-1 { background: linear-gradient(145deg,#4e625a,#243832); }.participant-tone-2 { background: linear-gradient(145deg,#5c4e5b,#332733); }.participant-tone-3 { background: linear-gradient(145deg,#555d6d,#282f3c); }.participant-tone-4 { background: linear-gradient(145deg,#625446,#342b23); }.participant-fallback { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 24px; font-weight: 700; }.participant-tile video { position: absolute; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }.participant-tile:not(.has-video) video { display: none; }.participant-name { position: absolute; left: 10px; bottom: 9px; padding: 5px 8px; border-radius: 8px; background: rgba(12,18,20,.62); font-size: 11px; }.fake-wave { position: absolute; top: 11px; right: 11px; display: flex; align-items: end; gap: 2px; height: 15px; }.fake-wave i { width: 3px; border-radius: 2px; background: #f49a64; animation: wave 1s infinite alternate; }.fake-wave i:nth-child(1){height:7px}.fake-wave i:nth-child(2){height:14px;animation-delay:.2s}.fake-wave i:nth-child(3){height:10px;animation-delay:.4s}.layout-speaker { grid-template-columns: 1fr 180px; grid-template-rows: repeat(4, minmax(120px,1fr)); }.layout-speaker .participant-tile:first-child { grid-row: 1/-1; }.layout-speaker .participant-tile:not(:first-child) { grid-column: 2; }.call-panel { width: 330px; border-left: 1px solid rgba(255,255,255,.08); background: #172125; display: grid; grid-template-rows: 58px 1fr auto; min-height: 0; }.call-panel__title { padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }.call-panel__title button { border: 0; background: transparent; color: white; }.people-list, .chat-messages { padding: 12px; overflow: auto; }.person-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 10px 4px; }.person-row .avatar, .chat-message .avatar { width: 38px; height: 38px; background: rgba(255,255,255,.11); color: white; }.person-row strong, .person-row small { display: block; }.person-row small { color: rgba(255,255,255,.48); }.chat-message { display: grid; grid-template-columns: 38px 1fr; gap: 9px; margin-bottom: 16px; }.chat-message strong { font-size: 12px; }.chat-message p { margin: 3px 0; color: rgba(255,255,255,.82); font-size: 13px; }.chat-message small { color: rgba(255,255,255,.4); font-size: 10px; }.chat-form { display: flex; gap: 7px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }.chat-form input { min-width: 0; flex: 1; background: #213035; color: white; border-color: transparent; }.chat-form button { width: 40px; border: 0; border-radius: 12px; background: var(--orange); color: white; display: grid; place-items: center; }.call-controls { padding: 12px 18px; background: #172125; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; gap: 8px; }.call-control { min-width: 66px; height: 62px; border: 0; border-radius: 13px; background: transparent; color: rgba(255,255,255,.77); display: grid; place-items: center; align-content: center; gap: 2px; }.call-control span { font-size: 10px; }.call-control:hover, .call-control.is-active { background: rgba(255,255,255,.09); color: white; }.call-control.is-off { background: #8c3d35; color: white; }.call-control--leave { margin-left: 18px; padding-inline: 13px; background: #b74038; color: white; }
.mobile-nav { display: none; }
@keyframes wave { from{transform:scaleY(.5)} to{transform:scaleY(1.2)} } @keyframes toastIn { from{transform:translateY(10px);opacity:0} } @keyframes shake { 25%{transform:translateX(-5px)}75%{transform:translateX(5px)} }
@media (max-width: 1080px) { :root{--sidebar:210px}.course-grid,.media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,1fr)}.hero-bird{opacity:.35;right:-20px}.home-hero__copy{max-width:680px}.participant-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 760px) { .app-layout{display:block;padding-bottom:72px}.sidebar{display:none}.main{display:block}.topbar{height:70px;padding:11px 15px}.mobile-brand{display:block}.search-box{display:none}.code-button span{display:none}.avatar-button{display:none}.content{padding:22px 15px 62px}.mobile-nav{position:fixed;display:grid;grid-template-columns:repeat(6,1fr);z-index:50;inset:auto 0 0;background:rgba(255,253,249,.96);border-top:1px solid var(--line);backdrop-filter:blur(18px);padding:7px 5px calc(7px + env(safe-area-inset-bottom))}.mobile-nav .nav-item{display:grid;justify-items:center;gap:2px;padding:5px 1px;font-size:9px}.mobile-nav .nav-item svg{width:19px}.home-hero{min-height:480px;padding:34px 25px;align-items:start}.home-hero h1{font-size:47px}.hero-bird{width:210px;right:-20px;bottom:-20px;opacity:.55}.quick-grid,.course-grid,.media-grid,.info-grid{grid-template-columns:1fr}.page-heading,.section-heading{align-items:flex-start}.page-heading{display:grid}.section-heading{margin-top:38px}.live-banner{align-items:flex-start;flex-wrap:wrap}.live-banner .primary-button{margin-left:0;width:100%}.live-event{grid-template-columns:auto 1fr}.live-event .primary-button{grid-column:1/-1}.studio-layout{grid-template-columns:1fr}.viewer-stage{min-height:360px}.viewer-info{display:grid}.detail-hero{align-items:flex-start;display:grid}.course-art{height:155px}.modal{padding:28px 22px}.code-field{display:grid}.prejoin-page{padding:0}.prejoin-card{min-height:100vh;border-radius:0;grid-template-columns:1fr;grid-template-rows:40vh auto}.prejoin-preview{min-height:0}.prejoin-copy{padding:28px 20px}.prejoin-copy h1{font-size:35px}.call-shell{grid-template-rows:56px 1fr 78px}.call-header{padding:0 12px}.call-header__right span:last-child{display:none}.call-main{display:block;position:relative}.participant-grid{height:100%;grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr));padding:7px;gap:6px}.participant-tile{min-height:110px}.participant-fallback{width:55px;height:55px;font-size:18px}.call-panel{position:absolute;inset:0 0 0 auto;width:min(88vw,340px);z-index:4}.call-controls{justify-content:flex-start;overflow-x:auto;padding:8px}.call-control{min-width:58px;height:55px}.call-control--leave{margin-left:2px}.layout-speaker{grid-template-columns:1fr 110px}.event-meta{gap:8px 14px} }

/* 2026 light interface refresh — no bird imagery */
:root {
  --bg: #fbf9f7;
  --surface: #ffffff;
  --surface-2: #f7f2ee;
  --ink: #2c2a2a;
  --muted: #777171;
  --line: rgba(67, 55, 52, .10);
  --orange: #dd8968;
  --orange-dark: #bd684b;
  --green: #607c73;
  --shadow: 0 22px 65px rgba(76, 57, 51, .075);
  --radius: 24px;
}
body { background: linear-gradient(180deg, #fdfcfa 0, #faf7f4 100%); }
button { cursor: pointer; }
input, textarea, select { font: inherit; }
select { color: var(--ink); }
.sidebar { background: rgba(255,255,255,.94); }
.topbar { background: rgba(253,252,250,.9); }
.brand { gap: 12px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(145deg,#fff5ef,#f3d5c8); color: #ad6349; font-family: Georgia, serif; font-weight: 700; font-size: 22px; box-shadow: 0 9px 25px rgba(189,104,75,.12); }
.brand--compact .brand-mark { width: 38px; height: 38px; border-radius: 13px; font-size: 18px; }
.nav-item.is-active { background: #fff3ee; color: #a95e45; }
.nav-item:hover { background: #faf5f1; }
.code-button { background: #383435; box-shadow: 0 8px 25px rgba(45,40,40,.12); }
.avatar-button, .profile-chip > span, .large-avatar { background: #f6d8ca; color: #9f583e; }
.search-box { background: white; box-shadow: 0 5px 18px rgba(73,58,53,.03); }

.home-hero { min-height: 455px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: clamp(28px, 5vw, 72px); padding: clamp(34px, 5.5vw, 68px); background: linear-gradient(125deg,#fff 0%,#fff9f5 50%,#f5f0ec 100%); border: 1px solid rgba(99,76,66,.08); box-shadow: 0 28px 90px rgba(75,55,48,.07); }
.home-hero:before { width: 430px; height: 430px; right: -160px; top: -220px; background: rgba(231,174,147,.13); }
.home-hero:after { content:""; position:absolute; width:260px; height:260px; left:42%; bottom:-210px; border-radius:50%; background:rgba(180,203,194,.12); }
.home-hero__copy { max-width: 720px; }
.home-hero h1 { font-size: clamp(46px,5.2vw,72px); color:#2d2929; }
.home-hero p { font-size: 17px; line-height: 1.7; }
.daily-card { position: relative; z-index: 2; align-self: stretch; padding: 27px; border: 1px solid rgba(100,76,68,.09); border-radius: 26px; background: rgba(255,255,255,.82); box-shadow: 0 18px 55px rgba(75,55,48,.08); backdrop-filter: blur(16px); display: flex; flex-direction: column; }
.daily-card__top { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.daily-card__top h2 { font-size: 25px; margin-bottom: 0; }
.goal-ring { --progress:0deg; width:70px; height:70px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--orange) var(--progress),#f2ebe7 0); position:relative; }
.goal-ring:after { content:""; position:absolute; inset:7px; border-radius:50%; background:white; }
.goal-ring span { position:relative; z-index:1; font-size:12px; font-weight:700; }
.daily-steps { display:grid; gap:9px; margin:26px 0 22px; }
.daily-steps button { width:100%; border:0; border-radius:16px; padding:13px; background:#faf7f4; display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; text-align:left; }
.daily-steps button:hover { background:#f7eee9; }
.daily-steps strong,.daily-steps small { display:block; }
.daily-steps small { color:var(--muted); }
.step-icon,.soft-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:13px; background:white; color:var(--orange-dark); box-shadow:0 6px 18px rgba(77,56,49,.06); }
.daily-goal { margin-top:auto; }
.daily-goal > span { display:block; margin-top:9px; color:var(--muted); font-size:12px; text-align:right; }
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin:18px 0 50px; }
.stat-strip button { border:1px solid var(--line); background:white; border-radius:18px; padding:16px; display:flex; align-items:center; gap:12px; text-align:left; box-shadow:0 7px 24px rgba(70,54,48,.035); }
.stat-strip button:hover { transform:translateY(-2px); }
.stat-strip strong,.stat-strip small { display:block; }
.stat-strip strong { font-size:22px; line-height:1.1; }
.stat-strip small { color:var(--muted); }

.course-card,.media-card,.lesson-row,.live-event,.upload-card,.form-card,.schedule-card,.insights-card,.data-card,.note-card { background:#fff; }
.course-art--sunrise { background: linear-gradient(135deg,#e8a486,#cf7759); }
.course-art--forest { background: linear-gradient(135deg,#9eb5ab,#607c73); }
.course-art--berry { background: linear-gradient(135deg,#c6a8b9,#8e6e80); }
.course-art { overflow:hidden; }
.course-art:after { content:""; position:absolute; width:120px; height:120px; border-radius:28px; transform:rotate(26deg); left:-35px; top:-65px; background:rgba(255,255,255,.11); }
.favorite-button { position:absolute; z-index:4; top:14px; right:14px; width:38px; height:38px; border:0; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.86); color:#8b7d78; box-shadow:0 6px 22px rgba(52,42,38,.09); }
.favorite-button.is-favorite,.is-favorite { color:#bd684b; }
.favorite-button.is-favorite svg { fill:currentColor; }
.media-card__visual { overflow:hidden; }
.media-card__visual--video,.media-card__visual--sky { background:linear-gradient(145deg,#eef6f7,#dbecef); }
.media-card__visual--audio,.media-card__visual--violet { background:linear-gradient(145deg,#f6eff5,#e9dbe8); }
.media-card__visual--pdf,.media-card__visual--paper { background:linear-gradient(145deg,#fbf3e8,#efdfcc); }
.live-banner { background:linear-gradient(135deg,#607c73,#4f6961); box-shadow:0 18px 50px rgba(74,105,95,.16); }

.detail-hero__actions { display:flex; align-items:end; gap:12px; }
.glass-button { border:1px solid rgba(255,255,255,.25); border-radius:14px; background:rgba(255,255,255,.13); color:white; min-height:48px; padding:10px 15px; display:flex; align-items:center; gap:8px; }
.glass-button.is-favorite svg { fill:currentColor; }
.viewer-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.viewer-actions .is-favorite svg { fill:currentColor; }
.note-card { margin-top:12px; padding:26px; border:1px solid var(--line); border-radius:22px; display:grid; grid-template-columns:minmax(220px,.7fr) minmax(280px,1.3fr) auto; align-items:center; gap:22px; }
.note-card h2 { font-size:24px; }
.note-card p { margin-bottom:0; }
.note-card textarea { min-height:120px; resize:vertical; }

.planner-layout,.profile-grid { display:grid; grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr); gap:22px; align-items:start; }
.form-card,.schedule-card,.insights-card,.data-card { border:1px solid var(--line); border-radius:24px; padding:26px; box-shadow:0 12px 38px rgba(75,57,50,.045); }
.form-card { display:grid; gap:15px; }
.form-card__heading { display:flex; gap:13px; align-items:flex-start; margin-bottom:4px; }
.form-card__heading h2,.schedule-card__heading h2 { font-size:25px; margin-bottom:4px; }
.form-card__heading p { margin-bottom:0; }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field select,.field input,.field textarea,.inline-field input { width:100%; border:1px solid var(--line); border-radius:13px; background:#fdfbf9; color:var(--ink); padding:12px 13px; outline:0; }
.field select:focus,.field input:focus,.field textarea:focus,.inline-field input:focus { border-color:rgba(189,104,75,.45); box-shadow:0 0 0 3px rgba(221,137,104,.10); }
.schedule-card__heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; }
.count-badge { min-width:38px; height:38px; padding:0 10px; display:grid; place-items:center; border-radius:999px; background:#fff0e9; color:var(--orange-dark); font-weight:700; }
.appointment-list { display:grid; gap:10px; }
.appointment-row { display:grid; grid-template-columns:105px 1fr auto; gap:16px; align-items:center; padding:15px; border:1px solid var(--line); border-radius:17px; background:#fdfbf9; }
.appointment-date { display:grid; gap:2px; padding-right:15px; border-right:1px solid var(--line); }
.appointment-date strong { font-size:21px; }
.appointment-date span { color:var(--muted); font-size:11px; text-transform:capitalize; }
.appointment-copy h3 { margin-bottom:3px; }
.appointment-copy p { margin-bottom:0; font-size:13px; }
.icon-button { width:38px; height:38px; border:1px solid var(--line); border-radius:12px; background:white; display:grid; place-items:center; color:var(--muted); }
.icon-button:hover { color:#a74e43; background:#fff3f0; }
.profile-summary { display:flex; align-items:center; gap:14px; margin-bottom:6px; }
.profile-summary .large-avatar { width:66px; height:66px; }
.profile-summary h2 { margin-bottom:2px; }
.profile-summary p { margin-bottom:0; }
.insights-card { min-height:100%; }
.insight-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin:22px 0; }
.insight-grid > div { padding:18px; border-radius:17px; background:#faf6f3; }
.insight-grid strong,.insight-grid span { display:block; }
.insight-grid strong { font:600 30px/1 Georgia,serif; }
.insight-grid span { margin-top:5px; color:var(--muted); }
.progress--large { height:9px; margin:20px 0 10px; }
.data-card { margin-top:22px; display:flex; justify-content:space-between; gap:30px; align-items:center; }
.data-card > div:first-child { max-width:690px; }
.data-actions { display:flex; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.danger-button { min-height:46px; padding:10px 15px; border:1px solid #f0c8c2; border-radius:13px; background:#fff5f3; color:#a64d43; font-weight:600; display:inline-flex; align-items:center; gap:8px; }

.code-manager { align-self:start; }
.inline-field { display:grid; grid-template-columns:1fr auto; gap:8px; }
.code-list { display:grid; gap:8px; margin-top:3px; }
.code-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; border-top:1px solid var(--line); padding-top:10px; }
.code-row strong,.code-row small { display:block; }
.code-row small,.muted-copy { color:var(--muted); }
.local-notice { margin-top:18px; padding:17px; display:flex; gap:12px; align-items:flex-start; border:1px solid #eadfd8; border-radius:17px; background:#fffaf7; }
.local-notice > span { width:38px; height:38px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; background:white; color:var(--orange-dark); }
.local-notice p { margin:2px 0 0; }

@media (max-width: 1120px) {
  .home-hero { grid-template-columns:1fr; }
  .daily-card { max-width:680px; }
  .stat-strip { grid-template-columns:repeat(2,1fr); }
  .planner-layout,.profile-grid { grid-template-columns:1fr; }
  .note-card { grid-template-columns:1fr; }
  .data-card { display:grid; }
  .data-actions { justify-content:flex-start; }
}
@media (max-width: 760px) {
  .home-hero { min-height:auto; padding:30px 22px; }
  .home-hero h1 { font-size:44px; }
  .daily-card { padding:20px; }
  .stat-strip { grid-template-columns:1fr 1fr; margin-bottom:40px; }
  .stat-strip button { padding:12px; }
  .appointment-row { grid-template-columns:1fr auto; }
  .appointment-date { grid-column:1/-1; display:flex; gap:8px; align-items:baseline; border-right:0; border-bottom:1px solid var(--line); padding:0 0 10px; }
  .field-grid { grid-template-columns:1fr; }
  .inline-field { grid-template-columns:1fr; }
  .viewer-actions { justify-content:flex-start; }
  .detail-hero__actions { align-items:flex-start; flex-wrap:wrap; }
  .data-actions { display:grid; }
  .data-actions > * { width:100%; }
}

/* Backend, account and realtime states */
.connection-badge,.backend-pill { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); padding:7px 10px; font-size:12px; font-weight:700; white-space:nowrap; }
.connection-badge i { width:8px; height:8px; border-radius:50%; background:#b4aca8; }
.connection-badge.is-cloud,.backend-pill.is-cloud { color:#37675a; background:#f2faf6; border-color:#d7e9df; }
.connection-badge.is-cloud i { background:#54a17d; box-shadow:0 0 0 4px rgba(84,161,125,.12); }
.connection-badge.is-local,.backend-pill.is-local { color:#8b7469; background:#fffaf7; }
.boot-screen { min-height:100vh; display:grid; place-content:center; justify-items:center; gap:14px; background:linear-gradient(145deg,#fff,#f8f2ed); }
.boot-screen .brand-mark { width:64px; height:64px; font-size:28px; }
.auth-modal { max-width:510px; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:6px; padding:5px; margin:22px 0 18px; border-radius:14px; background:#f7f2ee; }
.auth-tabs button { border:0; border-radius:10px; padding:10px; background:transparent; font-weight:700; color:var(--muted); }
.auth-tabs button.is-active { background:#fff; color:var(--orange-dark); box-shadow:0 5px 16px rgba(72,56,50,.08); }
.auth-modal form { display:grid; gap:13px; }
.auth-modal form .primary-button { width:100%; margin-top:4px; }
.auth-modal [hidden] { display:none !important; }
.account-card { margin-top:22px; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(135deg,#fff,#faf5f1); box-shadow:0 12px 38px rgba(75,57,50,.045); }
.account-card h2 { margin-bottom:5px; font-size:25px; }
.account-card p { margin:0; }
.primary-button:disabled,.secondary-button:disabled { opacity:.55; cursor:wait; }
.call-loading { grid-column:1/-1; min-height:280px; display:grid; place-content:center; justify-items:center; color:#ddd; }
.call-loading p { color:#bdb9b6; }
.quality-dot.is-connecting { background:#d9a253; animation:pulse-connection 1.1s infinite; }
@keyframes pulse-connection { 50% { opacity:.4; transform:scale(.8); } }
.participant-tile video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:1; }
.participant-tile .participant-fallback { position:relative; z-index:0; }
.participant-tile .participant-name { z-index:2; }
.call-shell > audio[data-livekit-audio] { display:none; }

@media (max-width: 900px) {
  .connection-badge { display:none; }
  .account-card { align-items:flex-start; display:grid; }
}
@media (max-width: 560px) {
  .topbar .code-button span { display:none; }
  .backend-pill { margin-top:8px; }
}

/* 0.3.2 — reduced, mobile-first content presentation */
.home-hero--compact {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 34px;
  padding: clamp(30px, 5vw, 56px);
  align-items: end;
}
.home-hero--compact h1 { margin-bottom: 12px; }
.teacher-note {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(55, 77, 70, .10);
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(10px);
}
.teacher-note strong { display: block; font: 600 23px/1.2 "Fraunces", Georgia, serif; margin-bottom: 9px; }
.teacher-note p { margin: 0; font-size: 14px; }
.course-grid--featured { grid-template-columns: minmax(0, 680px); }
.media-grid--compact { grid-template-columns: repeat(3, minmax(0,1fr)); }
.external-media { min-height: 360px; display: grid; place-items: center; padding: 34px; text-align: center; background: linear-gradient(145deg,#f7faf8,#fbf6f1); }
.external-media > div { max-width: 560px; display: grid; justify-items: center; }
.external-media .media-glyph, .demo-media--pending .media-glyph { margin-bottom: 16px; }
.external-media .primary-button { text-decoration: none; margin-top: 8px; }

@media (max-width: 760px) {
  body { font-size: 14px; }
  .topbar { height: 62px; padding: 8px 12px; }
  .brand--compact .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand--compact strong { font-size: 17px; }
  .content { padding: 14px 12px 78px; }

  .home-hero--compact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px;
    border-radius: 22px;
  }
  .home-hero--compact h1 { font-size: 38px; line-height: 1; }
  .home-hero--compact p { font-size: 15px; }
  .home-hero--compact .hero-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr; }
  .home-hero--compact .hero-actions > * { width: 100%; }
  .teacher-note { padding: 17px; border-radius: 17px; }
  .teacher-note strong { font-size: 20px; }

  .section-heading { margin: 30px 2px 13px; }
  .section-heading h2 { font-size: 25px; }
  .page-heading h1 { font-size: 36px; }

  .course-grid,
  .course-grid--wide,
  .course-grid--featured { grid-template-columns: 1fr; }
  .course-card { border-radius: 18px; }
  .course-art { height: 112px; padding: 15px; }
  .course-art__mark { right: 16px; bottom: 13px; }
  .course-art__mark svg { width: 30px; height: 30px; }
  .course-card__body { padding: 15px 16px 16px; }
  .course-card__body h3 { font-size: 17px; margin-bottom: 5px; }
  .course-card__body p { min-height: 0; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  .media-grid,
  .media-grid--compact { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .media-card {
    min-height: 100px;
    display: grid;
    grid-template-columns: 88px minmax(0,1fr);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
  }
  .media-card:hover { transform: none; }
  .media-card__visual { height: 100%; min-height: 100px; padding: 10px; }
  .media-card__visual .media-glyph { width: 43px; height: 43px; border-radius: 13px; }
  .media-card__visual .media-glyph svg { width: 20px; height: 20px; }
  .media-card__visual .favorite-button { top: 6px; right: 6px; width: 28px; height: 28px; }
  .media-card__visual .favorite-button svg { width: 14px; height: 14px; }
  .round-action { right: 7px; bottom: 7px; width: 28px; height: 28px; }
  .round-action svg { width: 14px; height: 14px; }
  .media-card__copy { min-width: 0; padding: 12px 13px; }
  .media-card__copy .card-kicker { margin-bottom: 3px; font-size: 9px; }
  .media-card__copy h3 { font-size: 15px; margin-bottom: 3px; }
  .media-card__copy p { min-height: 0; margin: 0 0 5px; font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .media-card__copy .card-meta { margin-top: 0; font-size: 10px; }
  .media-card__copy .card-meta span:last-child { display: none; }

  .live-banner { margin-top: 32px; padding: 18px; border-radius: 18px; gap: 12px; }
  .live-banner h2 { font-size: 23px; }
  .live-banner p { margin-bottom: 0; }
  .live-banner__icon { width: 44px; height: 44px; }

  .lesson-row { padding: 12px; gap: 10px; }
  .lesson-row .media-glyph { width: 40px; height: 40px; border-radius: 12px; }
  .lesson-copy strong { font-size: 14px; }
  .lesson-copy small { font-size: 11px; }

  .external-media { min-height: 330px; padding: 24px 18px; }
  .viewer-stage { min-height: 330px; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .media-grid--compact { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-hero--compact { grid-template-columns: 1fr; }
}

/* Artist profile content retained independently of the platform branding. */
/* Vita */
.about-page { max-width: 1180px; margin: 0 auto; }
.about-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  min-height: 520px;
  background: #fff;
  border: 1px solid var(--line);
}
.about-hero__copy { min-width: 0; padding: clamp(36px, 5vw, 68px); align-self: center; }
.about-hero__copy h1 { margin: 0 0 8px; font-size: clamp(48px, 6vw, 82px); line-height: .9; text-transform: uppercase; letter-spacing: -.055em; }
.about-role { margin: 0 0 30px; color: var(--ink); font-size: 17px; text-transform: uppercase; letter-spacing: .12em; }
.about-hero__copy > p:last-of-type { max-width: 560px; line-height: 1.75; }
.about-links { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }
.about-links a { text-decoration: none; }
.about-hero__media { min-height: 520px; overflow: hidden; background: #768b96; }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }

.editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; margin-top: 34px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.editorial-block { min-width: 0; padding: clamp(24px, 3vw, 38px); background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial-block h2 { font-size: 29px; font-weight: 300; }
.editorial-block p { line-height: 1.75; }
.editorial-block--accent { background: #eef2f3; }
.clean-list, .discography-list { margin: 18px 0 0; padding: 0; list-style: none; }
.clean-list li, .discography-list li { padding: 10px 0; border-top: 1px solid var(--line); color: #51595d; }
.clean-list li:first-child, .discography-list li:first-child { border-top: 0; }
.name-cloud, .repertoire-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0; }
.name-cloud span, .repertoire-cloud span { padding: 7px 9px; border: 1px solid var(--line); background: #fafafa; color: #566064; font-size: 12px; }
.name-cloud--quiet span { background: transparent; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.project-grid article { padding: 15px; border-top: 2px solid var(--orange); background: #faf9f7; }
.project-grid h3 { margin-bottom: 5px; font-size: 15px; }
.project-grid p { margin: 0; font-size: 12px; }


/* Neutral platform shell, using the earlier rounded layout. */
.brand > div { min-width: 0; }
.brand strong { font-size: 18px; overflow-wrap: anywhere; }
.brand .brand-mark { display: grid; margin-top: 0; color: #ad6349; font-size: 22px; }
.brand--compact strong { font-size: 16px; }
.home-hero__copy { min-width: 0; }
.home-hero--compact h1 { font-size: clamp(36px, 4.5vw, 62px); overflow-wrap: anywhere; }
.teacher-note { align-self: center; }
.home-section { margin-top: 36px; }
.home-section .section-heading { margin-top: 0; }
.teacher-profile { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: 36px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.teacher-profile h2 { font-size: 26px; }
.teacher-profile p { margin: 0; }
.teacher-profile > .text-button { justify-self: start; }
.about-hero { border-radius: var(--radius); overflow: hidden; }
.about-hero__copy h1 { text-transform: none; font-size: clamp(40px, 5vw, 72px); }
.about-hero__media { position: relative; }
.about-hero__media img { position: absolute; inset: 0; }
@media (max-width: 1120px) {
  .about-hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .mobile-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .topbar .avatar-button { display: grid; flex: 0 0 auto; }
  .topbar .connection-badge { display: none; }
  .topbar .code-button { flex: 0 0 auto; padding: 10px; }
  .mobile-brand { min-width: 0; margin-right: auto; }
  .home-hero--compact { gap: 24px; }
  .home-hero--compact h1 { font-size: clamp(32px, 9vw, 42px); }
  .teacher-profile, .about-hero, .editorial-grid, .project-grid { grid-template-columns: 1fr; }
  .teacher-profile { padding: 22px; }
  .about-hero__copy { padding: 28px 22px; }
  .about-hero__copy h1 { font-size: clamp(40px, 12vw, 62px); }
  .about-hero__media { order: -1; min-height: 0; height: 320px; }
  .about-role { font-size: 14px; }
  .editorial-block { padding: 24px 20px; }
}
