/* Shared additions preserve the existing desktop layout. */
.mobile-home-intro,.mobile-home-plan{display:none}.helpful-empty{grid-column:1/-1;width:100%;min-height:260px;padding:40px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}.helpful-empty>svg{width:46px;height:46px;color:var(--accent-color);margin-bottom:6px}.helpful-empty h3{font-size:22px}.helpful-empty p{max-width:340px;font-size:15px;line-height:1.65;color:var(--text-secondary)}.helpful-empty button{min-height:48px;margin-top:10px}.experience-modal .modal-content{max-width:490px}.experience-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.experience-heading h2{font-size:22px;letter-spacing:-.5px}.icon-button{width:48px;height:48px;flex-shrink:0;border:1px solid color-mix(in srgb,var(--text-main) 12%,transparent);border-radius:14px;background:var(--bg-card);color:var(--text-main);font-size:26px;cursor:pointer}.experience-body .input-label{display:block;margin:18px 0 9px}.experience-body .input-apple{width:100%;min-height:48px}.welcome-logo{width:56px;height:56px;border-radius:16px;margin:4px 0 18px}.welcome-title{font-size:30px;line-height:1.16;letter-spacing:-1px;max-width:330px}.welcome-sub{font-size:15px;line-height:1.6;color:var(--text-secondary);margin-top:13px}.welcome-steps{list-style:none;display:grid;gap:22px;margin:28px 0}.welcome-steps li{display:flex;gap:14px;align-items:flex-start}.welcome-steps li>span{height:30px;width:30px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent-color) 15%,transparent);color:var(--accent-color);font-size:14px;font-weight:700}.welcome-steps strong{font-size:15px;line-height:1.4}.welcome-steps p{font-size:14px;line-height:1.55;color:var(--text-secondary);margin-top:6px}.welcome-start{width:100%;min-height:50px}.text-button{background:none;border:0;color:var(--text-secondary);padding:14px;font:inherit;font-size:14px;min-height:48px;cursor:pointer}.welcome-skip{width:100%;margin-top:4px}.settings-account{padding:18px;background:var(--bg-nav);border:1px solid color-mix(in srgb,var(--text-main) 10%,transparent);border-radius:14px;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.settings-links{display:grid;margin-top:24px}.settings-links button{min-height:54px;text-align:left;background:none;border:0;border-bottom:1px solid color-mix(in srgb,var(--text-main) 10%,transparent);color:var(--text-main);font-size:15px;padding:15px 0;line-height:1.5;cursor:pointer}.settings-links button:last-child{color:var(--accent-danger);border:0}.settings-version{font-size:12px;color:var(--text-secondary);margin-top:24px}.additional-setting{width:100%;background:none;border:0;text-align:left;color:var(--text-main);font:inherit}.additional-setting:last-child{color:var(--accent-danger)}#demoBanner{position:fixed;bottom:16px;left:100px;display:flex;align-items:center;gap:14px;font-size:12px;color:var(--text-secondary);z-index:100;background:var(--bg-nav);border:1px solid color-mix(in srgb,var(--text-main) 12%,transparent);border-radius:12px;padding:2px 14px}#demoBanner button{color:var(--accent-color);background:none;border:0;min-height:40px;font-size:12px;cursor:pointer}.timer-help{font-size:12px;line-height:1.6;max-width:420px;text-align:center;color:var(--text-secondary);margin-top:18px}.account-legal{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:24px}.account-legal a{font-size:13px;color:#b9c9dc;min-height:36px;line-height:36px;text-underline-offset:4px}.account-card .account-demo{font-size:13px;line-height:1.6;background:#29292d;border:1px solid #44444c;min-height:48px}.account-card .account-link,.account-card select{min-height:44px}.launch-logo{object-fit:cover}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--accent-color,#70b5ff);outline-offset:3px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media(max-width:760px),(pointer:coarse) and (max-width:1024px){
:root{--text-secondary:#aaaab4;--phone-top:var(--safe-area-inset-top,env(safe-area-inset-top,0px));--phone-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom,0px));--phone-header:68px;--phone-tabs:72px}:root[data-theme=light]{--text-secondary:#5f626d}body:not(.auth-locked){padding:0;gap:0;height:100dvh;overflow:hidden;transition:none}.mobile-header{height:calc(var(--phone-header) + var(--phone-top));padding:calc(10px + var(--phone-top)) 20px 10px;background:var(--bg-main);border:0}.mobile-brand{gap:11px}.mobile-brand img{width:38px;height:38px;border-radius:12px}.mobile-brand span{font-size:10px;letter-spacing:1.6px}.mobile-brand strong{font-size:19px;line-height:1.2;letter-spacing:-.5px}.mobile-brand>div{gap:4px}#mobileSettings{width:48px;height:48px;border-radius:16px;color:var(--text-main);background:var(--bg-nav)}.view-container{margin-top:calc(var(--phone-header) + var(--phone-top));margin-bottom:calc(var(--phone-tabs) + var(--phone-bottom));border-radius:0;min-width:0}.mobile-tabs{height:calc(var(--phone-tabs) + var(--phone-bottom));padding:8px 14px calc(8px + var(--phone-bottom));grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:var(--bg-nav)}.mobile-tabs button{font-size:11px;gap:5px;min-height:54px;border-radius:16px}.mobile-tabs svg{width:22px;height:22px}#syncStatus{right:78px;top:calc(16px + var(--phone-top));bottom:auto;max-width:100px;min-height:36px;padding:4px 9px;border:0;border-radius:10px;font-size:10px;opacity:1;background:var(--bg-nav);color:var(--text-secondary);z-index:85}
#view-home{padding:20px 20px 28px;gap:18px;position:relative;align-items:stretch;justify-content:flex-start;overflow:auto}.mobile-home-intro{display:block;order:0;flex-shrink:0;padding-top:2px}.mobile-home-intro>span{display:block;font-size:12px;color:var(--text-secondary);text-transform:capitalize;line-height:1.5;margin-bottom:8px}.mobile-home-intro h1{font-size:29px;line-height:1.14;letter-spacing:-1px;max-width:280px;font-weight:650}#view-home .live-clock{position:static;order:1;align-self:flex-end;font-size:18px;letter-spacing:.7px;font-weight:500;margin:-4px 0 0;color:var(--text-secondary)}#view-home .live-clock::before{display:none}.mobile-home-plan{display:block;order:2;flex-shrink:0;border:1px solid color-mix(in srgb,var(--accent-color) 27%,transparent);border-radius:22px;padding:22px;background:linear-gradient(115deg,color-mix(in srgb,var(--accent-color) 12%,var(--bg-nav)),var(--bg-nav))}.home-plan-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.home-plan-head>span{font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--accent-color)}.home-plan-head>svg{width:23px;height:23px;color:var(--accent-color)}.mobile-home-plan h2{font-size:23px;line-height:1.25;letter-spacing:-.6px;overflow-wrap:anywhere}.mobile-home-plan p{font-size:14px;color:var(--text-secondary);line-height:1.6;margin-top:9px}.home-plan-track{height:5px;background:color-mix(in srgb,var(--text-main) 10%,transparent);border-radius:10px;margin-top:18px;overflow:hidden}.home-plan-track>span{display:block;height:100%;background:var(--accent-color)}.home-plan-action{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;color:var(--text-main);background:none;border:0;border-top:1px solid color-mix(in srgb,var(--text-main) 9%,transparent);padding:14px 0 0;margin-top:18px;font-size:14px;font-weight:600}.home-plan-action>span{font-size:22px;color:var(--accent-color)}#view-home .stopwatch-widget{order:3;position:static;flex-shrink:0;width:100%;padding:22px;border-radius:22px;gap:16px;background:var(--bg-nav)}.stopwatch-time{font-size:clamp(34px,10vw,46px);line-height:1.25;font-weight:500;letter-spacing:-.5px;font-variant-numeric:tabular-nums;font-family:var(--font-family);text-shadow:none}.btn-sw{min-height:48px;border-radius:13px;font-size:14px}.btn-sw.start{background:var(--accent-color);color:#fff}.btn-sw.reset{background:var(--bg-card);color:var(--text-main)}#view-home .home-quote{order:4;border:0;border-left:2px solid color-mix(in srgb,var(--accent-color) 55%,transparent);border-radius:0;padding:20px 4px 20px 18px;gap:14px;margin:4px 0;flex-shrink:0;background:transparent}#view-home .quote-text{font-size:18px;line-height:1.65;font-style:normal;font-weight:400}#view-home .quote-author{font-size:12px;color:var(--text-secondary)}#view-home .heatmap-widget{order:5;position:static;flex-shrink:0;width:100%;padding:20px;border-radius:22px}.heatmap-title{font-size:13px;line-height:1.5;gap:8px}.heatmap-grid{grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}.heat-box{max-height:none}.heat-reset{min-width:48px;min-height:48px;opacity:1}
.mobile-task-picker{margin:8px 20px 0;min-height:48px;font-size:14px}.mobile-task-picker b{width:32px;height:32px}.mobile-day-strip{gap:8px;padding:6px 20px 16px}.mobile-day-strip button{min-height:48px;padding:12px 16px;font-size:13px;border-radius:14px}.mobile-day-strip button.active{background:color-mix(in srgb,var(--accent-color) 15%,var(--bg-nav));border-color:var(--accent-color);color:var(--text-main)}#view-tasks>.main-content{padding:22px 20px 28px}#view-tasks .main-header{flex-wrap:wrap;gap:14px;margin-bottom:22px}#view-tasks .main-title{font-size:27px;line-height:1.2;letter-spacing:-.8px;flex:1 1 135px}#view-tasks #btnAddTask{min-height:48px;font-size:13px;padding:12px 15px;border-radius:14px}#view-tasks .progress-section{margin-bottom:22px}.progress-info{font-size:12px;line-height:1.5;margin-bottom:10px}.progress-bar-bg{height:5px}#view-tasks .daily-tasks-grid{gap:16px}#view-tasks .task-card{min-height:0;padding:20px;border-radius:20px;background:var(--bg-nav);border:1px solid color-mix(in srgb,var(--text-main) 11%,transparent)}#view-tasks .task-card.completed{border-color:color-mix(in srgb,var(--accent-success) 32%,transparent)}#view-tasks .task-card.missed{border-color:color-mix(in srgb,var(--accent-danger) 32%,transparent)}#view-tasks .task-header{flex-direction:column;gap:12px;margin-bottom:12px;padding-right:30px}#view-tasks .task-title{font-size:17px;line-height:1.5;min-width:0;padding:0;width:100%;font-weight:600}#view-tasks .task-rating{min-height:48px;max-width:98px;margin:0;background:var(--bg-card);font-size:13px;border-radius:12px;padding:10px 11px}#view-tasks .task-options{width:48px;min-width:48px;height:48px;top:6px;right:5px;font-size:24px;display:grid;place-items:center}#view-tasks .task-desc{font-size:14px;line-height:1.7;color:var(--text-secondary);margin-bottom:18px}#view-tasks .task-card.completed .task-desc,#view-tasks .task-card.missed .task-desc{opacity:1;text-decoration:none;color:var(--text-secondary)}#view-tasks .task-card.completed .task-title,#view-tasks .task-card.missed .task-title{opacity:1;color:var(--text-main)}#view-tasks .task-footer{padding-top:14px;gap:10px}#view-tasks .btn-status{min-height:48px;padding:11px 8px;border-radius:12px}.three-dots,.bm-options,.mobile-drawer-heading button{min-width:48px;min-height:48px}.subject-item{min-height:56px}.folder-header{min-height:52px}.folder-left,.subject-info{min-width:0;overflow-wrap:anywhere}.btn-sidebar-add{min-height:48px;font-size:14px}
.modal-overlay{padding:calc(12px + var(--phone-top)) 12px calc(12px + var(--phone-bottom));z-index:1000}.modal-content{max-height:calc(100dvh - 24px - var(--phone-top) - var(--phone-bottom));padding:24px 22px;border-radius:24px}.modal-actions button{min-height:48px;font-size:14px}.modal-content input:not([type=checkbox]),.modal-content select{min-height:48px}.modal-content input,.modal-content textarea,.modal-content select{font-size:16px}.context-menu{z-index:1100;max-width:calc(100vw - 24px)}.context-menu-item{min-height:48px;white-space:normal}.mobile-more-grid button{min-height:100px;font-size:14px;padding:19px 17px;border-radius:18px}.mobile-sheet-heading button{height:48px;width:48px}#view-exams{padding:20px 20px 28px}.exam-tab,.exam-select,.exam-number{min-height:48px}.exam-panel,.exam-card{padding:20px 18px;border-radius:20px}.exam-input-table tr:not(.exam-group-row){padding:14px 12px;border-radius:16px}.exam-input-table td:not(:first-child)::before{font-size:12px}.exam-table-scroll{overflow:visible}.exam-modal .modal-actions{position:sticky;bottom:-24px;padding:16px 0 6px;background:var(--bg-modal)}.timer-controls button,.preset-btn,.main-header>.btn-primary{min-height:48px}.helpful-empty{padding:30px 12px}.welcome-title{font-size:29px}.welcome-steps{gap:19px;margin:24px 0}body:has(#demoBanner) .view-container{margin-bottom:calc(var(--phone-tabs) + var(--phone-bottom) + 36px)}#demoBanner{left:0;right:0;bottom:calc(var(--phone-tabs) + var(--phone-bottom));border:0;border-radius:0;min-height:36px;padding:0 20px;justify-content:space-between;font-size:10px;gap:10px}#demoBanner button{min-height:36px;font-size:11px}body.auth-locked{padding:calc(16px + var(--phone-top)) 16px calc(16px + var(--phone-bottom))}.account-card{padding:26px 22px;border-radius:25px}
}
@media(max-width:360px){#syncStatus{max-width:75px;right:74px;font-size:9px}.mobile-brand strong{font-size:17px}.mobile-brand img{width:32px;height:32px}.mobile-home-intro h1{font-size:27px}.modal-content{padding:22px 18px}.welcome-steps p{font-size:13px}.mobile-tabs button{font-size:10px}}
@media(orientation:landscape) and (max-height:520px) and (pointer:coarse){:root{--phone-header:56px;--phone-tabs:60px}.mobile-header{padding-top:calc(4px + var(--phone-top));padding-bottom:4px}.mobile-tabs{padding-top:4px;padding-bottom:calc(4px + var(--phone-bottom))}.mobile-tabs button{min-height:48px;flex-direction:row}.mobile-home-plan,#view-home .stopwatch-widget{max-width:640px;align-self:center}#syncStatus{top:calc(10px + var(--phone-top))}}
