@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--bg:#0c1320;--sidebar:#101a2a;--panel:#131f30;--panel-2:#18263a;--panel-hover:#1b2b41;--text:#edf3fa;--muted:#8d9caf;--line:rgba(173,194,218,.12);--accent:#4fd1c5;--accent-2:#73e2d5;--accent-soft:rgba(79,209,197,.12);--purple:#a99af8;--orange:#f4b56a;--blue:#79b9f5;--shadow:0 18px 50px rgba(0,0,0,.16)}
:root[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--sidebar:#fff;--panel:#fff;--panel-2:#f3f6fa;--panel-hover:#edf3f8;--text:#172536;--muted:#6d7d90;--line:rgba(38,61,88,.12);--accent:#148f88;--accent-2:#0b766f;--accent-soft:rgba(20,143,136,.1);--purple:#7868d8;--orange:#c78332;--blue:#397fb9;--shadow:0 16px 40px rgba(30,55,80,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px;min-height:100vh}button,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--sidebar);border-right:1px solid var(--line);padding:27px 18px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 37px;text-decoration:none;color:var(--text)}.brand-mark{width:29px;height:29px;border:1px solid rgba(79,209,197,.65);border-radius:9px;display:flex;align-items:center;justify-content:center;gap:2px;transform:rotate(-8deg)}.brand-mark span{width:3px;border-radius:5px;background:var(--accent);display:block}.brand-mark span:nth-child(1){height:9px}.brand-mark span:nth-child(2){height:16px}.brand-mark span:nth-child(3){height:12px}.brand-name{font:800 22px Manrope,sans-serif;letter-spacing:-1px}.brand-name span{color:var(--accent)}.workspace-label,.eyebrow{font-size:9px;letter-spacing:1.55px;font-weight:700;color:var(--muted)}.workspace-label{padding:0 12px 12px}.main-nav{display:grid;gap:5px}.nav-item{width:100%;height:43px;border:0;background:transparent;color:var(--muted);display:flex;align-items:center;gap:12px;padding:0 12px;border-radius:9px;text-align:left;font-size:13px;transition:.18s}.nav-item:hover{background:var(--panel-hover);color:var(--text)}.nav-item.active{background:var(--accent-soft);color:var(--accent);font-weight:700}.nav-icon{font-size:18px;width:19px;text-align:center}.nav-pill{font-size:8px;letter-spacing:.7px;margin-left:auto;background:rgba(79,209,197,.15);color:var(--accent);padding:4px 6px;border-radius:5px}.sidebar-bottom{margin-top:auto}.model-card{background:linear-gradient(145deg,rgba(79,209,197,.12),rgba(79,209,197,.035));border:1px solid rgba(79,209,197,.16);border-radius:12px;padding:14px;margin:0 2px 18px}.model-card-top{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700}.pulse-dot,.status-dot,.live-dot{width:7px;height:7px;border-radius:50%;background:#42c99c;box-shadow:0 0 0 4px rgba(66,201,156,.1)}.model-card p{color:var(--muted);font-size:10px;line-height:1.6;margin:9px 0}.text-button{padding:0;border:0;background:none;color:var(--accent);font-size:10px;font-weight:700}.settings-link{margin-bottom:14px}.profile-mini{border-top:1px solid var(--line);padding:16px 6px 0;display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-weight:800}.profile-mini strong,.profile-mini small{display:block}.profile-mini strong{font-size:11px}.profile-mini small{font-size:9px;color:var(--muted);margin-top:3px}.profile-more{margin-left:auto;color:var(--muted);letter-spacing:2px}.main-content{margin-left:252px;min-height:100vh;padding:0 43px;max-width:1600px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:11px}.crumb-slash{opacity:.45}.breadcrumb strong{color:var(--text);font-weight:600}.top-actions{display:flex;align-items:center;gap:13px}.status-chip{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:10px}.status-dot{background:#d4a44d;box-shadow:0 0 0 4px rgba(212,164,77,.1)}.status-dot.online{background:#42c99c;box-shadow:0 0 0 4px rgba(66,201,156,.1)}.status-dot.offline{background:#e27676;box-shadow:0 0 0 4px rgba(226,118,118,.1)}.select-control{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:8px;padding:8px 10px;font-size:10px;outline:none}.icon-button{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font-size:16px}.mobile-menu{display:none}.page{display:none;padding:37px 0 25px;animation:fadeIn .25s ease}.active-page{display:block}@keyframes fadeIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.welcome-row{display:flex;align-items:center;justify-content:space-between;min-height:220px;position:relative;overflow:hidden}.welcome-row h1,.page-intro h1{font:800 clamp(34px,4vw,49px)/1.13 Manrope,sans-serif;letter-spacing:-2.2px;margin:13px 0 12px}.welcome-row h1 span{color:var(--accent)}.hero-copy,.page-intro p{color:var(--muted);font-size:13px;line-height:1.7;max-width:480px;margin:0}.hero-orbit{width:215px;height:195px;position:relative;margin-right:7%;display:grid;place-items:center}.orbit{position:absolute;border:1px solid rgba(79,209,197,.16);border-radius:50%;transform:rotate(-24deg)}.orbit-one{width:190px;height:100px}.orbit-two{width:145px;height:165px;transform:rotate(45deg)}.orbit-core{width:69px;height:69px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#244e59,#17313e);border:1px solid rgba(79,209,197,.4);box-shadow:0 0 55px rgba(79,209,197,.18);font:800 27px Manrope;color:#e9fffc}.orbit-core span{font-size:9px;color:#6ce1d2;position:absolute;margin:29px 0 0 31px}.orbit-node{position:absolute;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 13px var(--accent)}.node-a{top:26px;left:55px}.node-b{right:19px;top:87px}.node-c{bottom:16px;left:79px}.quick-start-card{display:flex;align-items:center;gap:16px;padding:17px 20px;border-radius:13px;border:1px solid rgba(79,209,197,.2);background:linear-gradient(100deg,rgba(79,209,197,.105),rgba(79,209,197,.025));margin:22px 0 38px}.quick-icon{width:38px;height:38px;border-radius:11px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:22px}.quick-copy{display:grid;gap:4px;flex:1}.quick-copy strong{font-size:12px}.quick-copy span{font-size:10px;color:var(--muted)}.primary-button,.secondary-button{border:0;border-radius:8px;padding:11px 15px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;gap:13px;justify-content:center}.primary-button{background:var(--accent);color:#09211f}.primary-button:hover{background:var(--accent-2)}.secondary-button{background:var(--accent-soft);color:var(--accent);border:1px solid rgba(79,209,197,.18)}.section-heading,.panel-heading{display:flex;align-items:end;justify-content:space-between}.section-heading{margin-bottom:17px}.section-heading h2{font:700 20px Manrope;margin:7px 0 0;letter-spacing:-.5px}.subtle-note{font-size:10px;color:var(--muted)}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.feature-card{min-height:155px;position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:17px;color:var(--text);transition:.2s}.feature-card:hover{transform:translateY(-3px);border-color:rgba(79,209,197,.35);background:var(--panel-hover)}.feature-highlight{border-color:rgba(79,209,197,.25)}.feature-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-size:19px;margin-bottom:17px}.feature-icon.purple,.placeholder-icon.purple{background:rgba(169,154,248,.12);color:var(--purple)}.feature-icon.orange,.placeholder-icon.orange{background:rgba(244,181,106,.12);color:var(--orange)}.feature-icon.blue,.placeholder-icon.blue{background:rgba(121,185,245,.12);color:var(--blue)}.feature-tag{position:absolute;right:14px;top:17px;font-size:8px;color:var(--accent);letter-spacing:.7px}.feature-card strong{font-size:12px;margin-bottom:6px}.feature-card small{font-size:10px;color:var(--muted);line-height:1.5;max-width:190px}.feature-arrow{position:absolute;right:15px;bottom:15px;color:var(--muted)}.bottom-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:13px;margin-top:14px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px}.bottom-grid>.panel{padding:19px}.panel-heading{align-items:center}.panel-heading h3{font:700 14px Manrope;margin:6px 0 0}.soft-badge{font-size:9px;padding:6px 8px;border-radius:6px;background:var(--panel-2);color:var(--muted)}.empty-state{text-align:center;padding:24px 15px 9px}.empty-illustration{font-size:31px;color:var(--accent);margin-bottom:9px}.empty-state strong{font-size:11px}.empty-state p{color:var(--muted);font-size:10px;line-height:1.6;max-width:260px;margin:7px auto 13px}.empty-state .secondary-button{padding:9px 12px}.system-symbol{width:32px;height:32px;border-radius:9px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:18px}.system-panel>p{font-size:10px;color:var(--muted);line-height:1.7;margin:18px 0}.provider-list{display:flex;gap:12px;flex-wrap:wrap}.provider-list span{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:6px}.provider-dot{width:7px;height:7px;border-radius:50%;display:inline-block}.dot-gemini{background:#8e9af8}.dot-openai{background:#58c9a2}.dot-local{background:#e8aa62}.footnote{display:block;font-size:8px;color:var(--muted);line-height:1.5;margin-top:12px}.footer{border-top:1px solid var(--line);padding:18px 0 22px;margin-top:28px;display:flex;gap:18px;color:var(--muted);font-size:9px}.footer-free{margin-left:auto;color:var(--accent);letter-spacing:1px;font-weight:700}.page-intro{margin:14px 0 28px}.page-intro h1{font-size:36px;margin:10px 0}.page-intro p{font-size:12px}.chat-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px}.chat-main{min-height:570px;display:flex;flex-direction:column;overflow:hidden}.chat-toolbar{padding:15px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.assistant-identity{display:flex;align-items:center;gap:10px}.assistant-avatar{width:34px;height:34px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);border-radius:10px;font-size:20px}.assistant-identity strong,.assistant-identity small{display:block}.assistant-identity strong{font-size:11px}.assistant-identity small{font-size:9px;color:var(--muted);margin-top:4px}.live-dot{display:inline-block;width:6px;height:6px;margin-right:5px}.chat-messages{flex:1;padding:22px 18px;overflow:auto;min-height:300px;max-height:440px}.message{display:flex;gap:10px;margin-bottom:17px;max-width:90%}.user-message{margin-left:auto;flex-direction:row-reverse}.message-avatar{width:27px;height:27px;flex:0 0 27px;border-radius:8px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:10px;font-weight:800}.user-message .message-avatar{background:var(--panel-2);color:var(--text)}.message-author{font-size:9px;color:var(--muted);margin-bottom:6px}.user-message .message-author{text-align:right}.message-bubble{background:var(--panel-2);padding:11px 13px;border-radius:3px 11px 11px 11px;font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.user-message .message-bubble{background:var(--accent-soft);border-radius:11px 3px 11px 11px}.suggestion-row{padding:0 18px 12px;display:flex;gap:7px;flex-wrap:wrap}.suggestion{border:1px solid var(--line);background:transparent;color:var(--muted);padding:7px 9px;border-radius:7px;font-size:9px}.suggestion:hover{color:var(--accent);border-color:var(--accent)}.chat-composer{margin:0 14px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);padding:10px}.chat-composer textarea{width:100%;resize:vertical;min-height:40px;max-height:140px;border:0;outline:0;background:transparent;color:var(--text);font-size:11px;line-height:1.6}.composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.composer-bottom>span{font-size:8px;color:var(--muted)}.send-button{width:31px;height:31px;border:0;border-radius:8px;background:var(--accent);color:#08221f;font-size:19px;font-weight:700}.send-button:disabled{opacity:.5;cursor:wait}.chat-side{display:grid;align-content:start;gap:12px}.side-panel{padding:17px}.side-panel h3{font:700 14px Manrope;margin:7px 0}.side-panel>p,.privacy-panel p{font-size:10px;color:var(--muted);line-height:1.7;margin:0 0 17px}.route-step{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.route-step>span{font:700 10px Manrope;color:var(--accent)}.route-step strong,.route-step small{display:block}.route-step strong{font-size:10px}.route-step small{font-size:9px;color:var(--muted);margin-top:4px}.privacy-panel{padding:16px}.privacy-icon{display:block;color:var(--accent);font-size:20px;margin-bottom:9px}.privacy-panel strong{font-size:11px}.privacy-panel p{margin:6px 0 0}.feature-placeholder{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:35px}.placeholder-icon{width:53px;height:53px;border-radius:15px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-size:25px;margin-bottom:15px}.feature-placeholder h2{font:700 19px Manrope;margin:0 0 8px}.feature-placeholder p{font-size:11px;color:var(--muted);line-height:1.7;max-width:450px;margin:0 0 17px}.settings-panel{padding:6px 20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.setting-row:last-of-type{border:0}.setting-row strong,.setting-row small{display:block}.setting-row strong{font-size:11px}.setting-row small{font-size:9px;color:var(--muted);margin-top:4px}.provider-status-list{padding:0 0 14px;display:flex;gap:8px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.provider-status{padding:7px 9px;border-radius:7px;background:var(--panel-2);display:flex;align-items:center;gap:6px}.provider-status i{width:6px;height:6px;border-radius:50%;background:#d4a44d}.provider-status i.ready{background:#42c99c}.toast{position:fixed;bottom:22px;right:24px;max-width:min(420px,calc(100vw - 40px));background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);padding:12px 15px;border-radius:9px;font-size:11px;color:var(--text);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:30}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1100px){.main-content{padding:0 27px}.feature-grid{grid-template-columns:repeat(2,1fr)}.hero-orbit{margin-right:2%}.chat-layout{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:800px){.sidebar{transform:translateX(-100%);transition:transform .25s;box-shadow:var(--shadow)}.sidebar.open{transform:translateX(0)}.main-content{margin-left:0;padding:0 20px}.mobile-menu{display:block;margin-right:10px}.topbar{height:65px}.breadcrumb{margin-right:auto}.status-chip{display:none}.welcome-row{min-height:200px}.hero-orbit{transform:scale(.78);transform-origin:center right;margin-right:-15px}.chat-layout{grid-template-columns:1fr}.chat-side{grid-template-columns:1fr 1fr}.chat-main{min-height:520px}}
@media(max-width:560px){.main-content{padding:0 15px}.topbar{gap:8px}.top-actions{gap:7px}.welcome-row{min-height:190px}.welcome-row h1{font-size:35px}.hero-copy{font-size:11px;max-width:270px}.hero-orbit{position:absolute;right:-45px;opacity:.32;pointer-events:none}.quick-start-card{align-items:flex-start;flex-wrap:wrap;padding:14px;margin:17px 0 29px}.quick-copy{min-width:calc(100% - 60px)}.quick-start-card .primary-button{margin-left:54px}.section-heading{align-items:flex-start}.section-heading h2{font-size:17px}.subtle-note{display:none}.feature-grid{gap:8px}.feature-card{min-height:145px;padding:13px}.feature-card strong{font-size:11px}.feature-card small{font-size:9px}.bottom-grid{grid-template-columns:1fr}.footer{flex-wrap:wrap;gap:8px}.footer-free{margin-left:0}.page-intro h1{font-size:30px}.chat-side{grid-template-columns:1fr}.chat-toolbar{padding:12px}.chat-messages{padding:16px 12px}.suggestion-row{padding:0 12px 10px}.chat-composer{margin:0 9px 10px}.setting-row{align-items:flex-start;flex-direction:column}.setting-row select,.setting-row button{align-self:stretch}.feature-placeholder{padding:25px 18px}}

/* Functional learning tools */
.chat-toolbar-actions{display:flex;align-items:center;gap:8px}.tool-form{max-width:760px;margin:0 auto;padding:26px;display:grid;gap:12px}.tool-form h2{font:700 18px Manrope;margin:0 0 8px}.tool-form label{font-size:11px;color:var(--muted);font-weight:700}.tool-form input,.tool-form textarea,.tool-form select{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:11px 12px;font:inherit;font-size:12px;outline:none}.tool-form textarea{resize:vertical;line-height:1.6}.tool-form input:focus,.tool-form textarea:focus,.tool-form select:focus{border-color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid>div{display:grid;gap:8px}.tool-form .primary-button{justify-self:start;margin-top:5px}.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.progress-stat{padding:24px;display:grid;gap:12px}.progress-stat span{font-size:11px;color:var(--muted)}.progress-stat strong{font:700 24px Manrope;color:var(--accent);overflow-wrap:anywhere}.progress-stat:last-child strong{font-size:14px;color:var(--text)}
@media(max-width:560px){.tool-form{padding:18px}.form-grid,.progress-grid{grid-template-columns:1fr}.chat-toolbar-actions{align-items:flex-end;flex-direction:column}.chat-toolbar-actions .select-control{max-width:130px}}

.muted-help{display:block;color:var(--muted);font-size:10px;line-height:1.55}
#voiceListen,#voiceSpeak{white-space:nowrap}

/* v0.6 translator, account, achievements and leaderboard */
.translator-tool{max-width:860px}.translator-languages{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end}.swap-languages{height:39px;white-space:nowrap}.translation-result{border-top:1px solid var(--line);padding-top:16px;margin-top:8px}.translation-result-head,.leaderboard-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.translation-result-head strong{font:700 14px Manrope}.translation-output{margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;min-height:80px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.account-grid .tool-form{margin:0;max-width:none}.account-config,.account-auth,.profile-details{padding:20px}.account-auth h2,.account-config h2,.profile-details h2{margin-bottom:2px}.auth-actions{display:flex;flex-wrap:wrap;gap:9px}.auth-actions button{justify-self:stretch}.signout-button{justify-self:start}.profile-details{max-width:none;margin:14px auto 0}.achievement-panel,.leaderboard-panel{padding:22px;margin-top:16px}.achievement-panel .panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.achievement-panel h3{font:700 18px Manrope;margin:5px 0}.achievement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.achievement-card{padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);display:grid;gap:7px}.achievement-card>span{font-size:23px;color:var(--accent)}.achievement-card strong{font-size:12px}.achievement-card small{font-size:10px;color:var(--muted);line-height:1.5}.achievement-card.locked{opacity:.52;filter:grayscale(1)}.leaderboard-head h2{font:700 18px Manrope;margin:0 0 5px}.leaderboard-table-wrap{overflow-x:auto;margin-top:18px}.leaderboard-table{width:100%;border-collapse:collapse;font-size:12px}.leaderboard-table th,.leaderboard-table td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line)}.leaderboard-table th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted)}.leaderboard-table tbody tr:first-child td:first-child{color:var(--accent);font-weight:800}.leaderboard-table td:last-child{font-weight:800;color:var(--accent)}
@media(max-width:700px){.account-grid{grid-template-columns:1fr}.achievement-grid{grid-template-columns:1fr}.translator-languages{grid-template-columns:1fr}.swap-languages{justify-self:start}.leaderboard-head{align-items:flex-start;flex-direction:column}}

/* Hide admin-only fallback configuration when server config is active. */
#supabaseConfigForm[hidden]{display:none!important}


/* Zamon AI v0.8: profiles, levels, streaks, daily tasks and activity history */
[hidden]{display:none!important}
.profile-editor-heading{display:flex;align-items:center;gap:14px;margin-bottom:4px}.profile-editor-heading h2{margin:0}.profile-avatar-large{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--accent-soft);font-size:30px;border:1px solid var(--line)}
.progress-stat small{font-size:10px;color:var(--muted)}.daily-panel,.history-panel{padding:22px;margin-top:16px}.daily-panel h3,.history-panel h3{font:700 18px Manrope;margin:5px 0}.daily-task-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.daily-task{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:8px}.daily-task strong{font-size:12px}.daily-task small{font-size:10px;color:var(--muted);line-height:1.5}.daily-task.completed{border-color:rgba(66,201,156,.45);background:rgba(66,201,156,.06)}.daily-task .task-state{font-size:10px;color:var(--accent);font-weight:700}.learning-history{display:grid;gap:0;margin-top:12px}.history-row{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line)}.history-row:last-child{border-bottom:0}.history-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);font-size:16px}.history-copy{min-width:0;flex:1}.history-copy strong,.history-copy small{display:block}.history-copy strong{font-size:11px}.history-copy small{font-size:9px;color:var(--muted);margin-top:4px}.history-xp{font-size:10px;color:var(--accent);font-weight:800;white-space:nowrap}.leaderboard-search-label{display:block;margin-top:15px;font-size:10px;color:var(--muted);font-weight:700}.leaderboard-search{width:100%;max-width:360px;margin-top:7px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:10px 12px;font:inherit;font-size:12px}.leaderboard-avatar{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--accent-soft);margin-right:8px;vertical-align:middle}.leaderboard-name{display:inline-flex;align-items:center}
@media(max-width:700px){.daily-task-grid{grid-template-columns:1fr}.progress-grid{grid-template-columns:1fr 1fr}.history-row{gap:8px}.daily-panel,.history-panel{padding:17px}}

/* Search-friendly, human-readable overview content */
.seo-section{margin-top:30px;padding:24px 0 8px;border-top:1px solid var(--line);color:var(--text)}.seo-section h2{font:700 19px/1.35 Manrope,sans-serif;letter-spacing:-.35px;margin:9px 0 10px}.seo-section>p{max-width:850px;color:var(--muted);font-size:11px;line-height:1.8}.seo-feature-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}.seo-feature-list>div{padding:15px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.seo-feature-list h3{font:700 12px Manrope;margin:0 0 7px}.seo-feature-list p,.seo-faq p{font-size:10px;line-height:1.7;color:var(--muted);margin:0}.seo-faq{display:grid;gap:8px;margin:12px 0}.seo-faq details{padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}.seo-faq summary{font-size:11px;font-weight:700;cursor:pointer}.seo-faq p{padding-top:8px}.seo-section .seo-note{font-size:9px;font-style:italic}@media(max-width:760px){.seo-feature-list{grid-template-columns:1fr}.seo-section{padding-top:20px}.seo-section h2{font-size:17px}}

/* Zamon Community v0.9 */
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}.community-main{min-width:0}.community-compose{padding:19px;margin-bottom:14px}.community-compose-top{display:flex;align-items:center;gap:11px;margin-bottom:13px;font-size:13px}.community-avatar{width:39px;height:39px;display:grid;place-items:center;flex:0 0 39px;border-radius:13px;background:var(--accent-soft);font-size:20px}.community-compose textarea{width:100%;resize:vertical;min-height:95px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);padding:13px;font:inherit;font-size:12px;line-height:1.65}.community-compose-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}.community-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:12px}.community-tab{border:0;background:transparent;color:var(--muted);padding:11px 14px;font:inherit;font-size:11px;cursor:pointer;border-bottom:2px solid transparent}.community-tab.active{color:var(--accent);border-color:var(--accent);font-weight:800}.community-feed{display:grid;gap:12px}.community-post{padding:18px}.community-post-head{display:flex;align-items:center;gap:10px}.community-author{display:grid;gap:3px;min-width:0;flex:1}.community-author strong{font-size:12px}.community-author small,.community-comment small{font-size:9px;color:var(--muted)}.community-follow{border:1px solid var(--line);background:transparent;color:var(--accent);border-radius:8px;padding:7px 10px;font:inherit;font-size:10px;cursor:pointer}.community-follow:disabled{opacity:.5}.community-post-content{font-size:12px;line-height:1.8;margin:15px 0;overflow-wrap:anywhere}.community-hashtag{color:var(--accent);font-weight:700;text-decoration:none}.community-post-actions{display:flex;gap:17px;border-top:1px solid var(--line);padding-top:11px}.community-post-actions button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;cursor:pointer}.community-post-actions button.liked{color:#e46b88}.community-comments{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.community-comment{padding:9px 0;border-bottom:1px solid var(--line)}.community-comment strong{font-size:10px;margin-right:8px}.community-comment p{font-size:11px;line-height:1.6;margin:5px 0}.community-comment-form{display:flex;gap:8px;margin-top:10px}.community-comment-form input,.community-widget input{min-width:0;flex:1;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);padding:10px;font:inherit;font-size:11px}.community-aside{display:grid;gap:12px}.community-widget{padding:17px}.community-widget h3{font:700 13px Manrope;margin:0 0 13px}.community-tags{display:flex;flex-wrap:wrap;gap:7px}.community-tag{border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--accent);padding:7px 10px;font:inherit;font-size:10px;cursor:pointer}.community-tag small{color:var(--muted)}.community-space-list{display:grid;gap:10px;font-size:11px;color:var(--muted)}.community-profile-card{display:flex;align-items:center;gap:9px;font-size:11px;margin-bottom:12px}.community-empty{padding:30px;text-align:center;color:var(--muted);font-size:12px;line-height:1.7}.community-widget .secondary-button{margin-top:9px}.community-widget .leaderboard-search{max-width:none}
@media(max-width:900px){.community-layout{grid-template-columns:1fr}.community-aside{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.community-aside{grid-template-columns:1fr}.community-compose-bottom{align-items:flex-start;flex-direction:column}.community-compose-bottom .primary-button{width:100%}.community-post{padding:14px}.community-tab{padding:10px 8px}.community-comment-form{flex-wrap:wrap}.community-comment-form input{flex-basis:100%}}

/* Zamon Community full social workspace */
.community-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;padding:10px;position:sticky;top:72px;z-index:5;backdrop-filter:blur(14px)}
.community-toolbar .community-tab{border:0;border-radius:10px;padding:10px 15px;background:transparent;color:var(--muted);cursor:pointer;font:inherit}
.community-toolbar .community-tab.active{background:var(--bg);color:var(--text);font-weight:700}
.community-view{display:none}.community-view.active-view{display:block}.community-split{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(320px,1.5fr);gap:18px;align-items:start}.community-widget h2{margin:0 0 12px}.community-space-list{display:flex;flex-direction:column;gap:8px}.community-space-item,.community-channel-item,.community-dm-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--bg);color:var(--text);cursor:pointer}.community-space-item:hover,.community-channel-item:hover,.community-dm-item:hover{border-color:var(--accent)}.community-space-item small,.community-dm-item small{display:block;color:var(--muted);margin-top:3px}.community-space-item.active,.community-channel-item.active,.community-dm-item.active{border-color:var(--accent);background:var(--accent-soft)}.community-chat-log{height:390px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:12px;margin:14px 0;background:var(--bg);border:1px solid var(--line);border-radius:14px}.community-chat-message{max-width:88%;padding:10px 12px;border-radius:12px;background:var(--panel);border:1px solid var(--line);overflow-wrap:anywhere}.community-chat-message.mine{align-self:flex-end;background:var(--accent-soft)}.community-chat-message small{display:block;color:var(--muted);font-size:11px;margin-bottom:4px}.community-send-form{display:flex;gap:8px}.community-send-form input{flex:1;min-width:0}.community-send-form input,.community-comment-form input{border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);padding:12px}.community-inline-actions{display:flex;gap:8px;align-items:center}.community-profile-link{cursor:pointer}.community-notice{padding:12px;border-bottom:1px solid var(--line)}.community-notice small{display:block;color:var(--muted);margin-top:4px}
@media(max-width:800px){.community-split{grid-template-columns:1fr}.community-chat-log{height:320px}.community-toolbar{top:58px}.community-send-form{flex-wrap:wrap}.community-send-form input{width:100%;flex-basis:100%}}

/* Zamon AI v1.0 foundation */
.site-footer{display:grid;grid-template-columns:1.5fr repeat(3,minmax(130px,1fr));gap:28px;margin-top:42px;padding:30px 0 18px;border-top:1px solid var(--line)}.site-footer-brand p{max-width:250px;color:var(--muted);font-size:11px;line-height:1.7}.footer-brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font:800 16px Manrope}.footer-brand .brand-mark{transform:scale(.82);transform-origin:left center}.site-footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:10px}.site-footer-column h3{font:700 12px Manrope;margin:4px 0 5px}.site-footer-column a,.footer-muted{font-size:11px;color:var(--muted);text-decoration:none}.site-footer-column a:hover{color:var(--accent)}.site-footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}#authForm[hidden]{display:none!important}
@media(max-width:800px){.site-footer{grid-template-columns:1fr 1fr;gap:22px}.site-footer-brand{grid-column:1/-1}.site-footer-bottom{flex-direction:column}}

/* Zamon AI v1.1 — subtle, performance-friendly motion */
:root{scroll-behavior:smooth}
button,.panel,.feature-card,.community-post,.community-widget,.tool-form,.achievement-card,.progress-stat,.nav-item,.icon-button,.primary-button,.secondary-button,.send-button{transition:transform .22s cubic-bezier(.2,.75,.25,1),border-color .22s ease,background-color .22s ease,box-shadow .22s ease,color .22s ease,opacity .22s ease}
.feature-card:hover,.achievement-card:hover,.progress-stat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.panel,.community-post,.community-widget,.tool-form{animation:softRise .42s both;animation-timing-function:cubic-bezier(.2,.7,.25,1)}
.message{animation:messageEnter .28s both cubic-bezier(.2,.75,.25,1);transform-origin:bottom left}
.user-message{transform-origin:bottom right}
.message-bubble{transition:background-color .2s ease,box-shadow .2s ease}
.send-button:hover:not(:disabled),.primary-button:hover,.secondary-button:hover,.icon-button:hover{transform:translateY(-2px)}
.send-button:active:not(:disabled),.primary-button:active,.secondary-button:active,.icon-button:active{transform:scale(.97)}
.nav-item:active,.community-tab:active,.suggestion:active{transform:scale(.985)}
.ai-thinking{min-width:58px;min-height:34px;font-size:0!important;display:flex;align-items:center;gap:5px}
.ai-thinking::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);animation:thinkingPulse 1s infinite ease-in-out}
.ai-thinking::after{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:11px 0 0 var(--accent),22px 0 0 var(--accent);animation:thinkingPulse 1s .16s infinite ease-in-out}
@keyframes softRise{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes messageEnter{from{opacity:0;transform:translateY(7px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes thinkingPulse{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* v1.2: readable assistant typography and rendered Markdown */
:root[data-theme="light"]{--text:#142235;--muted:#52647a;--line:rgba(31,53,78,.16);--panel-2:#f0f4f8;--bg:#f5f8fc}
:root[data-theme="light"] body{font-family:'DM Sans','Manrope',sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
:root[data-theme="light"] .message-bubble{color:#192b40;background:#f1f5f9;font-size:14px;line-height:1.8}
:root[data-theme="light"] .user-message .message-bubble{color:#123b3a;background:#e4f4f1}
.message-bubble p{margin:0 0 .65em}.message-bubble p:last-child{margin-bottom:0}.message-bubble strong{font-weight:750;color:var(--text)}.message-bubble em{font-style:italic}.message-bubble h3,.message-bubble h4,.message-bubble h5,.message-bubble h6{font:700 1.08em Manrope,sans-serif;margin:.8em 0 .35em;color:var(--text)}.message-bubble ul,.message-bubble ol{padding-left:1.5em;margin:.35em 0 .75em}.message-bubble li{margin:.2em 0}.message-bubble code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.92em;background:rgba(120,140,160,.14);padding:.12em .35em;border-radius:5px}.message-bubble pre.ai-code{white-space:pre;overflow-x:auto;padding:12px;border-radius:9px;background:#101a28;color:#e8f0fa;margin:.65em 0}.message-bubble pre.ai-code code{background:transparent;padding:0;color:inherit}.message-bubble del{opacity:.75}

/* v1.3 community polish */
.community-stories{margin:0 0 18px;padding:18px 20px;overflow:hidden}
.community-stories-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.community-stories-head>div{display:grid;gap:3px}.community-stories-head strong{font-size:1rem}.community-stories-head small{color:var(--muted,#8792a5);font-size:.78rem}
.community-stories-list{display:flex;gap:14px;overflow-x:auto;padding:3px 2px 8px;min-height:84px;align-items:flex-start}
.community-story{border:0;background:transparent;color:inherit;display:grid;justify-items:center;gap:5px;min-width:70px;cursor:pointer;transition:transform .2s ease}
.community-story:hover{transform:translateY(-3px)}.community-story-ring{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:1.45rem;background:linear-gradient(145deg,#8b5cf6,#22c5d8);padding:3px;outline:2px solid color-mix(in srgb,#8b5cf6 45%,transparent);outline-offset:2px}
.community-story strong{font-size:.72rem;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-story small{font-size:.65rem;color:var(--muted,#8792a5)}
.community-layout{align-items:start}.community-main,.community-aside{min-width:0}.community-post,.community-widget,.community-compose{border-radius:18px}.community-feed{display:grid;gap:14px}.community-tab{transition:background .18s ease,color .18s ease,transform .18s ease}.community-tab:active,.secondary-button:active,.primary-button:active{transform:scale(.98)}
.file-pick{display:inline-flex;align-items:center;cursor:pointer}
@media(max-width:640px){.community-stories{padding:14px}.community-stories-head{align-items:flex-start}.community-stories-head .secondary-button{font-size:.75rem;padding:9px}.community-layout{display:block}.community-aside{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.community-story,.community-tab{transition:none}}
