.app-shell{min-height:100vh;padding-bottom:72px}.app-header{position:sticky;top:0;z-index:5;padding:14px 16px 10px;border-bottom:1px solid #ded7ca;background:#f7f3ea}.app-header-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(960px,100%);margin:0 auto}.app-header h1{margin:0;font-size:22px}.settings-button{display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid #d8d0c2;border-radius:12px;background:#fffdf8;color:#5b5449;box-shadow:0 4px 14px #43372614}.settings-button.active,.settings-button:hover{border-color:#9fc0bd;color:#1d5f67;background:#edf7f5}.app-main{width:min(960px,100%);margin:0 auto;padding:16px}.bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:10;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #d8d0c2;background:#fffdf8;box-shadow:0 -8px 24px #43372614}.bottom-nav button{display:grid;gap:3px;justify-items:center;align-content:center;min-height:60px;border:0;background:transparent;color:#5b5449;font-size:12px}.bottom-nav button.active{color:#1d5f67;font-weight:700}@media(min-width:760px){.bottom-nav{right:50%;left:auto;width:min(560px,calc(100% - 32px));transform:translate(50%);bottom:12px;border:1px solid #d8d0c2;border-radius:18px;overflow:hidden}}:root{color:#252525;background:#f7f3ea;font-family:Inter,Microsoft YaHei,PingFang SC,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.page-section{display:grid;gap:12px}.page-section h2{margin:0;font-size:22px}.page-section p{margin:0}.subsection{display:grid;gap:12px}.subsection h3{margin:0;font-size:18px}.stack-form,.item-list{display:grid;gap:12px}.plan-comparison-list{display:grid;gap:12px;align-items:start}.stack-form label{display:grid;gap:6px;font-weight:700}.stack-form input,.stack-form select,.stack-form textarea{width:100%;min-height:42px;border:1px solid #cfc6b8;border-radius:6px;padding:8px 10px;background:#fffdf8}.stack-form button,.item-card button,.primary-button{min-height:42px;border:0;border-radius:6px;padding:8px 12px;background:#1d5f67;color:#fff;font-weight:700}.button-row{display:flex;flex-wrap:wrap;gap:8px}.stack-form button:disabled,.item-card button:disabled,.primary-button:disabled{background:#9aa5a5}.form-message{border-radius:8px;padding:9px 11px;font-weight:700}.form-message-info{background:#eef2ef;color:#3f4e4b}.form-message-success{background:#e4f1eb;color:#244f40}.form-message-error{background:#ffe7df;color:#8f2d18}.form-errors{margin:0;padding:10px 12px 10px 28px;border-radius:6px;background:#ffe7df;color:#8f2d18}.item-card{border:1px solid #ddd4c5;border-radius:8px;padding:12px;background:#fffdf8}.item-card h3,.item-card p{margin:0 0 6px}.plan-option-card{display:grid;gap:10px}.item-card-selected{border-color:#2f7f8f;outline:2px solid #2f7f8f;outline-offset:2px}.plan-option-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.plan-option-heading h3,.plan-option-heading p{margin:0}.plan-option-heading h3{font-size:18px}.plan-option-heading p{margin-top:3px;color:#5d574d;font-size:14px;line-height:1.45}.plan-option-heading strong{min-width:42px;color:#234b52;font-size:24px;line-height:1;text-align:right}.tag-row{display:flex;flex-wrap:wrap;gap:6px}.plan-tag{border-radius:6px;padding:4px 7px;background:#eef5f4;color:#28545b;font-size:12px;font-weight:800}.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.metric-grid div{min-width:0;border-radius:8px;padding:8px;background:#f6f8f4}.metric-grid dt{color:#6f6a61;font-size:12px;font-weight:700}.metric-grid dd{margin:2px 0 0;color:#252525;font-weight:800}.compact-errors{margin:0;font-size:13px;line-height:1.4}.today-metrics{margin-bottom:8px}.health-reminder-strip{display:grid;gap:8px}.health-reminder-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 10px;align-items:center;border-radius:8px;padding:10px;background:#f6f8f4;box-shadow:0 1px 3px #2525251a}.health-reminder-icon,.health-setting-heading span{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:8px;background:#fffdf8bd}.health-reminder-copy{display:grid;min-width:0;gap:2px}.health-reminder-copy strong{color:#1e3336;font-size:15px;line-height:1.25}.health-reminder-copy span{color:#536160;font-size:12px;font-weight:700}.health-reminder-actions{display:flex;grid-column:1 / -1;gap:8px}.health-reminder-actions button{min-height:34px}.health-reminder-sitting{background:#eef4e8}.health-reminder-water{background:#e9f5f8}.health-reminder-eyes{background:#f1edf8}.dashboard-focus{display:grid;gap:10px}.now-card{position:relative;display:grid;gap:4px;min-height:94px;overflow:hidden;border-radius:8px;padding:13px 14px;background:#eef5f4}.now-card:before{position:absolute;top:0;bottom:0;left:0;width:4px;content:""}.now-card.active:before{background:#1d5f67}.now-card.idle:before{background:#aeb8b6}.now-card span{display:block;color:#5f6d6e;font-size:12px;font-weight:800}.now-card strong{display:block;color:#1e3336;font-size:18px;line-height:1.25}.now-card p{color:#536160;font-size:13px;font-weight:700}.plan-preview{min-width:0;border-top:1px solid #ebe3d6;padding-top:10px}.plan-card-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.item-card .secondary-button{border:1px solid #cfc6b8;background:#fffdf8;color:#28545b}.item-card .secondary-button:hover{border-color:#9fc0bd;background:#edf7f5}.sync-panel{display:grid;gap:12px}.sync-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.sync-panel-heading h3,.sync-panel-heading p,.sync-summary{margin:0}.sync-panel-heading p{margin-top:3px;color:#5d574d;font-size:13px;line-height:1.4}.sync-status-pill{flex:0 0 auto;border-radius:999px;padding:4px 8px;background:#ede5d8;color:#6b5c43;font-size:12px;font-weight:800}.sync-status-pill.active{background:#ddf0e6;color:#24523f}.sync-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sync-summary div{min-width:0;border-radius:8px;padding:8px;background:#f6f8f4}.sync-summary dt{color:#6f6a61;font-size:12px;font-weight:700}.sync-summary dd{margin:2px 0 0;overflow-wrap:anywhere;color:#252525;font-weight:800}.sync-setup-grid{display:grid;gap:10px}.sync-form{display:grid;gap:9px;min-width:0}.sync-form label{display:grid;gap:6px;font-weight:700}.sync-form input{width:100%;min-height:42px;border:1px solid #cfc6b8;border-radius:6px;padding:8px 10px;background:#fffdf8}.sync-form button,.sync-action{display:inline-flex;align-items:center;justify-content:center;gap:7px}.sync-form button{min-height:42px;border:0;border-radius:6px;padding:8px 12px;background:#1d5f67;color:#fff;font-weight:700}.sync-form button:disabled{background:#9aa5a5}.sync-secret-row{display:grid;gap:8px;border-radius:8px;padding:10px;background:#f8f1e5}.sync-secret-row>div:first-child{display:grid;gap:3px;min-width:0}.sync-secret-row span{color:#6f6a61;font-size:12px;font-weight:700}.sync-secret-row strong{overflow-wrap:anywhere;color:#252525;font-weight:800}.sync-secret-actions{display:flex;flex-wrap:wrap;gap:8px}.sync-secret-actions button{display:inline-flex;align-items:center;gap:6px}.backup-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}.backup-preview-grid div{min-width:0;border-radius:8px;padding:8px;background:#f6f8f4}.backup-preview-grid dt{color:#6f6a61;font-size:12px;font-weight:700}.backup-preview-grid dd{margin:2px 0 0;color:#252525;font-weight:800}.health-settings{display:grid;gap:12px}.health-settings h3,.health-settings p{margin:0}.health-settings>div:first-child p{margin-top:3px;color:#5d574d;font-size:13px;line-height:1.4}.health-settings-grid{display:grid;gap:10px}.health-setting-card{display:grid;gap:9px;border-radius:8px;padding:10px}.health-setting-heading{display:flex;gap:9px;align-items:center}.health-setting-heading strong{display:block;color:#1e3336;line-height:1.2}.health-setting-heading p{color:#5d574d;font-size:12px;font-weight:700}.health-setting-card label{display:grid;gap:5px;font-weight:700}.health-setting-card input[type=number]{width:100%;min-height:38px;border:1px solid #cfc6b8;border-radius:6px;padding:7px 9px;background:#fffdf8}.health-toggle{display:flex!important;flex-direction:row;align-items:center;gap:8px!important}.health-toggle input{width:18px;height:18px}.import-preview-list{display:grid;max-height:360px;gap:8px;overflow:auto}.schedule-timeline{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;width:100%;max-height:68vh;overflow-y:auto;overflow-x:hidden}.timeline-scale,.timeline-lane{position:relative}.timeline-scale span{position:absolute;right:6px;color:#6f6a61;font-size:12px;line-height:1}.timeline-lane{min-width:0;border-left:1px solid #cfc6b8;background:linear-gradient(to bottom,rgba(207,198,184,.54) 1px,transparent 1px),linear-gradient(to right,#fffdf8bd,#fffdf85c);background-size:100% 90px,100% 100%}.timeline-item{position:absolute;min-width:0;padding:2px 3px}.schedule-block{display:grid;align-content:start;height:100%;min-width:0;gap:3px;overflow:hidden;border-radius:8px;padding:7px 8px;color:#18201f;box-shadow:0 1px 3px #25252529}.schedule-block h3,.schedule-block p{margin:0;min-width:0}.schedule-block h3{overflow:hidden;font-size:14px;line-height:1.2;overflow-wrap:anywhere;text-overflow:ellipsis;white-space:nowrap}.schedule-block p{overflow:hidden;color:#18201fc7;font-size:12px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.schedule-block-header{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:6px;font-size:11px;line-height:1.2}.schedule-block-kind{flex:0 0 auto;border-radius:999px;padding:2px 5px;background:#fffdf894;font-weight:800}.schedule-block-time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-block-course{background:#8bc8d4}.schedule-block-ddl-work{background:#f0a45f}.schedule-block-habit{background:#c8a9ea}.schedule-block-fixed{background:#c6c1b8}.schedule-block-break{background:#dce8cf}.schedule-block-completed{opacity:.72}.schedule-block-completed h3{text-decoration:line-through}.schedule-block-skipped{opacity:.5}.schedule-block-skipped h3{text-decoration:line-through}.schedule-block-delayed{outline:2px dashed rgba(37,37,37,.42);outline-offset:-3px}.schedule-block-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.schedule-block-actions button{display:inline-flex;min-height:28px;align-items:center;gap:3px;border:0;border-radius:6px;padding:3px 6px;background:#fffdf8db;color:#252525;font-size:12px;font-weight:700}.schedule-block-actions button:focus-visible{outline:2px solid #1d5f67;outline-offset:2px}.schedule-block-short{gap:4px;padding:8px 9px}.schedule-block-short .schedule-block-header{font-size:11px}.schedule-block-short h3{font-size:14px;line-height:1.25;text-overflow:clip;white-space:normal}.timeline-empty{border:1px dashed #cfc6b8;border-radius:8px;padding:14px;background:#fffdf8;color:#4f493f}@media(min-width:720px){.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.plan-comparison-list{grid-template-columns:repeat(3,minmax(0,1fr))}.plan-option-card .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-option-card-expanded{grid-column:1 / -1}.plan-option-card-expanded .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-focus{grid-template-columns:repeat(2,minmax(0,1fr))}.health-reminder-card{grid-template-columns:auto minmax(0,1fr) auto}.health-reminder-actions{grid-column:auto}.health-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sync-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
