/* Compact Telegram surface; palette/control language grounded in owner's Parallel. */
:root{font:15px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color-scheme:dark;--bg:#101114;--surface:#191a1f;--field:#202127;--hover:#26272e;--line:#2a2b33;--text:#efeff4;--muted:#9c9ea9;--accent:#b0a6f5;--accent-dim:#292537;--on-accent:#171421;--danger:#eda4a4;--safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-safe-bottom,0px));--safe-top:var(--tg-safe-top,0px)}
:root[data-theme=light]{color-scheme:light;--bg:#f5f5f7;--surface:#fff;--field:#ededf2;--hover:#e6e6ed;--line:#e6e6ed;--text:#262532;--muted:#787986;--accent:#7562bc;--accent-dim:#f0ecfa;--on-accent:#fff;--danger:#ad545d}
*{box-sizing:border-box;min-width:0}body{margin:0;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}main{max-width:640px;margin:auto;padding:calc(12px + var(--safe-top)) 16px calc(88px + var(--safe-bottom))}button,input,textarea,select,a{font:inherit;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;background:transparent;color:inherit;touch-action:manipulation}button:disabled{opacity:.5;cursor:wait}button,a,label.upload{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}h1,h2,p{margin:0}h1{font-size:23px;line-height:1.25;font-weight:650;letter-spacing:-.55px}h2{font-size:20px;font-weight:630;letter-spacing:-.4px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:16px}.page-heading{display:flex;align-items:baseline;gap:10px}#page-count{font-size:13px;color:var(--muted)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:12px;color:var(--muted)}.icon-button:hover{background:var(--surface);color:var(--text)}.glyph{display:inline-block;width:20px;height:20px;flex:0 0 auto;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}.toolbar{display:flex;gap:10px}.search{display:flex;align-items:center;gap:8px;flex:1;background:var(--field);border-radius:12px;padding:0 12px;color:var(--muted)}input,textarea,select{width:100%;border:1px solid transparent;background:var(--field);border-radius:11px;padding:11px 12px;color:var(--text);outline:none;min-height:44px;font-size:16px}input:focus,textarea:focus,select:focus{border-color:var(--accent)}.search input{background:transparent;padding:11px 0;font-size:14px}.search:focus-within{outline:1px solid var(--accent)}.search input:focus{border-color:transparent}.filters{display:flex;gap:5px;margin:14px 0 8px}.filters button{min-height:40px;padding:9px 12px;border-radius:10px;color:var(--muted);font-size:12px}.filters button.active{background:var(--accent-dim);color:var(--accent)}.count{font-size:11px;margin-left:3px;opacity:.75}.task,.file{display:flex;gap:10px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line)}.check{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:11px;background:var(--surface);color:var(--muted);margin-left:-2px}.check::before{content:"";border:1.5px solid var(--muted);border-radius:6px;width:19px;height:19px}.check.done{color:var(--accent)}.check.done::before{display:none}.check.done .glyph{width:21px;height:21px}.task-content{flex:1;min-width:0;padding-top:2px}.task-title{display:block;padding:0;text-align:left;font-size:14px;font-weight:560;line-height:1.5;overflow-wrap:anywhere;color:var(--text)}.task-content p{font-size:12px;line-height:1.5;color:var(--muted);margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:7px}.tags:empty{display:none}.tag{font-size:10px;padding:2px 6px;border-radius:5px;background:var(--field);color:var(--muted)}.tag.urgent,.tag.high,.overdue{color:var(--danger)}.delete{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:10px;color:var(--muted)}.delete .glyph{width:17px;height:17px}.delete:hover{background:var(--surface)}.muted{color:var(--muted);font-size:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.upload{position:relative;cursor:pointer}.upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}.upload:focus-within{outline:2px solid var(--accent);outline-offset:3px}.file-icon{display:flex;align-items:center;justify-content:center;width:40px;height:44px;border-radius:11px;background:var(--surface);color:var(--accent);flex:0 0 40px}.file-icon .glyph{width:21px;height:21px}.quota{background:var(--surface);border-radius:16px;padding:20px;margin-bottom:12px}.quota-top{display:flex;justify-content:space-between;align-items:center;font-size:14px}.quota-top b{font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.5px}.quota-top small{font-size:19px;margin-left:3px;font-weight:500}.bar{height:6px;border-radius:4px;overflow:hidden;margin:18px 0 13px}progress.bar{width:100%;display:block;border:0;appearance:none}progress.bar::-webkit-progress-bar{background:var(--field);border-radius:4px}progress.bar::-webkit-progress-value{background:var(--accent);border-radius:4px}progress.bar::-moz-progress-bar{background:var(--accent);border-radius:4px}#quota-updated{font-size:11px;margin:0 2px 24px}.model{padding:17px 0;border-top:1px solid var(--line)}.model>div{display:flex;justify-content:space-between;align-items:center}.model b{font-size:14px;font-weight:550}.model span{font-size:12px;color:var(--muted)}.model p{font-size:12px;color:var(--muted);margin-top:5px}.quota-note{font-size:11px;line-height:1.7;max-width:300px}.welcome{padding:44px 10px;text-align:center}.welcome-icon{width:36px;height:36px;color:var(--accent);margin-bottom:20px}.welcome p{font-size:14px;color:var(--muted);margin:12px 0 24px}.welcome small{display:block;color:var(--muted);font-size:11px;margin-top:16px}#notice:not(:empty){padding:10px 12px;border-radius:10px;background:var(--surface);color:var(--muted);margin-bottom:12px;font-size:12px}dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:20px;border:0;border-radius:20px;background:var(--surface);color:var(--text)}dialog::backdrop{background:#0009}dialog .section-head{margin-bottom:16px}dialog h2{font-size:18px}form>label,.form-row>label{display:block;color:var(--muted);font-size:12px;margin-bottom:14px}form input,form textarea,form select{display:block;margin-top:6px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wide{width:100%;margin-top:4px}#trash{margin-top:24px;color:var(--muted);font-size:12px}#trash summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.tab[hidden],[hidden]{display:none!important}@media(max-width:360px){main{padding-left:12px;padding-right:12px}.form-row{grid-template-columns:1fr}}@media(min-width:700px){main{padding-top:24px;padding-left:24px;padding-right:24px}.topbar{margin-bottom:24px}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,color .15s,opacity .15s}button:active:not(:disabled){opacity:.75}#refresh:disabled .icon{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}}
.i-refresh-cw{--icon:url("/icons/refresh-cw.svg")}
.i-list-todo{--icon:url("/icons/list-todo.svg")}
.i-folder{--icon:url("/icons/folder.svg")}
.i-chart-no-axes-column{--icon:url("/icons/chart-no-axes-column.svg")}
.i-plus{--icon:url("/icons/plus.svg")}
.i-search{--icon:url("/icons/search.svg")}
.i-archive{--icon:url("/icons/archive.svg")}
.i-x{--icon:url("/icons/x.svg")}
.i-check{--icon:url("/icons/check.svg")}
.i-file-text{--icon:url("/icons/file-text.svg")}
.i-upload{--icon:url("/icons/upload.svg")}
.i-inbox{--icon:url("/icons/inbox.svg")}

/* Exact Parallel shell/nav and calendar blocks, adapted only to this product's routes. */
#app.app-ready{max-width:760px;left:50%;right:auto;width:100%;transform:translateX(-50%)}#app.app-ready .shell{margin:0;width:100%;max-width:none;padding:0 0 calc(70px + var(--safe-bottom));height:100%;display:flex;flex-direction:column}#app.app-ready .topbar{min-height:62px;padding:calc(10px + var(--safe-top)) 18px 10px;flex-shrink:0;margin:0}.page-content{padding:16px 18px 16px}.page-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}.bottomnav{isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 18px calc(10px + var(--safe-bottom));border:0;background:var(--bg);left:0;right:0;transform:none;width:100%;max-width:none}.bottomnav button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:50px;padding:6px 0;font-size:10px;gap:5px;border:0;color:var(--muted)}.bottomnav button.active{color:var(--accent)}.nav-highlight{position:absolute;top:10px;left:18px;width:calc((100% - 52px)/3);height:50px;background:var(--accent-dim);border-radius:14px;transform:translateX(calc(var(--nav-index,0)*(100% + 8px)));transition:transform .28s cubic-bezier(.22,.75,.2,1);z-index:-1;pointer-events:none}.bottomnav .glyph{width:21px;height:21px}.calendar-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.calendar-head h2{font-size:24px;line-height:1.25}.calendar-head .muted{margin-top:5px;text-transform:capitalize}.calendar-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px}.calendar-tools .week-navigation{gap:4px}.calendar-tools .segmented{margin:0}.calendar-tools .segmented button{padding:8px 12px;font-size:12px;min-height:38px}.month-grid{background:var(--surface);border-radius:18px;padding:10px;margin-bottom:20px}.month-grid .calendar-day{min-height:44px;position:relative}.month-grid .calendar-day.has-tasks::after{content:"";position:absolute;bottom:5px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:var(--accent)}.month-grid .calendar-day[aria-pressed=true]::after{background:var(--on-accent)}.day-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.day-list-head h3{font-size:15px;text-transform:capitalize}.calendar-note{margin-top:12px;font-size:11px;color:var(--muted)}.more-link{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:64px;font-size:15px}.more-link .glyph{color:var(--accent)}.more-link:hover{background:var(--surface-2)}.settings-panel h3{font-size:16px}.settings-panel>.muted{margin-bottom:20px}.settings-panel .field{margin-top:14px}#icloud-form .text-btn{display:inline-flex;padding:8px 0}#icloud-connected{display:flex;gap:8px;flex-wrap:wrap}.day-content .task-row{padding:15px 18px}.task-row.completing{opacity:0;transform:translateX(12px);transition:opacity .3s,transform .3s}.tab-enter{animation:tab-enter .22s cubic-bezier(.2,.7,.2,1)}@keyframes tab-enter{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.tab-enter{animation:none}.task-row.completing{transition:none}}@media(max-width:400px){.calendar-head h2{font-size:22px}.calendar-tools .segmented button{padding:8px 9px;font-size:11px}}
/* Fit the original date control beside the period switch without wrapping its label. */
.calendar-tools .week-navigation{flex:1;width:auto;min-width:0;gap:2px}.calendar-tools .calendar-date{flex:1;margin:0}.calendar-tools .control-trigger{white-space:nowrap;gap:5px;font-size:12px;padding:9px 5px}.calendar-tools .control-trigger .icon{width:15px;height:15px}.calendar-tools .icon-btn{width:28px;min-width:28px}.calendar-tools .segmented{width:auto;flex:0 0 auto}.calendar-tools .segmented button{padding:8px 9px}.conflict-row{padding:12px 0;border-top:1px solid var(--line)}.conflict-row p{margin-bottom:8px}.conflict-row .btn+.btn{margin-left:6px}
@media(max-width:370px){.calendar-tools{display:grid;grid-template-columns:1fr}.calendar-tools .segmented{justify-self:stretch}.calendar-tools .segmented button{flex:1}.calendar-tools .control-trigger{justify-content:center}.calendar-tools .week-navigation{justify-content:space-between}}

/* Preserve Parallel's complete sheet and controls; scrolling stays available without chrome. */
#sheet .field{margin:0}#sheet input,#sheet textarea,#sheet select{margin-top:0}#sheet .sheet-foot .btn{flex:1}#sheet .sheet-head h2{font-size:20px}#sheet .sheet-body{padding:20px}.page-scroll,.control-popup,.select-options,.sheet-body{scrollbar-width:none}.page-scroll::-webkit-scrollbar,.control-popup::-webkit-scrollbar,.select-options::-webkit-scrollbar,.sheet-body::-webkit-scrollbar{display:none;width:0;height:0}.date-popup{padding:12px}.date-popup .calendar-day{min-height:32px;height:32px}.date-popup .calendar-weekday{padding:3px}.date-popup .calendar-nav{margin-bottom:6px}.date-popup .picker-time{margin-top:8px}.date-popup .picker-shortcuts{margin-top:8px}.date-popup .picker-apply{margin-top:8px}.cloud-event{padding:16px 18px;border-bottom:1px solid var(--border);display:flex;gap:12px}.cloud-event .icon{color:var(--accent);flex-shrink:0}.cloud-event h4{margin:0;font-size:14px;overflow-wrap:anywhere}.cloud-event p{margin-top:5px;font-size:12px;color:var(--muted)}.cloud-source{display:inline-block;font-size:10px;margin-top:6px;color:var(--accent)}.calendar-connection{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:12px;color:var(--muted)}

#sheet .sheet-body .field{display:flex;flex-direction:column;gap:8px;color:var(--text)}#sheet .sheet-foot{gap:10px}.control-popup .picker-error:empty{display:none}.control-popup .picker-time input{min-height:36px;padding:6px}.control-popup .picker-apply{min-height:40px}.control-popup .calendar-nav .icon-btn{min-height:32px;height:32px}.control-popup .picker-shortcuts .text-btn{padding:6px 2px}

.task-filters{margin:14px 0 12px}.task-filters button{min-height:40px;font-size:12px}.toolbar #add-task{flex:0 0 auto}.toolbar #add-task .icon{width:17px;height:17px}
