:root{--paper:#ffffff;--bg:#f3faff;--ink:#173047;--muted:#607789;--line:#dceef9;--accent:#38b6ff;--sage:#087caf;--sage-bg:#e3f5ff;--ochre:#138791;--ochre-bg:#e3f9fa;--blue:#416eb8;--blue-bg:#eaf2ff;--rose:#7862ad;--rose-bg:#f1edff}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:13px;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{cursor:default;opacity:.4}button,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}input:focus,textarea:focus,select:focus{outline:none}a{color:inherit;text-decoration:none}button{transition:background .15s,transform .15s}button:hover:not(:disabled){filter:brightness(.96)}.app{max-width:1920px;margin:auto}.app-header{height:83px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:25px;font-weight:650;letter-spacing:3px}.brand-mark{font-size:42px;color:var(--accent);line-height:1}.brand-en{display:block;font-size:8px;font-weight:500;letter-spacing:2.1px;margin-top:3px;color:#6482a0}.header-center{font-size:12px;letter-spacing:1px;color:#6482a0;display:flex;align-items:center;gap:8px}.live-dot{height:5px;width:5px;border-radius:50%;background:#6482a0}.header-right{display:flex;align-items:center;gap:17px}.local-badge{font-size:10px;letter-spacing:1px;color:#6482a0;background:#dfeaf5;padding:6px 9px;border-radius:5px}.avatar{width:32px;height:32px;border-radius:50%;background:#d5e4f2;color:#4b749d;font-size:12px}.workspace{display:grid;grid-template-columns:266px minmax(0,1fr);gap:27px;padding:26px 32px 20px}.sidebar{display:flex;flex-direction:column;min-width:0}.greeting-card{border:1px solid #c9eaff;border-radius:12px;background:#e6f6ff;overflow:hidden;margin-bottom:27px}.greeting-top{padding:17px 17px 0;display:flex;align-items:center;justify-content:space-between;font-size:13px;letter-spacing:1px;color:#4c759e}.little-star{font-size:22px;color:#6482a0}.landscape{height:101px;margin-top:5px}.landscape svg{width:100%;height:100%;display:block}.greeting-bottom{display:flex;justify-content:space-between;padding:10px 17px;color:#6482a0;font-size:10px;letter-spacing:1px;border-top:1px solid #c5e8fa}.day-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{font-size:8px;letter-spacing:1.8px;color:#6482a0;font-weight:600}.day-heading h2{font-size:19px;font-weight:550;margin:8px 0 8px;letter-spacing:1px}.day-heading p{font-size:11px;color:var(--muted);margin:0}.icon-button{width:29px;height:29px;border:1px solid #cadaea;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;background:#f7fafd;color:#6482a0}.day-heading>.icon-button{align-self:center}.day-progress{margin:24px 0 26px}.progress-caption{display:flex;justify-content:space-between;color:#6482a0;font-size:10px}.progress-caption b{font-weight:500;color:#4f79a3}.progress-track{height:4px;background:#d5e4f3;border-radius:4px;margin-top:10px;overflow:hidden}.progress-track i{display:block;background:#38b6ff;height:100%;transition:width .3s;border-radius:4px}.section-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:8px}.section-title>span:first-child{display:flex;gap:7px;align-items:center}.status-dot{width:5px;height:5px;display:inline-block;background:#6482a0;border-radius:50%}.count{background:#dae7f4;border-radius:5px;padding:2px 6px;font-size:9px;color:#6482a0}.side-tasks{display:flex;flex-direction:column;gap:6px}.side-task{display:flex;align-items:flex-start;gap:9px;padding:12px 10px;background:#ffffff;border:1px solid #d8e6f3;border-radius:8px;min-width:0}.task-check{flex-shrink:0;width:15px;height:15px;border:1px solid #b5cbe1;border-radius:50%;padding:0;margin-top:1px;color:white;display:flex;align-items:center;justify-content:center;font-size:9px}.task-check.checked{background:#38b6ff;border-color:#38b6ff}.side-task-content{min-width:0;flex:1;text-align:left;padding:0}.side-task-title{display:block;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.side-task-sub{font-size:9px;color:#6482a0;display:flex;align-items:center;gap:5px;margin-top:6px}.color-dot{width:4px;height:4px;border-radius:50%;display:inline-block}.completed .side-task-title{color:#6482a0;text-decoration:line-through}.completed{background:transparent;border-color:#d9e7f4}.completed-section{margin-top:23px}.completed-section summary{list-style:none;display:flex;justify-content:space-between;color:#6482a0;font-size:11px;cursor:pointer;margin-bottom:9px}.completed-section summary::-webkit-details-marker{display:none}.completed-section summary span span{margin-left:6px;font-size:10px}.sidebar-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:auto;padding-top:27px;color:#6482a0;font-size:9px}.text-button{padding:0;color:#6482a0;font-size:10px}.sidebar-footer .text-button{font-size:9px}.empty-side{font-size:11px;line-height:1.9;color:#6482a0;padding:15px 5px}.empty-side span{display:block;font-size:22px;margin-bottom:7px;color:#6482a0}main{min-width:0}.calendar-panel{background:var(--paper);border:1px solid #d1e1f1;border-radius:13px;overflow:hidden;box-shadow:0 3px 14px #285d9408}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;padding:24px 24px 18px;gap:12px}.month-kicker{font-size:8px;letter-spacing:1.8px;color:#6482a0}.month-line{display:flex;align-items:center;gap:12px;margin-top:7px}.month-line h1{font-size:26px;font-weight:500;margin:0;letter-spacing:-.8px;white-space:nowrap}.month-line h1 small{font-size:15px;color:#6482a0;margin-left:8px;letter-spacing:0}.month-nav{display:flex;gap:5px;margin-left:7px}.month-nav .icon-button{width:25px;height:25px;font-size:21px;background:transparent;border-color:#dbe8f4}.today-button{border:1px solid #dceef9;border-radius:5px;padding:5px 10px;font-size:10px;color:#517da9}.calendar-tools{display:flex;align-items:center;gap:10px}.search-box{display:flex;align-items:center;gap:6px;border:1px solid #dae7f4;border-radius:6px;padding:6px 8px;color:#6482a0}.search-box>span{font-size:18px;line-height:1}.search-box input{width:85px;border:0;background:transparent;font-size:10px}.search-box input::placeholder{color:#6482a0}.view-button,.month-view{font-size:10px;color:#6482a0;white-space:nowrap}.view-button{padding:7px 9px;border:1px solid #d8e6f3;border-radius:6px}.view-button[aria-pressed="true"]>span{color:#6482a0}.view-button[aria-pressed="false"]{opacity:.5}.month-view{padding:7px 10px;background:#e4eef7;border-radius:5px;color:#4c749d}.calendar-meta{display:flex;justify-content:space-between;padding:0 25px 17px;gap:10px;font-size:9px;color:#6482a0}.legend{display:flex;gap:17px}.legend>span{display:flex;align-items:center;gap:5px;white-space:nowrap}.legend i{display:inline-block;width:5px;height:5px;border-radius:50%}.sage{background:var(--sage)}.rose{background:var(--rose)}.ochre{background:var(--ochre)}.blue{background:var(--blue)}.week-header{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#f1faff}.week-header span{text-align:center;padding:12px 0;font-size:10px;color:#6482a0}.week-header span:nth-last-child(-n+2){color:#6482a0}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.day-cell{position:relative;min-height:112px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:9px 6px 8px;cursor:pointer;transition:background .15s;min-width:0}.day-cell:nth-child(7n){border-right:none;background:#f8fbff}.day-cell:nth-child(7n-1){background:#f8fbff}.day-cell:hover{background:#f7fafd}.day-cell.selected{background:#edf9ff;box-shadow:inset 0 0 0 1.5px #38b6ff;z-index:1}.day-cell.outside{background:#f5f9fd}.day-cell.outside .day-num,.day-cell.outside .lunar{color:#a5bfda}.date-head{display:flex;justify-content:space-between;align-items:center;padding:0 3px 7px}.day-num{font-size:13px;color:#4a729b;display:flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%}.day-cell.is-today .day-num{background:var(--accent);color:#fff}.lunar{font-size:8px;color:#6482a0}.calendar-tasks{display:flex;flex-direction:column;gap:4px}.calendar-task{display:flex;gap:4px;align-items:center;border-radius:4px;padding:5px 5px;font-size:10px;line-height:1.3;min-width:0;cursor:grab;background:var(--sage-bg);color:var(--sage)}.calendar-task[data-color="ochre"]{background:var(--ochre-bg);color:var(--ochre)}.calendar-task[data-color="blue"]{background:var(--blue-bg);color:var(--blue)}.calendar-task[data-color="rose"]{background:var(--rose-bg);color:var(--rose)}.calendar-task button{width:10px;height:10px;border:1px solid currentColor;opacity:.65;border-radius:3px;flex-shrink:0;padding:0;color:inherit;font-size:8px;line-height:8px}.calendar-task .task-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.calendar-task .repeat-icon{font-size:9px;opacity:.6}.calendar-task.is-done{opacity:.48}.calendar-task.is-done .task-name{text-decoration:line-through}.calendar-task.highlight{animation:highlight 1s ease 3}.more-tasks{font-size:9px;color:#6482a0;text-align:left;padding:2px 5px}.calendar-footer{display:flex;justify-content:space-between;align-items:center;padding:13px 20px;font-size:9px;color:#6482a0;background:#fbfdff;gap:8px}.mini-spark{color:#6482a0;margin-right:4px}.composer-area{padding:19px 3px 0}.composer-topline{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}.composer-label{font-size:11px;color:#6482a0;display:flex;align-items:center;gap:7px}.composer-label>span{font-size:20px;color:var(--accent)}.ai-status{display:flex;align-items:center;font-size:9px;color:#6482a0;gap:5px}.ai-status:before{content:"";width:4px;height:4px;background:#6482a0;border-radius:50%}.suggestions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:11px}.suggestions button{border:1px solid #d2e2f2;border-radius:6px;padding:7px 10px;font-size:10px;color:#6482a0;background:#f7fafd;text-align:left}.suggestions span{margin-left:9px;color:#6482a0}.composer{display:flex;align-items:center;gap:12px;border:1px solid #c9d9e9;border-radius:12px;padding:12px 13px 12px 17px;background:var(--paper);box-shadow:0 3px 10px #285d9408;transition:border-color .2s}.composer:focus-within{border-color:#6482a0;box-shadow:0 0 0 3px #6482a00d}.composer textarea{resize:none;flex:1;border:none;background:transparent;line-height:1.6;max-height:100px;min-width:0;font-size:12px}.composer textarea::placeholder{color:#6482a0}.voice-button{display:flex;align-items:center;justify-content:center;color:#6482a0;padding:5px}.voice-button.recording{color:#ba6674;animation:pulse 1s infinite}.send-button{width:34px;height:34px;border-radius:9px;background:var(--accent);color:#fff;font-size:23px;flex-shrink:0}.send-button.busy{animation:pulse 1s infinite}.composer-footnote{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#6482a0;padding:10px 2px 0;line-height:1.7}.footnote-sep{margin:0 8px;color:#a7c1db}.conversation:empty{display:none}.conversation{margin-bottom:12px;max-height:190px;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:8px}.message{font-size:11px;line-height:1.8;padding:9px 12px;border-radius:8px;max-width:90%;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{background:#dfeaf5;color:#4f7aa5;align-self:flex-end}.message.assistant{background:#f7fafd;border:1px solid #d2e2f1;color:#507aa5;align-self:flex-start}.message.error{color:#ae6065;background:#fff0f1;border-color:#efcfd2}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#294e73;color:#fff;padding:12px 20px;border-radius:9px;box-shadow:0 5px 20px #234d7620;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #cfddeb;border-radius:17px;padding:27px;background:var(--paper);color:var(--ink);width:460px;max-width:calc(100% - 30px);box-shadow:0 20px 80px #254f7b25}dialog::backdrop{background:#183b6044;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:25px}.dialog-heading h2{font-size:19px;margin:7px 0 0;font-weight:500;overflow-wrap:anywhere}.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#6482a0;margin-bottom:17px}.field input,.field select{width:100%;border:1px solid #d0e1f1;border-radius:7px;background:#f7fafd;padding:10px;font-size:12px;min-width:0;color:#3a5877}.field input:focus,.field select:focus{border-color:#6482a0}.field-row{display:grid;grid-template-columns:1fr 1.3fr;gap:13px}.primary-button{background:var(--accent);color:#fff;border-radius:8px;padding:12px;width:100%;font-size:12px;display:flex;justify-content:space-between}.primary-button>span{font-size:15px}.form-error{color:#b1626c;font-size:11px;line-height:1.5}.weekday-picker{border:0;padding:0;display:flex;gap:9px;margin:0 0 17px;color:#6482a0}.weekday-picker legend{font-size:11px;margin-bottom:9px}.weekday-picker label{font-size:12px;display:flex;align-items:center;gap:3px}.weekday-picker input{accent-color:#6482a0}.detail-rule{font-size:12px;line-height:1.8;color:#6482a0;margin-bottom:22px}.detail-actions{margin-top:24px;display:flex;justify-content:space-between;align-items:center}.danger-button{padding:8px 10px;border:1px solid #efd6db;border-radius:6px;color:#aa6570;font-size:11px}.help-examples{display:flex;flex-direction:column;gap:9px}.help-examples button{display:flex;flex-direction:column;align-items:flex-start;border:1px solid #d7e5f3;padding:13px;border-radius:8px;font-size:12px;color:#466b90;background:#f7fafd;gap:7px}.help-examples span{font-size:10px;color:#6482a0}.help-note{font-size:10px;color:#6482a0;line-height:1.9;margin:22px 0 0}[hidden]{display:none!important}@keyframes pulse{50%{opacity:.4}}@keyframes highlight{50%{box-shadow:0 0 0 2px #38b6ff;background:#d6f1ff}}.day-cell.drag-over{background:#daf2ff;box-shadow:inset 0 0 0 2px #38b6ff}
@media(min-width:1550px){.workspace{grid-template-columns:285px minmax(0,1fr);gap:34px;padding:30px 45px}.day-cell{min-height:137px;padding:10px}.calendar-task{font-size:11px;padding:6px}.greeting-card{margin-bottom:32px}.landscape{height:125px}.calendar-toolbar{padding:28px 28px 22px}.calendar-meta{padding-bottom:20px}}
@media(max-width:1150px){.workspace{grid-template-columns:225px minmax(0,1fr);gap:18px;padding:20px}.app-header{padding:0 23px;height:73px}.calendar-toolbar{padding:19px 15px}.calendar-tools{gap:6px}.month-view{display:none}.calendar-meta{padding:0 16px 15px}.legend{gap:9px}.month-line h1{font-size:23px}.month-line{gap:6px}.day-cell{min-height:103px}.calendar-task{font-size:9px;padding:4px}.calendar-footer>span:last-child{display:none}.search-box input{width:65px}.sidebar-footer{font-size:8px}.calendar-meta>span{font-size:8px}}
@media(max-width:850px){.header-center{display:none}.workspace{grid-template-columns:minmax(0,1fr);gap:16px;padding:15px 14px 20px}.sidebar{order:2;display:grid;grid-template-columns:1fr 1fr;gap:0 16px;background:var(--paper);border:1px solid var(--line);padding:17px;border-radius:12px}.greeting-card{display:none}.day-heading{grid-column:1/-1}.day-progress{grid-column:1/-1;margin:15px 0 19px}.completed-section{margin:0}.sidebar-footer{grid-column:1/-1;padding-top:20px}.day-heading h2{font-size:17px}.eyebrow{font-size:7px}.calendar-toolbar{flex-wrap:wrap;padding:18px 14px 15px}.calendar-meta{flex-wrap:wrap;gap:10px}.calendar-tools{margin-left:auto}.search-box input{width:75px}.calendar-meta>span{display:none}.calendar-footer{padding:11px 14px}.calendar-task{font-size:10px}.app-header{height:66px}.brand{font-size:22px}.brand-mark{font-size:35px}.brand-en{font-size:7px}.composer-area{padding:14px 2px 0}.composer-label{font-size:10px}.composer-footnote{font-size:8px}.composer-footnote>span{max-width:75%}.suggestions button{font-size:9px}.calendar-panel{border-radius:11px}}
@media(max-width:520px){.workspace{padding:12px 8px 20px}.app-header{padding:0 15px}.local-badge{font-size:9px}.calendar-toolbar{gap:12px}.month-line h1{font-size:22px}.calendar-tools{gap:4px}.search-box{padding:5px}.search-box input{width:59px;font-size:9px}.view-button{font-size:9px;padding:7px 5px}.month-kicker{font-size:6px;letter-spacing:1.2px}.month-nav{margin-left:2px;gap:2px}.month-line{gap:5px}.month-line h1 small{font-size:12px;margin-left:4px}.today-button{font-size:9px;padding:5px 6px}.calendar-toolbar{padding:16px 10px 13px}.calendar-tools{width:100%;justify-content:space-between}.search-box{flex:1;margin-right:8px}.search-box input{width:100%}.legend{gap:12px;font-size:8px}.calendar-meta{padding:0 11px 13px}.week-header span{font-size:9px;padding:10px 0}.day-cell{padding:6px 2px;min-height:91px}.date-head{padding:0 2px 5px}.day-num{font-size:11px;width:20px;height:20px}.lunar{font-size:7px}.calendar-task{font-size:8px;padding:4px 3px;gap:2px}.calendar-task button{display:none}.repeat-icon{display:none}.more-tasks{font-size:8px;padding:3px}.calendar-footer{font-size:8px}.composer{padding:10px;gap:7px}.composer textarea{font-size:11px}.send-button{width:30px;height:30px;font-size:20px}.suggestions button:first-child{max-width:100%}.suggestions{gap:5px}.suggestions button{padding:6px 8px;font-size:8px}.composer-footnote{gap:5px}.ai-status{font-size:8px}.side-task{padding:10px 8px;gap:7px}.side-task-title{font-size:11px}.sidebar{padding:14px;gap:0 12px}.side-task-sub{font-size:8px}.task-check{width:14px;height:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
/* 桌面让月历和输入框保持在同一屏；左侧独立滚动。 */
@media(min-width:851px) and (min-height:620px){
 body{height:100dvh;overflow:hidden}.app{height:100%}.workspace{height:calc(100dvh - 83px);padding-top:22px;padding-bottom:18px}.sidebar{overflow:auto;scrollbar-width:thin;padding-right:2px}main{display:flex;flex-direction:column;min-height:0}.calendar-panel{display:flex;flex-direction:column;flex:1;min-height:0}.calendar-grid{flex:1;min-height:0}.day-cell{min-height:0;overflow:hidden}.calendar-toolbar{padding:16px 20px 12px;flex-shrink:0}.calendar-meta{padding-bottom:13px;flex-shrink:0}.week-header{flex-shrink:0}.week-header span{padding:10px 0}.calendar-footer{padding:10px 17px;flex-shrink:0}.composer-area{flex-shrink:0;padding-top:13px}.composer-topline{margin-bottom:8px}.suggestions{margin-bottom:8px}.conversation{max-height:82px}.composer-footnote{padding-top:6px}.date-head{padding-bottom:4px}.calendar-tasks{gap:3px}.calendar-task{padding:4px;font-size:9px}.greeting-card{flex-shrink:0}.sidebar-footer{padding-bottom:5px}
}
@media(min-width:851px) and (max-width:1150px) and (min-height:620px){.workspace{height:calc(100dvh - 73px)}.calendar-toolbar{padding:14px}}
@media(min-width:851px) and (max-height:800px) and (min-height:620px){.date-head{padding-bottom:2px}.day-num{height:20px;font-size:11px}.day-cell{padding-top:5px}.more-tasks{font-size:8px;padding:1px 4px}.calendar-task{font-size:9px;padding:3px 4px}.calendar-toolbar{padding-top:13px}.month-line h1{font-size:23px}.calendar-meta{padding-bottom:11px}.landscape{height:80px}.greeting-card{margin-bottom:20px}.day-progress{margin:17px 0 19px}.composer-footnote{font-size:8px}}

.date-head .lunar{margin-left:auto}.date-head .more-tasks{margin-left:3px;background:#e1ecf6;color:#4f79a4;border-radius:4px;font-size:8px;padding:2px 4px}.conversation .message:not(:last-child){display:none}
@media(min-width:851px) and (min-height:620px){.conversation{max-height:43px}.message{padding:7px 11px}.day-cell{padding-bottom:4px}.calendar-task{line-height:1.2}.date-head{padding-left:1px;padding-right:1px}.date-head .lunar{font-size:7px}}

@media(max-width:520px){.date-head .lunar{display:none}.date-head .more-tasks{margin-left:auto}.date-head{padding-left:0;padding-right:0}.day-cell{padding-left:3px;padding-right:3px}}

/* 默认按住说话；左侧键盘按钮随时切换文字。 */
.input-mode-button{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:34px;height:34px;border-radius:7px;color:#6482a0;padding:5px}
.input-mode-button:hover{background:#e8f7ff}
.composer.voice-mode{padding:9px 12px;gap:12px;min-height:60px}
.hold-to-talk{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;min-width:0;min-height:40px;border:1px solid #c0e7fc;border-radius:8px;background:#e8f7ff;color:#087caf;font-size:13px;font-weight:500;letter-spacing:2px;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.hold-to-talk.recording{background:#d5f1ff;border-color:#70cfff;color:#057cae}
.hold-to-talk.cancel-recording{background:#fcebed;border-color:#ddb0b7;color:#a95f6d}
.voice-wave{height:19px;display:flex;align-items:center;gap:3px}
.voice-wave i{display:block;background:currentColor;width:2px;border-radius:2px;height:6px}
.voice-wave i:nth-child(2),.voice-wave i:nth-child(4){height:12px}.voice-wave i:nth-child(3){height:18px}
.recording .voice-wave i{animation:voice-bar .7s ease-in-out infinite alternate}.recording .voice-wave i:nth-child(2n){animation-delay:-.3s}.recording .voice-wave i:nth-child(3n){animation-delay:-.5s}
@keyframes voice-bar{to{transform:scaleY(.35)}}
#voice-hint{overflow-wrap:anywhere}.composer-footnote>span{min-width:0}
@media(max-width:520px){.composer.voice-mode{gap:8px;padding:8px;min-height:56px}.hold-to-talk{min-height:38px;font-size:12px}.input-mode-button{width:30px;height:30px}}

.task-time{font-variant-numeric:tabular-nums;font-weight:650;letter-spacing:-.2px}.time-badge{display:inline-block;vertical-align:baseline;background:#e6eff8;color:#4b739b;border-radius:4px;padding:1px 5px;font-size:10px;line-height:1.5;font-variant-numeric:tabular-nums;margin-right:3px}.field input[type=time]{min-height:38px}.detail-rule{white-space:pre-line}

/* Reference palette: technology blue #38b6ff + cyan #5ce1e6. */
.brand-mark,.composer-label>span{color:#38b6ff}
.app-header{background:#ffffff;border-bottom-color:#dceef9}
.send-button,.primary-button,.day-cell.is-today .day-num{background:#38b6ff;color:#073c59}
.send-button:hover:not(:disabled),.primary-button:hover:not(:disabled){background:#25aaff}
.day-cell.selected{background:#edf9ff;box-shadow:inset 0 0 0 1.5px #38b6ff}
.day-cell:hover{background:#f0faff}
.hold-to-talk{background:#e8f8ff;border-color:#a6dfff;color:#087caf}
.hold-to-talk.recording{background:#d5f2ff;border-color:#38b6ff;color:#066d9c}
.hold-to-talk.cancel-recording{background:#fcebed;border-color:#ddb0b7;color:#a95f6d}
.live-dot,.ai-status:before{background:#28b9ce}
.progress-track{background:#deeffb}.progress-track i{background:linear-gradient(90deg,#38b6ff,#5ce1e6)}
.time-badge{background:#e3f5ff;color:#087caf}
.task-check.checked{background:#38b6ff;border-color:#38b6ff;color:#073c59}
.composer:focus-within{border-color:#38b6ff;box-shadow:0 0 0 3px #38b6ff14}
.month-view{background:#e3f5ff;color:#087caf}.today-button{color:#087caf;border-color:#c7e8fb}
.greeting-top,.greeting-bottom{color:#407a9b}.little-star{color:#38b6ff}


/* Month thumbnails fit in one screen on desktop and mobile. */
body{height:100dvh;overflow:hidden}.app{height:100%;display:flex;flex-direction:column}
.app-header{flex-shrink:0}.workspace{flex:1;min-height:0;height:auto;align-items:stretch}
main{display:flex;flex-direction:column;min-height:0;height:100%}
.sidebar{position:static;max-height:none;min-height:0;overflow:auto}
.calendar-panel{display:flex;flex-direction:column;flex:1;min-height:0}
.calendar-toolbar,.calendar-meta,.week-header,.calendar-footer{flex-shrink:0}
.calendar-grid{flex:1;min-height:0}
.day-cell{min-height:0;padding:8px 7px 6px;overflow:hidden}
.date-head{padding:0 1px 5px;gap:3px}.day-num{font-size:14px;height:24px;width:24px}
.lunar,.date-head .lunar{font-size:9px;color:#7b8fa4}
.day-preview{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0 4px}
.day-preview-count{font-size:12px;color:#2d5e80;font-weight:550;white-space:nowrap}
.day-markers{display:flex;gap:4px;align-items:center;height:6px}
.day-markers i{width:5px;height:5px;border-radius:50%;display:block}
.day-markers .marker-done{opacity:.35}.day-markers>span{font-size:9px;color:#7390a5}
.day-preview-time{font-size:10px;color:#6a8298;font-variant-numeric:tabular-nums}
.day-preview-empty{font-size:10px;color:#a1b1bf;margin-left:4px}
.calendar-footer{font-size:10px;padding:10px 16px}.calendar-footer>span:last-child{display:block}
.composer-area{position:static;flex-shrink:0;margin:0;padding:12px 3px 0;box-shadow:none}
.composer{min-height:56px}.composer textarea{font-size:13px}.composer textarea::placeholder{color:#7891a4}
.composer-label{font-size:11px}.composer-topline{margin-bottom:7px}.composer-footnote{font-size:9px;padding-top:7px}
.conversation{max-height:36px;margin-bottom:8px}.message{padding:6px 10px}
#suggestions{max-height:34px;overflow:hidden}
#day-dialog{width:510px;max-height:calc(100dvh - 40px);overflow:auto;padding:25px}
#day-dialog .dialog-heading{margin-bottom:8px}#day-dialog-title{font-size:21px}
.day-dialog-summary{font-size:12px;color:#70869b;margin:0 0 20px}
.popup-section-label{font-size:11px;font-weight:600;color:#64829a;margin:17px 0 9px}
.day-popup-task{display:flex;align-items:flex-start;gap:13px;background:#f7fbff;border:1px solid #dcecf7;border-radius:9px;padding:14px;margin-bottom:8px}
.day-popup-task>.task-check{width:19px;height:19px;margin-top:2px;font-size:11px;flex-shrink:0}
.day-popup-content{flex:1;min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:10px;row-gap:7px;text-align:left;padding:0}
.day-popup-time{color:#167ab1;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}
.day-popup-title{font-size:15px;color:#203e55;line-height:1.6;overflow-wrap:anywhere}
.day-popup-meta{grid-column:2;font-size:10px;color:#7890a5;display:flex;align-items:center;gap:5px;line-height:1.7}
.day-popup-arrow{font-size:20px;color:#9bb6c9}.day-popup-task.completed .day-popup-title{color:#869cac;text-decoration:line-through}
.popup-empty{font-size:13px;color:#8096a8;padding:19px 0;line-height:1.8}
#day-dialog>.primary-button{margin-top:21px}.primary-button{min-height:43px;align-items:center}
@media(min-width:851px) and (max-width:1150px){.workspace{grid-template-columns:210px minmax(0,1fr);gap:16px;padding:18px 16px}.calendar-toolbar{padding:15px;flex-wrap:wrap}.calendar-tools{margin-left:auto}.calendar-meta{padding-left:15px;padding-right:15px}}
@media(max-width:850px){
 .app-header{height:58px;padding:0 16px}.brand{font-size:21px}.brand-mark{font-size:34px}.brand-en{font-size:6px}.avatar{width:29px;height:29px}
 .workspace{display:block;padding:12px}.sidebar{display:none}main{height:100%}
 .calendar-toolbar{padding:14px 12px 11px;gap:10px;flex-wrap:nowrap}.month-kicker{font-size:6px;letter-spacing:1.1px}
 .month-line{gap:5px;margin-top:6px}.month-line h1{font-size:22px}.month-line h1 small{font-size:12px;margin-left:3px}.month-nav{gap:3px;margin-left:4px}.month-nav .icon-button{width:25px;height:25px}.today-button{padding:5px 7px;font-size:10px}
 .calendar-tools{gap:5px;width:auto;margin-left:auto}.search-box{padding:5px 6px}.search-box input{width:68px}.view-button{font-size:9px;padding:6px}.month-view{display:none}
 .calendar-meta{padding:0 12px 12px;gap:8px}.legend{font-size:8px;gap:10px}.calendar-meta>span{display:none}
 .week-header span{font-size:10px;padding:9px 0}.day-cell{padding:6px 4px 5px}.date-head{padding:0 1px 4px}.day-preview{padding:0 3px;gap:4px}.day-preview-count{font-size:11px}
 .calendar-footer{padding:8px 11px;font-size:9px}.calendar-footer>span:first-child{display:none}.calendar-footer>span:last-child{display:block}
 .composer-area{padding:10px 1px 0}.composer-topline{margin-bottom:6px}.composer-label{font-size:10px}.ai-status{font-size:8px}
 .composer{padding:9px 10px;gap:8px;min-height:54px}.composer textarea{font-size:12px;max-height:65px}.send-button{width:32px;height:32px}.input-mode-button{width:29px;height:29px}
 .composer-footnote{font-size:8px;padding-top:6px}.calendar-policy{display:none}.conversation{max-height:33px;margin-bottom:6px}.message{font-size:10px;padding:5px 9px}
 .suggestions{max-height:29px;margin-bottom:7px}.suggestions button{padding:6px 8px;font-size:8px}
}
@media(max-width:520px){
 .workspace{padding:9px 8px 12px}.calendar-toolbar{flex-wrap:wrap;padding:12px 10px 9px;gap:9px}.calendar-tools{width:100%;justify-content:space-between;margin:0}.search-box{flex:1;margin-right:5px}.search-box input{width:100%}
 .month-kicker{display:none}.month-line{margin-top:0}.calendar-meta{padding:0 10px 10px}.legend{gap:10px;font-size:8px}.legend i{width:4px;height:4px}
 .day-cell{padding:5px 3px}.day-num{font-size:13px;width:23px;height:23px}.date-head .lunar{display:none}.day-preview{padding:0 3px;gap:4px}.day-preview-count{font-size:10px}.desktop-task-label{display:none}.day-preview-time{font-size:9px}.day-preview-empty{display:none}
 .day-markers{gap:3px}.day-markers i{width:4px;height:4px}.calendar-footer{padding:7px 10px;font-size:8px}
 .composer-topline .composer-label{font-size:9px}.composer-topline .composer-label>span{font-size:17px}.composer textarea{font-size:12px}.composer-footnote>span{max-width:none}
 #day-dialog{max-width:calc(100% - 22px);padding:21px 17px;border-radius:15px}.day-popup-task{padding:12px 10px;gap:9px}.day-popup-title{font-size:15px}.day-popup-content{grid-template-columns:43px minmax(0,1fr);column-gap:7px}.day-popup-time{font-size:11px}.day-popup-meta{font-size:10px}.day-popup-task>.task-check{height:20px;width:20px}
}
@media(max-height:740px){.day-preview-time{display:none}.day-cell{padding-top:4px}.date-head{padding-bottom:2px}.day-preview{gap:3px}.composer-topline{display:none}.calendar-toolbar{padding-top:10px;padding-bottom:9px}.calendar-footer{padding-top:6px;padding-bottom:6px}.conversation{max-height:28px}.composer-area{padding-top:8px}}
@media(max-height:580px){.app-header{height:48px}.workspace{padding-top:8px;padding-bottom:8px}.calendar-meta{display:none}.week-header span{padding:5px 0}.calendar-toolbar{padding-top:8px;padding-bottom:8px}.month-kicker{display:none}.month-line{margin-top:0}.day-num{width:18px;height:18px;font-size:11px}.day-markers{display:none}.day-preview-count{font-size:9px}.day-preview-empty{display:none}.calendar-footer{display:none}.conversation{display:none}.composer-footnote{padding-top:4px}.composer{min-height:44px;padding-top:6px;padding-bottom:6px}.day-cell{padding:3px}.date-head{padding-bottom:0}}

.day-preview{flex-direction:row;align-items:center;justify-content:space-between;gap:3px;padding:0 2px}.day-preview-count{font-size:11px}.day-markers{flex-shrink:0;gap:3px}.day-markers i{width:4px;height:4px}.date-head{padding-bottom:4px}
@media(max-width:520px){.day-preview-count{font-size:10px}.day-preview{padding:0 2px}.day-markers{gap:2px}.day-markers i:nth-child(n+4){display:none}.day-markers>span{display:none}.date-head{padding-bottom:3px}}

/* Compact reading calendar; selecting a day updates the persistent day panel. */
.calendar-meta{justify-content:flex-end;padding-bottom:8px}
.month-task-list{display:flex;flex-direction:column;gap:2px;min-height:0;overflow:auto;scrollbar-width:thin;flex:1;padding:0 2px 2px}
.day-cell{display:flex;flex-direction:column}.date-head{flex-shrink:0}
.month-task-line{font-size:10px;line-height:1.5;color:#315b78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0;padding:0 2px;border-radius:2px;background:#edf7fd}
.month-task-time{font-size:9px;font-variant-numeric:tabular-nums;color:#087caf}
.month-task-line.is-complete{color:#8da4b4;text-decoration:line-through;background:transparent}
.greeting-card{margin-bottom:18px}.landscape{height:70px}
@media(min-width:1550px){.month-task-line{font-size:11px;line-height:1.5}.month-task-time{font-size:10px}}
@media(max-width:850px){
 .workspace{display:flex;flex-direction:column;gap:9px}main{flex:1;min-height:0;height:auto;order:0}
 .sidebar{display:block;order:1;flex:0 0 auto;max-height:24dvh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px}
 .sidebar .greeting-card,.sidebar .eyebrow,.sidebar .day-progress,.sidebar-footer{display:none}
 .day-heading{margin-bottom:8px}.day-heading h2{font-size:14px;margin:0 0 3px}.day-heading p{font-size:9px}
 .section-title{font-size:10px;margin-bottom:5px}.side-tasks{gap:5px}.side-task{padding:7px 8px}.side-task-title{font-size:12px}.side-task-sub{font-size:9px;margin-top:3px}
 .completed-section{margin-top:10px}.empty-side{padding:5px;font-size:10px}.empty-side>span{display:none}
 .calendar-meta{display:none}.calendar-footer{display:none}.month-task-line{font-size:9px;line-height:1.4;padding:0 1px}.month-task-time{font-size:8px}
 .day-cell{padding:3px 2px}.date-head{padding-bottom:1px}.day-num{height:19px;width:19px;font-size:11px}.month-task-list{gap:1px;padding:0}
 .composer-topline,.composer-footnote,.conversation,.suggestions{display:none!important}.composer-area{padding-top:7px}
 .calendar-toolbar{padding-top:8px;padding-bottom:8px}.week-header span{padding:6px 0}
}

/* Keep scrolling available without visible scrollbar tracks. */
.sidebar,.month-task-list{scrollbar-width:none;-ms-overflow-style:none}
.sidebar::-webkit-scrollbar,.month-task-list::-webkit-scrollbar{display:none;width:0;height:0}

[hidden]{display:none!important}
.account-gate{height:100dvh;overflow:auto;display:flex;justify-content:center;align-items:center;padding:24px;background:radial-gradient(ellipse at top,#ddf2ff,transparent 65%),#f3faff}
.auth-card{width:400px;max-width:100%;padding:34px;background:white;border:1px solid #d1eafa;border-radius:20px;box-shadow:0 16px 60px #087caf0d}
.auth-card .brand{font-size:24px}.auth-card h1{font-size:25px;font-weight:600;margin:26px 0 8px}.auth-intro,.admin-hint{color:#70899b;line-height:1.8;font-size:12px}
.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:24px 0 22px;gap:26px}.auth-tabs button{padding:10px 0;color:#7c93a6;font-size:14px;border-bottom:2px solid transparent}.auth-tabs button[aria-selected=true]{color:#087caf;border-color:#38b6ff}
.auth-card .field{margin:16px 0}.auth-card .primary-button{width:100%}#auth-trial{font-size:12px;color:#70899b;line-height:1.6}.auth-card input{min-height:43px}
#access-blocked p{line-height:1.8;color:#70899b}#blocked-logout{display:block;margin:18px auto 0}
#account-dialog,#admin-dialog{max-height:calc(100dvh - 32px);overflow:auto}#account-dialog{width:430px}#account-info{font-size:12px;color:#607f95;line-height:1.8}#password-form{margin:24px 0}#password-form h3{font-size:14px;font-weight:500}#password-form .field{margin:14px 0}
#account-error,#admin-error{font-size:12px;line-height:1.8;color:#087caf}#admin-dialog{width:740px}#admin-users{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.admin-user{border:1px solid #d5eaf8;border-radius:10px;padding:15px;background:#f8fcff}.admin-user-heading{display:flex;justify-content:space-between;gap:10px}.admin-user-heading span{font-size:11px;color:#087caf}.admin-user>p{font-size:10px;color:#7892a5;line-height:1.7}.admin-user .field{font-size:11px;margin:15px 0 12px}.enable-account{font-size:12px;display:flex;align-items:center;gap:6px}.admin-user-actions{display:flex;gap:10px;margin-top:16px}.admin-user-actions .primary-button{font-size:12px;min-height:32px;padding:7px 16px}
@media(max-width:520px){.auth-card{padding:26px}.header-right{gap:6px}#account-btn{max-width:95px;overflow:hidden;text-overflow:ellipsis}.header-right .avatar{display:none}#admin-users{grid-template-columns:1fr}.app-header{padding:0 12px}#admin-dialog,#account-dialog{padding:20px;max-width:calc(100% - 24px)}}

/* Keep the filing visible on the login and calendar screens. */
body{padding-bottom:24px}.site-filing{position:fixed;bottom:0;left:0;right:0;height:24px;display:flex;align-items:center;justify-content:center;background:var(--bg);color:#6482a0;font-size:11px;z-index:5}.site-filing a:hover{text-decoration:underline}.account-gate{min-height:calc(100dvh - 24px)}
