/* Taclen: composition from the handoff, isolated from the original Groot UI. */
.taclen-only, #tc-workspace, #tc-nav-extra, .tc-nav-icon, .tc-goals-label, .tc-header-caption { display:none; }
.tc-compose-chrome, #tc-ai-toggle { display:none; }
.taclen-day-main, .taclen-day-aside { display:contents; }
html[data-design="taclen"] body {
 --bg-primary:#F5EFE5; --bg-card:#FFFFFF; --bg-card-elevated:#FCFAF7;
 --text-primary:#30302E; --text-secondary:#716A62; --text-tertiary:#716A62;
 --separator:#DED6CB; --bar-bg:#F5EFE5; --fill-secondary:#F0DFD5; --sheet-bg:#FCFAF7;
 --ios-blue:#9B4E38; --ios-green:#526F4B; --ios-red:#B13229; --ios-orange:#9B4E38; --ios-purple:#716A62;
 --card-shadow:none; --tc-accent:#B76A51; --tc-surface:#FCFAF7; --tc-on-accent:#FFFFFF; --taclen-button-text:#FFFFFF;
 --grabber-color:#716A62; --taclen-dot:#B76A51;
 font-family:"Segoe UI",Arial,sans-serif; font-size:16px; line-height:1.5;
}
html[data-design="taclen"].theme-dark body {
 --bg-primary:#1C1B19; --bg-card:#292724; --bg-card-elevated:#292724;
 --text-primary:#F4EFE7; --text-secondary:#BCB4AA; --text-tertiary:#BCB4AA;
 --separator:#3D3934; --bar-bg:#23211F; --fill-secondary:#44312A; --sheet-bg:#23211F;
 --ios-blue:#D68C70; --ios-green:#93B783; --ios-red:#FFAAA0; --ios-orange:#D68C70; --ios-purple:#BCB4AA;
 --tc-accent:#D68C70; --tc-surface:#23211F; --tc-on-accent:#1C1B19; --taclen-button-text:#1C1B19; --grabber-color:#BCB4AA; --taclen-dot:#D68C70;
}
html[data-design="taclen"] :is(.ios-header,.ios-tab-bar,.ios-sheet) { backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:none; }
html[data-design="taclen"] :is(.ios-card,.tc-card) { border:1px solid var(--separator); border-radius:12px; background:var(--bg-card); box-shadow:none; }
html[data-design="taclen"] :is(button,input,textarea,select) { font-family:inherit; }
html[data-design="taclen"] :is(button,a,input,textarea,select,summary,[tabindex]):focus-visible { outline:2px solid var(--ios-blue); outline-offset:3px; }
html[data-design="taclen"] :is(.tc-center,.tc-aside,.tc-compose-body) { min-width:0; }
html[data-design="taclen"] #tc-workspace svg, html[data-design="taclen"] #tc-nav-extra svg, html[data-design="taclen"] .tc-nav-icon svg { width:24px; height:24px; flex-shrink:0; }
html[data-design="taclen"] #tc-workspace button, html[data-design="taclen"] #tc-nav-extra button { cursor:pointer; }
html[data-design="taclen"] #tc-workspace [hidden], html[data-design="taclen"] #tc-nav-extra [hidden] { display:none !important; }
html[data-design="taclen"] #view-today > :is(.taclen-day-main,.taclen-day-aside) { display:none; }
html[data-design="taclen"] .taclen-only { display:flex; }
html[data-design="taclen"] :is(.taclen-compose,.taclen-rhythm,.taclen-more-menu,.taclen-nav-settings,.desktop-brand) { display:none; }
html[data-design="taclen"] .ios-header { padding:24px 32px 16px; background:var(--bg-primary); border:0; transition:none; }
html[data-design="taclen"] .header-subtitle { text-transform:none; letter-spacing:0; font-size:16px; color:var(--text-secondary); }
html[data-design="taclen"] .header-large-title { font-size:44px; font-weight:700; letter-spacing:-1.5px; line-height:1.15; }
html[data-design="taclen"] .tc-header-caption { display:block; color:var(--text-secondary); font-size:18px; margin-top:8px; }
html[data-design="taclen"] #tc-workspace { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:28px; align-items:start; }
html[data-design="taclen"] .ios-content { max-width:1600px; padding:12px 32px 40px; }
html[data-design="taclen"] .tc-compose { display:flex; align-items:flex-start; gap:20px; padding:20px; margin:0 0 16px; }
html[data-design="taclen"] .tc-day-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; margin-bottom:16px; }
html[data-design="taclen"] .tc-summary-title { font-size:13px; color:var(--text-secondary); margin-bottom:6px; }
html[data-design="taclen"] #tc-progress-ring { flex:0 0 76px; width:76px; height:76px; }
html[data-design="taclen"] #tc-progress-ring svg { width:76px; height:76px; }
html[data-design="taclen"] .tc-ai-mark { display:flex; align-items:baseline; justify-content:center; gap:1px; background:var(--text-primary); color:var(--bg-primary); font-size:36px; font-weight:750; line-height:1.3; border-radius:12px; width:54px; height:54px; flex-shrink:0; padding-top:3px; }
html[data-design="taclen"] .tc-ai-mark i, html[data-design="taclen"] .taclen-wordmark i { display:inline-block; background:var(--tc-accent); width:10px; height:10px; border-radius:2px; }
html[data-design="taclen"] .tc-compose-body { flex:1; }
html[data-design="taclen"] .tc-compose label { display:block; font-size:18px; font-weight:650; margin:0 0 10px; }
html[data-design="taclen"] #tc-input { display:block; width:100%; resize:vertical; min-height:76px; max-height:180px; border:1px solid var(--separator); border-radius:10px; padding:12px; font-size:16px; line-height:1.5; color:var(--text-primary); background:transparent; user-select:text; -webkit-user-select:text; }
html[data-design="taclen"] .tc-compose-tools { display:flex; gap:8px; align-items:center; margin-top:10px; }
html[data-design="taclen"] .tc-compose-tools button { border:0; background:transparent; color:var(--text-primary); display:grid; place-items:center; width:44px; height:44px; border-radius:10px; flex-shrink:0; }
html[data-design="taclen"] #tc-compose-hint { font-size:13px; color:var(--text-secondary); flex:1; }
html[data-design="taclen"] #tc-send { margin-left:auto; width:56px; color:var(--tc-on-accent); background:var(--ios-blue); }
html[data-design="taclen"] #tc-compose-status:not([hidden]) { display:flex; align-items:center; gap:8px; width:100%; margin:8px 0 0; font-size:14px; color:var(--text-primary); overflow-wrap:anywhere; }
html[data-design="taclen"] #tc-compose-status small { margin-left:auto; flex-shrink:0; color:var(--text-secondary); }
html[data-design="taclen"] #tc-sent-preview:not([hidden]) { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; width:100%; margin:8px 0 0; padding:8px 10px; border-radius:8px; background:var(--fill-secondary); color:var(--text-primary); font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
html[data-design="taclen"] #tc-mic[aria-pressed="true"] { background:var(--fill-secondary); color:var(--ios-red); }
html[data-design="taclen"] .tc-files { display:flex; gap:6px; flex-wrap:wrap; }
html[data-design="taclen"] .tc-files button { padding:6px 10px; min-height:36px; border:1px solid var(--separator); color:var(--text-secondary); background:var(--tc-surface); border-radius:8px; overflow-wrap:anywhere; }
html[data-design="taclen"] .tc-plan-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0 12px; }
html[data-design="taclen"] .tc-plan-heading h2 { font-size:26px; letter-spacing:-.5px; }
html[data-design="taclen"] #tc-progress { color:var(--text-secondary); font-size:13px; }
html[data-design="taclen"] .tc-filters { display:flex; gap:6px; margin-left:auto; }
html[data-design="taclen"] .tc-filters button { border:1px solid var(--separator); border-radius:12px; padding:6px 12px; min-height:36px; color:var(--text-secondary); background:var(--tc-surface); font-size:13px; }
html[data-design="taclen"] .tc-filters button[aria-pressed="true"] { border-color:var(--ios-blue); color:var(--tc-on-accent); background:var(--ios-blue); }
html[data-design="taclen"] .tc-mobile-add { display:none; }
html[data-design="taclen"] #tc-tasks { overflow:visible; display:flex; flex-direction:column; gap:12px; }
html[data-design="taclen"] .tc-groups-button { border:1px solid var(--separator); border-radius:10px; background:var(--tc-surface); color:var(--text-primary); padding:8px 12px; min-height:40px; margin-bottom:12px; }
html[data-design="taclen"] .tc-plan-controls { display:flex; flex-direction:column; gap:10px; margin:0 0 14px; min-width:0; }
html[data-design="taclen"] .tc-plan-controls .tc-filters { order:0; margin:0; width:100%; min-width:0; overflow-x:auto; padding:1px; gap:6px; }
html[data-design="taclen"] .tc-plan-controls .tc-filters button { flex:0 0 auto; min-height:40px; white-space:nowrap; }
html[data-design="taclen"] .tc-plan-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
html[data-design="taclen"] .tc-plan-actions button { min-height:40px; border:1px solid var(--separator); border-radius:10px; padding:8px 12px; background:var(--tc-surface); color:var(--text-primary); font:inherit; font-size:13px; white-space:nowrap; }
html[data-design="taclen"] .tc-plan-actions .tc-groups-button { margin:0; }
html[data-design="taclen"] #tc-selection-actions .task-selection-toolbar { margin:0; gap:8px; }
html[data-design="taclen"] #tc-selection-actions:has([data-select-mode][aria-pressed="true"]) { order:3; flex-basis:100%; }
html[data-design="taclen"] #tc-tasks[data-task-sort]:not([data-task-sort="manual"]) .drag-handle { visibility:hidden; }
html[data-design="taclen"] #tc-tasks .task-section-card { margin:0; overflow:visible; border:1px solid var(--separator); border-left:3px solid var(--section-tone); border-radius:12px; background:var(--tc-surface); }
html[data-design="taclen"] #tc-tasks .task-section-bar { border-radius:10px 10px 0 0; min-height:44px; }
html[data-design="taclen"] #tc-tasks .ios-row { display:flex; align-items:center; gap:12px; padding:12px 16px; min-height:60px; background:transparent; border-left:0; }
html[data-design="taclen"] #tc-tasks .ios-row:has(details[open]) { z-index:5; }
html[data-design="taclen"] #tc-tasks .ios-row::after { left:0; right:0; height:1px; }
html[data-design="taclen"] #tc-tasks .drag-handle { display:flex; flex:0 0 28px; min-height:36px; padding:4px; margin:0; color:var(--text-secondary); opacity:.75; }
html[data-design="taclen"] #tc-tasks .ios-row { gap:8px; padding-left:8px; }
html[data-design="taclen"] #tc-tasks .ios-checkbox { width:25px; height:25px; margin:0; border-color:var(--text-secondary); position:relative; }
html[data-design="taclen"] #tc-tasks .ios-checkbox::before { content:""; position:absolute; inset:-10px; }
html[data-design="taclen"] .ios-checkbox.checked { background:var(--ios-green); border-color:var(--ios-green) !important; }
html[data-design="taclen"].theme-dark .ios-checkbox.checked::after { border-color:#1C1B19; }
html[data-design="taclen"] #tc-tasks .row-body { display:block; min-width:0; cursor:pointer; }
html[data-design="taclen"] #tc-tasks .row-title { flex:1; min-width:0; font-size:16px; font-weight:400; overflow-wrap:anywhere; }
html[data-design="taclen"] #tc-tasks .row-subtitle { margin:0; flex-shrink:0; font-size:13px; }
html[data-design="taclen"] .tc-task-project { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--text-secondary); flex-shrink:0; min-width:65px; }
html[data-design="taclen"] .tc-task-project i, html[data-design="taclen"] #tc-projects i { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--project-color,var(--tc-accent)); flex-shrink:0; }
html[data-design="taclen"] #tc-tasks .ios-row.important-task .row-title::before { content:"★ "; color:var(--ios-blue); }
html[data-design="taclen"] .tc-task-menu { position:relative; flex-shrink:0; }
html[data-design="taclen"] .tc-task-menu summary { display:grid; place-items:center; list-style:none; cursor:pointer; width:32px; height:36px; font-size:24px; }
html[data-design="taclen"] .tc-task-menu summary::-webkit-details-marker { display:none; }
html[data-design="taclen"] .tc-task-menu > div { position:absolute; right:0; top:100%; width:210px; padding:6px; border:1px solid var(--separator); border-radius:12px; background:var(--sheet-bg); box-shadow:0 6px 20px #0002; z-index:20; }
html[data-design="taclen"] .tc-task-menu button { display:block; width:100%; min-height:44px; padding:8px; margin:0; text-align:left; font-size:14px; border:0; background:transparent; color:var(--text-primary); opacity:1; filter:none; transform:none; }
html[data-design="taclen"] .tc-task-menu .delete-btn { color:var(--ios-red); }
html[data-design="taclen"] .tc-task-menu button:hover { background:var(--fill-secondary); border-radius:6px; }
html[data-design="taclen"] #tc-undated-section { margin:16px 0; padding:0; min-width:0; }
html[data-design="taclen"] #tc-undated-toggle { display:flex; align-items:center; gap:12px; padding:16px; min-height:72px; list-style:none; cursor:pointer; }
html[data-design="taclen"] #tc-undated-toggle::-webkit-details-marker { display:none; }
html[data-design="taclen"] #tc-undated-toggle > span:first-child { flex:1; min-width:0; }
html[data-design="taclen"] #tc-undated-toggle strong { display:block; font-size:16px; font-weight:600; color:var(--text-primary); }
html[data-design="taclen"] #tc-undated-toggle small { display:block; margin-top:4px; font-size:12px; color:var(--text-secondary); }
html[data-design="taclen"] #tc-undated-count { display:grid; place-items:center; min-width:28px; height:28px; padding:0 8px; border-radius:9px; background:var(--fill-secondary); color:var(--ios-blue); font-size:13px; font-weight:600; }
html[data-design="taclen"] .tc-undated-chevron { color:var(--text-secondary); font-size:22px; }
html[data-design="taclen"] #tc-undated-section[open] .tc-undated-chevron { transform:rotate(180deg); }
html[data-design="taclen"] #tc-undated .ios-row { display:flex; align-items:center; gap:12px; padding:12px 16px; min-height:64px; background:transparent; border-top:1px solid var(--separator); }
html[data-design="taclen"] #tc-undated .ios-row::after { display:none; }
html[data-design="taclen"] #tc-undated .drag-handle { display:none; }
html[data-design="taclen"] #tc-undated .row-body { display:block; min-width:0; flex:1; cursor:pointer; }
html[data-design="taclen"] #tc-undated .row-title { font-size:16px; font-weight:400; overflow-wrap:anywhere; }
html[data-design="taclen"] #tc-undated .ios-checkbox { flex-shrink:0; width:25px; height:25px; }
html[data-design="taclen"] #tc-undated .important-task .row-title::before { content:'★ '; color:var(--ios-blue); }
html[data-design="taclen"] .tc-plan-options { margin:12px 0; font-size:12px; color:var(--text-secondary); }
html[data-design="taclen"] .tc-plan-options summary { cursor:pointer; padding:6px 0; }
html[data-design="taclen"] .tc-plan-options > div { display:flex; gap:8px; flex-wrap:wrap; }
html[data-design="taclen"] .tc-plan-options button { color:var(--ios-blue); background:transparent; border:1px solid var(--separator); border-radius:8px; padding:8px; min-height:44px; }
html[data-design="taclen"] .tc-aside { padding:22px 20px; background:var(--tc-surface); min-height:680px; display:flex; flex-direction:column; }
html[data-design="taclen"] .tc-aside h2 { font-size:24px; letter-spacing:-.5px; }
html[data-design="taclen"] .tc-month { display:flex; gap:8px; align-items:center; margin:18px 0; }
html[data-design="taclen"] .tc-month span { flex:1; font-size:16px; text-transform:capitalize; }
html[data-design="taclen"] .tc-month button { border:0; background:transparent; color:var(--text-primary); font-size:28px; width:32px; height:44px; }
html[data-design="taclen"] .tc-week { display:flex; overflow-x:auto; min-width:0; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; margin-bottom:24px; cursor:grab; -webkit-overflow-scrolling:touch; }
html[data-design="taclen"] .tc-week::-webkit-scrollbar { display:none; }
html[data-design="taclen"] .tc-week-page { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; flex:0 0 100%; min-width:0; scroll-snap-align:start; }
html[data-design="taclen"] .tc-week.is-dragging { scroll-snap-type:none; cursor:grabbing; }
html[data-design="taclen"] .tc-week button { user-select:none; -webkit-user-select:none; }
html[data-design="taclen"] .tc-week button { display:flex; flex-direction:column; align-items:center; gap:10px; border:0; background:transparent; color:var(--text-primary); min-height:64px; }
html[data-design="taclen"] .tc-week span { font-size:12px; color:var(--text-secondary); }
html[data-design="taclen"] .tc-week b { width:32px; height:36px; display:grid; place-items:center; font-size:14px; font-weight:400; border-radius:50%; }
html[data-design="taclen"] .tc-week [aria-current="date"] b { box-shadow:inset 0 0 0 2px var(--ios-blue); color:var(--ios-blue); font-weight:600; }
html[data-design="taclen"] .tc-week [aria-pressed="true"] b { background:var(--ios-blue); color:var(--tc-on-accent); }
html[data-design="taclen"] .tc-schedule { border-top:1px solid var(--separator); border-bottom:1px solid var(--separator); padding:20px 0; margin-bottom:24px; }
html[data-design="taclen"] .tc-schedule button { display:flex; align-items:flex-start; gap:12px; width:100%; border:0; padding:12px 0; text-align:left; color:var(--text-primary); background:transparent; font-size:15px; }
html[data-design="taclen"] .tc-schedule time { flex-shrink:0; font-size:14px; }
html[data-design="taclen"] .tc-schedule button > i { width:10px; height:10px; background:var(--tc-accent); border-radius:50%; margin-top:6px; flex-shrink:0; }
html[data-design="taclen"] .tc-schedule button > span { min-width:0; overflow-wrap:anywhere; }
html[data-design="taclen"] .tc-schedule small { margin-top:10px; }
html[data-design="taclen"] :is(.tc-muted,.tc-timeline-extra) { color:var(--text-secondary); font-size:13px; }
html[data-design="taclen"] .tc-timeline-extra { margin-top:12px; }
html[data-design="taclen"] .tc-habit { display:flex; align-items:center; gap:12px; width:100%; border:0; color:var(--text-primary); background:transparent; padding:18px 0; text-align:left; }
html[data-design="taclen"] .tc-habit > span:nth-child(2) { flex:1; min-width:0; }
html[data-design="taclen"] .tc-habit strong { font-size:15px; font-weight:500; overflow-wrap:anywhere; }
html[data-design="taclen"] .tc-habit-icon { display:grid; place-items:center; width:44px; height:48px; background:var(--bg-primary); border-radius:12px; flex-shrink:0; }
html[data-design="taclen"] .tc-habit small { font-size:12px; color:var(--text-secondary); }
html[data-design="taclen"] .tc-habit-dots { display:flex; gap:8px; margin-top:10px; }
html[data-design="taclen"] .tc-habit-dots i { display:grid; place-items:center; width:12px; height:12px; border:1px solid var(--text-secondary); border-radius:50%; font-size:9px; font-style:normal; }
html[data-design="taclen"] .tc-habit-dots .done { border-color:var(--ios-green); background:var(--ios-green); color:var(--bg-card); }
html[data-design="taclen"] .tc-open-calendar { display:flex; align-items:center; gap:12px; margin-top:auto; padding:22px 0 0; border:0; border-top:1px solid var(--separator); background:transparent; color:var(--text-primary); font-size:15px; text-align:left; min-height:60px; }
html[data-design="taclen"] .tc-open-calendar span:nth-child(2) { flex:1; }
html[data-design="taclen"] #tc-mobile-habits { display:none; }
html[data-design="taclen"] .tc-review { border-left:5px solid var(--tc-accent); padding:18px 20px; margin-bottom:20px; }
html[data-design="taclen"] .tc-review-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:12px; }
html[data-design="taclen"] .tc-review-heading svg { color:var(--ios-blue); }
html[data-design="taclen"] .tc-review-heading h2 { font-size:19px; }
html[data-design="taclen"] .tc-review-heading > span { border-radius:16px; padding:5px 12px; color:var(--ios-blue); background:var(--fill-secondary); font-size:12px; }
html[data-design="taclen"] .tc-draft-item { border-top:1px solid var(--separator); padding:10px 0; display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
html[data-design="taclen"] .tc-draft-item > label { display:flex; gap:12px; align-items:center; flex:1; min-width:100px; }
html[data-design="taclen"] .tc-draft-item input[type=checkbox] { accent-color:var(--ios-blue); width:24px; height:24px; flex-shrink:0; }
html[data-design="taclen"] .tc-draft-text { font-size:15px; overflow-wrap:anywhere; }
html[data-design="taclen"] .tc-draft-tag { padding:7px 12px; border-radius:10px; font-size:12px; background:var(--fill-secondary); color:var(--ios-blue); }
html[data-design="taclen"] .tc-draft-item > button { border:0; background:transparent; color:var(--text-secondary); width:36px; height:44px; font-size:22px; }
html[data-design="taclen"] .tc-review-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; }
html[data-design="taclen"] .tc-review-actions button { border:1px solid var(--separator); padding:10px 20px; min-height:44px; border-radius:10px; background:transparent; color:var(--text-primary); font-size:14px; }
html[data-design="taclen"] .tc-review-actions .tc-primary { background:var(--ios-blue); color:var(--tc-on-accent); border-color:var(--ios-blue); }
html[data-design="taclen"] .tc-draft-editor { display:grid; grid-template-columns:1fr 1fr; gap:12px; width:100%; padding:12px 0; }
html[data-design="taclen"] .tc-draft-editor label { font-size:12px; color:var(--text-secondary); }
html[data-design="taclen"] .tc-draft-editor label:has(textarea) { grid-column:1/-1; }
html[data-design="taclen"] .tc-draft-editor :is(input,select,textarea) { display:block; width:100%; min-width:0; padding:10px; border:1px solid var(--separator); border-radius:8px; color:var(--text-primary); background:var(--sheet-bg); font-size:16px; }
html[data-design="taclen"] .tc-review-note { color:var(--text-secondary); font-size:12px; margin-top:12px; }
html[data-design="taclen"] :is(.tc-source,.tc-assistant-message,.tc-review-mobile-heading) { display:none; }
html[data-design="taclen"] .tc-error { color:var(--ios-red); padding:8px 0; overflow-wrap:anywhere; }
html[data-design="taclen"] #tc-result { color:var(--ios-green); padding:10px 0; }
html[data-design="taclen"] .tc-inbox-chip { display:flex; align-items:center; gap:14px; width:100%; padding:16px; border-radius:12px; border:0; background:var(--fill-secondary); color:var(--text-primary); margin:12px 0; }
html[data-design="taclen"] .tc-inbox-chip b { margin-left:auto; padding:2px 8px; background:var(--ios-blue); color:var(--tc-on-accent); border-radius:50%; }
html[data-design="taclen"] #tc-inbox-panel { margin-bottom:16px; }
html[data-design="taclen"] .ios-checkbox { border-color:var(--text-secondary); }
html[data-design="taclen"] .ai-bubble-user { background:var(--fill-secondary); color:var(--text-primary); }
html[data-design="taclen"] .ios-row:is(.important-task,.rolled-task) { background:transparent; border-left-color:var(--ios-blue); }
html[data-design="taclen"] .form-row-theme { flex-wrap:wrap; gap:12px; }
html[data-design="taclen"] .team-board-column { background:var(--tc-surface); }
html[data-design="taclen"] .team-board-card { background:var(--bg-card); box-shadow:none; }
html[data-design="taclen"] .taclen-wordmark { align-items:baseline; gap:3px; font-size:40px; font-weight:800; line-height:1.2; letter-spacing:-2px; color:var(--text-primary); }
html[data-design="taclen"] .tc-nav-icon { display:flex; }
html[data-design="taclen"] .tab-icon { display:none; }
html[data-design="taclen"] .ios-tab-bar { background:var(--bar-bg); }
html[data-design="taclen"] .ios-tab-bar .tab-item { color:var(--text-primary); }
html[data-design="taclen"] .ios-tab-bar .tab-item.active { color:var(--ios-blue); background:var(--fill-secondary); }
html[data-design="taclen"] body:has(#view-today.active) .ai-fab { display:none; }
html[data-design="taclen"] .tc-profile { display:flex; align-items:center; gap:12px; margin-top:auto; padding-top:20px; border-top:1px solid var(--separator); font-size:14px; }
html[data-design="taclen"] #tc-profile-avatar { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--ios-blue); color:var(--tc-on-accent); font-size:20px; }
html[data-design="taclen"] #tc-profile-name { flex:1; overflow:hidden; text-overflow:ellipsis; }
html[data-design="taclen"] .tc-profile button { background:transparent; color:var(--text-primary); border:0; width:32px; height:44px; font-size:24px; }
@media(min-width:1024px) {
 html[data-design="taclen"] body { --desktop-nav-width:240px; }
 html[data-design="taclen"] .ios-tab-bar { gap:6px; padding:24px 16px; }
 html[data-design="taclen"] .taclen-nav-brand { display:flex; order:0; padding:0 8px 20px; }
 html[data-design="taclen"] .ios-header > .taclen-wordmark { display:none; }
 html[data-design="taclen"] .taclen-space { display:flex; align-items:center; justify-content:space-between; order:1; padding:10px 16px; border:1px solid var(--separator); border-radius:10px; background:transparent; color:var(--text-primary); font-size:15px; min-height:44px; }
 html[data-design="taclen"] .tc-search { display:flex; align-items:center; gap:10px; padding:8px 12px; margin:0 0 8px; border:1px solid var(--separator); border-radius:10px; }
 html[data-design="taclen"] .tc-search input { min-width:0; width:100%; border:0; color:var(--text-primary); background:transparent; font-size:13px; height:28px; }
 html[data-design="taclen"] #tc-nav-extra { display:contents; }
 html[data-design="taclen"] .tc-search { order:2; }
 html[data-design="taclen"] #tab-btn-today { order:3; }
 html[data-design="taclen"] #tc-nav-inbox { order:4; display:flex; align-items:center; gap:14px; padding:12px 14px; min-height:48px; border:0; border-radius:10px; background:transparent; color:var(--text-primary); font-size:15px; }
 html[data-design="taclen"] #tc-inbox-badge { margin-left:auto; background:var(--ios-blue); color:var(--tc-on-accent); border-radius:50%; padding:2px 8px; font-size:12px; }
 html[data-design="taclen"] #tab-btn-calendar { order:5; }
 html[data-design="taclen"] #tab-btn-notes { order:6; }
 html[data-design="taclen"] #tab-btn-goals { order:7; }
 html[data-design="taclen"] #tab-btn-habits { order:8; }
 html[data-design="taclen"] #tab-btn-teams { order:11; margin-top:16px; border-top:1px solid var(--separator); border-radius:0; }
 html[data-design="taclen"] .tc-project-heading { order:9; display:flex; align-items:center; gap:12px; color:var(--text-secondary); font-size:12px; text-transform:uppercase; margin:20px 8px 4px; }
 html[data-design="taclen"] .tc-project-heading::after { content:""; flex:1; height:1px; background:var(--separator); }
 html[data-design="taclen"] #tc-projects { order:10; }
 html[data-design="taclen"] #tc-projects button { display:flex; align-items:center; gap:16px; padding:10px 14px; width:100%; text-align:left; font-size:15px; background:transparent; color:var(--text-primary); border:0; border-radius:8px; }
 html[data-design="taclen"] #tc-projects button[aria-current] { background:var(--fill-secondary); }
 html[data-design="taclen"] #tc-projects i { width:14px; height:14px; }
 html[data-design="taclen"] .tc-profile { order:12; }
 html[data-design="taclen"] .tab-label { font-size:15px; font-weight:400; }
 html[data-design="taclen"] #tab-btn-goals .tab-label { display:none; }
 html[data-design="taclen"] .tc-goals-label { display:inline; font-size:15px; }
 html[data-design="taclen"] .header-actions { position:absolute; top:48px; right:340px; }
 html[data-design="taclen"] #btn-quick-add { width:auto; min-width:180px; height:44px; border-radius:10px; background:var(--ios-blue); color:var(--tc-on-accent); gap:12px; padding:0 16px; font-weight:400; }
 html[data-design="taclen"] #btn-quick-add::after { content:"Добавить задачу"; font-size:14px; }
 html[data-design="taclen"] #btn-open-settings { display:none; }
}
@media(min-width:1024px) and (max-width:1279px) {
 html[data-design="taclen"] #tc-workspace { grid-template-columns:minmax(0,1fr); }
 html[data-design="taclen"] .tc-aside { min-height:0; }
 html[data-design="taclen"] .header-actions { right:32px; }
}
@media(max-width:1023px) {
 html[data-design="taclen"] body { padding-bottom:calc(155px + env(safe-area-inset-bottom,16px)); }
 html[data-design="taclen"] .ios-header { padding:18px 20px 8px; position:relative; }
 html[data-design="taclen"] .ios-header .taclen-wordmark { display:flex; font-size:34px; margin-bottom:10px; }
 html[data-design="taclen"] .header-large-title { font-size:32px; letter-spacing:-.8px; }
 html[data-design="taclen"] .header-subtitle { font-size:14px; }
 html[data-design="taclen"] .tc-header-caption { display:none; }
 html[data-design="taclen"] .header-actions { position:absolute; top:16px; right:20px; }
 html[data-design="taclen"] #btn-open-help { width:44px; height:44px; }
 html[data-design="taclen"] #btn-quick-add { display:none; }
 html[data-design="taclen"] #btn-open-settings { width:44px; height:44px; background:var(--ios-blue); color:var(--tc-on-accent); }
 html[data-design="taclen"] .ios-content { padding:0 16px 30px; }
 html[data-design="taclen"] #tc-workspace { display:flex; flex-direction:column; gap:0; }
 html[data-design="taclen"] .tc-center { width:100%; }
 html[data-design="taclen"] .tc-aside { display:contents; }
 html[data-design="taclen"] .tc-aside > :not(.tc-week) { display:none; }
 html[data-design="taclen"] #tc-week { order:-1; width:100%; margin:8px 0 12px; }
 html[data-design="taclen"] .tc-week b { width:40px; height:40px; font-size:15px; }
 html[data-design="taclen"] .tc-compose { position:fixed; z-index:105; bottom:calc(65px + env(safe-area-inset-bottom,0px)); left:16px; width:calc(100% - 32px); padding:8px; margin:0; gap:0; border-radius:12px; }

 html[data-design="taclen"] :is(.tc-compose .tc-ai-mark,.tc-compose label,#tc-compose-hint) { display:none; }
 html[data-design="taclen"] .tc-compose-body { display:flex; align-items:center; flex-wrap:wrap; gap:4px; }
 html[data-design="taclen"] #tc-input { flex:1; min-width:70px; min-height:44px; max-height:100px; height:44px; resize:none; font-size:16px; padding:10px; border:0; }
 html[data-design="taclen"] .tc-compose-tools { display:contents; }
 html[data-design="taclen"] #tc-attach { order:-1; }
 html[data-design="taclen"] #tc-send { width:44px; height:44px; border-radius:10px; }
 html[data-design="taclen"] .tc-files { width:100%; order:-2; }
 html[data-design="taclen"] .tc-files:empty { display:none; }
 html[data-design="taclen"] .tc-plan { border:1px solid var(--separator); border-radius:14px; background:var(--bg-card); overflow:visible; }
 html[data-design="taclen"] .tc-plan-heading { margin:0; padding:12px 14px; gap:10px; }
 html[data-design="taclen"] .tc-plan-heading h2 { font-size:22px; }
 html[data-design="taclen"] .tc-plan-controls { padding:0 14px; }
 html[data-design="taclen"] .tc-plan-controls .tc-filters { gap:4px; }
 html[data-design="taclen"] .tc-plan-controls .tc-filters button { flex:1 0 auto; padding:5px 6px; font-size:11px; min-height:40px; }
 html[data-design="taclen"] .tc-plan-actions { gap:6px; }
 html[data-design="taclen"] .tc-plan-actions button { padding:8px; font-size:12px; }
 html[data-design="taclen"] #tc-progress { flex:1; font-size:12px; }
 html[data-design="taclen"] .tc-filters { order:4; width:100%; margin:0; }
 html[data-design="taclen"] .tc-filters button { flex:1; min-height:32px; padding:5px 8px; font-size:12px; }
 html[data-design="taclen"] .tc-mobile-add { display:block; width:40px; height:40px; border:1px solid var(--separator); border-radius:10px; background:var(--tc-surface); color:var(--text-primary); font-size:28px; }
 html[data-design="taclen"] #tc-tasks { border:0; background:transparent; border-radius:0; }
 html[data-design="taclen"] #tc-tasks .ios-row { padding:12px 14px; gap:14px; min-height:72px; }
 html[data-design="taclen"] #tc-tasks .row-body { display:block; }
 html[data-design="taclen"] #tc-tasks .ios-checkbox { width:26px; height:26px; }
 html[data-design="taclen"] #tc-tasks .row-subtitle { display:inline-flex; margin-top:4px; font-size:12px; }
 html[data-design="taclen"] #tc-tasks .tc-task-project { display:inline-flex; font-size:12px; margin:4px 0 0 8px; }
 html[data-design="taclen"] .tc-plan-options { padding:0 14px; }
 html[data-design="taclen"] #tc-mobile-habits { display:block; width:100%; }
 html[data-design="taclen"] #tc-mobile-habits h2 { display:none; }
 html[data-design="taclen"] #tc-mobile-habits .tc-habit { border:1px solid var(--separator); background:var(--bg-card); border-radius:12px; margin-top:12px; padding:14px; }
 html[data-design="taclen"] #tc-mobile-habits .tc-habit-dots { gap:14px; }
 html[data-design="taclen"] .taclen-nav-brand, html[data-design="taclen"] .taclen-space { display:none; }
 html[data-design="taclen"] body:not(.guest-only) :is(#tab-btn-goals,#tab-btn-habits,#tab-btn-teams) { display:none; }
 html[data-design="taclen"] body:not(.guest-only) .taclen-more-button { display:flex; flex:1; align-items:center; justify-content:center; flex-direction:column; min-height:48px; border:0; background:transparent; color:var(--text-secondary); font-size:22px; }
 html[data-design="taclen"] .taclen-more-button span { font-size:11px; }
 html[data-design="taclen"] .ios-tab-bar .tab-item.active { background:transparent; }
 html[data-design="taclen"] .tab-label { font-size:11px; font-weight:400; }
 html[data-design="taclen"] .tc-nav-icon { margin-bottom:2px; }
 html[data-design="taclen"] body.sheet-open .tc-compose { display:none; }
 html[data-design="taclen"] body.tc-keyboard .ios-tab-bar { display:none; }
 html[data-design="taclen"] body.tc-keyboard .tc-compose { bottom:var(--tc-keyboard-bottom,0px); }
}
@media(max-width:767px) {
 html[data-design="taclen"] body.tc-review-open { overflow:hidden; }
 html[data-design="taclen"] body.tc-review-open #tc-review-backdrop { position:fixed; inset:0; z-index:150; background:var(--bg-primary); overflow:auto; padding:calc(12px + var(--app-safe-top,0px)) 16px calc(110px + env(safe-area-inset-bottom,16px)); }
 html[data-design="taclen"] body.tc-review-open .tc-review { padding:0; border:0; background:transparent; }
 html[data-design="taclen"] .tc-review-mobile-heading { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
 html[data-design="taclen"] .tc-review-mobile-heading h2 { flex:1; font-size:19px; }
 html[data-design="taclen"] #tc-review-back { width:40px; height:44px; background:transparent; border:0; color:var(--text-primary); font-size:36px; }
 html[data-design="taclen"] .tc-review-mobile-heading .tc-ai-mark { width:42px; height:42px; font-size:28px; border:1px solid var(--separator); }
 html[data-design="taclen"] .tc-source { display:block; padding:16px; margin:0 0 16px 40px; background:var(--fill-secondary); color:var(--text-primary); border-radius:16px 16px 4px 16px; overflow-wrap:anywhere; }
 html[data-design="taclen"] .tc-assistant-message { display:block; margin:0 40px 24px 0; padding:16px; background:var(--bg-card); border-radius:16px; }
 html[data-design="taclen"] .tc-review-heading { padding-top:16px; border-top:1px solid var(--separator); }
 html[data-design="taclen"] .tc-review-heading h2 { font-size:20px; }
 html[data-design="taclen"] .tc-draft-item { padding:14px 0; }
 html[data-design="taclen"] .tc-draft-item > label { min-width:calc(100% - 48px); }
 html[data-design="taclen"] .tc-draft-tag { order:3; margin-left:36px; }
 html[data-design="taclen"] .tc-review-actions { flex-direction:column; }
 html[data-design="taclen"] .tc-review-actions button { min-height:50px; font-size:16px; }
 html[data-design="taclen"] .tc-review-note { text-align:center; }
}
html[data-design="taclen"] body.guest-only #tc-workspace { display:none; }
@media(prefers-reduced-motion:reduce) { html[data-design="taclen"] *, html[data-design="taclen"] *::after { transition:none !important; animation:none !important; } }
html[data-design="taclen"] .taclen-more-button { display:none; }
@media(max-width:1023px) {
 html[data-design="taclen"] body:not(.guest-only) .taclen-more-button { display:flex; }
 html[data-design="taclen"] .taclen-more-button:is(.active,[aria-expanded="true"]) { color:var(--ios-blue); }
 html[data-design="taclen"] body.tc-more-open { overflow:hidden; }
 html[data-design="taclen"] body.tc-more-open :is(.tc-compose,#tc-ai-toggle) { visibility:hidden; }
 html[data-design="taclen"] .taclen-more-menu[open]:not([hidden]) { display:flex; flex-direction:column; position:fixed; inset:auto 16px calc(80px + env(safe-area-inset-bottom,0px)) auto; width:min(420px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 110px - var(--app-safe-top,0px)); margin:0; padding:0; color:var(--text-primary); background:var(--bg-primary); border:1px solid var(--separator); border-radius:22px; box-shadow:0 16px 64px #0003; text-align:left; }
 html[data-design="taclen"] .taclen-more-menu::backdrop { background:#0006; }
 html[data-design="taclen"] .tc-more-header { display:flex; flex-shrink:0; align-items:center; justify-content:space-between; gap:16px; padding:20px 20px 16px; border-bottom:1px solid var(--separator); }
 html[data-design="taclen"] .tc-more-header h2 { margin:0; font-size:26px; line-height:1.2; letter-spacing:-.6px; }
 html[data-design="taclen"] .tc-more-header p { margin:6px 0 0; color:var(--text-secondary); font-size:13px; }
 html[data-design="taclen"] #taclen-more-close { display:grid; place-items:center; flex-shrink:0; width:44px; height:44px; border:1px solid var(--separator); border-radius:50%; background:var(--bg-card); color:var(--text-primary); font-size:26px; cursor:pointer; }
 html[data-design="taclen"] .tc-more-body { min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:4px 16px 20px; scrollbar-width:thin; }
 html[data-design="taclen"] .tc-more-body h3 { margin:18px 4px 8px; color:var(--text-secondary); font-size:12px; font-weight:600; letter-spacing:.6px; text-transform:uppercase; }
 html[data-design="taclen"] .tc-more-group { overflow:hidden; background:var(--bg-card); border:1px solid var(--separator); border-radius:14px; }
 html[data-design="taclen"] .tc-more-group button { display:flex; align-items:center; gap:12px; width:100%; min-height:66px; padding:12px; border:0; border-radius:0; color:var(--text-primary); background:transparent; text-align:left; cursor:pointer; }
 html[data-design="taclen"] .tc-more-group button + button { border-top:1px solid var(--separator); }
 html[data-design="taclen"] .tc-more-group button:is(:hover,:active,[aria-current="page"]) { background:var(--fill-secondary); }
 html[data-design="taclen"] .tc-more-group button:focus-visible { outline-offset:-3px; }
 html[data-design="taclen"] .tc-more-group button::after { content:'›'; flex-shrink:0; margin-left:auto; font-size:22px; color:var(--text-secondary); }
 html[data-design="taclen"] .tc-more-icon { display:grid; place-items:center; flex-shrink:0; width:36px; height:36px; border-radius:10px; color:var(--ios-blue); background:var(--fill-secondary); }
 html[data-design="taclen"] .tc-more-icon svg { width:22px; height:22px; }
 html[data-design="taclen"] .tc-more-copy { display:flex; flex-direction:column; gap:4px; min-width:0; }
 html[data-design="taclen"] .tc-more-copy strong { font-size:15px; line-height:1.25; font-weight:600; }
 html[data-design="taclen"] .tc-more-copy small { color:var(--text-secondary); font-size:12px; line-height:1.35; }
}
@media(max-width:767px) {
 html[data-design="taclen"] .taclen-more-menu[open]:not([hidden]) { inset:auto 0 0; width:100%; max-height:calc(92dvh - var(--app-safe-top,0px)); border-radius:22px 22px 0 0; border-bottom:0; }
 html[data-design="taclen"] .tc-more-body { padding-bottom:calc(20px + env(safe-area-inset-bottom,0px)); }
}
html[data-design="taclen"] body:not(:has(#view-today.active)) .tc-header-caption { display:none; }
html[data-design="taclen"] #tc-resume { min-height:44px; padding:10px 16px; border:1px solid var(--separator); border-radius:10px; background:var(--bg-card); color:var(--ios-blue); margin:8px 0; }
@media(min-width:1024px) { html[data-design="taclen"] body:not(:has(#view-today.active)) #btn-quick-add::after { content:"Добавить"; } }
html[data-design="taclen"] .tc-refine { display:flex; align-items:center; gap:8px; border:1px solid var(--separator); border-radius:12px; padding:8px; margin-top:16px; background:var(--tc-surface); }
html[data-design="taclen"] .tc-refine textarea { flex:1; width:100%; min-width:0; resize:vertical; min-height:44px; max-height:120px; border:0; color:var(--text-primary); background:transparent; font-size:16px; padding:10px; }
html[data-design="taclen"] .tc-refine button { display:grid; place-items:center; width:44px; height:44px; border:0; border-radius:10px; color:var(--bg-primary); background:var(--text-primary); }
@media(min-width:1280px) {
 html[data-design="taclen"] .ios-header { max-width:1600px; width:100%; margin-inline:auto; }
 html[data-design="taclen"] .tc-aside { margin-top:-156px; min-height:calc(100dvh - 28px); position:sticky; top:14px; }
}
@media(min-width:1024px) {
 html[data-design="taclen"] #tab-btn-habits { display:none; }
}
html[data-design="taclen"] .tc-task-menu summary { width:44px; height:44px; }
@media(max-width:1023px) {
 html[data-design="taclen"] #btn-open-settings { font-size:0; }
 html[data-design="taclen"] #btn-open-settings::after { content:attr(data-profile-initial); font-size:20px; }
}
@media(max-width:767px) {
 html[data-design="taclen"] .tc-review-open .tc-refine { position:fixed; bottom:calc(8px + env(safe-area-inset-bottom,0px) + var(--tc-keyboard-bottom,0px)); left:16px; width:calc(100% - 32px); margin:0; z-index:160; background:var(--sheet-bg); }
}
@media(min-width:1280px) { html[data-design="taclen"] .tc-aside { z-index:51; } }
@media(min-width:768px) {
 html[data-design="taclen"] .tc-draft-item { padding:4px 0; }
 html[data-design="taclen"] .tc-review { padding:14px 20px; }
 html[data-design="taclen"] .tc-review-heading { margin-bottom:8px; }
 html[data-design="taclen"] .tc-refine:not(.tc-refine-visible) { display:none; }
}
@media(max-width:767px) { html[data-design="taclen"] #tc-refine-toggle { display:none; } }
html[data-design="taclen"] .tc-ai-mark { background:#30302E; color:#FCFAF7; }
html[data-design="taclen"] #tc-input::placeholder, html[data-design="taclen"] #tc-refine::placeholder { color:var(--text-secondary); opacity:1; }
html[data-design="taclen"] #tc-send, html[data-design="taclen"] .tc-refine button { background:var(--ios-blue); color:var(--tc-on-accent); }
html[data-design="taclen"] #btn-open-notifications { width:44px; height:44px; }
.tc-note-tools, .tc-task-details { display:none; }
html[data-design="taclen"] :is(.tc-note-tools,.tc-task-details) { display:block; padding:16px; border:1px solid var(--separator); border-radius:12px; margin:12px 0; }
html[data-design="taclen"] :is(.tc-note-tools,.tc-task-details) :is(input,select) { display:block; width:100%; min-width:0; min-height:44px; padding:8px; font-size:16px; color:var(--text-primary); border:1px solid var(--separator); border-radius:8px; background:var(--sheet-bg); }
html[data-design="taclen"] :is(.tc-note-tools,.tc-task-details) button { min-height:44px; padding:8px 12px; border:1px solid var(--separator); border-radius:8px; background:var(--fill-secondary); color:var(--ios-blue); margin-top:12px; }
html[data-design="taclen"] :is(.tc-note-tools,.tc-task-details) label { display:block; margin-top:8px; }
html[data-design="taclen"] #tc-repeat-days { display:flex; flex-wrap:wrap; gap:12px; }
html[data-design="taclen"] #tc-repeat-days[hidden] { display:none; }
html[data-design="taclen"] #tc-repeat-days input { display:inline; width:20px; min-height:20px; }
html[data-design="taclen"] .tc-source { display:block; white-space:pre-wrap; max-height:200px; overflow:auto; background:var(--tc-surface); border:1px solid var(--separator); border-radius:10px; padding:12px; margin-bottom:12px; font-size:14px; color:var(--text-secondary); }
html[data-design="taclen"] .tc-include { display:flex; flex:1; align-items:center; gap:12px; min-width:120px; }
html[data-design="taclen"] .tc-record-kind { display:flex; align-items:center; gap:6px; color:var(--ios-blue); font-size:12px; flex-shrink:0; }
html[data-design="taclen"] #tc-workspace .tc-record-kind svg { width:20px; height:20px; }
html[data-design="taclen"] .tc-draft-item .tc-exclude { width:auto; padding:4px 8px; font-size:12px; }
html[data-design="taclen"] .tc-excluded .tc-include { opacity:.5; text-decoration:line-through; }
html[data-design="taclen"] .tc-uncertainty { width:100%; font-size:13px; color:var(--ios-blue); padding:8px; background:var(--fill-secondary); border-radius:8px; }
html[data-design="taclen"] #tc-inbox-panel { padding:16px; }
html[data-design="taclen"] #tc-inbox-panel h2 { font-size:20px; }
html[data-design="taclen"] .tc-inbox-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
html[data-design="taclen"] #tc-inbox-close { min-height:40px; border:1px solid var(--separator); border-radius:8px; padding:6px 10px; color:var(--text-primary); background:var(--tc-surface); }
html[data-design="taclen"] :is(#tc-review,#tc-inbox-panel) { scroll-margin-top:calc(90px + var(--app-safe-top,0px)); }
html[data-design="taclen"] .tc-inbox-message { padding:16px 0; border-bottom:1px solid var(--separator); }
html[data-design="taclen"] .tc-inbox-message p { white-space:pre-wrap; overflow-wrap:anywhere; }
html[data-design="taclen"] .tc-inbox-message small { color:var(--text-secondary); }
html[data-design="taclen"] .tc-inbox-message button { min-height:44px; border:1px solid var(--separator); border-radius:8px; padding:8px 12px; margin:8px 8px 8px 0; background:var(--tc-surface); color:var(--ios-blue); }
html[data-design="taclen"] #tc-project-materials { padding:16px; margin:16px 0; }
html[data-design="taclen"] .tc-project-note { display:flex; gap:12px; align-items:center; width:100%; min-height:48px; text-align:left; background:transparent; color:var(--text-primary); border:0; }
html[data-design="taclen"] .tc-space-dialog { width:min(440px,calc(100vw - 32px)); margin:auto; padding:20px; border:1px solid var(--separator); border-radius:16px; background:var(--sheet-bg); color:var(--text-primary); }
html[data-design="taclen"] .tc-space-dialog::backdrop { background:#0007; }
html[data-design="taclen"] .tc-space-dialog button { display:block; width:100%; text-align:left; padding:12px; min-height:48px; background:transparent; color:var(--text-primary); border:1px solid var(--separator); border-radius:8px; margin-top:8px; }
html[data-design="taclen"] .tc-aside { min-height:0; }
html[data-design="taclen"] .tc-aside .tc-open-calendar { margin-top:24px; }
@media(max-width:767px) {
 html[data-design="taclen"] .tc-include { flex-wrap:wrap; gap:8px; width:calc(100% - 110px); }
 html[data-design="taclen"] .tc-draft-text { flex:1; min-width:120px; }
 html[data-design="taclen"] .tc-draft-item .tc-draft-tag { margin-left:0; }
}
@media(max-width:767px) {
 html[data-design="taclen"] .tc-draft-item { display:grid; grid-template-columns:minmax(0,1fr) 36px auto; gap:8px; align-items:start; }
 html[data-design="taclen"] .tc-include { grid-column:1; grid-row:1; display:flex; flex-direction:column; align-items:flex-start; width:auto; min-width:0; }
 html[data-design="taclen"] .tc-draft-text { min-width:0; width:100%; }
 html[data-design="taclen"] .tc-draft-item [data-edit] { grid-column:2; grid-row:1; }
 html[data-design="taclen"] .tc-draft-item .tc-exclude { grid-column:3; grid-row:1; }
 html[data-design="taclen"] .tc-draft-item .tc-draft-tag { grid-column:1/-1; justify-self:start; }
 html[data-design="taclen"] .tc-draft-editor, html[data-design="taclen"] .tc-uncertainty { grid-column:1/-1; }
 html[data-design="taclen"] .tc-review-open .tc-source { font-size:16px; padding:16px; background:var(--fill-secondary); border:0; margin:0 0 16px 40px; color:var(--text-primary); }
}
.tc-note-project { display:none; }
html[data-design="taclen"] .note-format-badge { display:none; }
html[data-design="taclen"] .tc-note-project { display:inline; color:var(--text-secondary); font-size:12px; }
html[data-design="taclen"] .note-row-title { font-size:17px; font-weight:600; }
html[data-design="taclen"] .note-row-subtitle { display:flex; flex-wrap:wrap; gap:6px 12px; }
html[data-design="taclen"] .note-row-snippet { flex-basis:100%; font-size:14px; }

/* Team tasks keep the board context while the discussion is open. */
html[data-design="taclen"] #view-teams .teams-toolbar { margin-bottom:8px; }
html[data-design="taclen"] #view-teams .team-summary-card { background:transparent; border:0; padding:8px 0 12px; }
html[data-design="taclen"] body:has(#view-teams.active) .header-subtitle { display:none; }
html[data-design="taclen"] #view-teams .team-summary-card { display:none; }
html[data-design="taclen"] #view-teams .team-board-controls :is(.team-filters,.team-view-switch) { margin-bottom:0; }
html[data-design="taclen"] #view-teams .team-summary-title { font-size:28px; letter-spacing:-.6px; }
html[data-design="taclen"] #view-teams .team-view-switch { margin-bottom:8px; }
html[data-design="taclen"] #view-teams .team-filters { margin-bottom:10px; }
html[data-design="taclen"] .team-board-column { background:var(--tc-surface); border:1px solid var(--separator); border-top:3px solid var(--team-column-color,var(--ios-blue)); }
html[data-design="taclen"] .team-board-card { box-shadow:none; border-radius:12px; }
html[data-design="taclen"] .team-board-card:has(.team-unread-count:not([hidden])) { border-color:var(--ios-blue); }
@media (min-width:1024px) {
  html[data-design="taclen"] #modal-team-task.has-task { align-items:stretch; justify-content:flex-end; padding:0; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; pointer-events:none; }
  html[data-design="taclen"] #modal-team-task.has-task .ios-sheet { pointer-events:none; height:100dvh; max-height:100dvh; width:520px; max-width:65vw; border-radius:0; border-left:1px solid var(--separator); padding:20px; box-shadow:-8px 0 36px #0000000d; }
  html[data-design="taclen"] #modal-team-task.has-task.open .ios-sheet { pointer-events:auto; }
  html[data-design="taclen"] #view-teams #team-selector { display:none; }
  html[data-design="taclen"] #view-teams .teams-toolbar { justify-content:flex-end; }
  html[data-design="taclen"] #modal-team-task.has-task.is-expanded .ios-sheet { width:900px; max-width:calc(100vw - 224px); }
  html[data-design="taclen"] body:has(#modal-team-task.has-task.open) #view-teams { margin-right:520px; }
}
@media (max-width:1023px) {
  html[data-design="taclen"] #modal-team-task.has-task .ios-sheet { height:100%; max-height:100%; }
}

/* Phone-only AI launcher and expandable composer. */
@media(max-width:767px) {
 html[data-design="taclen"] body { padding-bottom:calc(var(--tc-compose-reserve,76px) + 89px + env(safe-area-inset-bottom,0px)); }
 html[data-design="taclen"] .tc-compose[data-compose-state="collapsed"] { display:none; }
 html[data-design="taclen"] #tc-ai-toggle { display:flex; align-items:center; justify-content:center; gap:8px; position:fixed; right:16px; bottom:calc(81px + env(safe-area-inset-bottom,0px)); z-index:105; min-height:52px; padding:12px 18px; border:1px solid var(--separator); border-radius:18px; background:var(--ios-blue); color:var(--tc-on-accent); font-size:16px; font-weight:600; }
 html[data-design="taclen"] #tc-ai-toggle[aria-expanded="true"] { display:none; }
 html[data-design="taclen"] .tc-compose:not([data-compose-state="collapsed"]) { flex-direction:column; }
 html[data-design="taclen"] .tc-compose-chrome { display:flex; align-items:center; gap:8px; width:100%; }
 html[data-design="taclen"] .tc-compose-chrome button { min-height:40px; border:0; border-radius:8px; color:var(--text-secondary); background:transparent; }
 html[data-design="taclen"] #tc-compose-expand { flex:1; display:flex; align-items:center; justify-content:center; gap:10px; touch-action:none; cursor:ns-resize; }
 html[data-design="taclen"] #tc-compose-expand i { display:block; width:36px; height:4px; border-radius:4px; background:var(--text-secondary); }
 html[data-design="taclen"] #tc-compose-expand span { font-size:12px; }
 html[data-design="taclen"] #tc-compose-close { width:40px; font-size:26px; }
 html[data-design="taclen"] .tc-compose-body { width:100%; }
 html[data-design="taclen"] :is(#tc-compose-error,#tc-compose-status) { width:100%; margin:8px 0; font-size:13px; overflow-wrap:anywhere; }
 html[data-design="taclen"] body.tc-compose-full { overflow:hidden; }
 html[data-design="taclen"] body.tc-compose-full .ios-tab-bar { visibility:hidden; }
 html[data-design="taclen"] .tc-compose[data-compose-state="full"] { top:var(--tc-viewport-top,0px); bottom:auto; left:0; width:100%; height:var(--tc-viewport-height,100dvh); z-index:145; border-radius:0; padding:calc(12px + var(--app-safe-top,0px)) 16px calc(12px + env(safe-area-inset-bottom,0px)); overflow:auto; background:var(--bg-primary); }
 html[data-design="taclen"] .tc-compose[data-compose-state="full"] .tc-compose-body { display:flex; flex:1; flex-direction:column; align-items:stretch; flex-wrap:nowrap; min-height:0; }
 html[data-design="taclen"] #tc-compose[data-compose-state="full"] label { display:block; margin:12px 0; }
 html[data-design="taclen"] .tc-compose[data-compose-state="full"] #tc-input { flex:1; width:100%; height:auto; min-height:120px; max-height:none; border:1px solid var(--separator); resize:none; }
 html[data-design="taclen"] .tc-compose[data-compose-state="full"] .tc-compose-tools { display:flex; width:100%; }
}
