
:root{--surface:#fff;--soft:#edf3e9;--accent-text:#fff;--theme-muted:#65766b}
:root[data-app-theme="ocean"]{--ink:#193b50;--green:#185a81;--muted:#647b88;--line:#d5e3eb;--paper:#f2f7fb;--soft:#e2eff8;--theme-muted:#526f80}
:root[data-app-theme="plum"]{--ink:#493448;--green:#79416e;--muted:#806d7c;--line:#e7dbe4;--paper:#faf5f9;--soft:#f1e5ef;--theme-muted:#796373}
:root[data-app-theme="midnight"]{--ink:#e5efe9;--green:#92ceb0;--muted:#a6bbb0;--line:#35483e;--paper:#101b18;--surface:#1a2923;--soft:#283f33;--accent-text:#10251b;--theme-muted:#b1c4b9}
html[data-app-theme] body{background:var(--paper);color:var(--ink)}
html[data-app-theme] :is(.post,.sidecard,.circle-card,.settings-home,.settings-grid section,dialog,aside,.theme-choice){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-app-theme] :is(.settings-grid section,.privacy,.commerce-stats>div){background:var(--soft);color:var(--ink)}
html[data-app-theme] :is(input,textarea,select,.secondary,.notification-bell,.filter){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-app-theme] :is(.primary,.filter.selected){background:var(--green);color:var(--accent-text)}
html[data-app-theme] :is(.note,.brand-tagline,.post-head small,.person small){color:var(--theme-muted)}
html[data-app-theme] body>.mobile-bar{background:var(--surface);border-color:var(--line)}
html[data-app-theme] body>.mobile-bar button{color:var(--ink)}
html[data-app-theme] body>.mobile-bar .selected{background:var(--soft);color:var(--ink)}
html[data-app-theme] .brand-copy{color:var(--green)}
html[data-theme-mode="dark"] :is(.post-head,.post-foot,.post-replies,.actions,.post-extra){background:var(--surface);color:var(--ink)}
html[data-theme-mode="dark"] :is(.link,.profile-name-link,.screen-back){color:var(--green)}
html[data-theme-mode="dark"] .timer{color:var(--theme-muted)}
.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.theme-choice{border:2px solid var(--line);border-radius:14px;text-align:left;padding:14px;min-height:100px}.theme-choice.selected{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.theme-choice small{display:block;margin-top:6px;color:var(--theme-muted)}.theme-swatch{display:inline-block;width:20px;height:20px;border-radius:50%;vertical-align:middle;margin-right:8px}.theme-choice:focus-visible{outline:3px solid var(--green);outline-offset:3px}
body.compact-navigation .circle-card{padding:14px;border-radius:16px;display:flow-root}
body.compact-navigation .circle-card .circle-icon{float:left;width:32px;height:32px;font-size:18px;padding:6px;margin:0 10px 6px 0;border-radius:10px;background:var(--soft)}
body.compact-navigation .circle-card h2{font-size:18px;line-height:1.25;margin:2px 0 6px}
body.compact-navigation .circle-card p{margin:6px 0 10px;font-size:13px}
body.compact-navigation .circle-card button{min-height:40px;padding:8px 12px;font-size:13px}
body.compact-navigation .grid{gap:10px;margin-top:10px!important}
body.compact-navigation .shorts-chips small{display:none}
body.compact-navigation .shorts-chips{width:auto}
body.compact-navigation .post-head{padding:10px;gap:8px}
body.compact-navigation .post-head>div:not(.post-meta){flex:1;min-width:0}
body.compact-navigation .post-head small{overflow-wrap:anywhere;font-size:11px;line-height:1.25}
body.compact-navigation .post-head .avatar{width:36px;height:36px}
body.compact-navigation .post-meta{max-width:none;font-size:10px}
body.compact-navigation .title-row{margin:8px 0 10px}
body.compact-navigation .screen-shortcuts{gap:4px}
body.compact-navigation main>header{padding-top:8px;padding-bottom:6px}
html[data-app-theme] :is(.channel-hero,.channel-card){background:var(--surface);color:var(--ink);border-color:var(--line)}
body.compact-navigation .channel-hero{padding:14px;margin:8px 0 10px;border-radius:16px}
body.compact-navigation .channel-hero>.eyebrow{display:none}
body.compact-navigation .channel-hero h2{font-size:22px;margin:0 0 6px}
body.compact-navigation .channel-hero p{font-size:13px;margin:6px 0;line-height:1.4}
body.compact-navigation .channel-buttons{margin:8px 0 0;gap:6px}
body.compact-navigation .channel-buttons button{min-height:40px;padding:8px 12px;font-size:13px}
body.compact-navigation .sidecard.person{padding:12px;margin:10px 0;gap:8px;border-radius:16px}
body.compact-navigation .sidecard.person p{margin:4px 0;font-size:12px}
body.compact-navigation .sidecard.person button{min-height:40px;padding:8px;font-size:12px}

:root[data-app-theme="coral"]{--ink:#4b302b;--green:#ad4236;--muted:#826961;--line:#ecd7d0;--paper:#fff6f1;--surface:#fff;--soft:#fbe5dc;--theme-muted:#79594e}
:root[data-app-theme="lavender"]{--ink:#3a3156;--green:#6750a4;--muted:#786d8c;--line:#e1d9ee;--paper:#f8f5ff;--surface:#fff;--soft:#ece4fb;--theme-muted:#706182}
:root[data-app-theme="teal"]{--ink:#203f40;--green:#086b70;--muted:#607e7b;--line:#d3e7e2;--paper:#f0faf7;--surface:#fff;--soft:#dff2ec;--theme-muted:#4e706b}
:root[data-app-theme="amber"]{--ink:#473820;--green:#87570d;--muted:#80725b;--line:#eadfc7;--paper:#fffaed;--surface:#fffef9;--soft:#f6ebcf;--theme-muted:#756144}
:root[data-app-theme="navy"]{--ink:#e6edfa;--green:#94bfff;--muted:#acbbd3;--line:#334765;--paper:#101a2b;--surface:#1a2941;--soft:#293f60;--accent-text:#10233f;--theme-muted:#b5c5df}
:root[data-app-theme="berry"]{--ink:#f7e8f0;--green:#efabd1;--muted:#c9adbf;--line:#594050;--paper:#251923;--surface:#352530;--soft:#503447;--accent-text:#301c28;--theme-muted:#d8bbcd}
.theme-choice .theme-swatch{width:30px;height:30px;border-radius:8px;vertical-align:middle;margin-right:8px}.theme-choice{transition:border-color .15s,background-color .15s}.themed-logo{flex-shrink:0}.brand .themed-logo{color:var(--green)}

/* Larger brand lockup with identity aligned beneath notification/settings. */
body.compact-navigation main>header{grid-template-columns:minmax(0,1fr) 40px 40px;column-gap:6px;row-gap:3px}
body.compact-navigation main>header>.mobile-brand{grid-row:1 / 3;font-size:clamp(18px,5.4vw,23px);align-self:start;gap:7px}
body.compact-navigation .mobile-brand .brand-icon{width:46px;height:46px;margin:0;border-radius:12px}
body.compact-navigation .brand-tagline{font-size:clamp(8px,2.5vw,10px);letter-spacing:0;white-space:normal}
body.compact-navigation #accountHeader{grid-row:2;grid-column:2 / 4;text-align:right;font-size:9px;line-height:12px;white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%;margin:0}
body.compact-navigation .brand-copy{min-width:0}
@media(max-width:350px){body.compact-navigation .mobile-brand .brand-icon{width:40px;height:40px}body.compact-navigation main>header>.mobile-brand{gap:4px;font-size:17px}}
/* Compact identity: one photo/name/handle row, without oversized viewer button styles. */
.post-head .profile-avatar-link,#shortsViewer .short-author .profile-avatar-link{display:flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;min-height:32px;flex:0 0 32px;padding:0!important;border:0!important;border-radius:50%;background:transparent!important;box-shadow:none;backdrop-filter:none}
.post-head .profile-avatar-link .avatar,#shortsViewer .short-author .profile-avatar-link .avatar{width:32px;height:32px;min-width:32px;border-radius:50%;margin:0;font-size:11px;object-fit:cover}
.post-head .profile-name-link,#shortsViewer .short-author .profile-name-link{display:block;width:auto;max-width:100%;min-height:0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none;backdrop-filter:none;text-align:left;font-size:12px;line-height:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shortsViewer .short-author{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}
#shortsViewer .short-author>div{flex:1;min-width:0}
#shortsViewer .short-author small{display:block;font-size:10px;line-height:14px;margin:0;color:#e5e9e6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#shortsViewer .short-author>.reaction{min-height:28px;font-size:10px;padding:5px 8px;border-radius:16px;margin:0}
#shortsViewer .short-details{left:60px;right:14px;bottom:62px}
#shortsViewer .short-author .profile-name-link{color:#fff}
.media-slot img,.media-slot video,.short-media img,.short-media video{touch-action:manipulation}
.double-tap-heart{position:absolute;z-index:9;top:50%;left:50%;transform:translate(-50%,-50%);font-size:80px;color:#ff587c;filter:drop-shadow(0 3px 10px #0008);pointer-events:none;animation:media-heart .7s ease-out forwards}
@keyframes media-heart{0%{opacity:0;transform:translate(-50%,-50%) scale(.5)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-55%) scale(1)}}

/* Settings: consistent symbols alongside readable labels, in every theme. */
.settings-home button,.settings-home a.secondary,.android-download>a.primary{display:inline-flex;align-items:center;gap:12px;min-height:46px;white-space:normal;line-height:1.4}
.settings-home button svg,.settings-home a svg,.android-download svg{flex:0 0 22px;width:22px;height:22px;color:currentColor;pointer-events:none}
.settings-home button span,.settings-home a span{min-width:0;overflow-wrap:anywhere;text-align:left}
.settings-home .settings-grid section>button,.settings-home .settings-grid section>a.secondary{width:100%;justify-content:flex-start}
.settings-home summary svg,.android-download summary svg{display:inline-block;vertical-align:middle;margin-right:9px;width:20px;height:20px}
.settings-home summary span,.android-download summary span{vertical-align:middle}
.android-download>a.primary{justify-content:center}
/* Guided introduction: manual paging, readable steps and touch controls. */
.intro-guide{width:min(94vw,560px);max-height:92dvh;overflow:auto;border:1px solid var(--line);border-radius:26px;padding:24px;color:var(--ink);background:var(--paper,#fff);box-shadow:0 20px 90px #0003}
.intro-guide::backdrop{background:#13231dd0;backdrop-filter:blur(4px)}
.intro-top,.intro-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.intro-top{font-size:13px;color:var(--muted)}.intro-top button{min-height:44px}
#introSlide{touch-action:pan-y;text-align:center}.intro-art{height:116px;position:relative;display:grid;place-items:center;margin:6px 0 16px}.intro-symbol{width:90px;height:90px;border:1px solid var(--line);border-radius:26px;display:grid;place-items:center;background:var(--soft,#e9f1e4);color:var(--green);transform:rotate(-5deg)}.intro-symbol svg{width:44px;height:44px;transform:rotate(5deg)}.intro-orbit{position:absolute;width:150px;height:100px;border:1px dashed var(--green);border-radius:50%;opacity:.4;transform:rotate(-20deg)}
.intro-guide h2{font-size:26px;line-height:1.2;margin:0 0 12px}.intro-description{color:var(--muted);line-height:1.6;margin:0 auto 18px;max-width:440px}.intro-steps{counter-reset:intro;list-style:none;padding:0;margin:0;text-align:left;display:grid;gap:10px}.intro-steps li{counter-increment:intro;display:flex;align-items:flex-start;gap:12px;line-height:1.45;font-size:14px;padding:12px;background:var(--soft,#f5f6f3);border-radius:12px}.intro-steps li:before{content:counter(intro);flex:0 0 24px;height:24px;border-radius:50%;background:var(--green);color:var(--accent-text,#fff);text-align:center;line-height:24px;font-size:12px;font-weight:700}.intro-try{min-height:44px;margin:8px 0}
.intro-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:0;margin:4px 0 12px}.intro-dots button{background:transparent;border:0;width:28px;height:30px;padding:9px;min-height:30px}.intro-dots button:before{content:'';display:block;width:9px;height:9px;border-radius:50%;background:var(--muted);opacity:.3}.intro-dots button[aria-current=step]:before{background:var(--green);opacity:1;transform:scale(1.25)}.intro-controls button{min-width:88px;min-height:44px}.intro-controls>span{font-size:12px;color:var(--muted)}.intro-help-link{display:block;text-align:center;font-size:12px;margin-top:16px;color:var(--green);min-height:28px}.intro-guide button:focus-visible,.intro-guide a:focus-visible{outline:3px solid var(--green);outline-offset:3px}
@media(max-width:480px){.intro-guide{padding:18px;border-radius:20px}.intro-art{height:92px}.intro-symbol{width:72px;height:72px}.intro-guide h2{font-size:23px}.intro-steps li{padding:10px}.intro-description{font-size:14px}.intro-dots button{width:25px;padding:8px}}

/* Pointer tutorial gallery: only the chosen video downloads on Play. */
.tutorial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.tutorial-grid .tutorial-card{display:flex;align-items:center;text-align:left;gap:12px;padding:12px;width:100%;white-space:normal}
.tutorial-card img{width:65px;height:116px;object-fit:cover;border-radius:8px;flex-shrink:0}
.tutorial-card span{display:grid;gap:6px}.tutorial-card small{color:var(--muted);font-size:12px;line-height:1.4}
.tutorial-player{display:block;width:100%;max-height:65dvh;aspect-ratio:9/16;object-fit:contain;background:#102c25;border-radius:16px}
.tutorial-path{font-size:14px;line-height:1.5;color:var(--muted)}.tutorial-nav{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.settings-home .settings-grid>section>button:has([onclick]){max-width:100%}

/* Branded account opening screen: no account information is shown before authentication. */
body.lmc-opening>aside,body.lmc-opening>main>header,body.lmc-opening>.mobile-bar,body.lmc-opening>.floating-explore{display:none!important}body.lmc-opening>main{margin:0!important;padding:0!important;width:100%!important}body.lmc-opening #app>:not(.opening-brand-screen){visibility:hidden}.opening-brand-screen{position:fixed;inset:0;z-index:80;box-sizing:border-box;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:24px;text-align:center;color:var(--ink,#243d34);background:radial-gradient(ellipse at 30% 15%,var(--soft,#eaf2e8),transparent 65%),var(--paper,#f8f9f5)}.opening-art{position:relative;width:240px;height:230px;display:grid;place-items:center;flex-shrink:0}.opening-emblem{width:108px;height:108px;position:relative;z-index:2;filter:drop-shadow(0 16px 24px #10251b28)}.opening-emblem .brand-icon{display:block!important;width:108px!important;height:108px!important;border-radius:27px!important;margin:0!important}.opening-orbit{position:absolute;border:1px solid var(--green,#35644d);opacity:.16;border-radius:50%;inset:20px}.opening-orbit.orbit-two{inset:0;transform:rotate(-20deg) scaleX(1.16)}.opening-spark{position:absolute;width:12px;height:12px;border-radius:50%;background:var(--green,#35644d);opacity:.65}.spark-one{top:31px;right:38px}.spark-two{left:17px;bottom:48px;width:7px;height:7px}.opening-brand-title{font-family:inherit;font-size:clamp(32px,9vw,44px);font-weight:800;letter-spacing:-1.8px;line-height:1.1;margin:4px 0 12px}.opening-tagline{font-size:15px;line-height:1.5;margin:0;color:var(--muted,#6b7c70)}.opening-progress{display:flex;flex-direction:column;align-items:center;gap:14px;margin-top:44px;font-size:12px;color:var(--muted,#6b7c70)}.opening-dots{display:flex;gap:7px}.opening-dots i{width:6px;height:6px;border-radius:50%;background:var(--green,#35644d);animation:opening-pulse 1.2s ease-in-out infinite}.opening-dots i:nth-child(2){animation-delay:.15s}.opening-dots i:nth-child(3){animation-delay:.3s}.opening-signature{position:absolute;bottom:calc(30px + env(safe-area-inset-bottom));font-size:9px;letter-spacing:2.5px;color:var(--muted,#6b7c70);opacity:.8}@keyframes opening-pulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.opening-dots i{animation:none;opacity:.7}}@media(max-height:520px){.opening-art{height:150px;width:170px}.opening-progress{margin-top:20px}.opening-signature{display:none}}
