@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --bg: #0b1120;
    --bg-deep: #070b14;
    --surface: #111827;
    --surface-soft: rgba(17, 24, 39, .74);
    --surface-raised: #172033;
    --line: rgba(148, 163, 184, .14);
    --line-strong: rgba(148, 163, 184, .25);
    --text: #f8fafc;
    --muted: #94a3b8;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #22d3ee;
    --pink: #ec4899;
    --danger: #fb7185;
    --success: #34d399;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .28);
    --sidebar: 252px;
}

* { box-sizing: border-box; }

html { min-height: 100%; color-scheme: dark; background: var(--bg); scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 80% 0%, rgba(59, 130, 246, .08), transparent 30rem),
        radial-gradient(circle at 30% 100%, rgba(139, 92, 246, .06), transparent 35rem),
        var(--bg);
    font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; margin: -1px; padding: 0; border: 0; clip: rect(0, 0, 0, 0); white-space: nowrap; }

h1, h2, h3, .brand-name, .statistic-value {
    margin: 0;
    font-family: 'Manrope', system-ui, sans-serif;
    letter-spacing: -.035em;
}

p { color: var(--muted); line-height: 1.7; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    display: flex;
    flex-direction: column;
    padding: 27px 20px 24px;
    border-right: 1px solid var(--line);
    background: rgba(7, 11, 20, .84);
    backdrop-filter: blur(24px);
}

.brand-lockup { display: flex; align-items: center; gap: 12px; padding: 0 8px 31px; }
.brand-lockup > div { display: grid; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    color: white; font-size: 18px; background: linear-gradient(135deg, var(--purple), var(--blue) 62%, var(--cyan));
    box-shadow: 0 10px 30px rgba(99, 102, 241, .32);
}
.brand-name { font-size: 18px; font-weight: 800; }
.brand-subtitle { color: var(--muted); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

.main-navigation { display: grid; gap: 7px; }
.nav-link {
    position: relative; display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px;
    border: 1px solid transparent; border-radius: 14px; color: var(--muted); font-weight: 600;
    transition: .2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(148, 163, 184, .07); transform: translateX(2px); }
.nav-link.active {
    color: white; border-color: rgba(139, 92, 246, .22);
    background: linear-gradient(90deg, rgba(139, 92, 246, .18), rgba(59, 130, 246, .08));
}
.nav-link.active::before {
    content: ''; position: absolute; left: -20px; width: 3px; height: 24px; border-radius: 0 4px 4px 0;
    background: linear-gradient(var(--purple), var(--cyan)); box-shadow: 0 0 18px var(--purple);
}
.nav-icon { width: 22px; color: #c4b5fd; font-size: 20px; text-align: center; }
.sidebar-footer { display: grid; gap: 12px; margin-top: auto; }
.new-photo-button {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px;
    border: 1px solid rgba(139, 92, 246, .32); border-radius: 14px; color: #ddd6fe;
    background: rgba(139, 92, 246, .1); font-weight: 700; transition: .2s ease;
}
.new-photo-button:hover { background: rgba(139, 92, 246, .18); transform: translateY(-1px); }
.logout-button {
    width: 100%; padding: 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-align: left;
}
.logout-button:hover { color: var(--text); }

.main-stage { grid-column: 2; min-width: 0; }
.topbar {
    height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px;
    border-bottom: 1px solid var(--line); background: rgba(11, 17, 32, .62); backdrop-filter: blur(20px);
}
.topbar > div:first-child { display: grid; gap: 2px; }
.topbar-kicker { color: var(--muted); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.topbar-title { font-weight: 600; }
.topbar-account { display: flex; align-items: center; gap: 11px; }
.topbar-account > div { display: grid; }
.topbar-account span:last-child { color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.install-app-button {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, .3); border-radius: 8px; color: #cffafe;
    background: rgba(8, 145, 178, .1); cursor: pointer; font-weight: 700; transition: .2s ease;
}
.install-app-button:hover { border-color: rgba(34, 211, 238, .55); color: white; background: rgba(8, 145, 178, .18); }
.install-app-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.install-app-icon { font-size: 20px; line-height: 1; }
.avatar {
    width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(34, 211, 238, .28);
    border-radius: 50%; color: #cffafe; background: linear-gradient(145deg, rgba(59, 130, 246, .35), rgba(139, 92, 246, .3)); font-weight: 800;
}
.content-stage { width: min(1540px, 100%); margin: 0 auto; padding: 38px 42px 70px; }

.glass-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(23, 32, 51, .82), rgba(17, 24, 39, .72));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .15);
    backdrop-filter: blur(18px);
}
.eyebrow { display: block; margin-bottom: 10px; color: #a5b4fc; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
    border: 1px solid transparent; border-radius: 13px; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { color: white; background: linear-gradient(135deg, var(--purple), var(--blue)); box-shadow: 0 10px 28px rgba(79, 70, 229, .25); }
.btn-primary:hover { color: white; box-shadow: 0 14px 34px rgba(79, 70, 229, .38); }
.btn-ghost { color: #dbeafe; border-color: var(--line-strong); background: rgba(148, 163, 184, .06); }
.btn-ghost:hover { color: white; border-color: rgba(148, 163, 184, .4); background: rgba(148, 163, 184, .11); }
.btn-danger { color: white; background: linear-gradient(135deg, #e11d48, #f43f5e); }
.btn-danger-ghost { color: #fda4af; border-color: rgba(244, 63, 94, .25); background: rgba(244, 63, 94, .07); }
.btn-danger-ghost:hover { color: #fecdd3; background: rgba(244, 63, 94, .14); }
.btn-sm { min-height: 36px; padding: 7px 12px; border-radius: 10px; font-size: 13px; }
.btn-block { width: 100%; }
.text-link { color: #c4b5fd; font-weight: 700; }
.text-link:hover { color: #e0e7ff; }

.hero-banner {
    position: relative; min-height: 330px; display: flex; align-items: center; overflow: hidden; padding: 54px 58px;
    border: 1px solid rgba(129, 140, 248, .2); border-radius: var(--radius-lg);
    background:
        linear-gradient(110deg, rgba(17, 24, 39, .9), rgba(17, 24, 39, .35)),
        radial-gradient(circle at 90% 40%, rgba(34, 211, 238, .2), transparent 22%),
        linear-gradient(135deg, #15172f, #111827 48%, #0c2035);
    box-shadow: var(--shadow);
}
.hero-banner::after { content: ''; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(rgba(255,255,255,.7) .7px, transparent .7px); background-size: 27px 27px; }
.hero-content { position: relative; z-index: 2; width: min(680px, 72%); }
.hero-content h1 { font-size: clamp(42px, 5vw, 68px); line-height: 1.03; }
.hero-content p { max-width: 590px; margin: 19px 0 26px; color: #b8c3d5; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(8px); }
.hero-glow-one { top: -130px; right: 8%; width: 340px; height: 340px; background: rgba(139, 92, 246, .17); }
.hero-glow-two { right: -90px; bottom: -190px; width: 390px; height: 390px; background: rgba(34, 211, 238, .12); }
.hero-orbit {
    position: absolute; z-index: 2; right: 8%; width: 180px; height: 180px; display: grid; place-items: center;
    border: 1px solid rgba(165, 180, 252, .2); border-radius: 50%; color: white; font-size: 43px;
    box-shadow: inset 0 0 60px rgba(139, 92, 246, .08), 0 0 100px rgba(34, 211, 238, .08);
}
.hero-orbit::before, .hero-orbit::after { content: ''; position: absolute; border: 1px solid rgba(34, 211, 238, .14); border-radius: 50%; }
.hero-orbit::before { inset: 25px -25px; transform: rotate(45deg); }
.hero-orbit::after { inset: -20px 30px; transform: rotate(-30deg); }

.statistics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin: 22px 0; }
.statistics-grid-compact { grid-template-columns: minmax(0, 360px); }
.statistic-card { display: flex; align-items: flex-start; gap: 15px; min-height: 140px; padding: 24px; border-radius: var(--radius); }
.statistic-card > div:last-child { display: grid; gap: 5px; }
.statistic-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: #ddd6fe; background: rgba(139, 92, 246, .14); font-size: 20px; }
.statistic-icon.accent-blue { color: #bfdbfe; background: rgba(59, 130, 246, .14); }
.statistic-icon.accent-cyan { color: #a5f3fc; background: rgba(34, 211, 238, .12); }
.statistic-icon.accent-pink { color: #fbcfe8; background: rgba(236, 72, 153, .12); }
.statistic-label, .statistic-hint { color: var(--muted); font-size: 12px; }
.statistic-value { font-size: clamp(19px, 2vw, 26px); font-weight: 800; white-space: nowrap; }

.dashboard-storage { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 50px; padding: 28px 32px; border-radius: var(--radius); }
.dashboard-storage h2 { font-size: 22px; }
.storage-progress { display: grid; gap: 9px; }
.storage-progress-header { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 12px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .12); }
.progress-value { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan)); box-shadow: 0 0 18px rgba(59, 130, 246, .35); }
.storage-remaining { color: #cbd5e1; font-size: 12px; text-align: right; }

.section-block { margin-top: 44px; }
.section-heading, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { font-size: 28px; }
.page-heading { align-items: center; margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(35px, 4vw, 52px); }
.page-heading p { max-width: 650px; margin: 8px 0 0; }
.page-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.recent-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.photo-card { display: inline-block; width: 100%; overflow: hidden; border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.photo-card:hover { border-color: rgba(139, 92, 246, .3); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.photo-card-image { position: relative; display: block; overflow: hidden; background: var(--surface-raised); }
.photo-card-preview { width: 100%; display: block; padding: 0; border: 0; color: inherit; background: transparent; cursor: zoom-in; }
.photo-card-image img { width: 100%; min-height: 220px; max-height: 470px; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.photo-card:hover .photo-card-image img { transform: scale(1.035); }
.photo-date { position: absolute; right: 12px; bottom: 12px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; color: white; background: rgba(7, 11, 20, .7); backdrop-filter: blur(12px); font-size: 11px; }
.photo-favorite-button {
    position: absolute; z-index: 2; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center;
    padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white;
    background: rgba(7, 11, 20, .7); backdrop-filter: blur(12px); cursor: pointer; font-size: 23px;
    transition: transform .2s ease, color .2s ease, background .2s ease;
}
.photo-favorite-button:hover, .photo-favorite-button:focus-visible { transform: scale(1.08); background: rgba(30, 41, 59, .92); }
.photo-favorite-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.photo-favorite-button.active { color: #fde68a; background: rgba(67, 48, 9, .82); }
.photo-favorite-button:disabled { opacity: .55; cursor: wait; }
.photo-card-body { display: grid; gap: 14px; padding: 19px; }
.photo-card-body h3 { margin-bottom: 7px; font-size: 19px; }
.photo-card-body p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 13px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.photo-analysis { border: 1px solid rgba(139, 92, 246, .24); border-radius: 14px; background: linear-gradient(145deg, rgba(139, 92, 246, .08), rgba(34, 211, 238, .045)); }
.photo-analysis-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.photo-analysis-card { padding: 13px; }
.photo-analysis-card .photo-analysis-heading { justify-content: flex-start; margin-bottom: 9px; color: #c4b5fd; font-size: 12px; }
.photo-analysis-card .photo-analysis-text { max-height: 240px; overflow: auto; padding-right: 4px; color: #aebbd0; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.photo-card-meta { display: flex; justify-content: space-between; color: #7f8da3; font-size: 11px; }
.photo-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.photo-card-tags span { padding: 3px 7px; border-radius: 8px; color: #a5b4fc; background: rgba(99,102,241,.1); font-size: 10px; }
.photo-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 3px; border-top: 1px solid var(--line); }
.photo-card-actions .btn:last-child { margin-left: auto; }
.photo-analyze-button { color: #c4b5fd; }
.masonry-gallery { column-count: 3; column-gap: 20px; }
.masonry-gallery .photo-card { margin-bottom: 20px; break-inside: avoid; }
.album-tools {
    display: grid; grid-template-columns: minmax(240px, 1fr) minmax(170px, auto) auto auto;
    align-items: center; gap: 12px; margin-bottom: 24px; padding: 14px; border-radius: 17px;
}
.album-tools-expanded { grid-template-columns: minmax(230px, 1fr) repeat(3, minmax(145px, auto)) auto auto; }
.collection-manager {
    display: grid; grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr); gap: 20px;
    margin: -8px 0 28px; padding: 24px; border-radius: 18px;
}
.collection-manager h2 { margin-top: 4px; font-size: 25px; }
.collection-manager p { margin: 6px 0 0; font-size: 12px; }
.collection-create { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; }
.collection-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.collection-chip { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(148,163,184,.06); }
.collection-chip button { padding: 8px 10px; border: 0; color: #dbeafe; background: transparent; cursor: pointer; }
.collection-chip button:last-child { color: #fda4af; }
.collection-chip small { color: #64748b; font-size: 10px; }
.undo-bar {
    position: fixed; z-index: 130; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px;
    max-width: calc(100vw - 48px); padding: 13px 16px; border: 1px solid rgba(129,140,248,.35);
    border-radius: 14px; color: #e2e8f0; background: rgba(15,23,42,.97); box-shadow: var(--shadow);
}
.undo-bar button { padding: 3px 5px; border: 0; color: var(--cyan); background: transparent; cursor: pointer; font-weight: 800; }
.undo-bar button:last-child { color: #94a3b8; font-size: 20px; }
.trash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.trash-card { display: grid; grid-template-columns: minmax(140px, .65fr) 1fr; overflow: hidden; border-radius: var(--radius); }
.trash-card > img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.trash-card > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 23px; }
.trash-card h2 { margin-top: 6px; font-size: 23px; }
.trash-card p { display: -webkit-box; overflow: hidden; font-size: 12px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.trash-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 15px; }
.album-search { position: relative; }
.album-search > span:not(.sr-only) { position: absolute; z-index: 1; top: 50%; left: 15px; color: var(--muted); font-size: 22px; transform: translateY(-54%); pointer-events: none; }
.album-search .form-control { padding-left: 45px; }
.album-tools .form-control { min-height: 46px; }
.album-filter-button {
    min-height: 46px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 13px; color: #cbd5e1;
    background: rgba(148, 163, 184, .06); cursor: pointer; font-weight: 700;
}
.album-filter-button:hover, .album-filter-button.active { border-color: rgba(250, 204, 21, .42); color: #fde68a; background: rgba(113, 63, 18, .18); }
.album-filter-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.album-filter-count { min-width: 23px; padding: 2px 6px; border-radius: 10px; color: currentColor; background: rgba(255,255,255,.1); font-size: 11px; text-align: center; }
.album-result-count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.album-no-results { min-height: 270px; }
.album-lightbox { grid-template-rows: minmax(0, 1fr) auto; }
.album-lightbox-nav {
    position: fixed; z-index: 2; top: 50%; width: 52px; height: 52px; display: grid; place-items: center;
    padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white;
    background: rgba(15, 23, 42, .82); cursor: pointer; font-size: 38px; line-height: 1; transform: translateY(-50%);
}
.album-lightbox-nav:hover, .album-lightbox-nav:focus-visible { background: rgba(51, 65, 85, .96); }
.album-lightbox-nav:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.album-lightbox-previous { left: 24px; }
.album-lightbox-next { right: 24px; }
.album-lightbox-caption {
    width: min(900px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding-top: 14px; color: #cbd5e1;
}
.album-lightbox-caption > div { min-width: 0; display: grid; gap: 3px; }
.album-lightbox-caption strong { color: white; font-size: 15px; }
.album-lightbox-caption span { max-width: 650px; overflow: hidden; color: #94a3b8; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.empty-state { display: grid; place-items: center; min-height: 310px; padding: 50px; border-radius: var(--radius); text-align: center; }
.empty-state h1, .empty-state h2 { max-width: 620px; font-size: clamp(28px, 4vw, 42px); }
.empty-state p { max-width: 520px; }
.empty-state-mark { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid rgba(139, 92, 246, .25); border-radius: 22px; color: #c4b5fd; background: rgba(139, 92, 246, .1); font-size: 28px; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); align-items: start; gap: 24px; }
.editor-main, .upload-panel, .save-panel { border-radius: var(--radius); }
.editor-main { display: grid; gap: 28px; padding: 30px; }
.editor-side { display: grid; gap: 18px; position: sticky; top: 24px; }
.upload-panel, .save-panel { padding: 22px; }
.panel-label { display: flex; justify-content: space-between; margin-bottom: 13px; color: #dbeafe; font-weight: 700; }
.panel-label small { color: var(--muted); font-weight: 500; }
.form-section { display: grid; gap: 9px; }
.form-label-row { display: flex; align-items: center; justify-content: space-between; }
.form-label-row > span, .field-hint { color: var(--muted); font-size: 12px; }
.form-label { color: #dbeafe; font-size: 13px; font-weight: 700; }
.form-control {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 13px;
    outline: none; color: var(--text); -webkit-text-fill-color: var(--text);
    caret-color: var(--cyan); background: #0a1020; transition: .2s ease;
}
.form-control::placeholder { color: #8492a8; -webkit-text-fill-color: #8492a8; opacity: 1; }
.form-control:focus { border-color: rgba(99, 102, 241, .7); background: rgba(7, 11, 20, .85); box-shadow: 0 0 0 4px rgba(99, 102, 241, .1); }
.form-control:disabled { color: #cbd5e1; -webkit-text-fill-color: #cbd5e1; background: #1a2436; opacity: 1; cursor: not-allowed; }
select.form-control { color-scheme: dark; }
select.form-control option { color: var(--text); background: #111827; }
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px #0a1020 inset;
    caret-color: var(--cyan);
}
.story-editor { min-height: 300px; resize: vertical; line-height: 1.75; }
.metadata-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 5px; }
.upload-queue { max-height: 290px; overflow: auto; display: grid; gap: 8px; margin-top: 13px; padding-right: 4px; }
.upload-queue .selected-file { margin-top: 0; }
.validation-message { color: #fda4af; font-size: 12px; }
.image-uploader { position: relative; min-height: 240px; overflow: hidden; border: 1px dashed rgba(129, 140, 248, .34); border-radius: 16px; background: rgba(7, 11, 20, .45); }
.image-uploader:hover { border-color: rgba(34, 211, 238, .55); }
.image-uploader-input { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.image-uploader-input:disabled { cursor: wait; }
.image-uploader-empty, .image-uploader-overlay { position: absolute; z-index: 2; inset: 0; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 22px; text-align: center; pointer-events: none; }
.image-uploader-empty span:last-child, .image-uploader-overlay span:last-child { color: var(--muted); font-size: 12px; }
.upload-symbol { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 15px; color: #c4b5fd; background: rgba(139, 92, 246, .14); font-size: 24px; }
.image-uploader-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-uploader-overlay { opacity: 0; background: rgba(7, 11, 20, .78); transition: opacity .2s ease; }
.image-uploader:hover .image-uploader-overlay { opacity: 1; }
.selected-file { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 10px 12px; border-radius: 11px; color: #a7f3d0; background: rgba(16, 185, 129, .08); }
.selected-file > div { display: grid; min-width: 0; }
.selected-file strong { overflow: hidden; color: #d1fae5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.selected-file small { color: #6ee7b7; }
.save-panel p { margin: 0 0 16px; font-size: 12px; }
.ai-suggestion-panel { border-color: rgba(139, 92, 246, .25); background: linear-gradient(145deg, rgba(139, 92, 246, .08), rgba(7, 11, 20, .7)); }
.button-spinner { width: 15px; height: 15px; display: inline-block; border: 2px solid rgba(255,255,255,.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.photo-detail-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.photo-detail-toolbar > div { display: flex; gap: 9px; }
.photo-detail-figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #05070d; box-shadow: var(--shadow); }
.photo-detail-image-button { position: relative; width: 100%; display: block; padding: 0; border: 0; color: inherit; background: transparent; cursor: zoom-in; }
.photo-detail-image-button img { width: 100%; max-height: 76vh; object-fit: contain; }
.photo-detail-image-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.photo-enlarge-hint { position: absolute; right: 17px; bottom: 17px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: white; background: rgba(7, 11, 20, .75); backdrop-filter: blur(12px); font-size: 12px; font-weight: 700; opacity: .78; transition: opacity .2s ease, transform .2s ease; }
.photo-detail-image-button:hover .photo-enlarge-hint, .photo-detail-image-button:focus-visible .photo-enlarge-hint { opacity: 1; transform: translateY(-2px); }
.photo-detail-copy { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 60px; padding: 48px min(6vw, 80px) 10px; }
.photo-detail-copy > header, .photo-story, .photo-analysis-detail { grid-column: 1; }
.photo-detail-copy h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.05; }
.photo-story { color: #cbd5e1; font-family: Georgia, serif; font-size: 20px; line-height: 1.9; white-space: pre-line; }
.photo-analysis-detail { padding: 22px; }
.photo-analysis-detail h2 { margin-top: 4px; font-size: 22px; }
.photo-analysis-detail .photo-analysis-text { margin-top: 18px; color: #cbd5e1; font-size: 14px; line-height: 1.75; white-space: pre-line; }
.photo-analysis-empty, .photo-analysis-error { margin: 16px 0 0; font-size: 13px; }
.photo-analysis-error { color: #fca5a5; }
.photo-metadata { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin: 0; padding: 23px; border-radius: var(--radius); }
.photo-metadata div, .storage-facts div, .profile-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.photo-metadata div:last-child, .storage-facts div:last-child, .profile-facts div:last-child { border-bottom: 0; }
.photo-metadata dt, .storage-facts span, .profile-facts span { color: var(--muted); font-size: 12px; font-weight: 500; }
.photo-metadata dd { margin: 0; color: #e2e8f0; font-size: 12px; text-align: right; }

.profile-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 24px; }
.profile-card, .profile-storage { border-radius: var(--radius); }
.profile-card { display: flex; flex-direction: column; align-items: center; padding: 42px 30px; text-align: center; }
.profile-avatar { width: 104px; height: 104px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid rgba(34, 211, 238, .25); border-radius: 34px; background: linear-gradient(145deg, rgba(139, 92, 246, .35), rgba(59, 130, 246, .25)); box-shadow: 0 18px 45px rgba(59, 130, 246, .18); font: 800 42px 'Manrope'; }
.profile-role { margin-bottom: 10px; padding: 5px 9px; border-radius: 99px; color: #c4b5fd; background: rgba(139, 92, 246, .12); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.profile-card h2 { font-size: 30px; }
.profile-card > span:not(.profile-role) { color: var(--muted); }
.profile-facts { width: 100%; margin-top: 28px; text-align: left; }
.profile-storage { padding: 38px; }
.profile-storage h2 { font-size: 32px; }
.profile-storage > p { max-width: 540px; }
.profile-storage-number { margin-top: 30px; font: 800 clamp(46px, 7vw, 74px) 'Manrope'; letter-spacing: -.06em; background: linear-gradient(90deg, white, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.profile-storage-caption { display: block; margin: -5px 0 34px; color: var(--muted); }
.storage-facts { margin-top: 28px; }
.profile-settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: start; }
.profile-settings-card { padding: 32px; border-radius: var(--radius); scroll-margin-top: 24px; }
.profile-settings-card h2 { margin-top: 4px; font-size: 28px; }
.profile-settings-card > p { max-width: 580px; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-settings-form { display: grid; gap: 18px; margin-top: 24px; }
.profile-settings-form .btn { justify-self: start; min-width: 150px; }
.profile-settings-form .form-control[readonly] { color: #94a3b8; -webkit-text-fill-color: #94a3b8; background: #111827; cursor: not-allowed; }

.user-management-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(420px, 1.2fr); gap: 24px; align-items: start; }
.user-create-card, .user-list-card { padding: 32px; border-radius: var(--radius); }
.user-create-card h2, .user-list-card h2 { font-size: 28px; }
.admin-user-form { display: grid; gap: 18px; margin-top: 24px; }
.form-status { margin-top: 20px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.form-status-success { border-color: rgba(52, 211, 153, .28); color: #d1fae5; background: rgba(16, 185, 129, .09); }
.form-status-error { border-color: rgba(251, 113, 133, .28); color: #ffe4e6; background: rgba(244, 63, 94, .08); }
.user-list-card .section-heading { margin-bottom: 16px; }
.user-list-loading { min-height: 220px; }
.user-list { display: grid; }
.user-list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.user-list-row:last-child { border-bottom: 0; }
.user-list-identity { min-width: 0; display: grid; gap: 3px; }
.user-list-identity strong, .user-list-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-list-identity span { color: var(--muted); font-size: 12px; }
.user-role-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.role-badge { padding: 5px 9px; border: 1px solid rgba(139, 92, 246, .22); border-radius: 999px; color: #ddd6fe; background: rgba(139, 92, 246, .1); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.user-edit-panel { margin: 20px 0 10px; padding: 22px; border: 1px solid rgba(129, 140, 248, .3); border-radius: 16px; background: rgba(7, 11, 20, .48); }
.user-edit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.user-edit-heading h3 { font-size: 22px; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); background: rgba(148, 163, 184, .08); cursor: pointer; font-size: 22px; line-height: 1; }
.icon-button:hover { border-color: rgba(148, 163, 184, .45); background: rgba(148, 163, 184, .14); }
.icon-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.user-edit-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-edit-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; padding-top: 2px; }

.dialog-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 15, .78); backdrop-filter: blur(10px); }
.delete-dialog { width: min(470px, 100%); padding: 35px; border-radius: 24px; text-align: center; animation: dialog-in .2s ease; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pwa-dialog-backdrop {
    position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 20px;
    background: rgba(2, 6, 15, .82); backdrop-filter: blur(12px);
}
.pwa-install-dialog {
    position: relative; width: min(460px, 100%); padding: 34px; border: 1px solid var(--line-strong);
    border-radius: 8px; color: var(--text); background: #111827; box-shadow: var(--shadow);
    animation: dialog-in .2s ease;
}
.pwa-install-dialog h2 { max-width: 340px; font-size: 29px; line-height: 1.2; }
.pwa-dialog-close {
    position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: grid; place-items: center;
    padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text);
    background: rgba(148, 163, 184, .08); cursor: pointer; font-size: 22px;
}
.pwa-dialog-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.pwa-install-steps { display: grid; gap: 14px; margin: 25px 0 0; padding-left: 22px; color: #cbd5e1; line-height: 1.5; }
.dialog-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 17px; color: #fecdd3; background: rgba(244, 63, 94, .14); font-size: 24px; font-weight: 800; }
.delete-dialog h2 { font-size: 26px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 25px; }

.image-lightbox-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(2, 6, 15, .94); backdrop-filter: blur(14px); animation: lightbox-in .2s ease; }
.image-lightbox { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.image-lightbox img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 100px); object-fit: contain; border-radius: 10px; box-shadow: 0 25px 90px rgba(0, 0, 0, .55); }
.image-lightbox-close { position: fixed; z-index: 1; top: 22px; right: 22px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: white; background: rgba(15, 23, 42, .82); cursor: pointer; font-size: 29px; line-height: 1; transition: background .2s ease, transform .2s ease; }
.image-lightbox-close:hover, .image-lightbox-close:focus-visible { background: rgba(51, 65, 85, .95); transform: scale(1.05); }
.image-lightbox-close:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.image-lightbox-caption { padding-top: 14px; color: #cbd5e1; font-size: 13px; }
@keyframes lightbox-in { from { opacity: 0; } }

.toast-notification { position: fixed; z-index: 120; right: 25px; bottom: 25px; display: flex; align-items: center; gap: 11px; max-width: min(420px, calc(100vw - 30px)); padding: 13px 15px; border: 1px solid rgba(52, 211, 153, .25); border-radius: 14px; color: #d1fae5; background: rgba(6, 30, 28, .95); box-shadow: var(--shadow); animation: toast-in .25s ease; }
.toast-error { border-color: rgba(251, 113, 133, .3); color: #ffe4e6; background: rgba(47, 12, 22, .96); }
.toast-mark { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border-radius: 50%; color: #052e2b; background: var(--success); font-weight: 900; }
.toast-error .toast-mark { color: #4c0519; background: var(--danger); }
.toast-notification button { margin-left: auto; border: 0; color: currentColor; background: none; cursor: pointer; font-size: 20px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(15px); } }

.loading-spinner { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.spinner-ring { width: 28px; height: 28px; border: 3px solid rgba(148, 163, 184, .15); border-top-color: var(--purple); border-right-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
.route-loading { min-height: 48vh; display: grid; place-items: center; }

.slideshow-state {
    min-height: 100dvh; display: grid; place-content: center; justify-items: center; padding: 30px;
    color: var(--text); background: #02040a; text-align: center;
}
.slideshow-state h1 { max-width: 700px; font-size: clamp(34px, 6vw, 68px); }
.slideshow-state p { max-width: 520px; margin: 15px 0 25px; }
.slideshow-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.slideshow-local-message { margin-top: -10px !important; color: #cbd5e1; font-size: 13px; }
.slideshow-page {
    position: fixed; z-index: 150; inset: 0; width: 100vw; height: 100dvh; overflow: hidden;
    color: white; background: #02040a; outline: none;
}
.slideshow-frame, .slideshow-shade { position: absolute; inset: 0; }
.slideshow-frame {
    overflow: hidden; contain: strict; background: #02040a;
    transform: translateZ(0); animation: slideshow-reveal .9s ease-out both;
}
.slideshow-photo {
    position: absolute; top: -8%; left: 0; width: 100%; height: 116%; max-width: none; object-fit: cover;
    object-position: center; transform-origin: center; backface-visibility: hidden;
    will-change: transform;
    animation: slideshow-vertical-pan-zoom var(--slide-duration, 60s) linear both;
}
.slideshow-photo-portrait { top: -10%; height: 120%; animation-name: slideshow-vertical-pan-zoom-portrait; }
.slideshow-fit-contain, .slideshow-fit-smart.slideshow-photo-portrait {
    top: 0; height: 100%; object-fit: contain; animation-name: slideshow-contained-zoom;
}
.slideshow-shade {
    background:
        linear-gradient(180deg, rgba(2, 4, 10, .55), transparent 24%, transparent 58%, rgba(2, 4, 10, .82)),
        linear-gradient(90deg, rgba(2, 4, 10, .25), transparent 35%, transparent 65%, rgba(2, 4, 10, .15));
    pointer-events: none;
}
.slideshow-preload {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
    opacity: 0; pointer-events: none;
}
.slideshow-toolbar {
    position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: grid;
    grid-template-columns: 48px 1fr 48px 48px 48px; align-items: center; gap: 10px;
    padding: max(22px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
}
.slideshow-position { min-width: 0; display: grid; justify-items: center; gap: 2px; }
.slideshow-source-label { max-width: min(380px, 45vw); overflow: hidden; color: white; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.slideshow-counter { justify-self: center; color: rgba(255, 255, 255, .82); font-size: 12px; font-weight: 700; }
.slideshow-icon-button {
    width: 46px; height: 46px; display: grid; place-items: center; padding: 0;
    border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%; color: white;
    background: rgba(2, 6, 15, .46); box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    backdrop-filter: blur(14px); cursor: pointer; font-size: 23px; line-height: 1;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.slideshow-icon-button:hover { border-color: rgba(255, 255, 255, .52); background: rgba(15, 23, 42, .78); transform: scale(1.05); }
.slideshow-icon-button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.slideshow-icon-button:disabled { opacity: .35; cursor: default; transform: none; }
.slideshow-toolbar .slideshow-icon-button:last-child { font-size: 20px; }
.slideshow-source-menu, .slideshow-settings-menu {
    position: absolute; z-index: 4; top: max(84px, calc(env(safe-area-inset-top) + 64px)); right: max(24px, env(safe-area-inset-right));
    width: min(390px, calc(100vw - 32px)); display: grid; gap: 9px; padding: 22px;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; color: white;
    background: rgba(9, 14, 27, .94); box-shadow: 0 24px 70px rgba(0, 0, 0, .42); backdrop-filter: blur(20px);
}
.slideshow-source-menu { max-height: calc(100dvh - 110px); overflow-y: auto; }
.slideshow-settings-menu { gap: 17px; }
.slideshow-settings-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.slideshow-settings-heading h2 { margin-top: 4px; font-size: 21px; }
.slideshow-settings-heading button {
    width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
    border: 1px solid rgba(255,255,255,.16); border-radius: 50%; color: white;
    background: rgba(148,163,184,.08); cursor: pointer; font-size: 22px;
}
.slideshow-setting-field { display: grid; grid-template-columns: 1fr minmax(140px, auto); align-items: center; gap: 15px; color: #cbd5e1; font-size: 13px; }
.slideshow-setting-field select {
    min-height: 40px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
    outline: none; color: white; color-scheme: dark; background: #111827;
}
.slideshow-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.slideshow-toggle-grid label {
    display: flex; align-items: center; gap: 8px; padding: 10px;
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #cbd5e1;
    background: rgba(148,163,184,.05); cursor: pointer; font-size: 12px;
}
.slideshow-toggle-grid input { width: 16px; height: 16px; accent-color: var(--cyan); }
.slideshow-settings-note { margin: -3px 0 0; color: #64748b; font-size: 10px; }
.slideshow-source-option {
    width: 100%; display: grid; gap: 3px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px; color: #e2e8f0; background: rgba(148, 163, 184, .06); cursor: pointer; text-align: left;
}
.slideshow-source-option:hover, .slideshow-source-option.active { border-color: rgba(34, 211, 238, .42); background: rgba(8, 145, 178, .13); }
.slideshow-source-option:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.slideshow-source-option:disabled { opacity: .4; cursor: default; }
.slideshow-source-option span { font-weight: 700; }
.slideshow-source-option small { color: #94a3b8; font-size: 11px; }
.slideshow-folder-picker { border-style: dashed; }
.slideshow-forget-folder { justify-self: start; padding: 7px 2px; border: 0; color: #fda4af; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.slideshow-source-message { margin: 2px 0 0; color: #cbd5e1; font-size: 11px; line-height: 1.5; }
.slideshow-caption {
    position: absolute; z-index: 2; right: max(34px, env(safe-area-inset-right)); bottom: 120px;
    width: min(560px, calc(100vw - 68px)); padding: 18px 20px; border: 1px solid rgba(255,255,255,.13);
    border-radius: 15px; background: rgba(2, 6, 15, .42); backdrop-filter: blur(14px); text-align: right;
}
.slideshow-toolbar, .slideshow-footer, .slideshow-caption {
    transition: opacity .35s ease, transform .35s ease;
}
.slideshow-controls-hidden .slideshow-toolbar { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.slideshow-controls-hidden .slideshow-footer { opacity: 0; transform: translateY(16px); pointer-events: none; }
.slideshow-controls-hidden .slideshow-caption { opacity: 0; pointer-events: none; }
.slideshow-caption h1 { font-size: clamp(24px, 3vw, 42px); line-height: 1.05; }
.slideshow-caption p {
    display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: rgba(255,255,255,.78);
    font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.slideshow-footer {
    position: absolute; z-index: 2; right: 0; bottom: 0; left: 0; display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 24px;
    padding: 30px max(34px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(34px, env(safe-area-inset-left));
}
.slideshow-ambient { min-width: 0; display: flex; align-items: flex-end; gap: 22px; }
.slideshow-clock {
    color: white; font-family: 'Manrope', system-ui, sans-serif; font-size: clamp(38px, 5vw, 72px);
    font-weight: 700; font-variant-numeric: tabular-nums; line-height: .9;
}
.slideshow-weather { display: grid; gap: 3px; }
.slideshow-temperature {
    color: rgba(255, 255, 255, .9); font-family: 'Manrope', system-ui, sans-serif;
    font-size: clamp(22px, 2.5vw, 34px); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1;
}
.slideshow-weather-credit { color: rgba(255, 255, 255, .55); font-size: 9px; }
.slideshow-hidden { display: none; }
.slideshow-controls { display: flex; align-items: center; gap: 10px; }
.slideshow-control-button { width: 42px; height: 42px; font-size: 21px; }
.slideshow-play-button { width: 56px; height: 56px; font-size: 18px; }
.slideshow-mode-button { width: 38px; height: 38px; color: rgba(255,255,255,.7); font-size: 18px; }
.slideshow-mode-button.active { border-color: rgba(34, 211, 238, .65); color: white; background: rgba(8, 145, 178, .4); }
.slideshow-progress {
    position: absolute; right: 0; bottom: 0; left: 0; height: 3px;
    overflow: hidden; background: rgba(255, 255, 255, .14);
}
.slideshow-progress span {
    display: block; width: 100%; height: 100%; transform-origin: left;
    background: linear-gradient(90deg, var(--cyan), white);
    animation: slideshow-progress var(--slide-duration, 60s) linear both;
}
.slideshow-paused .slideshow-photo, .slideshow-paused .slideshow-progress span { animation-play-state: paused; }
@keyframes slideshow-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideshow-dissolve { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
@keyframes slideshow-slide { from { opacity: 0; transform: translate3d(5%, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes slideshow-zoom { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.slideshow-transition-dissolve .slideshow-frame { animation-name: slideshow-dissolve; animation-duration: 1.1s; }
.slideshow-transition-slide .slideshow-frame { animation-name: slideshow-slide; animation-duration: .7s; }
.slideshow-transition-zoom .slideshow-frame { animation-name: slideshow-zoom; animation-duration: .9s; }
@keyframes slideshow-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slideshow-vertical-pan-zoom {
    from { transform: translate3d(0, -3.5%, 0) scale(1.03); }
    to { transform: translate3d(0, 3.5%, 0) scale(1.13); }
}
@keyframes slideshow-vertical-pan-zoom-portrait {
    from { transform: translate3d(0, -4%, 0) scale(1.02); }
    to { transform: translate3d(0, 4%, 0) scale(1.11); }
}
@keyframes slideshow-contained-zoom {
    from { transform: scale(.98); }
    to { transform: scale(1.04); }
}

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: var(--bg-deep); }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 48px; background: radial-gradient(circle at 75% 32%, rgba(34, 211, 238, .17), transparent 22%), radial-gradient(circle at 30% 75%, rgba(139, 92, 246, .2), transparent 30%), linear-gradient(145deg, #111a31, #08101e); }
.auth-visual::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(white .65px, transparent .65px); background-size: 31px 31px; }
.auth-nebula { position: absolute; width: 420px; height: 420px; top: 22%; right: 7%; border: 1px solid rgba(165, 180, 252, .14); border-radius: 50%; box-shadow: inset 0 0 90px rgba(139, 92, 246, .12), 0 0 130px rgba(34, 211, 238, .08); }
.auth-nebula::before, .auth-nebula::after { content: ''; position: absolute; border: 1px solid rgba(34, 211, 238, .12); border-radius: 50%; }
.auth-nebula::before { inset: 50px -80px; transform: rotate(35deg); }
.auth-nebula::after { inset: -50px 80px; transform: rotate(-25deg); }
.auth-brand, .auth-quote, .auth-caption { position: relative; z-index: 2; }
.auth-brand { display: inline-flex; align-items: center; gap: 11px; font: 800 21px 'Manrope'; }
.auth-brand span, .auth-mobile-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, var(--purple), var(--blue)); }
.auth-quote { max-width: 650px; }
.auth-quote h1 { margin-bottom: 24px; font-size: clamp(58px, 7vw, 105px); line-height: .95; }
.auth-quote p { max-width: 520px; margin: 0; color: #bcc8da; font-size: 18px; }
.auth-caption { color: var(--muted); font-size: 12px; }
.auth-form-panel { display: grid; place-items: center; padding: 42px; background: var(--bg); }
.auth-form-wrap { width: min(430px, 100%); }
.auth-form-wrap h2 { font-size: 38px; }
.auth-form-wrap > p { margin-bottom: 28px; }
.auth-mobile-mark { display: none; margin-bottom: 28px; }
.auth-form { display: grid; gap: 18px; }
.remember-me { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; cursor: pointer; }
.remember-me input { width: 16px; height: 16px; accent-color: var(--purple); }
.auth-submit { justify-content: space-between; min-height: 50px; margin-top: 3px; }
.auth-error { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 12px; border: 1px solid rgba(251, 113, 133, .26); border-radius: 12px; color: #fecdd3; background: rgba(244, 63, 94, .08); font-size: 13px; }
.auth-error span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(244, 63, 94, .18); font-weight: 800; }

/* Andromeda's Studio */
.game-hero {
    position: relative; min-height: 350px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    align-items: center; gap: 45px; overflow: hidden; padding: 52px 58px; border: 1px solid rgba(129, 140, 248, .21);
    border-radius: var(--radius-lg); background:
        radial-gradient(circle at 88% 25%, rgba(34, 211, 238, .17), transparent 22rem),
        radial-gradient(circle at 14% 100%, rgba(139, 92, 246, .16), transparent 30rem),
        linear-gradient(125deg, #15172d, #101827 52%, #0a1d2c);
    box-shadow: var(--shadow);
}
.game-hero::before {
    content: ''; position: absolute; inset: 0; opacity: .11;
    background-image: radial-gradient(rgba(255,255,255,.8) .7px, transparent .7px); background-size: 29px 29px;
}
.game-hero-copy, .vera-card { position: relative; z-index: 1; }
.game-hero-copy h1 { font-size: clamp(48px, 6vw, 76px); line-height: .96; }
.game-hero-copy > p { max-width: 670px; margin: 20px 0 29px; color: #b8c5d8; font-size: 17px; }
.game-hero-stats { display: flex; flex-wrap: wrap; gap: 13px; }
.game-hero-stats > div {
    min-width: 125px; display: grid; gap: 1px; padding: 11px 15px; border: 1px solid rgba(165, 180, 252, .15);
    border-radius: 13px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(12px);
}
.game-hero-stats strong { font: 800 20px 'Manrope', sans-serif; }
.game-hero-stats span { color: #8796ac; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.vera-card {
    display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 20px; padding: 25px;
    border: 1px solid rgba(34, 211, 238, .2); border-radius: 22px;
    background: linear-gradient(145deg, rgba(15, 23, 42, .85), rgba(15, 35, 52, .66)); backdrop-filter: blur(18px);
}
.vera-avatar {
    position: relative; width: 92px; height: 92px; display: grid; place-items: center;
    border: 1px solid rgba(165, 243, 252, .3); border-radius: 50%;
    background: radial-gradient(circle at 36% 28%, #67e8f9, #6366f1 46%, #312e81 75%);
    box-shadow: 0 0 0 7px rgba(34,211,238,.04), 0 18px 45px rgba(49,46,129,.38);
}
.vera-avatar::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.24); border-radius: inherit; }
.vera-avatar span { position: relative; z-index: 1; font: 800 36px 'Manrope', sans-serif; text-shadow: 0 3px 12px rgba(0,0,0,.2); }
.vera-avatar i { position: absolute; z-index: 2; right: 4px; bottom: 9px; width: 15px; height: 15px; border: 3px solid #142033; border-radius: 50%; background: var(--success); }
.vera-card h2 { margin: 5px 0 6px; font-size: 24px; }
.vera-card p { margin: 0; color: #aebdd1; font-size: 13px; line-height: 1.6; }
.vera-status { color: #a5f3fc; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.vera-status i { width: 6px; height: 6px; display: inline-block; margin: 0 5px 1px 0; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.game-levels { display: grid; gap: 49px; margin-top: 48px; }
.game-level { display: grid; gap: 19px; }
.game-level-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.game-level-heading > div:first-child { display: flex; align-items: center; gap: 16px; }
.game-level-heading .eyebrow { margin-bottom: 3px; }
.game-level-heading h2 { font-size: 28px; }
.game-level-number {
    width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(139,92,246,.28);
    border-radius: 15px; color: #c4b5fd; background: rgba(139,92,246,.1); font: 800 14px 'Manrope', sans-serif;
}
.game-lock-label, .game-complete-label, .game-open-label {
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #7f8da3;
    background: rgba(148,163,184,.04); font-size: 11px; font-weight: 700;
}
.game-complete-label { border-color: rgba(52,211,153,.2); color: #a7f3d0; background: rgba(16,185,129,.07); }
.game-open-label { border-color: rgba(34,211,238,.2); color: #a5f3fc; background: rgba(8,145,178,.07); }
.game-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.game-category-card {
    min-width: 0; display: grid; gap: 11px; padding: 22px; border: 1px solid var(--line);
    border-radius: 19px; color: var(--text); background: linear-gradient(145deg, rgba(23,32,51,.7), rgba(17,24,39,.58));
    box-shadow: 0 14px 38px rgba(0,0,0,.1); cursor: pointer; text-align: left; transition: .22s ease;
}
.game-category-card:hover:not(:disabled), .game-category-card.selected {
    border-color: rgba(139,92,246,.4); background: linear-gradient(145deg, rgba(70,53,135,.26), rgba(24,40,66,.65));
    box-shadow: 0 18px 44px rgba(0,0,0,.2); transform: translateY(-3px);
}
.game-category-card.selected { outline: 1px solid rgba(34,211,238,.13); }
.game-category-card.locked { opacity: .43; filter: saturate(.45); cursor: not-allowed; }
.game-category-card > strong { font: 750 19px 'Manrope', sans-serif; letter-spacing: -.025em; }
.game-category-card > span:not(.game-category-top):not(.game-mini-progress) { min-height: 42px; color: #8796ab; font-size: 12px; line-height: 1.55; }
.game-category-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.game-category-icon {
    width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: #ddd6fe;
    background: linear-gradient(145deg, rgba(139,92,246,.18), rgba(59,130,246,.1)); font-size: 20px;
}
.game-category-state { color: #93a2b8; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.game-category-state.complete { color: #6ee7b7; }
.game-mini-progress { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(148,163,184,.1); }
.game-mini-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan)); }
.game-workbench { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr); gap: 20px; margin-top: 52px; scroll-margin-top: 28px; }
.game-task-panel, .game-submit-panel { padding: 30px; border-radius: 23px; }
.game-task-header, .game-submit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.game-task-header h2, .game-submit-heading h2 { font-size: 27px; }
.game-task-actions { display: flex; align-items: center; gap: 12px; }
.game-restart-button { white-space: nowrap; }
.game-restart-button > span { font-size: 16px; line-height: 1; }
.game-pass-ring {
    --game-progress: 0; position: relative; width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-content: center;
    border-radius: 50%; text-align: center;
    background: conic-gradient(var(--cyan) calc(var(--game-progress) * 1%), rgba(148,163,184,.1) 0);
}
.game-pass-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #141d2d; }
.game-pass-ring strong, .game-pass-ring span { position: relative; z-index: 1; }
.game-pass-ring strong { font: 800 21px 'Manrope', sans-serif; line-height: 1; }
.game-pass-ring span { margin-top: 2px; color: #8290a5; font-size: 8px; text-transform: uppercase; }
.game-restart-notice {
    display: flex; align-items: center; gap: 9px; margin-top: 22px; padding: 11px 13px;
    border: 1px solid rgba(52,211,153,.2); border-radius: 11px; color: #a7f3d0;
    background: rgba(16,185,129,.07); font-size: 12px;
}
.game-restart-notice span {
    width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
    background: rgba(16,185,129,.14); font-weight: 800;
}
.game-restart-dialog-icon { color: #ddd6fe; background: rgba(139,92,246,.14); }
.game-task-brief { display: grid; grid-template-columns: 48px 1fr; gap: 17px; margin-top: 27px; padding-top: 25px; border-top: 1px solid var(--line); }
.game-task-number { color: #475569; font: 800 22px 'Manrope', sans-serif; }
.game-task-brief h3 { margin: 4px 0 8px; font-size: 25px; }
.game-task-brief p { margin: 0; color: #b2bfd1; font-size: 14px; }
.panel-label { color: #8290a5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-category-note {
    display: grid; gap: 4px; margin: 24px 0; padding: 14px 16px; border: 1px solid rgba(34,211,238,.12);
    border-radius: 13px; background: rgba(8,145,178,.045);
}
.game-category-note strong { color: #a5f3fc; font-size: 11px; }
.game-category-note span { color: #91a0b4; font-size: 12px; line-height: 1.5; }
.game-example {
    display: grid; gap: 7px; margin: 0 0 24px; padding: 14px 16px;
    border-left: 3px solid rgba(139,92,246,.62); border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(139,92,246,.1), rgba(99,102,241,.035));
}
.game-example p { margin: 0; color: #c4cede; font-size: 13px; line-height: 1.55; }
.game-objectives ul { display: grid; gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; }
.game-objectives li { display: flex; align-items: center; gap: 10px; color: #bdc7d7; font-size: 13px; }
.game-objectives li span {
    width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 50%;
    color: #a5b4fc; background: rgba(99,102,241,.12); font-size: 10px;
}
.game-submit-panel { display: grid; align-content: start; }
.game-pass-note { display: grid; color: #8290a5; font-size: 9px; text-align: right; text-transform: uppercase; }
.game-pass-note strong { color: #a7f3d0; font: 800 23px 'Manrope', sans-serif; line-height: 1; }
.game-dropzone {
    position: relative; min-height: 226px; display: grid; place-content: center; justify-items: center; gap: 7px; overflow: hidden;
    margin: 23px 0 16px; padding: 20px; border: 1px dashed rgba(165,180,252,.32); border-radius: 17px;
    color: #c4b5fd; background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.08), transparent 60%);
    cursor: pointer; transition: .2s ease; text-align: center;
}
.game-dropzone:hover { border-color: rgba(34,211,238,.45); background-color: rgba(8,145,178,.035); }
.game-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.game-dropzone > span:not(.game-upload-icon):not(.game-change-photo) { color: #8290a5; font-size: 11px; }
.game-upload-icon {
    width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 15px;
    background: linear-gradient(145deg, rgba(139,92,246,.2), rgba(34,211,238,.1)); font-size: 24px;
}
.game-dropzone.has-file { min-height: 260px; padding: 0; border-style: solid; }
.game-dropzone img { width: 100%; height: 100%; min-height: 260px; position: absolute; inset: 0; object-fit: cover; }
.game-change-photo {
    position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px; color: white; background: rgba(7,11,20,.72); backdrop-filter: blur(10px); font-size: 10px; font-weight: 700;
}
.game-grade-button { min-height: 51px; justify-content: space-between; padding-inline: 20px; }
.game-privacy-note { margin: 12px 3px 0; color: #66758a; font-size: 10px; line-height: 1.5; text-align: center; }
.game-error {
    display: flex; align-items: center; gap: 9px; margin: 0 0 13px; padding: 10px 12px; border: 1px solid rgba(251,113,133,.25);
    border-radius: 11px; color: #fecdd3; background: rgba(244,63,94,.07); font-size: 12px;
}
.game-error span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(244,63,94,.18); font-weight: 800; }
.game-category-finished { display: grid; justify-items: start; padding: 40px 0 18px; }
.game-category-finished > span {
    width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 18px;
    color: #a7f3d0; background: rgba(16,185,129,.11); font-size: 24px;
}
.game-category-finished h3 { font-size: 25px; }
.game-category-finished p { max-width: 520px; margin-bottom: 0; }
.vera-result {
    display: grid; grid-template-columns: 220px 1fr; overflow: hidden; margin-top: 20px;
    border: 1px solid rgba(52,211,153,.24); border-radius: 23px; background: linear-gradient(145deg, rgba(13,53,50,.72), rgba(17,24,39,.76));
    box-shadow: 0 20px 55px rgba(0,0,0,.18);
}
.vera-result.retry { border-color: rgba(251,191,36,.23); background: linear-gradient(145deg, rgba(56,40,18,.7), rgba(17,24,39,.76)); }
.vera-result-score { display: grid; place-content: center; justify-items: center; padding: 32px; background: rgba(7,11,20,.22); text-align: center; }
.vera-result-score > span { color: #8fa0b5; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.vera-result-score strong { margin-top: 7px; color: #6ee7b7; font: 800 68px 'Manrope', sans-serif; letter-spacing: -.07em; line-height: .95; }
.vera-result.retry .vera-result-score strong { color: #fcd34d; }
.vera-result-score small { color: #718096; font-size: 11px; }
.vera-result-score em { margin-top: 12px; padding: 6px 10px; border-radius: 999px; color: #a7f3d0; background: rgba(16,185,129,.1); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.vera-result.retry .vera-result-score em { color: #fde68a; background: rgba(245,158,11,.1); }
.vera-result-copy { padding: 30px 34px; }
.vera-result-copy h2 { max-width: 850px; font-size: 25px; line-height: 1.28; }
.vera-feedback-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 23px 0; }
.vera-feedback-grid > div { display: flex; align-items: flex-start; gap: 11px; }
.vera-feedback-grid strong { font-size: 12px; }
.vera-feedback-grid p { margin: 5px 0 0; color: #9eacc0; font-size: 12px; line-height: 1.6; }
.vera-feedback-icon { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; }
.vera-feedback-icon.good { color: #a7f3d0; background: rgba(16,185,129,.11); }
.vera-feedback-icon.improve { color: #fde68a; background: rgba(245,158,11,.11); }

.game-history { margin-top: 24px; padding: 28px; }
.game-history-best { color: var(--muted); font-size: 12px; }
.game-history-best strong { margin-left: 5px; color: var(--cyan); font-size: 20px; }
.game-history-list { display: grid; gap: 10px; }
.game-history-list article { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7,11,20,.35); }
.game-history-list p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.game-history-list time { color: var(--muted); font-size: 11px; }
.game-history-score { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fde68a; background: rgba(245,158,11,.12); font-weight: 800; }
.game-history-score.passed { color: #a7f3d0; background: rgba(16,185,129,.12); }

.timeline-memory { display: grid; grid-template-columns: minmax(190px, .35fr) 1fr; gap: 28px; align-items: center; margin-bottom: 38px; padding: 28px; }
.timeline-memory h2 { margin-top: 6px; }
.timeline-memory p { margin: 7px 0 0; color: var(--muted); }
.timeline-memory-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.timeline-memory-strip a { display: block; overflow: hidden; min-height: 120px; border-radius: 14px; background: var(--surface-strong); }
.timeline-memory-strip img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; transition: transform .2s ease; }
.timeline-memory-strip a:hover img, .timeline-memory-strip a:focus-visible img { transform: scale(1.04); }
.timeline-memory-strip a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.timeline-list { display: grid; gap: 48px; }
.timeline-period { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; }
.timeline-period::before { position: absolute; top: 8px; bottom: -48px; left: 73px; width: 1px; content: ""; background: linear-gradient(var(--cyan), rgba(99,102,241,.08)); }
.timeline-period:last-child::before { bottom: 0; }
.timeline-period-heading { position: relative; z-index: 1; align-self: start; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-strong); text-align: center; }
.timeline-period-heading > span { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.timeline-period-heading h2 { margin: 4px 0 0; font-size: 20px; }
.timeline-period-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

#blazor-error-ui { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: none; padding: 13px 16px; border: 1px solid rgba(251,113,133,.3); border-radius: 12px; color: #ffe4e6; background: #3f101c; box-shadow: var(--shadow); }
#blazor-error-ui .reload { margin-left: 8px; text-decoration: underline; }
#blazor-error-ui .dismiss { margin-left: 12px; border: 0; color: inherit; background: none; }

@media (max-width: 1180px) {
    .statistics-grid { grid-template-columns: repeat(2, 1fr); }
    .recent-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry-gallery { column-count: 2; }
    .hero-orbit { opacity: .5; right: 4%; }
    .photo-detail-copy { gap: 34px; padding-inline: 25px; }
    .album-tools-expanded { grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(145px, auto)); }
    .album-tools-expanded .album-filter-button, .album-tools-expanded .album-result-count { justify-self: stretch; }
    .game-hero { grid-template-columns: 1fr minmax(300px, .65fr); padding-inline: 42px; }
    .vera-card { grid-template-columns: 72px 1fr; }
    .vera-avatar { width: 72px; height: 72px; }
    .game-workbench { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --sidebar: 0px; }
    .app-shell { display: block; padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .sidebar { inset: auto 0 0; width: 100%; height: calc(68px + env(safe-area-inset-bottom, 0px)); padding: 7px 12px calc(7px + env(safe-area-inset-bottom, 0px)); border: 0; border-top: 1px solid var(--line); }
    .brand-lockup, .sidebar-footer { display: none; }
    .main-navigation { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 4px; }
    .nav-link { min-height: 53px; display: grid; place-items: center; align-content: center; gap: 1px; padding: 3px; border-radius: 11px; font-size: 10px; }
    .nav-link.active::before { display: none; }
    .nav-icon { font-size: 18px; }
    .topbar { height: 68px; padding: 0 22px; }
    .topbar > div:first-child { display: none; }
    .topbar-actions { margin-left: auto; }
    .content-stage { padding: 26px 22px 50px; }
    .editor-layout { grid-template-columns: 1fr; }
    .editor-side { position: static; }
    .photo-detail-copy { grid-template-columns: 1fr; padding: 35px 8px; }
    .album-tools { grid-template-columns: minmax(0, 1fr) minmax(165px, auto); }
    .album-tools-expanded { grid-template-columns: 1fr 1fr; }
    .collection-manager { grid-template-columns: 1fr; }
    .collection-list { grid-column: 1; }
    .trash-grid { grid-template-columns: 1fr; }
    .metadata-fields { grid-template-columns: 1fr; }
    .album-filter-button { justify-content: center; }
    .album-result-count { justify-self: end; }
    .photo-metadata { grid-column: 1; grid-row: auto; }
    .profile-layout, .profile-settings-layout { grid-template-columns: 1fr; }
    .user-management-layout { grid-template-columns: 1fr; }
    .timeline-period { grid-template-columns: 110px minmax(0, 1fr); }
    .timeline-period::before { left: 53px; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-panel { min-height: 100vh; }
    .auth-mobile-mark { display: grid; }
    .game-hero { grid-template-columns: 1fr; gap: 28px; padding: 38px; }
    .vera-card { max-width: 600px; }
    .game-category-grid { grid-template-columns: 1fr; }
    .game-category-card > span:not(.game-category-top):not(.game-mini-progress) { min-height: 0; }
    .game-workbench { grid-template-columns: 1fr; }
    .game-history-list article { grid-template-columns: 44px minmax(0, 1fr); }
    .game-history-list time { grid-column: 2; }
    .vera-result { grid-template-columns: 170px 1fr; }
    .vera-feedback-grid { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 640px) {
    .content-stage { padding: 20px 15px 42px; }
    .hero-banner { min-height: 390px; padding: 34px 25px; }
    .hero-content { width: 100%; }
    .hero-content h1 { font-size: 42px; }
    .hero-content p { font-size: 15px; }
    .hero-orbit { right: -90px; bottom: -80px; opacity: .25; }
    .statistics-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .statistic-card { min-height: 155px; flex-direction: column; padding: 17px; }
    .statistic-value { font-size: 19px; white-space: normal; }
    .dashboard-storage { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
    .recent-photo-grid { grid-template-columns: 1fr; }
    .timeline-memory { grid-template-columns: 1fr; padding: 22px; }
    .timeline-period { grid-template-columns: 1fr; gap: 16px; }
    .timeline-period::before { display: none; }
    .timeline-period-heading { text-align: left; }
    .masonry-gallery { column-count: 1; }
    .album-tools { grid-template-columns: 1fr; }
    .album-tools-expanded { grid-template-columns: 1fr; }
    .album-result-count { justify-self: start; padding-inline: 3px; }
    .album-lightbox-caption { align-items: stretch; flex-direction: column; }
    .album-lightbox-caption .btn { justify-content: center; }
    .album-lightbox-nav { top: auto; bottom: 105px; width: 44px; height: 44px; transform: none; }
    .collection-manager { padding: 20px; }
    .collection-create { grid-template-columns: 1fr; }
    .trash-card { grid-template-columns: 1fr; }
    .trash-card > img { min-height: 210px; max-height: 300px; }
    .undo-bar { right: 15px; bottom: 84px; left: 15px; }
    .album-lightbox-previous { left: 14px; }
    .album-lightbox-next { right: 14px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading-actions { width: 100%; flex-direction: column; }
    .page-heading-actions .btn { width: 100%; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .editor-main { padding: 22px; }
    .photo-detail-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }
    .photo-detail-toolbar > div { width: 100%; }
    .photo-detail-toolbar .btn { flex: 1; }
    .photo-detail-copy h1 { font-size: 40px; }
    .photo-story { font-size: 18px; }
    .photo-enlarge-hint { right: 10px; bottom: 10px; }
    .image-lightbox-backdrop { padding: 12px; }
    .image-lightbox-close { top: 14px; right: 14px; }
    .image-lightbox img { max-height: calc(100vh - 86px); }
    .profile-storage { padding: 26px; }
    .profile-settings-card { padding: 26px; }
    .user-create-card, .user-list-card { padding: 24px; }
    .user-list-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .user-role-list { grid-column: 2; justify-content: flex-start; }
    .user-edit-button { grid-column: 3; grid-row: 1 / span 2; }
    .user-edit-form { grid-template-columns: 1fr; }
    .user-edit-actions { grid-column: 1; }
    .dialog-actions { grid-template-columns: 1fr; }
    .toast-notification { right: 15px; bottom: 84px; left: 15px; }
    .auth-form-panel { padding: 25px; }
    .auth-form-wrap h2 { font-size: 32px; }
    .topbar-actions { gap: 10px; }
    .topbar-account > div { display: none; }
    .install-app-button { width: 40px; padding: 0; }
    .install-app-label { display: none; }
    .pwa-install-dialog { padding: 30px 24px; }
    .slideshow-toolbar { grid-template-columns: 44px 1fr 44px 44px 44px; gap: 5px; padding-inline: 12px; }
    .slideshow-icon-button { width: 42px; height: 42px; }
    .slideshow-source-label { max-width: 34vw; font-size: 11px; }
    .slideshow-source-menu { top: max(76px, calc(env(safe-area-inset-top) + 58px)); right: 16px; }
    .slideshow-settings-menu { top: max(76px, calc(env(safe-area-inset-top) + 58px)); right: 16px; }
    .slideshow-caption { right: 16px; bottom: 150px; width: calc(100vw - 32px); padding: 14px 16px; text-align: left; }
    .slideshow-footer { grid-template-columns: 1fr; justify-items: center; gap: 19px; padding: 24px 18px max(24px, env(safe-area-inset-bottom)); }
    .slideshow-ambient { width: 100%; justify-content: center; }
    .slideshow-clock { font-size: 48px; }
    .slideshow-controls { grid-row: 1; }
    .slideshow-controls { gap: 7px; }
    .slideshow-mode-button { width: 35px; height: 35px; }
    .game-hero { min-height: 0; padding: 31px 23px; }
    .game-hero-copy h1 { font-size: 44px; }
    .game-hero-copy > p { font-size: 14px; }
    .game-hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
    .game-hero-stats > div:last-child { grid-column: 1 / -1; }
    .vera-card { grid-template-columns: 58px 1fr; padding: 18px; }
    .vera-avatar { width: 58px; height: 58px; }
    .vera-avatar span { font-size: 26px; }
    .game-level-heading { align-items: flex-start; flex-direction: column; }
    .game-level-heading h2 { font-size: 24px; }
    .game-lock-label, .game-complete-label, .game-open-label { margin-left: 64px; }
    .game-category-card { padding: 18px; }
    .game-task-panel, .game-submit-panel { padding: 22px; }
    .game-task-header { flex-direction: column; }
    .game-task-actions { width: 100%; justify-content: space-between; }
    .game-task-brief { grid-template-columns: 1fr; }
    .game-task-number { font-size: 14px; }
    .vera-result { grid-template-columns: 1fr; }
    .vera-result-score { grid-template-columns: auto auto; align-items: end; gap: 0 5px; padding: 24px; }
    .vera-result-score > span, .vera-result-score em { grid-column: 1 / -1; }
    .vera-result-score strong { margin-top: 4px; font-size: 54px; }
    .vera-result-score small { padding-bottom: 7px; }
    .vera-result-score em { margin-top: 8px; }
    .vera-result-copy { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow-frame { animation-duration: .01ms; }
    .slideshow-photo { animation: none; transform: scale(1.04); }
}

@media (display-mode: standalone) {
    .install-app-button { display: none; }
}

/* Learning */
.learning-hero {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 42px; align-items: center;
    overflow: hidden; min-height: 350px; padding: 52px 56px; border: 1px solid rgba(139, 92, 246, .22); border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 86% 22%, rgba(34, 211, 238, .14), transparent 24rem),
        radial-gradient(circle at 8% 100%, rgba(139, 92, 246, .15), transparent 28rem),
        linear-gradient(145deg, rgba(23, 32, 51, .96), rgba(9, 16, 30, .9));
    box-shadow: var(--shadow);
}
.learning-hero::before {
    position: absolute; inset: 0; content: ''; opacity: .14; pointer-events: none;
    background-image: linear-gradient(rgba(165, 180, 252, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(165, 180, 252, .2) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, transparent, black);
}
.learning-hero-copy, .learning-progress-card { position: relative; z-index: 1; }
.learning-hero-copy h1 { max-width: 760px; font-size: clamp(43px, 5vw, 70px); line-height: 1.02; }
.learning-hero-copy > p { max-width: 680px; margin: 19px 0 27px; color: #b8c3d5; font-size: 16px; }
.learning-progress-card { display: grid; justify-items: center; gap: 20px; padding: 28px; border-radius: 24px; text-align: center; }
.learning-progress-card > div:last-child { display: grid; justify-items: center; }
.learning-progress-card > div:last-child > strong { font: 700 16px 'Manrope', sans-serif; }
.learning-progress-card p { max-width: 280px; margin: 8px 0 0; font-size: 12px; line-height: 1.55; }
.learning-progress-ring {
    --learning-progress: 0; position: relative; width: 138px; height: 138px; display: grid; place-items: center; border-radius: 50%;
    background: conic-gradient(var(--cyan) calc(var(--learning-progress) * 1%), rgba(148, 163, 184, .12) 0);
    box-shadow: 0 0 50px rgba(34, 211, 238, .08);
}
.learning-progress-ring::before { position: absolute; inset: 10px; content: ''; border: 1px solid var(--line); border-radius: 50%; background: #111827; }
.learning-progress-ring > div { position: relative; z-index: 1; display: grid; justify-items: center; }
.learning-progress-ring strong { color: white; font: 800 31px 'Manrope', sans-serif; letter-spacing: -.05em; }
.learning-progress-ring span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.learning-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 48px; }
.learning-summary-card { display: flex; align-items: center; gap: 15px; min-height: 94px; padding: 20px 24px; border-radius: 18px; }
.learning-summary-card > span { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 13px; color: #c4b5fd; background: rgba(139, 92, 246, .13); font-size: 19px; }
.learning-summary-card > div { display: grid; }
.learning-summary-card strong { font: 800 24px 'Manrope', sans-serif; }
.learning-summary-card small { color: var(--muted); font-size: 11px; }

.learning-topic-section { margin-top: 46px; }
.learning-topic-count { color: var(--muted); font-size: 11px; }
.learning-topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.learning-topic-card {
    position: relative; display: grid; grid-template-rows: 180px 1fr auto; min-height: 430px; overflow: hidden;
    border-radius: 24px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
a.learning-topic-card:hover { border-color: rgba(139, 92, 246, .4); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .24); }
.learning-topic-art { position: relative; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 56%), #0c1425; }
.learning-topic-art::before, .learning-topic-art::after { position: absolute; content: ''; border: 1px solid rgba(165, 180, 252, .18); border-radius: 50%; }
.learning-topic-art::before { width: 210px; height: 210px; }
.learning-topic-art::after { width: 130px; height: 130px; }
.learning-topic-art > i { position: absolute; width: 260px; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .3), transparent); transform: rotate(24deg); }
.learning-topic-art > i:last-child { transform: rotate(-24deg); }
.learning-topic-icon { position: relative; z-index: 2; width: 88px; height: 88px; display: grid; place-items: center; border: 1px solid rgba(165, 180, 252, .27); border-radius: 28px; color: #a5f3fc; background: linear-gradient(145deg, rgba(139, 92, 246, .25), rgba(34, 211, 238, .1)); box-shadow: 0 18px 45px rgba(0, 0, 0, .25); font: 700 40px 'Manrope', sans-serif; }
.learning-topic-card.topic-violin .learning-topic-art { background: radial-gradient(circle, rgba(245, 158, 11, .18), transparent 56%), #171323; }
.learning-topic-card.topic-violin .learning-topic-icon { color: #fde68a; border-color: rgba(245, 158, 11, .28); background: linear-gradient(145deg, rgba(139, 92, 246, .23), rgba(245, 158, 11, .1)); }
.learning-topic-card.topic-astronomy .learning-topic-art { background: radial-gradient(circle, rgba(56, 189, 248, .2), transparent 48%), radial-gradient(circle at 25% 20%, rgba(251, 191, 36, .13), transparent 18%), #080f22; }
.learning-topic-card.topic-astronomy .learning-topic-icon { color: #fef3c7; border-color: rgba(125, 211, 252, .28); background: linear-gradient(145deg, rgba(30, 64, 175, .28), rgba(245, 158, 11, .1)); }
.learning-topic-content { display: grid; align-content: start; padding: 25px 27px 15px; }
.learning-topic-content > strong { font: 800 29px 'Manrope', sans-serif; letter-spacing: -.035em; }
.learning-topic-content > span:last-child { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.learning-topic-footer { display: grid; grid-template-columns: auto minmax(80px, 1fr) 24px; gap: 14px; align-items: center; padding: 18px 27px 23px; color: var(--muted); font-size: 10px; }
.learning-topic-footer b { color: #dbeafe; }
.learning-topic-progress { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .12); }
.learning-topic-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.learning-topic-arrow { color: #a5b4fc; font-size: 19px; transition: transform .2s ease; }
a.learning-topic-card:hover .learning-topic-arrow { color: var(--cyan); transform: translateX(3px); }
.learning-topic-coming { opacity: .62; }
.learning-topic-coming .learning-topic-icon { color: #94a3b8; background: rgba(148, 163, 184, .08); }

.learning-topic-hero {
    position: relative; overflow: hidden; margin-bottom: 46px; padding: 29px clamp(28px, 4vw, 56px) 38px;
    border: 1px solid rgba(139, 92, 246, .2); border-radius: var(--radius-lg);
    background: radial-gradient(circle at 88% 24%, rgba(34, 211, 238, .14), transparent 23rem), linear-gradient(145deg, #172033, #0d1525);
    box-shadow: var(--shadow);
}
.learning-topic-hero.topic-violin { background: radial-gradient(circle at 88% 24%, rgba(245, 158, 11, .13), transparent 23rem), radial-gradient(circle at 5% 100%, rgba(139, 92, 246, .14), transparent 25rem), linear-gradient(145deg, #1a1a2c, #0d1422); }
.learning-topic-hero.topic-astronomy { background: radial-gradient(circle at 86% 18%, rgba(125, 211, 252, .14), transparent 20rem), radial-gradient(circle at 10% 105%, rgba(245, 158, 11, .1), transparent 24rem), linear-gradient(145deg, #081126, #0b1424); }
.learning-topic-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 30px; align-items: center; }
.learning-topic-hero h1 { font-size: clamp(46px, 6vw, 76px); line-height: 1; }
.learning-topic-hero p { max-width: 790px; margin: 16px 0 0; color: #b7c3d5; font-size: 16px; }
.learning-topic-hero-mark { width: 120px; height: 120px; display: grid; place-items: center; border: 1px solid rgba(165, 180, 252, .23); border-radius: 34px; color: #a5f3fc; background: linear-gradient(145deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .07)); font-size: 50px; transform: rotate(4deg); }
.learning-topic-hero.topic-violin .learning-topic-hero-mark { color: #fde68a; border-color: rgba(245, 158, 11, .25); background: linear-gradient(145deg, rgba(139, 92, 246, .18), rgba(245, 158, 11, .08)); }
.learning-topic-hero.topic-astronomy .learning-topic-hero-mark { color: #fef3c7; border-color: rgba(125, 211, 252, .24); background: radial-gradient(circle, rgba(245, 158, 11, .14), transparent 34%), rgba(14, 116, 144, .08); }
.learning-topic-hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.learning-topic-hero-stats > span { display: grid; }
.learning-topic-hero-stats strong { font: 800 20px 'Manrope', sans-serif; }
.learning-topic-hero-stats small { color: var(--muted); font-size: 10px; }

.learning-courses { display: grid; gap: 54px; }
.learning-course { scroll-margin-top: 30px; }
.learning-course-heading { display: grid; grid-template-columns: 64px minmax(0, 1fr) 130px; gap: 22px; align-items: center; margin-bottom: 18px; }
.learning-course-number { color: rgba(165, 180, 252, .42); font: 800 42px 'Manrope', sans-serif; letter-spacing: -.07em; }
.learning-course-copy h2 { font-size: 30px; }
.learning-admin-badge { display: inline-flex; margin-left: 8px; padding: 4px 7px; border: 1px solid rgba(245, 158, 11, .25); border-radius: 999px; color: #fde68a; background: rgba(245, 158, 11, .08); font-size: 8px; letter-spacing: .1em; vertical-align: middle; }
.learning-course-copy p { max-width: 760px; margin: 7px 0 0; font-size: 13px; }
.learning-course-score { display: grid; justify-items: end; }
.learning-course-score > strong { color: #a5f3fc; font: 800 23px 'Manrope', sans-serif; }
.learning-course-score > span:not(.learning-course-track) { color: var(--muted); font-size: 10px; }
.learning-course-track { width: 100%; height: 5px; overflow: hidden; margin-top: 8px; border-radius: 999px; background: rgba(148, 163, 184, .12); }
.learning-course-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--cyan)); }
.learning-lesson-list { display: grid; gap: 10px; }
.learning-lesson-row {
    display: grid; grid-template-columns: 42px 42px minmax(0, 1fr) auto 26px; gap: 14px; align-items: center;
    min-height: 82px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 17px;
    background: linear-gradient(145deg, rgba(23, 32, 51, .72), rgba(17, 24, 39, .62)); transition: .2s ease;
}
.learning-lesson-row:hover { border-color: rgba(139, 92, 246, .38); transform: translateY(-2px); box-shadow: 0 15px 34px rgba(0, 0, 0, .15); }
.learning-lesson-index { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 12px; color: #a5b4fc; background: rgba(99, 102, 241, .08); font-weight: 800; }
.learning-lesson-row.in-progress .learning-lesson-index { color: #fde68a; border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .1); }
.learning-lesson-row.completed .learning-lesson-index { color: #a7f3d0; border-color: rgba(52, 211, 153, .28); background: rgba(16, 185, 129, .1); }
.learning-lesson-row.completed .learning-lesson-index::before { content: '\2713'; }
.learning-lesson-row.completed .learning-lesson-index { font-size: 0; }
.learning-lesson-row.completed .learning-lesson-index::before { font-size: 15px; }
.learning-lesson-icon { color: #7dd3fc; font-size: 24px; text-align: center; }
.learning-lesson-copy { min-width: 0; display: grid; gap: 4px; }
.learning-lesson-copy strong { font: 700 16px 'Manrope', sans-serif; }
.learning-lesson-copy small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.learning-lesson-meta { display: grid; justify-items: end; gap: 4px; min-width: 76px; }
.learning-lesson-meta strong { color: #c4b5fd; font-size: 10px; }
.learning-lesson-row.completed .learning-lesson-meta strong { color: #6ee7b7; }
.learning-lesson-row.in-progress .learning-lesson-meta strong { color: #fcd34d; }
.learning-lesson-arrow { color: #64748b; font-size: 18px; transition: .2s ease; }
.learning-lesson-row:hover .learning-lesson-arrow { color: var(--cyan); transform: translateX(3px); }

.learning-lesson-hero {
    overflow: hidden; margin-bottom: 22px; padding: 30px clamp(26px, 4vw, 54px) 42px; border: 1px solid rgba(139, 92, 246, .2); border-radius: var(--radius-lg);
    background: radial-gradient(circle at 90% 30%, rgba(34, 211, 238, .12), transparent 22rem), linear-gradient(145deg, #172033, #0d1525);
}
.learning-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 34px; color: #a5b4fc; font-size: 12px; font-weight: 700; }
.learning-back-link:hover { color: white; }
.learning-lesson-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 35px; align-items: center; }
.learning-lesson-hero h1 { max-width: 900px; font-size: clamp(40px, 5vw, 65px); line-height: 1.03; }
.learning-lesson-hero p { max-width: 800px; margin: 15px 0 20px; color: #b8c3d5; font-size: 16px; }
.learning-lesson-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #96a5bb; font-size: 11px; }
.learning-lesson-hero-meta span { display: flex; align-items: center; gap: 7px; }
.learning-lesson-hero-meta b { color: #a5b4fc; font-size: 15px; }
.learning-kind-mark { width: 128px; height: 128px; display: grid; place-items: center; border: 1px solid rgba(165, 180, 252, .22); border-radius: 36px; color: #a5f3fc; background: linear-gradient(145deg, rgba(139, 92, 246, .18), rgba(34, 211, 238, .08)); box-shadow: inset 0 0 45px rgba(139, 92, 246, .08); font-size: 52px; transform: rotate(4deg); }
.learning-lesson-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 22px; align-items: start; }
.learning-lesson-content { padding: clamp(28px, 4vw, 52px); border-radius: 24px; }
.learning-introduction { margin-bottom: 39px; padding: 22px 24px; border-left: 3px solid var(--cyan); border-radius: 0 15px 15px 0; background: rgba(8, 145, 178, .06); }
.learning-introduction p { margin: 0; color: #d5dfed; font: 600 clamp(17px, 2vw, 21px) 'Manrope', sans-serif; line-height: 1.55; }
.learning-copy-section h2, .learning-visual-guide h2, .learning-takeaways h2 { font-size: 27px; }
.learning-copy-section > p { margin: 18px 0 0; color: #afbbce; font-size: 15px; line-height: 1.85; }
.learning-visual-guide, .learning-takeaways { margin-top: 46px; padding-top: 42px; border-top: 1px solid var(--line); }
.learning-visual-guide > p { max-width: 760px; margin: 9px 0 20px; }
.learning-visual-frame { height: 340px; overflow: hidden; margin-bottom: 19px; border: 1px solid rgba(165, 180, 252, .17); border-radius: 20px; background: radial-gradient(circle at 50% 40%, rgba(99, 102, 241, .15), transparent 50%), #0a1020; }
.learning-photo-guide { position: relative; height: auto; aspect-ratio: 3 / 2; background: #070b17; box-shadow: 0 20px 55px rgba(0, 0, 0, .22); }
.learning-photo-guide::after { position: absolute; inset: 0; content: ''; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.learning-photo-guide img { width: 100%; height: 100%; display: block; object-fit: cover; }

.visual-thirds { position: relative; width: 100%; height: 100%; background: linear-gradient(155deg, #31435a, #17243a 45%, #0a1221); }
.visual-thirds::before { position: absolute; inset: 0; content: ''; background-image: linear-gradient(90deg, transparent 33.1%, rgba(255,255,255,.46) 33.2%, rgba(255,255,255,.46) 33.5%, transparent 33.6%, transparent 66.3%, rgba(255,255,255,.46) 66.4%, rgba(255,255,255,.46) 66.7%, transparent 66.8%), linear-gradient(transparent 33.1%, rgba(255,255,255,.46) 33.2%, rgba(255,255,255,.46) 33.5%, transparent 33.6%, transparent 66.3%, rgba(255,255,255,.46) 66.4%, rgba(255,255,255,.46) 66.7%, transparent 66.8%); }
.visual-horizon { position: absolute; right: 0; bottom: 22%; left: 0; height: 36%; background: linear-gradient(165deg, transparent 48%, #111a29 49%); }
.visual-subject { position: absolute; z-index: 2; top: 28%; left: 30%; width: 88px; height: 144px; border-radius: 48px 48px 18px 18px; background: linear-gradient(145deg, #a78bfa, #4f46e5); box-shadow: 0 18px 50px rgba(79, 70, 229, .4); }
.visual-subject::before { position: absolute; top: -23px; left: 20px; width: 47px; height: 47px; content: ''; border-radius: 50%; background: #c4b5fd; }
.visual-balance { position: absolute; right: 17%; bottom: 22%; width: 100px; height: 65px; border-radius: 50% 50% 8px 8px; background: #192c3d; box-shadow: 0 0 35px rgba(34, 211, 238, .15); }

.visual-light-stage { position: relative; width: 100%; height: 100%; background: linear-gradient(115deg, rgba(250, 204, 21, .12), transparent 47%), #0b1221; }
.visual-light-source { position: absolute; z-index: 2; top: 44px; left: 8%; width: 92px; height: 92px; display: grid; place-items: center; border: 1px solid rgba(253, 224, 71, .45); border-radius: 50%; color: #fef08a; background: radial-gradient(circle, rgba(253, 224, 71, .28), rgba(245, 158, 11, .06)); box-shadow: 0 0 70px rgba(250, 204, 21, .22); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.visual-light-beam { position: absolute; top: 83px; left: 19%; width: 50%; height: 145px; background: linear-gradient(90deg, rgba(254, 240, 138, .18), transparent); clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 60%); }
.visual-light-subject { position: absolute; z-index: 2; right: 27%; bottom: 54px; width: 105px; height: 178px; border-radius: 53px 53px 15px 15px; background: linear-gradient(90deg, #dbeafe, #334155 54%, #111827 55%); }
.visual-light-subject::before { position: absolute; top: -38px; left: 22px; width: 62px; height: 62px; content: ''; border-radius: 50%; background: linear-gradient(90deg, #f8fafc, #475569 55%, #111827 56%); }
.visual-light-shadow { position: absolute; right: 6%; bottom: 34px; width: 26%; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(10px); transform: rotate(-7deg); }

.visual-exposure { position: relative; width: min(530px, 92%); height: 100%; margin: auto; }
.visual-exposure-line { position: absolute; height: 2px; background: linear-gradient(90deg, transparent, rgba(165, 180, 252, .7), transparent); transform-origin: left center; }
.visual-exposure-line.line-left { top: 74px; left: 50%; width: 245px; transform: rotate(122deg); }
.visual-exposure-line.line-right { top: 74px; left: 50%; width: 245px; transform: rotate(58deg); }
.visual-exposure-line.line-bottom { right: 18%; bottom: 60px; left: 18%; }
.visual-exposure-node { position: absolute; z-index: 2; width: 90px; height: 90px; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(165, 180, 252, .3); border-radius: 25px; background: linear-gradient(145deg, #202a48, #111827); box-shadow: 0 15px 35px rgba(0,0,0,.25); }
.visual-exposure-node b { color: #a5f3fc; font: 800 28px 'Manrope', sans-serif; }
.visual-exposure-node small { color: #a8b3c6; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.visual-exposure-node.aperture { top: 24px; left: calc(50% - 45px); }
.visual-exposure-node.shutter { bottom: 22px; left: calc(14% - 20px); }
.visual-exposure-node.iso { right: calc(14% - 20px); bottom: 22px; }
.visual-exposure-center { position: absolute; top: 54%; left: 50%; color: #c4b5fd; font-size: 10px; font-weight: 800; letter-spacing: .17em; transform: translate(-50%, -50%); }

.visual-violin-parts { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 43% 54%, rgba(245, 158, 11, .12), transparent 33%), linear-gradient(145deg, #141426, #09111f); }
.violin-body { position: absolute; top: 113px; left: calc(42% - 70px); width: 140px; height: 190px; border: 3px solid #d97706; border-radius: 48% 48% 44% 44% / 35% 35% 57% 57%; background: radial-gradient(ellipse at 50% 36%, #b45309, #78350f 70%); box-shadow: inset 0 0 25px rgba(253, 230, 138, .17), 0 20px 45px rgba(0, 0, 0, .3); }
.violin-body::before, .violin-body::after { position: absolute; top: 61px; width: 25px; height: 57px; content: ''; border-radius: 50%; background: #141426; }
.violin-body::before { left: -4px; }
.violin-body::after { right: -4px; }
.violin-neck { position: absolute; z-index: 2; top: 43px; left: calc(42% - 15px); width: 30px; height: 157px; border-radius: 11px; background: linear-gradient(90deg, #27170e, #4a2512, #1d120c); }
.violin-neck::after { position: absolute; inset: 4px 5px; content: ''; border-radius: 8px; background: #111827; }
.violin-scroll { position: absolute; top: 23px; left: calc(42% - 18px); width: 36px; height: 41px; border: 4px solid #b45309; border-radius: 50% 50% 42% 42%; background: #30190d; }
.violin-bridge { position: absolute; z-index: 3; top: 183px; left: calc(42% - 29px); width: 58px; height: 15px; border-radius: 12px 12px 3px 3px; background: #f3d1a0; }
.violin-tailpiece { position: absolute; z-index: 3; top: 225px; left: calc(42% - 24px); width: 48px; height: 58px; border-radius: 8px 8px 20px 20px; background: #111827; }
.violin-bow { position: absolute; top: 52px; right: 21%; width: 7px; height: 245px; border-radius: 999px; background: linear-gradient(90deg, #92400e 0 45%, #e5e7eb 46% 70%, #78350f 71%); transform: rotate(8deg); box-shadow: 0 0 18px rgba(245, 158, 11, .1); }
.violin-callout, .posture-callout, .bow-callout { position: absolute; z-index: 5; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(253, 224, 71, .4); border-radius: 50%; color: #fef3c7; background: #713f12; box-shadow: 0 4px 16px rgba(0,0,0,.3); font-size: 10px; font-weight: 800; }
.violin-callout::after, .posture-callout::after, .bow-callout::after { position: absolute; width: 45px; height: 1px; content: ''; background: rgba(253, 224, 71, .34); }
.callout-1 { top: 21px; left: calc(42% - 75px); }.callout-1::after { left: 26px; transform: rotate(16deg); }
.callout-2 { top: 64px; left: calc(42% + 47px); }.callout-2::after { right: 26px; transform: rotate(-20deg); }
.callout-3 { top: 111px; left: calc(42% - 91px); }.callout-3::after { left: 26px; transform: rotate(6deg); }
.callout-4 { top: 146px; left: calc(42% + 66px); }.callout-4::after { right: 26px; }
.callout-5 { top: 183px; left: calc(42% - 106px); }.callout-5::after { left: 26px; }
.callout-6 { top: 210px; left: calc(42% + 87px); }.callout-6::after { right: 26px; transform: rotate(-12deg); }
.callout-7 { top: 256px; left: calc(42% - 99px); }.callout-7::after { left: 26px; transform: rotate(-9deg); }
.callout-8 { top: 293px; left: calc(42% + 62px); }.callout-8::after { right: 26px; transform: rotate(20deg); }
.callout-9 { top: 61px; right: 11%; }.callout-9::after { right: 26px; transform: rotate(-12deg); }

.visual-violin-posture { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 50% 35%, rgba(99, 102, 241, .17), transparent 42%), linear-gradient(#111a2d, #09111f); }
.posture-head { position: absolute; z-index: 3; top: 35px; left: calc(50% - 34px); width: 68px; height: 78px; border-radius: 48% 48% 43% 43%; background: linear-gradient(145deg, #f1c8a8, #c58f70); }
.posture-head::after { position: absolute; right: 5px; bottom: -7px; width: 25px; height: 19px; content: ''; border-radius: 50%; background: #b7795e; transform: rotate(20deg); }
.posture-body { position: absolute; top: 108px; left: calc(50% - 67px); width: 134px; height: 210px; border-radius: 48px 48px 20px 20px; background: linear-gradient(145deg, #4f46e5, #242c51); clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.posture-arm { position: absolute; z-index: 3; top: 126px; width: 30px; height: 155px; border-radius: 20px; background: #c58f70; transform-origin: top center; }
.posture-arm.arm-left { left: calc(50% - 72px); transform: rotate(-55deg); }
.posture-arm.arm-right { left: calc(50% + 43px); transform: rotate(49deg); }
.posture-instrument { position: absolute; z-index: 4; top: 99px; left: calc(50% - 116px); width: 186px; height: 56px; border-radius: 44% 13% 13% 44%; background: linear-gradient(160deg, #b45309, #71330d); transform: rotate(-8deg); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.posture-instrument::after { position: absolute; top: 22px; right: -108px; width: 120px; height: 9px; content: ''; border-radius: 0 8px 8px 0; background: #382015; }
.posture-bow { position: absolute; z-index: 5; top: 145px; left: calc(50% + 24px); width: 210px; height: 5px; border-radius: 999px; background: #d6a767; transform: rotate(48deg); transform-origin: left center; }
.posture-callout-1 { top: 101px; left: calc(50% + 91px); }.posture-callout-1::after { right: 26px; transform: rotate(15deg); }
.posture-callout-2 { top: 91px; left: calc(50% - 154px); }.posture-callout-2::after { left: 26px; transform: rotate(20deg); }
.posture-callout-3 { top: 38px; left: calc(50% - 116px); }.posture-callout-3::after { left: 26px; transform: rotate(14deg); }
.posture-callout-4 { top: 182px; left: calc(50% - 173px); }.posture-callout-4::after { left: 26px; transform: rotate(-18deg); }

.visual-bow-hold { position: relative; width: 100%; height: 100%; background: radial-gradient(circle at 56% 50%, rgba(245, 158, 11, .14), transparent 38%), linear-gradient(145deg, #171426, #09111f); }
.bow-stick { position: absolute; z-index: 2; top: 178px; left: 8%; width: 84%; height: 9px; border-radius: 999px; background: linear-gradient(#c47a36, #6b3518); transform: rotate(-5deg); }
.bow-stick::after { position: absolute; top: 10px; left: 0; width: 100%; height: 2px; content: ''; background: #e5e7eb; }
.bow-frog { position: absolute; z-index: 3; top: 159px; left: 22%; width: 87px; height: 40px; border: 2px solid #9ca3af; border-radius: 7px; background: linear-gradient(145deg, #202737, #090d16); transform: rotate(-5deg); }
.bow-palm { position: absolute; z-index: 4; top: 82px; left: calc(50% - 64px); width: 128px; height: 130px; border-radius: 50% 47% 37% 42%; background: linear-gradient(145deg, #e0ac8b, #b97961); transform: rotate(-8deg); box-shadow: 0 18px 32px rgba(0,0,0,.25); }
.bow-finger { position: absolute; z-index: 5; width: 29px; border-radius: 18px; background: linear-gradient(90deg, #e0ac8b, #b97961); transform-origin: top center; }
.finger-thumb { top: 154px; left: calc(50% - 46px); height: 74px; transform: rotate(57deg); }
.finger-middle { top: 133px; left: calc(50% - 4px); height: 103px; transform: rotate(5deg); }
.finger-index { top: 126px; left: calc(50% + 32px); height: 105px; transform: rotate(20deg); }
.finger-pinky { top: 91px; left: calc(50% + 56px); height: 87px; transform: rotate(35deg); }
.bow-callout-1 { top: 224px; left: calc(50% - 96px); }.bow-callout-1::after { left: 23px; transform: rotate(-39deg); }
.bow-callout-2 { top: 235px; left: calc(50% - 7px); }.bow-callout-2::after { left: 8px; bottom: 27px; transform: rotate(-84deg); }
.bow-callout-3 { top: 215px; left: calc(50% + 79px); }.bow-callout-3::after { right: 23px; transform: rotate(35deg); }
.bow-callout-4 { top: 67px; left: calc(50% + 118px); }.bow-callout-4::after { right: 23px; transform: rotate(-18deg); }

.learning-visual-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.learning-visual-legend li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 11, 20, .24); }
.learning-visual-legend li > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #c4b5fd; background: rgba(139, 92, 246, .12); font-size: 11px; font-weight: 800; }
.learning-visual-legend strong { font-size: 12px; }
.learning-visual-legend p { margin: 4px 0 0; font-size: 11px; line-height: 1.5; }
.learning-quick-check { margin-top: 14px; padding: 18px 20px; border-left: 3px solid var(--success); border-radius: 0 14px 14px 0; background: rgba(16, 185, 129, .055); }
.learning-quick-check h3 { font-size: 15px; }
.learning-quick-check ul { margin: 10px 0 0; padding-left: 18px; color: #aebbd0; font-size: 12px; line-height: 1.75; }
.learning-takeaways ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.learning-takeaways li { display: flex; align-items: center; gap: 11px; color: #c5d0df; }
.learning-takeaways li span { width: 25px; height: 25px; flex: 0 0 25px; display: grid; place-items: center; border-radius: 50%; color: #a7f3d0; background: rgba(16, 185, 129, .1); font-size: 10px; }

.violin-studio { margin-top: 46px; padding-top: 42px; border-top: 1px solid var(--line); }
.violin-studio-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 20px; }
.violin-studio-heading h2 { font-size: 27px; }
.violin-studio-heading p { max-width: 740px; margin: 8px 0 0; }
.violin-studio-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(34, 211, 238, .24); border-radius: 999px; color: #a5f3fc; background: rgba(8, 145, 178, .08); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.violin-sound-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.violin-tool-card { min-width: 0; padding: 20px; border: 1px solid rgba(165, 180, 252, .15); border-radius: 18px; background: linear-gradient(145deg, rgba(25, 34, 57, .78), rgba(8, 13, 25, .72)); }
.violin-tool-title { display: flex; gap: 11px; align-items: center; margin-bottom: 14px; }
.violin-tool-title h3 { font-size: 16px; }
.violin-tool-icon { width: 38px; height: 38px; display: grid; flex: 0 0 38px; place-items: center; border: 1px solid rgba(165, 180, 252, .2); border-radius: 12px; color: #c4b5fd; background: rgba(139, 92, 246, .1); font-size: 18px; }
.violin-listening-card { grid-column: 1 / -1; }
.violin-listening-card > p { margin: 0 0 14px; font-size: 11px; line-height: 1.65; }
.violin-model-sequence { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 7px; margin: 0; padding: 3px 0 4px; list-style: none; }
.violin-model-sequence li { min-width: 0; }
.violin-model-sequence button, .violin-model-sequence li > div { width: 100%; min-width: 0; min-height: 62px; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 9px 6px; border: 1px solid rgba(34, 211, 238, .2); border-radius: 12px; color: #dceafa; background: rgba(8, 145, 178, .07); transition: .18s ease; }
.violin-model-sequence button:hover:not(:disabled) { border-color: rgba(34, 211, 238, .55); background: rgba(8, 145, 178, .17); transform: translateY(-2px); }
.violin-model-sequence strong { color: #a5f3fc; font: 800 17px 'Manrope', sans-serif; }
.violin-model-sequence span { color: #8697ad; font-size: 8px; font-weight: 700; }
.violin-model-sequence .violin-cue-lyric { color: #e2e8f0; font-size: 10px; font-weight: 800; line-height: 1.15; text-align: center; }
.violin-model-sequence li.rest > div { border-style: dashed; color: #9aa8bb; background: rgba(148, 163, 184, .04); }
.violin-model-sequence li.rest strong { color: #aeb9c9; font-size: 12px; }
.violin-demo-button { margin-top: 10px; }
.violin-playable-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(165, 180, 252, .1); }
.violin-playable-notes > span { display: block; margin-bottom: 8px; color: #8290a5; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.violin-playable-notes > div { display: flex; flex-wrap: wrap; gap: 6px; }
.violin-playable-notes button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid rgba(165, 180, 252, .16); border-radius: 10px; color: #dceafa; background: rgba(139, 92, 246, .06); font-size: 9px; transition: .18s ease; }
.violin-playable-notes button:hover:not(:disabled) { border-color: rgba(165, 180, 252, .4); background: rgba(139, 92, 246, .14); }
.violin-playable-notes button > span { color: #a5f3fc; font-size: 7px; }
.violin-playable-notes button strong { color: #f8fafc; font-size: 10px; }
.violin-playable-notes button small { color: #78879d; font-size: 7px; }
.violin-note-guide { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(165, 180, 252, .1); }
.violin-note-guide-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 11px; }
.violin-note-guide-heading h4 { margin-top: 2px; font-size: 15px; }
.violin-note-guide-heading > small { color: #7f8da1; font-size: 8px; }
.violin-note-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.violin-note-guide-grid > article { min-width: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 11px; align-items: center; padding: 10px; border: 1px solid rgba(165, 180, 252, .12); border-radius: 13px; background: rgba(3, 8, 18, .28); }
.violin-mini-staff { position: relative; width: 104px; height: 94px; overflow: hidden; border: 1px solid rgba(34, 211, 238, .13); border-radius: 10px; color: #e9f7ff; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(34,211,238,.025)); transition: .18s ease; }
.violin-mini-staff:hover:not(:disabled) { border-color: rgba(34, 211, 238, .45); background: rgba(8, 145, 178, .09); transform: translateY(-1px); }
.violin-staff-lines { position: absolute; top: 26px; right: 7px; left: 27px; height: 33px; background: repeating-linear-gradient(to bottom, rgba(211, 227, 241, .62) 0 1px, transparent 1px 8px); }
.violin-staff-clef { position: absolute; z-index: 2; top: 12px; left: 3px; font: 43px/1 'Segoe UI Symbol', 'Noto Music', serif; }
.violin-staff-ledger { position: absolute; z-index: 2; top: var(--ledger-y); left: calc(70% - 15px); width: 30px; height: 1px; background: rgba(211, 227, 241, .72); }
.violin-staff-note { position: absolute; z-index: 3; top: var(--staff-note-y); left: 70%; width: 13px; height: 9px; border-radius: 50%; background: #e9f7ff; transform: translate(-50%, -50%) rotate(-14deg); box-shadow: 0 0 7px rgba(165, 243, 252, .25); }
.violin-staff-note::after { position: absolute; right: 0; bottom: 4px; width: 2px; height: 25px; content: ''; border-radius: 2px; background: #e9f7ff; }
.violin-staff-note.stem-down::after { top: 4px; right: auto; bottom: auto; left: 0; }
.violin-staff-accidental { position: absolute; z-index: 3; top: var(--staff-note-y); left: calc(70% - 19px); font: 16px/1 'Segoe UI Symbol', serif; transform: translateY(-50%); }
.violin-note-technique { min-width: 0; }
.violin-note-technique > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.violin-note-technique strong { color: white; font: 800 16px 'Manrope', sans-serif; }
.violin-note-technique span { padding: 4px 6px; border-radius: 7px; color: #a5f3fc; background: rgba(8, 145, 178, .09); font-size: 11px; font-weight: 800; }
.violin-note-technique p { margin: 6px 0 0; color: #aab7c8; font-size: 12px; line-height: 1.5; }
.violin-tempo-control { display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px; align-items: center; margin: 22px 0 16px; }
.violin-tempo-control button { width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 11px; color: #dbeafe; background: rgba(255,255,255,.025); font-size: 19px; }
.violin-tempo-control button:hover { border-color: rgba(165, 180, 252, .4); background: rgba(139, 92, 246, .1); }
.violin-tempo-control div { text-align: center; }
.violin-tempo-control strong, .violin-tempo-control span { display: block; }
.violin-tempo-control strong { color: white; font: 800 28px 'Manrope', sans-serif; line-height: 1; }
.violin-tempo-control span { margin-top: 4px; color: #8290a5; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.violin-beats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 auto 17px; }
.violin-beats span { height: 5px; border-radius: 999px; background: #293247; transition: .08s ease; }
.violin-beats span.active { background: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, .65); }
.violin-beats span.active:first-child { background: #c4b5fd; box-shadow: 0 0 12px rgba(167, 139, 250, .65); }
.violin-ear-card > p { min-height: 51px; margin: 0 0 11px; font-size: 10px; line-height: 1.58; }
.violin-ear-prompt { min-height: 67px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 10px; border: 1px solid rgba(34, 211, 238, .12); border-radius: 12px; text-align: center; background: rgba(8, 145, 178, .045); }
.violin-ear-prompt strong { color: white; font: 800 24px 'Manrope', sans-serif; }
.violin-ear-prompt span { color: #93a4b9; font-size: 8px; font-weight: 700; line-height: 1.4; }
.violin-ear-prompt span.correct { color: #86efac; }
.violin-ear-prompt span.incorrect { color: #fda4af; }
.violin-ear-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0; }
.violin-ear-choices button { min-width: 39px; padding: 7px 9px; border: 1px solid rgba(165, 180, 252, .18); border-radius: 9px; color: #dceafa; background: rgba(139, 92, 246, .07); font-size: 9px; font-weight: 800; transition: .18s ease; }
.violin-ear-choices button:hover:not(:disabled) { border-color: rgba(34, 211, 238, .45); color: white; background: rgba(8, 145, 178, .14); }
.violin-ear-score { display: block; margin-top: 8px; color: #78879d; font-size: 8px; text-align: center; }
.violin-audio-error { margin: 12px 0 0; padding: 11px 13px; border: 1px solid rgba(248, 113, 113, .22); border-radius: 11px; color: #fecaca; background: rgba(127, 29, 29, .12); font-size: 11px; }
.violin-practice-plan { margin-top: 18px; overflow: hidden; border: 1px solid rgba(165, 180, 252, .14); border-radius: 18px; background: rgba(7, 11, 20, .28); }
.violin-plan-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.violin-plan-heading h3 { font-size: 19px; }
.violin-plan-heading > span { color: #93a1b6; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.violin-practice-steps { margin: 0; padding: 0; list-style: none; }
.violin-practice-steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 72px; gap: 13px; align-items: start; padding: 18px 20px; border-bottom: 1px solid var(--line); transition: .18s ease; }
.violin-practice-steps > li:last-child { border-bottom: 0; }
.violin-practice-steps > li.complete { background: rgba(16, 185, 129, .035); }
.violin-step-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(165, 180, 252, .2); border-radius: 10px; color: #c4b5fd; background: rgba(139, 92, 246, .08); font-size: 10px; font-weight: 800; }
.violin-practice-steps li.complete .violin-step-number { color: #a7f3d0; border-color: rgba(52, 211, 153, .25); background: rgba(16, 185, 129, .09); }
.violin-step-copy h4 { font-size: 14px; }
.violin-step-copy > p { margin: 6px 0 9px; color: #aebacd; font-size: 11px; line-height: 1.62; }
.violin-success-check { padding: 8px 10px; border-radius: 9px; color: #9caabd; background: rgba(255, 255, 255, .025); font-size: 9px; line-height: 1.5; }
.violin-success-check strong { color: #a7f3d0; }
.violin-step-check { width: 72px; min-height: 48px; display: grid; place-content: center; justify-items: center; border: 1px solid rgba(165, 180, 252, .2); border-radius: 11px; color: #dbeafe; background: rgba(139, 92, 246, .06); }
.violin-step-check:hover { border-color: rgba(52, 211, 153, .4); background: rgba(16, 185, 129, .08); }
.violin-step-check strong, .violin-step-check span { display: block; }
.violin-step-check strong { font-size: 14px; }.violin-step-check span { color: #8290a5; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.violin-practice-steps li.complete .violin-step-check { color: #a7f3d0; border-color: rgba(52, 211, 153, .3); background: rgba(16, 185, 129, .11); }
.violin-mistakes { margin-top: 14px; padding: 17px 19px; border-left: 3px solid #f59e0b; border-radius: 0 13px 13px 0; background: rgba(245, 158, 11, .045); }
.violin-mistakes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 20px; margin: 10px 0 0; padding-left: 18px; color: #acb8ca; font-size: 10px; }

.photo-studio { margin-top: 46px; padding-top: 42px; border-top: 1px solid var(--line); }
.photo-studio-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 18px; }
.photo-studio-heading h2 { font-size: 27px; }
.photo-studio-heading p { max-width: 740px; margin: 8px 0 0; }
.photo-studio-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(34, 211, 238, .24); border-radius: 999px; color: #a5f3fc; background: rgba(8, 145, 178, .08); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.photo-setup-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 14px; padding: 15px 17px; border-left: 3px solid var(--cyan); border-radius: 0 13px 13px 0; background: rgba(8, 145, 178, .055); }
.photo-setup-note > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #a5f3fc; background: rgba(34, 211, 238, .09); font-size: 17px; }
.photo-setup-note strong { font-size: 12px; }.photo-setup-note p { margin: 3px 0 0; font-size: 10px; line-height: 1.55; }
.photo-workbench-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; }
.photo-tool-card { min-width: 0; padding: 20px; border: 1px solid rgba(165, 180, 252, .15); border-radius: 18px; background: linear-gradient(145deg, rgba(25, 34, 57, .78), rgba(8, 13, 25, .72)); }
.photo-tool-heading { display: flex; justify-content: space-between; gap: 14px; align-items: start; margin-bottom: 14px; }
.photo-tool-heading h3, .photo-starting-setup h3 { font-size: 17px; }
.photo-tool-heading button { padding: 5px 9px; border: 1px solid var(--line-strong); border-radius: 9px; color: #aebacd; background: rgba(255,255,255,.025); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.photo-tool-heading button:hover { color: white; border-color: rgba(34, 211, 238, .35); }
.photo-simulator-preview { position: relative; height: 175px; overflow: hidden; border: 1px solid rgba(165,180,252,.13); border-radius: 14px; background: linear-gradient(155deg, #25354b 0 43%, #172237 44% 68%, #0c1321 69%); filter: brightness(var(--photo-brightness)); }
.photo-preview-background { position: absolute; inset: 18% 8% 34%; border-radius: 10px; background: repeating-linear-gradient(90deg, rgba(165,180,252,.22) 0 2px, transparent 2px 24%), linear-gradient(160deg, #48576d, #1e2b40); filter: blur(var(--photo-background-blur)); transform: scale(1.08); }
.photo-preview-subject { position: absolute; z-index: 2; bottom: 17%; left: 26%; width: 72px; height: 93px; border-radius: 36px 36px 14px 14px; background: linear-gradient(145deg, #f59e0b, #b45309); box-shadow: 0 14px 30px rgba(0,0,0,.28); }
.photo-preview-subject::before { position: absolute; top: -25px; left: 19px; width: 40px; height: 40px; content: ''; border-radius: 50%; background: #fed7aa; }
.photo-preview-motion { position: absolute; z-index: 1; right: 11%; bottom: 22%; width: 110px; height: 7px; border-radius: 999px; opacity: var(--photo-motion-opacity); background: linear-gradient(90deg, transparent, #f59e0b, transparent); filter: blur(var(--photo-motion-blur)); }
.photo-preview-noise { position: absolute; z-index: 4; inset: 0; opacity: var(--photo-noise); pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.48'/%3E%3C/svg%3E"); mix-blend-mode: screen; }
.photo-focus-plane { position: absolute; z-index: 5; bottom: 11%; left: 11%; width: 58%; height: 2px; background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), transparent); }
.photo-setting-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.photo-setting-controls label { display: grid; gap: 5px; color: #8290a5; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.photo-setting-controls select { width: 100%; min-width: 0; padding: 9px 27px 9px 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: #e4ecf7; background-color: #111a2b; font: 700 11px 'Manrope', sans-serif; }
.photo-effect-readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.photo-effect-readout > div { min-width: 0; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.025); }
.photo-effect-readout span, .photo-effect-readout strong { display: block; }
.photo-effect-readout span { color: #748299; font-size: 7px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.photo-effect-readout strong { overflow: hidden; margin-top: 3px; color: #c9d5e5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.photo-effect-readout .bright strong { color: #fde68a; }.photo-effect-readout .dark strong { color: #93c5fd; }.photo-effect-readout .balanced strong { color: #a7f3d0; }
.photo-lab-note { margin: 10px 0 0; color: #78879d; font-size: 8px; line-height: 1.55; }
.photo-starting-setup { display: flex; flex-direction: column; }
.photo-starting-setup dl { display: grid; gap: 0; margin: 12px 0; }
.photo-starting-setup dl > div { display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.photo-starting-setup dt { color: #758399; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.photo-starting-setup dd { margin: 0; color: #d9e4f2; font-size: 10px; font-weight: 700; }
.photo-starting-setup > p { margin: auto 0 0; color: #8795aa; font-size: 9px; line-height: 1.55; }
.photo-field-plan { margin-top: 18px; overflow: hidden; border: 1px solid rgba(165, 180, 252, .14); border-radius: 18px; background: rgba(7, 11, 20, .28); }
.photo-plan-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.photo-plan-heading h3 { font-size: 19px; }
.photo-shot-counter { display: grid; grid-template-columns: 32px 64px 32px; gap: 6px; align-items: center; }
.photo-shot-counter button { width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 10px; color: #dbeafe; background: rgba(139,92,246,.07); font-size: 17px; }
.photo-shot-counter button:disabled { opacity: .4; }
.photo-shot-counter strong { color: white; font: 800 18px 'Manrope', sans-serif; text-align: center; }.photo-shot-counter strong span { color: #8290a5; font-size: 9px; }
.photo-workflow-progress { color: #a5b4fc; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.photo-practice-steps { margin: 0; padding: 0; list-style: none; }
.photo-practice-steps > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 32px; gap: 13px; align-items: start; padding: 18px 20px; border-bottom: 1px solid var(--line); transition: .18s ease; }
.photo-practice-steps > li:last-child { border-bottom: 0; }
.photo-practice-steps > li.complete { background: rgba(16,185,129,.035); }
.photo-step-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(165,180,252,.2); border-radius: 10px; color: #c4b5fd; background: rgba(139,92,246,.08); font-size: 10px; font-weight: 800; }
.photo-practice-steps li.complete .photo-step-number { color: #a7f3d0; border-color: rgba(52,211,153,.25); background: rgba(16,185,129,.09); }
.photo-step-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }.photo-step-title h4 { font-size: 14px; }.photo-step-title span { flex: 0 0 auto; color: #a5b4fc; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.photo-practice-steps p { margin: 6px 0 9px; color: #aebacd; font-size: 11px; line-height: 1.62; }
.photo-success-check { padding: 8px 10px; border-radius: 9px; color: #9caabd; background: rgba(255,255,255,.025); font-size: 9px; line-height: 1.5; }.photo-success-check strong { color: #a7f3d0; }
.photo-step-check { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(165,180,252,.22); border-radius: 9px; color: #a7f3d0; background: rgba(139,92,246,.05); font-size: 13px; }
.photo-step-check:hover { border-color: rgba(52,211,153,.4); background: rgba(16,185,129,.08); }
.photo-practice-steps li.complete .photo-step-check { border-color: rgba(52,211,153,.3); background: rgba(16,185,129,.12); }
.photo-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.photo-review-grid section { padding: 18px 20px; border: 1px solid rgba(165,180,252,.13); border-radius: 15px; background: rgba(8,13,25,.42); }
.photo-review-grid h3 { font-size: 15px; }
.photo-review-grid ol, .photo-review-grid ul { display: grid; gap: 7px; margin: 11px 0 0; padding-left: 18px; color: #aebacd; font-size: 10px; line-height: 1.55; }
.photo-review-grid section:last-child { border-left-color: rgba(245,158,11,.45); }

.learning-exercise-panel { position: sticky; top: 24px; display: grid; gap: 14px; }
.learning-exercise-heading { padding: 13px 6px 3px; }
.learning-exercise-heading h2 { font-size: 24px; }
.learning-exercise-heading p { margin: 7px 0 0; font-size: 12px; }
.learning-exercise-card { position: relative; overflow: hidden; padding: 25px; border-radius: 20px; }
.learning-exercise-card::after { position: absolute; top: -45px; right: -45px; width: 120px; height: 120px; content: ''; border-radius: 50%; background: rgba(139, 92, 246, .08); }
.learning-exercise-number { position: absolute; z-index: 1; top: 18px; right: 20px; color: rgba(165, 180, 252, .22); font: 800 34px 'Manrope', sans-serif; }
.learning-exercise-label { color: #a5b4fc; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.learning-exercise-card h3 { margin-top: 13px; font-size: 19px; }
.learning-exercise-card p { margin: 9px 0 20px; font-size: 12px; line-height: 1.65; }
.learning-complete-button { color: #a7f3d0; border-color: rgba(52, 211, 153, .24); background: rgba(16, 185, 129, .09); }
.learning-complete-button:disabled { opacity: 1; cursor: default; }
.learning-return-link { color: #c4b5fd; font-size: 12px; font-weight: 700; text-align: center; }
.learning-return-link:hover { color: white; }
.learning-completion-error { padding: 11px 13px; border: 1px solid rgba(251, 113, 133, .25); border-radius: 11px; color: #fecdd3; background: rgba(244, 63, 94, .07); font-size: 11px; }

@media (max-width: 1050px) {
    .learning-hero { grid-template-columns: 1fr minmax(290px, .6fr); padding: 44px; }
    .learning-lesson-layout { grid-template-columns: minmax(0, 1.25fr) minmax(285px, .75fr); }
    .violin-sound-grid { grid-template-columns: 1fr 1fr; }
    .violin-listening-card { grid-column: 1 / -1; }
    .photo-workbench-grid { grid-template-columns: 1fr; }
    .photo-starting-setup dl { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .photo-starting-setup dl > div { padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
}

@media (max-width: 900px) {
    .main-navigation { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr); overflow-x: auto; scrollbar-width: none; }
    .main-navigation::-webkit-scrollbar { display: none; }
    .learning-hero { grid-template-columns: 1fr; }
    .learning-progress-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
    .learning-progress-card > div:last-child { justify-items: start; }
    .learning-progress-ring { width: 112px; height: 112px; }
    .learning-lesson-layout { grid-template-columns: 1fr; }
    .learning-exercise-panel { position: static; }
    .learning-topic-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .learning-hero { min-height: 0; gap: 28px; padding: 31px 23px; }
    .learning-hero-copy h1 { font-size: 43px; }
    .learning-progress-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .learning-progress-card > div:last-child { justify-items: center; }
    .learning-summary-grid { grid-template-columns: 1fr; gap: 9px; margin-bottom: 38px; }
    .learning-summary-card { min-height: 76px; padding: 15px 18px; }
    .learning-topic-grid { gap: 13px; }
    .learning-topic-card { grid-template-rows: 145px 1fr auto; min-height: 375px; }
    .learning-topic-content { padding: 21px 21px 12px; }
    .learning-topic-footer { padding: 16px 21px 20px; }
    .learning-topic-hero { margin-bottom: 36px; padding: 24px 22px 28px; }
    .learning-topic-hero-grid { grid-template-columns: 1fr; }
    .learning-topic-hero-mark { display: none; }
    .learning-topic-hero-stats { gap: 24px; }
    .learning-course-heading { grid-template-columns: 49px minmax(0, 1fr); gap: 13px; align-items: start; }
    .learning-course-number { font-size: 33px; }
    .learning-course-copy h2 { font-size: 25px; }
    .learning-course-score { grid-column: 2; width: 100%; justify-items: start; }
    .learning-course-score > strong { font-size: 18px; }
    .learning-lesson-row { grid-template-columns: 38px minmax(0, 1fr) 18px; gap: 11px; min-height: 76px; padding: 13px; }
    .learning-lesson-icon, .learning-lesson-meta { display: none; }
    .learning-lesson-copy small { font-size: 11px; }
    .learning-lesson-hero { padding: 24px 22px 30px; }
    .learning-back-link { margin-bottom: 25px; }
    .learning-lesson-hero-grid { grid-template-columns: 1fr; }
    .learning-lesson-hero h1 { font-size: 42px; }
    .learning-kind-mark { display: none; }
    .learning-lesson-content { padding: 25px 20px; }
    .learning-introduction { padding: 18px; }
    .learning-copy-section h2, .learning-visual-guide h2, .learning-takeaways h2 { font-size: 24px; }
    .learning-copy-section > p { font-size: 14px; }
    .learning-visual-frame { height: 260px; }
    .learning-photo-guide { height: auto; }
    .learning-visual-legend { grid-template-columns: 1fr; }
    .violin-studio-heading, .violin-plan-heading { align-items: start; }
    .violin-sound-grid { grid-template-columns: 1fr; }
    .violin-listening-card { grid-column: auto; }
    .violin-practice-steps > li { grid-template-columns: 30px minmax(0, 1fr); padding: 16px 14px; }
    .violin-step-check { grid-column: 2; width: 100%; min-height: 38px; display: flex; gap: 7px; align-items: center; justify-content: center; }
    .violin-mistakes ul { grid-template-columns: 1fr; }
    .photo-studio-heading { align-items: start; }
    .photo-setting-controls, .photo-effect-readout { grid-template-columns: 1fr 1fr; }
    .photo-plan-heading { align-items: center; }
    .photo-practice-steps > li { grid-template-columns: 30px minmax(0, 1fr) 30px; padding: 16px 14px; }
    .photo-step-title { align-items: start; }
    .photo-review-grid { grid-template-columns: 1fr; }
    .photo-starting-setup dl { grid-template-columns: 1fr 1fr; }
    .visual-subject { left: 27%; transform: scale(.8); transform-origin: bottom; }
    .visual-exposure { width: 100%; transform: scale(.82); }
}
