/* A separate, deliberately smaller interface. Desktop keeps its existing layout. */
html[data-layout=mobile]{font-size:16px}
html[data-layout=mobile],html[data-layout=mobile] body{height:100%;overflow:hidden}
html[data-layout=mobile] .app-shell{display:block}
html[data-layout=mobile] .sidebar,html[data-layout=mobile] .sidebar-scrim,
html[data-layout=mobile] .topbar>.mobile-menu,html[data-layout=mobile] .topbar>.breadcrumb,
html[data-layout=mobile] #todayLabel,html[data-layout=mobile] #workspaceBadge,
html[data-layout=mobile] .topbar .divider-vertical,html[data-layout=mobile] #activePracticeButton{display:none}
html[data-layout=mobile] .workspace{margin:0 auto;width:100%;max-width:760px;min-width:0;height:100dvh;border-inline:1px solid var(--line);background:var(--bg)}
html[data-layout=mobile] .topbar{min-height:64px;height:64px;padding:10px 18px;gap:12px;flex-shrink:0}
html[data-layout=mobile] .top-actions{margin-left:auto;gap:8px}
html[data-layout=mobile] .mobile-brand{display:flex;align-items:center;gap:10px;max-width:calc(100% - 60px);min-width:0;padding:0;border:0;background:none;color:var(--ink);text-align:left}
html[data-layout=mobile] .mobile-brand [data-brand-name]{font-size:1.125rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-layout=mobile] .mobile-brand .brand-mark{display:grid;place-items:center;width:34px;height:34px;font-size:1.375rem;border-radius:10px;flex:none}
html[data-layout=mobile] #main{width:100%;max-width:none;min-width:0;padding:24px 18px calc(100px + env(safe-area-inset-bottom));overflow:auto;scroll-padding-top:16px;flex:1}
html[data-layout=mobile] .app-footer{display:none}
html[data-layout=mobile] .mobile-bottom-nav{position:fixed;z-index:40;bottom:0;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,760px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface);box-shadow:0 -4px 20px #00000006}
.mobile-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:50px;min-width:0;padding:5px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:.6875rem;line-height:1.3;font-weight:650}
.mobile-bottom-nav button svg{width:22px;height:22px}
.mobile-bottom-nav button[aria-current]{color:var(--primary);background:var(--surface-soft)}
.mobile-home{display:grid;gap:24px}
.mobile-welcome{padding:7px 0}
.mobile-welcome .page-eyebrow{font-size:.625rem;letter-spacing:.1em}
.mobile-welcome h1{font-size:1.875rem;line-height:1.2;letter-spacing:-.04em;margin:9px 0}
.mobile-welcome p{color:var(--muted);font-size:.9375rem}
.mobile-area-list{display:grid;gap:14px}
.mobile-area-card{display:flex;align-items:flex-start;gap:16px;min-width:0;width:100%;padding:22px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);text-align:left;color:var(--ink)}
.mobile-area-card:hover{border-color:var(--primary)}
.mobile-area-icon{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:12px;background:var(--surface-soft);color:var(--primary)}
.mobile-area-icon svg{width:22px;height:22px}
.mobile-area-copy{min-width:0;flex:1}
.mobile-area-copy>small{display:block;color:var(--muted);font-size:.625rem;letter-spacing:.09em;margin-bottom:7px}
.mobile-area-copy h2{font-size:1.125rem;line-height:1.35;font-weight:700;margin:0}
.mobile-area-copy p{font-size:.875rem;color:var(--muted);line-height:1.6;margin:8px 0 15px}
.mobile-area-cta{display:flex;align-items:center;gap:8px;color:var(--primary);font-size:.8125rem;font-weight:650}
.mobile-area-cta svg{width:15px;height:15px}
.mobile-resume{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid var(--accent-line);border-radius:12px;color:var(--primary);background:var(--surface-soft);text-align:left}
.mobile-resume>span{flex:1;min-width:0}
.mobile-resume strong,.mobile-resume small{display:block;line-height:1.5}
.mobile-resume strong{font-size:.875rem}.mobile-resume small{font-size:.75rem;font-weight:400;color:var(--muted)}
.mobile-home-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.mobile-home-links .link-line{font-size:.8125rem;min-height:44px}
.mobile-full-link{display:flex;justify-content:center;align-items:center;gap:8px;font-size:.8125rem;color:var(--muted);padding:5px}
.mobile-full-link svg{width:15px;height:15px}
.mobile-community{display:grid;justify-items:start;gap:16px}
.mobile-community-icon{display:grid;place-items:center;width:56px;height:56px;background:var(--surface-soft);color:var(--primary);border-radius:14px}
.mobile-community h2{font-size:1.4rem;line-height:1.3}
.mobile-community p{font-size:.9375rem;line-height:1.7;color:var(--muted)}
html[data-layout=mobile] .page-heading{margin-bottom:22px}
html[data-layout=mobile] .page-heading h1{font-size:1.625rem;line-height:1.25}
html[data-layout=mobile] .page-heading p{font-size:.875rem;line-height:1.6}
html[data-layout=mobile] .page-heading .page-eyebrow{font-size:.625rem}
html[data-layout=mobile] .page-heading .btn{min-height:42px}
html[data-layout=mobile] .panel{padding:19px;border-radius:13px}
html[data-layout=mobile] .product-filters,html[data-layout=mobile] .scenario-grid,
html[data-layout=mobile] .development-grid,html[data-layout=mobile] .development-filters,
html[data-layout=mobile] .portfolio-grid,html[data-layout=mobile] .development-workspace,
html[data-layout=mobile] .practice-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
html[data-layout=mobile] .product-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-layout=mobile] .product-filters .search-wrap{grid-column:1/-1}
html[data-layout=mobile] .library-heading-actions{justify-content:flex-start}
html[data-layout=mobile] .library-heading-actions [data-page=scenario-management]{display:none}
html[data-layout=mobile] .library-heading-actions .btn{width:auto;padding:9px 13px;font-size:.8125rem}
html[data-layout=mobile] .mobile-library-search{margin:0 0 12px;width:100%}
html[data-layout=mobile] .mobile-library-search input{width:100%;min-height:46px}
html[data-layout=mobile] .mobile-library-tools .area-tabs{margin:0;padding:0 14px 12px}
html[data-layout=mobile] .mobile-library-tools .product-filters{margin:0;padding:0 14px 14px;border:0;box-shadow:none;grid-template-columns:1fr}
html[data-layout=mobile] .results-count{font-size:.75rem;line-height:1.6}
html[data-layout=mobile] .results-count>span{display:none}
html[data-layout=mobile] .scenario-card,html[data-layout=mobile] .development-card{padding:18px;border-radius:13px;min-height:0}
html[data-layout=mobile] .scenario-card h3,html[data-layout=mobile] .development-card h2{font-size:1.125rem;line-height:1.4}
html[data-layout=mobile] .scenario-card p,html[data-layout=mobile] .development-card p{font-size:.875rem;line-height:1.6}
html[data-layout=mobile] .portfolio-framework,html[data-layout=mobile] .development-card .pathway-meta{display:none}
html[data-layout=mobile] .development-summary{display:flex;flex-flow:row wrap;gap:7px 16px;padding:12px 0;font-size:.75rem}
html[data-layout=mobile] .development-summary span+span{border:0;padding:0}
html[data-layout=mobile] .development-summary span:last-child{display:none}
html[data-layout=mobile] .practice-title h1{font-size:1.375rem;line-height:1.35}
html[data-layout=mobile] .practice-title>p{display:none}
html[data-layout=mobile] .practice-main{min-width:0;border-radius:13px;overflow:visible}
html[data-layout=mobile] .practice-head{padding:16px;gap:12px;flex-wrap:wrap}
html[data-layout=mobile] .practice-person{gap:10px}
html[data-layout=mobile] .practice-person strong{font-size:.9375rem}
html[data-layout=mobile] .practice-person small{font-size:.75rem}
html[data-layout=mobile] .practice-role-avatar{width:38px;height:38px;font-size:.875rem}
html[data-layout=mobile] .practice-head>.link-line{font-size:.75rem}
html[data-layout=mobile] .conversation-start{margin:18px 16px;font-size:.625rem}
html[data-layout=mobile] #chatMessages{max-height:none;overflow:visible;padding:0 14px;gap:20px}
html[data-layout=mobile] .chat-row{display:block;margin-bottom:20px}
html[data-layout=mobile] .chat-row>.chat-avatar{display:none}
html[data-layout=mobile] .chat-content{min-width:0;width:100%}
html[data-layout=mobile] .chat-speaker{font-size:.75rem;margin-bottom:7px}
html[data-layout=mobile] .chat-bubble{max-width:100%;font-size:1rem;line-height:1.7;padding:13px 15px;border-radius:12px}
html[data-layout=mobile] .chat-actions{margin-top:7px}
html[data-layout=mobile] .chat-actions button{min-height:38px;font-size:.8125rem}
html[data-layout=mobile] .chat-composer{padding:16px 14px}
html[data-layout=mobile] .composer-heading{font-size:.875rem}
html[data-layout=mobile] .composer-heading .draft-label,html[data-layout=mobile] .composer-meta>span:last-child{display:none}
html[data-layout=mobile] #practiceResponse{font-size:1rem;min-height:110px;padding:13px;line-height:1.6}
html[data-layout=mobile] .response-toolbar{padding:8px;gap:5px;flex-wrap:wrap}
html[data-layout=mobile] .dictation-tools{gap:5px;flex-wrap:wrap}
html[data-layout=mobile] .voice-button{font-size:.75rem;min-height:40px;padding:8px}
html[data-layout=mobile] .voice-language{font-size:.75rem;max-width:125px}
html[data-layout=mobile] .composer-bottom{gap:12px;flex-wrap:wrap;align-items:center}
html[data-layout=mobile] .composer-bottom .audio-toggle{font-size:.75rem}
html[data-layout=mobile] #sendButton{min-height:44px;font-size:.875rem;flex:1}
html[data-layout=mobile] .composer-meta,html[data-layout=mobile] .voice-privacy{font-size:.6875rem;line-height:1.6}
html[data-layout=mobile] .mobile-disclosure{margin:0 0 16px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mobile-disclosure>summary{padding:14px 16px;color:var(--primary);font-size:.8125rem;font-weight:650;cursor:pointer;min-height:46px}
html[data-layout=mobile] .mobile-disclosure .role-brief{margin:0;border:0;padding:0 16px 16px}
html[data-layout=mobile] .mobile-disclosure .practice-guide,html[data-layout=mobile] .mobile-disclosure .development-guide{position:static;display:grid;grid-template-columns:1fr;padding:0 12px 12px;gap:12px}
.mobile-practice-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 14px 16px}
.mobile-practice-actions .finish-button{width:auto;flex:1;margin:0;min-height:44px;font-size:.8125rem}
.mobile-practice-actions .cancel-practice-link{font-size:.75rem}
html[data-layout=mobile] .auth-art{display:none}
html[data-layout=mobile] .auth-page{display:block;height:100dvh;min-height:100dvh;overflow-y:auto}
html[data-layout=mobile] .auth-form-wrap{padding:36px 24px}
html[data-layout=mobile] .auth-mobile-brand{display:flex;margin-bottom:36px;align-items:center;gap:12px}
html[data-layout=mobile] input,html[data-layout=mobile] textarea,html[data-layout=mobile] select{font-size:max(1rem,16px)}
html[data-layout=mobile] .modal-card{width:calc(100% - 24px);max-height:calc(100dvh - 28px);padding:22px;overflow:auto}
@media(max-width:360px){html[data-layout=mobile] #main{padding-inline:12px}.mobile-area-card{padding:18px 14px;gap:12px}.mobile-area-icon{width:33px;height:33px}.mobile-area-copy h2{font-size:1.0625rem}.mobile-bottom-nav button{font-size:.625rem}}

html[data-layout=mobile] .profile-menu{max-height:calc(100dvh - 100px);overflow-y:auto}
