:root{--ink:#172a3c;--navy:#12243a;--navy-2:#1b3450;--muted:#718092;--canvas:#f5f4f0;--paper:#fff;--line:#e7e8e5;--coral:#e65b50;--coral-soft:#fff0eb;--amber:#c88a2b;--amber-soft:#fff4d9;--blue:#376bba;--blue-soft:#eaf2ff;--green:#20846d;--green-soft:#e6f4ed;--purple:#775db6;--purple-soft:#f0ebfb;--shadow:0 14px 34px rgba(23,42,60,.065);font-family:'SF Arabic','Geeza Pro',Tahoma,Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}::selection{background:#f7ce82;color:var(--navy)}:focus-visible{outline:3px solid #e7a543;outline-offset:3px}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{background:#bdc8cd;border:3px solid var(--canvas);border-radius:10px}
.shell{display:flex;min-height:100vh}.sidebar{width:256px;min-width:256px;background:var(--navy);color:#fff;display:flex;flex-direction:column;min-height:100vh;padding:27px 16px 16px;position:sticky;top:0;height:100vh;z-index:30}.brand{display:flex;align-items:center;gap:12px;padding:0 13px 42px}.brand strong{display:block;font-size:25px;font-weight:800;line-height:1.1;letter-spacing:-.03em}.brand small{color:#b7c5d2;font-size:11px}.brand-mark{width:37px;height:37px;display:grid;grid-template-columns:repeat(2,1fr);gap:4px;transform:rotate(-13deg)}.brand-mark span{background:#eab96b;border-radius:3px}.brand-mark span:nth-child(2){background:#f2d39c}.brand-mark span:nth-child(3){background:#f6dbaa}.brand-mark span:nth-child(4){background:#dba65a}.sidebar-label{color:#8398ab;font-size:11px;font-weight:800;letter-spacing:.04em;margin:0 16px 12px}.sidebar-label-second{margin-top:33px}.primary-nav{display:grid;gap:5px}.nav-item{border:0;background:none;color:#b8c7d4;padding:12px 14px;border-radius:10px;display:flex;align-items:center;text-align:right;gap:13px;font-weight:650;width:100%;transition:background .2s,color .2s}.nav-item svg{width:18px;height:18px}.nav-item:hover,.nav-item:focus-visible{color:#fff;background:#233e59}.nav-item.active{background:#294361;color:#fff}.nav-item.active:before{content:'';width:3px;height:19px;background:#f3bf70;border-radius:3px;position:absolute;right:0}.nav-item em{font-style:normal;margin-inline-start:auto;font-size:12px;background:#344f69;border-radius:6px;padding:0 6px;color:#d4e1e8}.notification-dot{width:7px;height:7px;border-radius:50%;background:#f5a16d;margin-inline-start:auto}.sidebar-bottom{margin-top:auto;background:#1d3650;border-radius:14px;padding:18px 17px 20px;color:#fff}.sidebar-bottom-icon{color:#f1ba6e;width:34px;height:34px;display:grid;place-items:center;background:#314c65;border-radius:9px}.sidebar-bottom-icon svg{width:20px}.sidebar-bottom p{font-size:14px;font-weight:750;margin:12px 0 4px}.sidebar-bottom small{font-size:11px;color:#aabecd}.profile{display:flex;align-items:center;gap:10px;margin-top:20px;padding:14px 4px 0;border-top:1px solid #2b4258}.avatar,.top-avatar{display:grid;place-items:center;background:#f2c87d;color:#24364a;border-radius:10px;font-size:18px;font-weight:800;width:38px;height:38px}.profile strong{display:block;font-size:12px}.profile small{display:block;font-size:10px;color:#8fa3b7}.profile svg{margin-inline-start:auto;color:#a4b9c8;width:16px}
.content-wrap{min-width:0;flex:1}.topbar{height:74px;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(22px,3vw,48px);gap:22px;position:sticky;top:0;z-index:20;backdrop-filter:blur(12px)}.topbar-search{display:flex;align-items:center;gap:10px;color:#718090;width:min(440px,45%);background:#f6f7f7;border:1px solid #eef0ef;border-radius:9px;padding:0 13px;height:38px}.topbar-search input{border:0;outline:0;background:transparent;flex:1;min-width:0;color:var(--ink);font-size:12px}.topbar-search input::placeholder{color:#83909d}.topbar-search svg{width:17px}.topbar-search kbd{font:11px Arial,sans-serif;color:#8693a0;background:#fff;border:1px solid #e5e8e8;padding:3px 5px;border-radius:4px;direction:ltr}.topbar-actions{display:flex;align-items:center;gap:16px}.prototype-badge{color:#586a7d;border:1px solid #d8dee2;border-radius:20px;padding:5px 10px;font-size:10px;font-weight:700;white-space:nowrap}.icon-button{display:grid;place-items:center;border:0;background:transparent;color:var(--ink);width:35px;height:35px;border-radius:8px}.icon-button:hover{background:#f1f3f2}.notification-button{position:relative}.notification-button span{position:absolute;width:6px;height:6px;background:var(--coral);border-radius:50%;top:5px;left:6px}.top-avatar{width:33px;height:33px;font-size:15px}.mobile-brand{display:none}
main{max-width:1560px;margin:auto;padding:34px clamp(22px,3vw,48px) 70px}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:27px}.date-line{font-size:12px;color:var(--muted);font-weight:750;margin-bottom:7px}.page-header h1{font-size:clamp(29px,3vw,42px);line-height:1.28;letter-spacing:-.035em;margin:0;color:#192d40;font-weight:800}.page-header p{color:#728091;margin:7px 0 0;font-size:13px}.primary-button{border:0;background:var(--coral);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:800;border-radius:9px;padding:12px 17px;min-height:43px;box-shadow:0 8px 20px rgba(230,91,80,.18);white-space:nowrap;transition:transform .18s,background .18s}.primary-button:hover{background:#d44c43;transform:translateY(-1px)}.primary-button svg{width:17px;height:17px;stroke-width:2.4}
.overview-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:25px}.metric{min-height:120px;border-radius:13px;padding:19px 19px 16px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.metric:after{content:'';position:absolute;width:85px;height:85px;border-radius:22px;transform:rotate(22deg);left:-31px;bottom:-43px;opacity:.18}.metric strong{font-size:31px;line-height:1;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.metric small{font-size:12px;font-weight:750;display:flex;align-items:center;gap:8px}.metric svg{width:15px;height:15px}.metric-today{background:#f8e6c8;color:#563d20}.metric-today:after{background:#d8993d}.metric-late{background:#fbe1da;color:#78382e}.metric-late:after{background:#e75d51}.metric-next{background:#dce9f9;color:#244e7e}.metric-next:after{background:#4278b9}.metric-done{background:#d9eee4;color:#215c4e}.metric-done:after{background:#25916f}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.77fr) minmax(310px,1fr);gap:18px;align-items:start}.main-column,.side-column{display:grid;gap:18px}.panel{background:var(--paper);border:1px solid #e9ebe7;border-radius:15px;box-shadow:var(--shadow);min-width:0}.panel-padding{padding:22px 23px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.panel-head h2{font-size:18px;letter-spacing:-.015em;margin:0;font-weight:800}.panel-head p{font-size:11px;color:var(--muted);margin:3px 0 0}.text-link{border:0;background:transparent;color:var(--blue);display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;padding:5px 0}.text-link svg{width:14px;height:14px}.today-panel{padding:23px 23px 10px}.today-indicator{font-size:11px;color:var(--coral);background:#fff0ea;border-radius:20px;padding:5px 10px;font-weight:800;white-space:nowrap}.task-list{display:grid}.task-row{display:flex;align-items:center;gap:13px;border-top:1px solid #edf0ee;padding:14px 0;min-width:0}.task-check{width:20px;height:20px;border:1.5px solid #bdc9d0;border-radius:6px;background:#fff;display:grid;place-items:center;flex:none;color:#fff}.task-check:hover{border-color:var(--green);background:#eff8f3}.task-check svg{width:13px;height:13px;display:none}.task-row.done .task-check{background:var(--green);border-color:var(--green)}.task-row.done .task-check svg{display:block}.task-row.done .task-title{text-decoration:line-through;color:#89959b}.task-info{min-width:0;flex:1}.task-title{font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-meta{display:flex;align-items:center;gap:10px;margin-top:5px;font-size:10px;color:#82909c;white-space:nowrap}.task-meta span{display:inline-flex;align-items:center;gap:4px}.task-meta svg{width:12px;height:12px}.task-tags{display:flex;align-items:center;gap:7px;flex:none}.pill{font-size:10px;font-weight:800;border-radius:5px;padding:4px 8px;white-space:nowrap}.priority-urgent{background:#fde6e1;color:#b44037}.priority-high{background:#fff0ce;color:#906423}.priority-medium{background:#e8effc;color:#3a65aa}.priority-low{background:#e5f2e9;color:#3b755c}.status-chip{font-size:10px;font-weight:750;color:#6e7b87;background:#f0f3f4;border-radius:5px;padding:4px 7px;white-space:nowrap}.task-more{border:0;background:transparent;color:#8b98a3;padding:3px}.task-more svg{width:17px}
.late-panel{background:#fff8f5;border-color:#f4ddd4;padding:18px 20px}.late-panel .panel-head{margin-bottom:11px}.late-panel .panel-head h2{color:#8b4239}.late-count{display:inline-grid;place-items:center;background:#e96859;color:#fff;border-radius:6px;min-width:23px;height:23px;font-size:11px;font-weight:800}.late-item{display:flex;align-items:flex-start;gap:10px;border-top:1px solid #f4e3dc;padding:11px 0 0;margin-top:11px}.late-item .late-line{width:3px;height:34px;background:var(--coral);border-radius:3px;flex:none}.late-item strong{font-size:11px;display:block}.late-item small{font-size:10px;color:#96645c;display:block;margin-top:3px}.late-item button{margin-inline-start:auto;border:1px solid #eac0b7;background:#fff;color:#a64b3e;border-radius:6px;padding:4px 8px;white-space:nowrap;font-size:10px;font-weight:800}
.weekly-panel{padding:21px 23px}.weekly-top{display:flex;align-items:flex-end;justify-content:space-between}.weekly-top h2{font-size:17px;margin:0}.weekly-top strong{font-size:25px;line-height:1;color:var(--green)}.weekly-top strong small{font-size:12px;color:#80908d}.week-line{height:10px;background:#ebefee;border-radius:10px;display:flex;overflow:hidden;margin:18px 0 13px;direction:rtl}.week-line span{width:64%;background:var(--green);border-radius:10px}.week-days{display:flex;justify-content:space-between;gap:5px}.week-days div{display:grid;justify-items:center;gap:5px;color:#84919c;font-size:10px}.week-days i{width:7px;height:7px;background:#dce3e1;border-radius:50%}.week-days .finished{color:#2c7d64}.week-days .finished i{background:var(--green)}.week-days .current{color:var(--ink);font-weight:800}.week-days .current i{background:#e5ac57;width:9px;height:9px}
.calendar-mini{padding:20px 22px}.calendar-mini .panel-head{margin-bottom:12px}.mini-month-controls{display:flex;gap:3px}.mini-month-controls button{border:0;background:#f5f6f5;border-radius:5px;color:#7f8d96;width:24px;height:24px;display:grid;place-items:center}.mini-month-controls svg{width:14px;height:14px}.mini-grid{display:grid;grid-template-columns:repeat(7,1fr);text-align:center;gap:4px;font-size:10px}.mini-grid b{color:#8b98a2;font-weight:700;padding:5px 0}.mini-grid span{height:28px;display:grid;place-items:center;border-radius:7px;color:#526575;font-variant-numeric:tabular-nums;position:relative}.mini-grid span.muted{color:#c3c9cb}.mini-grid span.current{background:var(--navy);color:#fff;font-weight:800}.mini-grid span.has-event:not(.current):after{content:'';width:4px;height:4px;background:var(--coral);position:absolute;bottom:2px;border-radius:50%}.mini-grid span.current:after{content:'';width:4px;height:4px;background:#f8bc73;position:absolute;bottom:2px;border-radius:50%}
.distribution{padding:20px 23px}.distribution .panel-head{margin-bottom:13px}.bar-row{display:flex;align-items:center;gap:9px;margin:11px 0;font-size:11px;color:#647480}.bar-row strong{min-width:55px;color:#415365;font-size:11px}.bar-track{height:8px;flex:1;background:#eef1f1;border-radius:8px;overflow:hidden}.bar-track i{height:100%;display:block;border-radius:8px}.bar-row b{min-width:19px;font-size:10px;text-align:left}.priority-bars .bar-row:nth-child(1) i{background:#e65b50;width:38%}.priority-bars .bar-row:nth-child(2) i{background:#e8a044;width:56%}.priority-bars .bar-row:nth-child(3) i{background:#5684c4;width:78%}.priority-bars .bar-row:nth-child(4) i{background:#5baf8c;width:30%}.distribution hr{border:0;border-top:1px solid var(--line);margin:17px 0}.category-line{display:flex;gap:6px;margin-top:12px}.category-line span{height:9px;border-radius:7px}.category-line span:nth-child(1){background:var(--blue);width:39%}.category-line span:nth-child(2){background:var(--purple);width:27%}.category-line span:nth-child(3){background:#e5aa56;width:20%}.category-line span:nth-child(4){background:#54a895;width:14%}.category-legend{display:flex;flex-wrap:wrap;gap:7px 12px;margin-top:12px}.category-legend span{display:flex;align-items:center;gap:5px;color:#73818b;font-size:10px}.category-legend i{width:6px;height:6px;border-radius:50%}.category-legend span:nth-child(1) i{background:var(--blue)}.category-legend span:nth-child(2) i{background:var(--purple)}.category-legend span:nth-child(3) i{background:#e5aa56}.category-legend span:nth-child(4) i{background:#54a895}
.upcoming-panel,.done-panel{padding:20px 23px}.compact-list{display:grid;gap:1px}.compact-item{display:flex;align-items:center;gap:11px;border-top:1px solid #edf0ee;padding:11px 0}.compact-date{display:grid;place-items:center;background:#edf4fa;color:#30618d;border-radius:7px;min-width:38px;height:39px;line-height:1.1}.compact-date strong{font-size:14px}.compact-date small{font-size:8px}.compact-item>div:nth-child(2){min-width:0;flex:1}.compact-item strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-item small{font-size:10px;color:#87949d}.compact-item .pill{font-size:9px}.done-icon{background:#e7f3eb;color:var(--green);display:grid;place-items:center;width:29px;height:29px;border-radius:8px}.done-icon svg{width:15px}.done-panel .compact-item{padding:9px 0}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;flex-wrap:wrap}.segmented{display:inline-flex;align-items:center;background:#e9eceb;padding:3px;border-radius:9px;gap:2px}.segmented button{border:0;background:transparent;border-radius:7px;padding:7px 13px;color:#6a7885;font-size:11px;font-weight:800}.segmented button.active{background:#fff;color:var(--navy);box-shadow:0 2px 5px rgba(20,41,60,.08)}.toolbar-right{display:flex;gap:9px;align-items:center}.control-button{border:1px solid #dce3e3;color:#526675;background:#fff;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:750;display:flex;align-items:center;gap:7px}.control-button svg{width:16px;height:16px}.control-button select{border:0;outline:0;color:inherit;background:transparent;font-weight:inherit}.task-table{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.table-head,.table-row{display:grid;grid-template-columns:minmax(280px,2fr) 110px 110px 130px 100px;align-items:center;gap:10px;padding:13px 20px}.table-head{background:#f9faf9;color:#87929c;font-size:10px;font-weight:800}.table-row{border-top:1px solid #edf0ee;min-height:64px;font-size:11px}.table-row:hover{background:#fcfdfc}.table-task{display:flex;align-items:center;gap:10px;min-width:0}.table-task strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.table-row .status-chip,.table-row .pill{justify-self:start}.table-row time{color:#6c7a87}.empty-state{padding:58px 20px;text-align:center;color:#778592}.empty-state svg{width:30px;height:30px;color:#a9b6bf}.empty-state strong{display:block;color:#425666;margin:8px 0}
.board-grid{display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));gap:12px;overflow:auto;padding-bottom:8px}.board-column{background:#edf0ef;border-radius:11px;padding:12px;min-height:450px}.board-column h3{display:flex;justify-content:space-between;align-items:center;margin:3px 3px 13px;font-size:12px}.board-column h3 span{font-size:10px;color:#82909b;background:#fff;padding:2px 7px;border-radius:5px}.board-card{background:#fff;border-radius:9px;padding:13px;margin-bottom:9px;box-shadow:0 5px 16px rgba(22,45,60,.06)}.board-card strong{display:block;font-size:11px;line-height:1.5;margin:9px 0 13px}.board-card small{font-size:9px;color:#8c9aa3}.board-card .pill{font-size:9px}.board-card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0ee;padding-top:9px}.board-card-footer svg{width:12px;height:12px;margin-left:3px;vertical-align:middle}
.calendar-surface{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}.calendar-toolbar{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.calendar-toolbar h2{font-size:18px;margin:0}.calendar-toolbar p{font-size:11px;color:#82909b;margin:1px 0 0}.calendar-month{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-dayname{font-size:11px;color:#71808a;text-align:center;padding:11px 0;background:#fafbfa;font-weight:750;border-bottom:1px solid var(--line)}.calendar-cell{min-height:106px;padding:8px;border-inline-start:1px solid #edf0ee;border-bottom:1px solid #edf0ee}.calendar-cell:nth-child(7n+1){border-inline-start:0}.calendar-cell.off{background:#fbfcfb;color:#c6ccce}.calendar-cell.today{background:#fffaf0}.calendar-cell>span{font-size:11px;display:grid;place-items:center;width:25px;height:25px;border-radius:50%;font-weight:750}.calendar-cell.today>span{background:#e9b569;color:#172b3b}.calendar-event{display:block;font-size:9px;font-weight:700;padding:4px 6px;border-radius:4px;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fce7e3;color:#a3453d}.calendar-event.blue{background:#e6effa;color:#3e679f}.calendar-event.green{background:#e4f2e9;color:#3e8365}.agenda-view{padding:20px;display:grid;gap:9px}.agenda-day{font-size:12px;font-weight:800;color:#38536b;margin:14px 0 4px}.agenda-item{display:flex;align-items:center;gap:10px;border:1px solid #e9eeec;border-radius:8px;padding:11px}.agenda-item time{color:#6e8090;font-size:11px;min-width:64px}.agenda-item strong{font-size:11px}.agenda-item .pill{margin-inline-start:auto}
.placeholder-panel{padding:26px;max-width:760px}.placeholder-panel h2{margin:0 0 7px;font-size:18px}.placeholder-panel p{color:#6d7d8b;line-height:1.8}.alert-preview{display:grid;gap:10px;margin-top:20px}.alert-preview div{display:flex;gap:12px;align-items:center;padding:14px;background:#f8faf9;border-radius:8px;font-size:12px}.alert-preview svg{color:var(--coral)}.settings-preview{display:grid;gap:12px;margin-top:18px}.settings-preview span{padding:12px;background:#f8faf9;border-radius:7px;font-size:12px}
.modal-backdrop[hidden]{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(13,29,46,.56);display:grid;place-items:center;z-index:100;padding:16px}.capture-dialog{background:#fff;border-radius:16px;width:min(620px,100%);max-height:calc(100vh - 32px);overflow:auto;box-shadow:0 25px 65px rgba(5,21,37,.2)}.capture-head{display:flex;justify-content:space-between;align-items:flex-start;padding:23px 25px 15px}.capture-head h2{font-size:23px;margin:0}.capture-head p{color:#7b8a96;font-size:11px;margin:4px 0 0}.capture-tabs{display:flex;gap:5px;padding:0 25px;border-bottom:1px solid #e9eeec;overflow:auto}.capture-tab{display:flex;gap:6px;align-items:center;white-space:nowrap;border:0;background:none;color:#778793;padding:11px 9px;font-size:11px;font-weight:750;border-bottom:2px solid transparent}.capture-tab.active{color:var(--coral);border-color:var(--coral)}.capture-tab svg{width:15px;height:15px}.capture-body{padding:22px 25px 15px}.capture-label{display:block;color:#4a5f6e;font-size:11px;font-weight:800;margin-bottom:8px}.capture-input,.capture-textarea{border:1px solid #dce5e7;background:#fbfcfb;border-radius:8px;color:var(--ink);width:100%;padding:12px;font-size:12px;outline:0}.capture-input:focus,.capture-textarea:focus{border-color:#91b3ca}.capture-textarea{height:105px;resize:vertical}.capture-help{color:#84939b;font-size:10px;margin:8px 0 0}.capture-zone{min-height:125px;border:1.5px dashed #c9d7de;background:#f8fafb;border-radius:9px;display:grid;place-items:center;text-align:center;padding:15px;color:#667c8c}.capture-zone svg{width:27px;height:27px;color:#5c84a6}.capture-zone strong{font-size:12px}.capture-zone small{font-size:10px}.capture-zone input{max-width:220px;font-size:10px}.voice-button{border:0;background:var(--navy);color:#fff;border-radius:50%;width:57px;height:57px;display:grid;place-items:center;margin:0 auto 12px}.voice-button svg{width:24px;height:24px}.ai-preview{margin:0 25px 15px;padding:14px;background:#f4f0fc;border:1px solid #e7dcf6;border-radius:9px}.ai-preview-header{display:flex;justify-content:space-between;align-items:center;gap:10px}.ai-preview-header span{display:flex;align-items:center;gap:6px;color:#7255a5;font-size:11px;font-weight:800}.ai-preview-header svg{width:14px;height:14px}.ai-preview-header button{border:0;background:none;display:flex;align-items:center;gap:5px;color:#7659a6;font-size:10px;font-weight:750}.ai-preview p{color:#74688a;font-size:10px;margin:8px 0 0}.ai-suggestions{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.ai-suggestions span{background:#fff;border:1px solid #e4daf3;color:#634d8d;border-radius:5px;padding:5px 7px;font-size:10px}.capture-footer{border-top:1px solid #e9eeec;padding:15px 25px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.capture-footer span{font-size:10px;color:#87949e}.toast{position:fixed;left:25px;bottom:25px;z-index:200;background:var(--navy);color:#fff;padding:11px 16px;border-radius:8px;font-size:12px;box-shadow:0 10px 30px rgba(10,28,44,.2);opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1220px){.sidebar{width:224px;min-width:224px}.dashboard-grid{grid-template-columns:minmax(0,1.4fr) minmax(275px,1fr)}.task-tags .status-chip{display:none}.table-head,.table-row{grid-template-columns:minmax(220px,2fr) 95px 90px 105px 85px}.prototype-badge{display:none}}
@media(max-width:950px){.sidebar{position:fixed;right:0;transform:translateX(100%);transition:transform .24s;box-shadow:-15px 0 40px rgba(12,31,48,.15)}.sidebar.open{transform:translateX(0)}.mobile-brand{display:flex;align-items:center;gap:6px;font-size:18px}.topbar{padding:0 20px}.topbar-search{width:min(350px,45%)}.dashboard-grid{grid-template-columns:1fr 320px}main{padding:28px 20px 60px}.overview-strip{grid-template-columns:repeat(4,1fr)}.metric{padding:14px;min-height:100px}.metric strong{font-size:25px}}
@media(max-width:760px){.topbar{height:62px;gap:8px}.topbar-search{flex:1;width:auto;max-width:none}.topbar-search kbd{display:none}.topbar-actions{gap:5px}.top-avatar{display:none}.page-header{align-items:flex-start}.page-header h1{font-size:28px}.page-header p{font-size:11px}.page-header .primary-button{font-size:0;width:42px;min-width:42px;padding:0}.page-header .primary-button svg{width:19px;height:19px}.overview-strip{grid-template-columns:repeat(2,1fr);gap:9px}.metric{min-height:90px}.metric small{font-size:11px}.dashboard-grid{grid-template-columns:1fr}.side-column{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.calendar-mini,.distribution{grid-column:auto}.task-tags .status-chip{display:none}.table-head,.table-row{grid-template-columns:minmax(175px,1fr) 80px 85px;padding-inline:12px}.table-head span:nth-child(3),.table-head span:nth-child(5),.table-row>:nth-child(3),.table-row>:nth-child(5){display:none}.board-grid{grid-template-columns:repeat(5,210px)}.calendar-cell{min-height:88px}.calendar-event{font-size:8px}}
@media(max-width:540px){main{padding:22px 14px 55px}.topbar{padding:0 12px}.topbar-search{height:34px;padding:0 8px}.topbar-search input{font-size:10px}.topbar-search svg{width:14px}.mobile-brand strong{display:none}.page-header{margin-bottom:20px}.date-line{font-size:10px}.page-header h1{font-size:25px}.overview-strip{margin-bottom:14px}.metric{min-height:82px;padding:12px}.metric strong{font-size:24px}.metric small{font-size:10px}.dashboard-grid,.main-column,.side-column{gap:13px}.side-column{grid-template-columns:1fr}.panel-padding,.today-panel,.upcoming-panel,.done-panel,.weekly-panel,.distribution,.calendar-mini{padding:17px}.today-panel{padding-bottom:7px}.panel-head h2{font-size:16px}.task-row{gap:8px}.task-title{font-size:11px}.task-meta{gap:5px;font-size:9px}.task-tags .pill{font-size:9px;padding:4px 5px}.task-more{display:none}.late-panel{padding:16px}.toolbar-right{width:100%}.control-button{flex:1;justify-content:center}.table-head,.table-row{grid-template-columns:minmax(160px,1fr) 76px;padding-inline:10px}.table-head span:nth-child(4),.table-row>:nth-child(4){display:none}.calendar-toolbar{flex-wrap:wrap}.calendar-month{min-width:0}.calendar-cell{min-height:69px;padding:4px}.calendar-cell>span{font-size:10px;width:20px;height:20px}.calendar-event{font-size:0;width:5px;height:5px;border-radius:50%;padding:0;margin:4px}.capture-dialog{border-radius:11px}.capture-head,.capture-body,.capture-footer{padding-inline:17px}.capture-tabs{padding-inline:17px}.capture-tab{font-size:10px;padding-inline:7px}.ai-preview{margin-inline:17px}.capture-footer span{display:none}}
/* Functional screens and accessibility pass */
:root{--muted:#4d6070;--line:#d9e1e1;--canvas:#f5f4f0;--paper:#fff}
body{font-size:15px}
button,input,textarea,select{font-size:14px}
small,.subtle,.brand small,.sidebar-label,.profile small,.profile strong,.sidebar-bottom small,.sidebar-bottom p,.nav-item em,.prototype-badge,.topbar-search input,.topbar-search kbd,.date-line,.page-header p,.metric small,.panel-head p,.text-link,.today-indicator,.task-title,.task-meta,.pill,.status-chip,.task-next,.late-item strong,.late-item small,.late-item button,.weekly-top p,.week-days div,.mini-grid,.mini-grid b,.bar-row,.bar-row strong,.bar-row b,.category-legend span,.compact-item strong,.compact-item small,.compact-date small,.table-head,.table-row,.board-column h3,.board-card strong,.board-card small,.board-card .pill,.calendar-dayname,.calendar-cell>span,.calendar-event,.agenda-item,.capture-head p,.capture-tab,.capture-label,.capture-help,.ai-preview p,.ai-preview-header span,.ai-preview-header button,.capture-footer span,.toast{font-size:13px}
.page-header h1{font-size:clamp(30px,3vw,42px)}
.panel-head h2{font-size:20px}
.panel-head p,.page-header p,.task-meta,.subtle{color:var(--muted)}
.task-title{font-size:16px;white-space:normal;line-height:1.5}
.task-next{display:block;color:#3d5870;font-weight:650;margin:2px 0;white-space:normal;text-align:right}
.task-info{border:0;background:none;color:inherit;padding:0;text-align:right;display:block;flex:1;min-width:0}
.task-info:hover .task-title,.task-open:hover strong{color:#27649b}
.task-meta{white-space:normal;display:flex;align-items:center;gap:4px}
.task-meta svg{width:14px;height:14px}
.task-row{min-height:82px}
.task-tags{gap:6px}
.task-check{width:28px;height:28px;min-width:28px}
.pill,.status-chip{padding:5px 8px}
.late-item .task-open{border:0;background:none;color:inherit;text-align:right;flex:1;padding:0}
.late-item small{color:#6b514b}
.late-item button{min-height:36px}
.weekly-top strong{font-size:29px}
.week-days div{font-size:13px}
.calendar-mini .mini-grid{gap:2px}
.mini-grid .mini-day{border:0;background:transparent;color:#425667;height:34px;display:grid;place-items:center;border-radius:7px;font-variant-numeric:tabular-nums;position:relative;font-size:13px}
.mini-grid .mini-day.muted{color:#647787}
.mini-grid .mini-day.current{background:var(--navy);color:#fff;font-weight:800}
.mini-grid .mini-day.has-event:not(.current):after{content:'';width:5px;height:5px;background:var(--coral);position:absolute;bottom:2px;border-radius:50%}
.mini-grid .mini-day.current:after{content:'';width:5px;height:5px;background:#f8bc73;position:absolute;bottom:2px;border-radius:50%}
.mini-grid .mini-day:hover{background:#e9eff3}
.mini-grid .mini-day.current:hover{background:var(--navy-2)}
.focus-side-button{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:13px;background:#f0bb70;color:#12243a;border:0;border-radius:8px;min-height:44px;padding:9px 11px;font-weight:800}
.focus-side-button svg{width:16px}
.header-actions{display:flex;gap:10px;align-items:center}
.focus-top{background:#fff8eb;border-color:#e7c998;color:#5c4626;min-height:44px}
.time-budget{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:12px;background:#e9f1ed;padding:13px 18px;margin-bottom:20px;color:#224b42}
.time-budget.over{background:#fff0e7;color:#8b3f2d}
.time-budget strong,.time-budget span{display:block;font-size:14px}
.time-budget span{font-size:13px;margin-top:2px}
.time-budget button,.isolate-banner button{background:none;border:0;color:inherit;font-weight:800;display:flex;gap:5px;align-items:center;min-height:44px}
.time-budget svg{width:15px}
.isolate-banner{display:flex;align-items:center;gap:11px;background:#e7eff7;color:#274866;border-radius:10px;padding:8px 15px;margin-bottom:17px;font-size:14px}
.isolate-banner>span:nth-of-type(2){margin-inline-start:auto}
.track-dot{width:11px;height:11px;border-radius:50%;display:inline-block;flex:none}
.result-count{font-size:14px;color:#4c6070;font-weight:700;margin:11px 0}
.task-list-panel{padding:4px 22px}
.task-list-panel .task-row:first-child{border-top:0}
.toolbar-right{flex-wrap:wrap}
.control-button{min-height:44px;font-size:14px}
.control-button select{min-height:26px;font-size:14px}
.segmented button{font-size:14px;min-height:38px}
.board-grid{grid-template-columns:repeat(5,minmax(220px,1fr));align-items:start}
.board-column{min-height:280px;border:2px solid transparent;transition:border-color .15s,background .15s}
.board-column.drag-over{border-color:#4676b7;background:#e4edf7}
.board-column h3{font-size:15px}
.board-column h3 span{font-size:13px}
.board-card{cursor:grab}
.board-card.dragging{opacity:.45}
.board-open{width:100%;border:0;background:none;text-align:right;color:inherit;padding:0}
.board-open strong{font-size:15px;margin:9px 0 4px}
.board-open small{display:block;color:#405c72;font-size:13px;min-height:21px}
.board-card-footer{gap:6px}
.board-card-footer small{font-size:13px}
.board-move{max-width:110px;border:1px solid #cbd6da;border-radius:6px;background:#fff;color:#334f61;padding:5px;font-size:13px}
.calendar-cell{min-height:117px}
.calendar-date{border:0;background:none;color:#2e4859;display:grid;place-items:center;min-width:28px;min-height:28px;border-radius:50%;font-size:13px;font-weight:750}
.calendar-cell.today .calendar-date{background:#e9b569;color:#172b3b}
.calendar-event{border:0;width:100%;text-align:right;min-height:27px;font-size:13px}
.calendar-more{border:0;background:none;color:#315f9a;font-size:13px;font-weight:800;padding:5px}
.agenda-item{width:100%;background:#fff;text-align:right;font-size:14px;min-height:54px}
.agenda-item span{color:#4e6473;flex:1}
.waiting-panel,.tracks-glance{padding:20px 23px}
.waiting-mini,.tracks-glance>button{display:flex;align-items:center;width:100%;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;text-align:right;gap:9px;padding:10px 0;font-size:13px}
.waiting-mini strong{min-width:80px}
.waiting-mini span,.tracks-glance>button span:last-child{color:#526575}
.tracks-glance>button span:last-child{margin-inline-start:auto}
.waiting-group{padding:20px 23px;margin-bottom:15px}
.waiting-row{display:flex;align-items:center;border-top:1px solid var(--line);padding:12px 0;gap:10px}
.waiting-row .task-open{border:0;background:none;text-align:right;flex:1;color:inherit}
.waiting-row strong,.waiting-row span{display:block;font-size:14px}
.waiting-row span{color:#536879}
.track-create{padding:20px 23px;margin-bottom:15px}
.track-create h2{font-size:19px;margin:0 0 14px}
.track-create form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.track-create label{display:grid;gap:5px;color:#3c5363;font-size:14px;font-weight:750}
.track-create input:not([type=color]){min-height:44px;min-width:260px;border:1px solid #cbd9db;border-radius:8px;padding:8px}
.track-create input[type=color]{width:50px;height:44px;border:1px solid #cbd9db;border-radius:8px;background:#fff}
.track-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:13px}
.track-card{padding:18px}
.track-card.archived{opacity:.7}
.track-card-top{display:flex;align-items:center;gap:9px}
.track-card-top button{border:0;background:none;color:inherit;text-align:right;padding:0;flex:1;font-size:17px}
.track-card>p{color:#4f6373}
.track-progress,.subtask-track{height:9px;border-radius:8px;background:#e9efed;overflow:hidden}
.track-progress i,.subtask-track i{display:block;height:100%;border-radius:8px;background:var(--green)}
.track-card small{color:#526575}
.track-card-actions,.track-detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}
.track-card-actions button{border:1px solid #d5e0e0;background:#f9fbfa;color:#385468;border-radius:7px;padding:7px 9px;min-height:42px;font-size:13px}
.track-detail-actions{margin-bottom:16px}
.alert-list{padding:5px 20px}
.alert-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:14px 0}
.alert-row>span{color:#a54a3d}
.alert-row.waiting>span{color:#765aab}
.alert-row>button:first-of-type{border:0;background:none;color:inherit;text-align:right;flex:1}
.alert-row strong,.alert-row small{display:block;font-size:14px}
.alert-row small{color:#526575}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:15px}
.settings-section{padding:22px}
.settings-section h2{font-size:20px;margin:0 0 18px}
.settings-section>label,.setting-pair label{display:grid;gap:6px;margin:14px 0;color:#354e60;font-size:14px;font-weight:700}
.settings-section input:not([type=checkbox]),.settings-section select{min-height:44px;border:1px solid #cbd9db;border-radius:8px;padding:8px;background:#fff;color:#1c3446}
.settings-section p{color:#4f6373;font-size:14px;line-height:1.7}
.settings-section .toggle-row{display:flex;align-items:center;gap:8px}
.settings-section input[type=checkbox]{width:20px;height:20px}
.setting-pair{display:flex;gap:10px}
.settings-actions{display:flex;gap:10px;flex-wrap:wrap}
.import-button{cursor:pointer}
.focus-active .sidebar,.focus-active .topbar{display:none}
.focus-active .content-wrap{width:100%}
.focus-active main{max-width:none;padding:0;min-height:100vh}
.focus-screen{min-height:100vh;background:#14283c;color:#fff;display:grid;place-items:center;padding:34px}
.focus-exit{position:fixed;right:28px;top:22px;display:flex;gap:7px;align-items:center;border:1px solid #6d8495;background:transparent;color:#fff;border-radius:8px;padding:9px 13px;min-height:44px}
.focus-content{max-width:760px;text-align:center}
.focus-label{color:#f0bd72;font-size:16px;font-weight:800}
.focus-content h1{font-size:clamp(34px,5vw,65px);line-height:1.35;letter-spacing:-.025em;margin:22px 0}
.focus-content p{font-size:clamp(20px,2.2vw,29px);color:#d8e6ee;line-height:1.6}
.focus-actions{display:flex;justify-content:center;gap:12px;margin-top:35px;flex-wrap:wrap}
.focus-actions button{min-height:52px;min-width:140px;border:1px solid #8ba1b3;background:#294963;color:#fff;border-radius:9px;font-weight:800;font-size:16px}
.focus-actions button:first-child{background:#eab96b;color:#162a3b;border-color:#eab96b}
.focus-timer{display:flex;align-items:center;justify-content:center;gap:15px;color:#f2c680;margin-top:15px}
.focus-timer span{font-size:24px;font-variant-numeric:tabular-nums}
.focus-timer button{background:none;border:0;color:#e9d6bd;text-decoration:underline}
#focusStepEditor{display:grid;gap:10px;max-width:430px;margin:25px auto 0}
#focusStepEditor label{display:grid;gap:7px;text-align:right}
#focusStepEditor input{width:100%;min-height:44px;border-radius:8px;border:1px solid #b1c4d0;padding:8px}
#focusStepEditor button{min-height:44px;border:0;border-radius:8px;background:#eab96b;color:#15283a;font-weight:800}
.modal-open{overflow:hidden}
.capture-dialog{display:flex;flex-direction:column;overflow:hidden;max-height:min(850px,calc(100dvh - 24px))}
.capture-head,.capture-footer{flex:none;background:#fff;z-index:2}
.capture-head{position:sticky;top:0;border-bottom:1px solid var(--line)}
.capture-body{overflow-y:auto;min-height:0;flex:1}
.capture-footer{position:sticky;bottom:0}
.capture-tabs{flex:none}
.ai-preview{flex:none}
.capture-textarea{font-size:15px;min-height:96px}
.capture-body label,.drawer-body label{font-size:14px;color:#354e60;font-weight:750}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.form-grid label{display:grid;gap:6px}
.form-grid .wide{grid-column:1/-1}
.form-grid input,.form-grid select,.form-grid textarea,.waiting-fields input,.drawer-body input,.drawer-body select,.drawer-body textarea{min-width:0;width:100%;min-height:43px;border:1px solid #cbd9db;border-radius:8px;background:#fff;color:#213b4d;padding:8px 10px;font-size:14px}
.form-grid textarea,.drawer-body textarea{resize:vertical}
.waiting-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px;background:#f4f0fc;border-radius:9px;padding:13px}
.waiting-fields[hidden],.step-prompt[hidden]{display:none}
.waiting-fields label{display:grid;gap:6px}
.waiting-fields small{grid-column:1/-1;color:#4b6070}
.step-prompt{background:#fff5df;border:1px solid #e8d4a5;border-radius:9px;padding:13px;margin-top:16px}
.step-prompt strong,.step-prompt p{display:block;font-size:14px;margin:0 0 6px}
.step-prompt button{border:1px solid #bd9a63;background:#fff;color:#59421f;border-radius:6px;min-height:40px;padding:7px 10px;margin-left:6px}
.voice-record{margin-top:10px}
#taskDrawer{justify-content:flex-start;place-items:stretch;padding:0}
.task-drawer{width:min(650px,100%);height:100dvh;background:#fff;display:flex;flex-direction:column;box-shadow:-20px 0 50px rgba(9,24,39,.2)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:18px 22px;background:#fff;flex:none}
.drawer-head h2{font-size:22px;margin:0}
.drawer-head p{font-size:13px;color:#526575;margin:2px 0 0}
.drawer-body{overflow-y:auto;flex:1;padding:20px 22px}
.drawer-body form>label{display:grid;gap:6px;margin-bottom:16px}
.drawer-title-label input{font-size:20px;font-weight:750}
.next-step-label{background:#eaf2f0;padding:14px;border-radius:10px;color:#254b41!important}
.next-step-label input{border-color:#aacfc1}
.subtask-section{padding:15px;border:1px solid var(--line);border-radius:10px;margin-bottom:18px}
.subtask-section h3{font-size:17px;margin:0}
.subtask-row,.subtask-add{display:flex;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid var(--line)}
.subtask-row label{display:flex;align-items:center;gap:8px;flex:1}
.subtask-row input[type=checkbox]{width:20px;min-height:20px}
.subtask-row button{border:0;background:none;color:#ae4d42;min-width:35px;min-height:35px}
.subtask-add{border-bottom:0}
.subtask-add button{min-height:43px;border:0;border-radius:7px;padding:7px 12px;background:#e7f0f5;color:#285a80;font-weight:800}
.note-label{margin-top:18px}
.task-history{border-top:1px solid var(--line);padding:15px 0;color:#526575;font-size:13px}
.drawer-footer{border-top:1px solid var(--line);padding:14px 22px;display:flex;justify-content:space-between;gap:10px;background:#fff;flex:none}
.danger-button{border:1px solid #e4a69e;background:#fff4f1;color:#9b352e;border-radius:8px;padding:9px 13px;min-height:44px;font-weight:800}
#deferModal{z-index:120}
.small-dialog{background:#fff;border-radius:13px;width:min(480px,100%);padding:0;max-height:90dvh;overflow:auto;box-shadow:0 20px 50px rgba(10,30,45,.2)}
.small-dialog>div{padding:18px 22px}
.small-dialog p{font-size:15px;color:#40596b;line-height:1.7}
.defer-choices{display:grid;gap:9px}
.defer-choices button{border:1px solid #cbd9db;background:#f9fbfb;color:#243d50;border-radius:8px;min-height:44px;padding:8px 10px;text-align:right;font-weight:750}
.defer-choices button.danger-button{border-color:#e4a69e;background:#fff4f1;color:#9b352e}
.defer-choices label{display:grid;gap:5px;font-size:14px}
.defer-choices input{min-height:44px;border:1px solid #cbd9db;border-radius:8px;padding:7px}
.toast{display:flex;align-items:center;gap:12px;max-width:min(520px,calc(100vw - 25px));font-size:14px}
.toast button{border:1px solid #eab96b;background:transparent;color:#f9d6a0;border-radius:6px;padding:5px 9px;font-weight:800;min-height:33px}
.toast button[hidden]{display:none}
.toast.show{pointer-events:auto}
@media(max-width:760px){.header-actions{gap:5px}.header-actions .primary-button{font-size:0;width:44px;padding:0}.header-actions .focus-top{font-size:0;width:44px;padding:0}.header-actions svg{width:20px;height:20px}.time-budget{align-items:flex-start}.task-tags .status-chip{display:none}.calendar-cell{min-height:88px}.calendar-event{font-size:0;min-height:7px;height:7px;padding:0}.calendar-more{font-size:13px}.focus-content h1{font-size:35px}}
@media(max-width:540px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.waiting-fields{grid-template-columns:1fr}.waiting-fields small{grid-column:auto}.task-tags .pill{font-size:13px}.task-row{min-height:87px}.task-meta{font-size:13px}.task-title{font-size:15px}.board-grid{grid-template-columns:repeat(5,230px)}.waiting-row{flex-wrap:wrap}.waiting-row .control-button{margin-inline-start:auto}.time-budget{flex-wrap:wrap}.calendar-cell{min-height:72px}.calendar-event{display:none}.calendar-more{padding:0}.capture-dialog{max-height:calc(100dvh - 12px)}.focus-screen{padding:20px}.focus-actions{display:grid}.focus-actions button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(prefers-color-scheme:dark){html[data-theme=system]{color-scheme:dark}}
html[data-theme=dark]{color-scheme:dark}
html[data-applied-theme=dark]{--canvas:#111b26;--paper:#1c2a37;--ink:#e8f0f2;--muted:#bdcbd3;--line:#40515d;--shadow:0 11px 28px rgba(0,0,0,.2)}
html[data-applied-theme=dark] body{background:var(--canvas);color:var(--ink)}
html[data-applied-theme=dark] .sidebar{background:#0e1a25}
html[data-applied-theme=dark] .topbar,html[data-applied-theme=dark] .panel,html[data-applied-theme=dark] .calendar-surface,html[data-applied-theme=dark] .task-table,html[data-applied-theme=dark] .capture-dialog,html[data-applied-theme=dark] .task-drawer,html[data-applied-theme=dark] .small-dialog{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-applied-theme=dark] .topbar-search,html[data-applied-theme=dark] .segmented,html[data-applied-theme=dark] .board-column{background:#253746;border-color:#3c5260}
html[data-applied-theme=dark] .topbar-search input,html[data-applied-theme=dark] .page-header h1,html[data-applied-theme=dark] .icon-button,html[data-applied-theme=dark] .task-title,html[data-applied-theme=dark] .task-open,html[data-applied-theme=dark] .mini-grid .mini-day,html[data-applied-theme=dark] .calendar-date{color:#edf5f7}
html[data-applied-theme=dark] .page-header p,html[data-applied-theme=dark] .date-line,html[data-applied-theme=dark] .panel-head p,html[data-applied-theme=dark] .task-next,html[data-applied-theme=dark] .task-meta,html[data-applied-theme=dark] .subtle,html[data-applied-theme=dark] .result-count,html[data-applied-theme=dark] .waiting-row span,html[data-applied-theme=dark] .alert-row small,html[data-applied-theme=dark] .settings-section p{color:#b9ccd5}
html[data-applied-theme=dark] .task-row,html[data-applied-theme=dark] .waiting-row,html[data-applied-theme=dark] .waiting-mini,html[data-applied-theme=dark] .alert-row{border-color:#415260}
html[data-applied-theme=dark] .metric-today{background:#574228;color:#ffe6b9}
html[data-applied-theme=dark] .metric-late{background:#593832;color:#ffdbd1}
html[data-applied-theme=dark] .metric-next{background:#2a4561;color:#deebff}
html[data-applied-theme=dark] .metric-done{background:#244d43;color:#d9f4e4}
html[data-applied-theme=dark] .time-budget{background:#24473f;color:#e0f2e9}
html[data-applied-theme=dark] .time-budget.over{background:#55382c;color:#ffdfd0}
html[data-applied-theme=dark] .late-panel{background:#322b2b;border-color:#62443f}
html[data-applied-theme=dark] .late-panel .panel-head h2,html[data-applied-theme=dark] .late-item small{color:#f7c3b7}
html[data-applied-theme=dark] .late-item{border-color:#62443f}
html[data-applied-theme=dark] .late-item button:not(.task-open){background:#3f3131;color:#ffcfbf;border-color:#a1645b}
html[data-applied-theme=dark] .weekly-panel,html[data-applied-theme=dark] .calendar-mini,html[data-applied-theme=dark] .distribution,html[data-applied-theme=dark] .waiting-panel,html[data-applied-theme=dark] .tracks-glance{background:#1c2a37}
html[data-applied-theme=dark] .week-line,html[data-applied-theme=dark] .bar-track,html[data-applied-theme=dark] .track-progress,html[data-applied-theme=dark] .subtask-track{background:#40515b}
html[data-applied-theme=dark] .bar-row strong,html[data-applied-theme=dark] .bar-row,html[data-applied-theme=dark] .category-legend span{color:#d1e0e5}
html[data-applied-theme=dark] .control-button,html[data-applied-theme=dark] .segmented button.active,html[data-applied-theme=dark] .board-card,html[data-applied-theme=dark] .calendar-dayname,html[data-applied-theme=dark] .calendar-cell,html[data-applied-theme=dark] .track-card-actions button,html[data-applied-theme=dark] .agenda-item{background:#293b49;color:#edf5f7;border-color:#4a6270}
html[data-applied-theme=dark] .board-column.drag-over{background:#28445b;border-color:#8eb4d8}
html[data-applied-theme=dark] .calendar-cell.off{background:#1a2733}
html[data-applied-theme=dark] .calendar-cell.today{background:#463a2a}
html[data-applied-theme=dark] .calendar-event{background:#613932;color:#ffe1d8}
html[data-applied-theme=dark] .calendar-event.blue{background:#304c69;color:#dfecff}
html[data-applied-theme=dark] .calendar-event.green{background:#2b5145;color:#daf4e3}
html[data-applied-theme=dark] .form-grid input,html[data-applied-theme=dark] .form-grid select,html[data-applied-theme=dark] .form-grid textarea,html[data-applied-theme=dark] .waiting-fields input,html[data-applied-theme=dark] .drawer-body input,html[data-applied-theme=dark] .drawer-body select,html[data-applied-theme=dark] .drawer-body textarea,html[data-applied-theme=dark] .settings-section input:not([type=checkbox]),html[data-applied-theme=dark] .settings-section select,html[data-applied-theme=dark] .defer-choices input{background:#243746;color:#eef6f8;border-color:#5b7180}
html[data-applied-theme=dark] .capture-head,html[data-applied-theme=dark] .capture-footer,html[data-applied-theme=dark] .drawer-head,html[data-applied-theme=dark] .drawer-footer{background:#1c2a37;border-color:#40515d}
html[data-applied-theme=dark] .capture-body label,html[data-applied-theme=dark] .drawer-body label,html[data-applied-theme=dark] .settings-section>label,html[data-applied-theme=dark] .setting-pair label{color:#dceaf0}
html[data-applied-theme=dark] .next-step-label{background:#24483e;color:#d9f2e8!important}
html[data-applied-theme=dark] .waiting-fields,html[data-applied-theme=dark] .ai-preview{background:#342d48;border-color:#665582}
html[data-applied-theme=dark] .step-prompt{background:#483d2b;border-color:#8d7047}
html[data-applied-theme=dark] .step-prompt button,html[data-applied-theme=dark] .defer-choices button{background:#2b3e4d;color:#eaf4f6;border-color:#617684}
html[data-applied-theme=dark] .small-dialog p,html[data-applied-theme=dark] .task-history{color:#c6d7de}
html[data-applied-theme=dark] .pill.priority-urgent{background:#743b35;color:#ffe2dc}
html[data-applied-theme=dark] .pill.priority-high{background:#664b29;color:#fff0ce}
html[data-applied-theme=dark] .pill.priority-medium{background:#314c6d;color:#e1edff}
html[data-applied-theme=dark] .pill.priority-low{background:#2c5242;color:#def5e7}
html[data-applied-theme=dark] .status-chip{background:#354959;color:#ecf3f6}
[hidden]{display:none!important}
.first-run{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:18px}
.first-run .panel{padding:28px}
.first-run-main{background:linear-gradient(135deg,#fff8ea,#f7f1e7)!important;border-color:#ead9ba!important}
.first-run-main h2{font-size:25px;margin:0 0 9px;color:#253e50}
.first-run-main p{font-size:16px;color:#4c6170;max-width:52ch;line-height:1.8}
.first-run-main .primary-button{margin-top:18px}
.first-run-steps h2{font-size:18px;margin:0 0 12px}
.first-run-steps ol{padding-inline-start:23px;margin:0;color:#40596b;line-height:2;font-size:15px}
html[data-applied-theme=dark] .first-run-main{background:linear-gradient(135deg,#413a2e,#332f2d)!important;border-color:#776449!important}
html[data-applied-theme=dark] .first-run-main h2,html[data-applied-theme=dark] .first-run-main p,html[data-applied-theme=dark] .first-run-steps ol{color:#e9eff0}
@media(max-width:760px){.first-run{grid-template-columns:1fr}}
.primary-button{background:#c84136}
.board-column h3 span,.board-card-footer small{color:#536b7b}
.focus-active .toast{display:none}
.sidebar{overflow-y:auto;overscroll-behavior:contain}
html[data-applied-theme=light] .topbar-search kbd,
html[data-applied-theme=light] .weekly-top strong small,
html[data-applied-theme=light] .week-days span,
html[data-applied-theme=light] .mini-grid b,
html[data-applied-theme=light] .category-legend span{color:#526a79}
html[data-applied-theme=light] .today-indicator{color:#ad4037}
html[data-applied-theme=light] .status-chip.status-new{color:#526775}
html[data-applied-theme=light] .late-count{background:#bd453a}
html[data-applied-theme=light] .capture-head p,
html[data-applied-theme=light] .capture-tab,
html[data-applied-theme=light] .capture-footer span{color:#526a79}
html[data-applied-theme=light] .capture-tab.active{color:#b53f35}
@media(max-width:760px){
  .topbar .icon-button{width:44px;height:44px;min-width:44px}
  .topbar-search{min-height:44px}
  .topbar-search input{min-height:44px}
  .page-header .primary-button,.page-header .focus-top{min-height:44px}
  .text-link{min-height:44px}
  .task-check{width:44px;height:44px;min-width:44px}
  .calendar-mini{padding-inline:12px}
  .mini-day{min-height:44px}
  .today-panel .empty-state{padding-block:28px}
  .text-link{min-width:44px}
  .tracks-glance button[data-action=track]{min-height:44px}
}

/* تسجيل الدخول والمزامنة */
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 80% 10%,rgba(55,107,186,.18),transparent 38%),linear-gradient(145deg,#0f2034,#172e47);color:#12243a}
.auth-card{width:min(100%,460px);background:#fff;border:1px solid rgba(255,255,255,.35);border-radius:28px;padding:38px;box-shadow:0 28px 80px rgba(4,17,31,.34)}
.auth-brand{color:#12243a;margin-bottom:38px}.auth-kicker{color:#376bba;font-weight:800;margin:0 0 8px}.auth-card h1{font-size:2rem;margin:0 0 8px}.auth-card>div>p:not(.auth-kicker){color:#607085;margin:0 0 28px}
.auth-card form{display:grid;gap:17px}.auth-card label{display:grid;gap:8px;font-weight:750}.auth-card input{width:100%;min-height:50px;border:1px solid #cdd6df;border-radius:12px;padding:0 14px;font:inherit;background:#fbfcfd;color:#12243a}.auth-card input:focus{outline:3px solid rgba(55,107,186,.18);border-color:#376bba}
.auth-submit{width:100%;justify-content:center;margin-top:6px;min-height:52px}.auth-submit:disabled{opacity:.6}.auth-error{min-height:24px;margin:0;color:#b72f2f;font-weight:700}.auth-foot{font-size:.84rem;color:#718096;text-align:center;margin:26px 0 0}
.attachment-section{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}.attachment-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}.attachment-row a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent);font-weight:700}.attachment-row svg{width:18px;height:18px}.attachment-row button{border:0;background:transparent;color:var(--danger);cursor:pointer;font:inherit}.boot-error{max-width:520px;margin:10vh auto;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:18px;text-align:center}
@media(max-width:560px){.auth-card{padding:28px 22px;border-radius:22px}.attachment-row{grid-template-columns:minmax(0,1fr) auto}.attachment-row small{display:none}}
html[data-applied-theme=dark] .today-indicator{background:#5c3732;color:#ffe2dc}
html[data-applied-theme=dark] .empty-state strong{color:#e6f0f3}
html[data-applied-theme=dark] .text-link{color:#acd6f8}
html[data-applied-theme=dark] .late-count{background:#b44539;color:#fff}
html[data-applied-theme=dark] .weekly-top strong small,
html[data-applied-theme=dark] .tracks-glance button span{color:#c9dbe2}
html[data-applied-theme=dark] .capture-head p,
html[data-applied-theme=dark] .capture-tab,
html[data-applied-theme=dark] .capture-footer span{color:#bfd1d9}
html[data-applied-theme=dark] .capture-tab.active{color:#ffc3b9}
html[data-applied-theme=dark] .drawer-head p{color:#c0d3dc}
.capture-dialog .icon-button,.task-drawer .icon-button,.small-dialog .icon-button{min-width:44px;min-height:44px}
.capture-tab,.capture-footer .primary-button,.drawer-footer .primary-button{min-height:44px}
.form-grid input,.form-grid select,.form-grid textarea,.waiting-fields input,.drawer-body input,.drawer-body select,.drawer-body textarea{min-height:44px}
html[data-applied-theme=light] .segmented button:not(.active),
html[data-applied-theme=light] .calendar-dayname,
html[data-applied-theme=light] .calendar-toolbar p{color:#526a79}
.calendar-toolbar p{font-size:13px}
html[data-applied-theme=dark] .topbar-search kbd{background:#344b5d;color:#e6f1f4}
html[data-applied-theme=dark] .prototype-badge{background:#294841;color:#e3f3e9}
html[data-applied-theme=dark] .segmented button:not(.active),
html[data-applied-theme=dark] .calendar-toolbar p,
html[data-applied-theme=dark] .track-create label{color:#d1e2e8}
html[data-applied-theme=dark] .focus-screen{background:#101d29}
