@layer native-app {
/* Approved application palette, shared by the real views and their dialogs. */
html{--muted:var(--fg-secondary);--rule:var(--border);--field:var(--input-bg);--action:var(--primary);--on-action:var(--primary-text);--art:var(--accent);--quiet:var(--surface-raised);--hover:var(--surface-hover);--radius:0px}
html:not([data-theme="pro"]){--bg:#202020;--fg:#f1f1f1;--fg-secondary:#b4b4b4;--fg-muted:#949494;--border:#454545;--border-light:#454545;--surface:#252525;--surface-raised:#292929;--input-bg:#292929;--primary:#efefef;--primary-text:#222;--default-accent:#c6c6c6;--accent:var(--default-accent);--cyan:var(--accent);--surface-hover:#333;--danger:#f3a4a4;--sidebar-bg:#242424}
html.light:not([data-theme="pro"]){--bg:#d9d9d9;--fg:#1c1c1c;--fg-secondary:#505050;--fg-muted:#606060;--border:#b7b7b7;--border-light:#b7b7b7;--surface:#dfdfdf;--surface-raised:#e4e4e4;--input-bg:#e4e4e4;--primary:#242424;--primary-text:#fafafa;--default-accent:#494949;--accent:var(--default-accent);--surface-hover:#c9c9c9;--danger:#912d2d;--sidebar-bg:#d2d2d2}
html[data-theme="pro"]:not(.light){--bg:#1d1c25;--fg:#eeebf4;--fg-secondary:#bcb5c8;--fg-muted:#bcb5c8;--border:#403b4b;--border-light:#403b4b;--surface:#292533;--surface-raised:#38323f;--input-bg:#24212e;--primary:#c3ade7;--primary-text:#282131;--default-accent:#b69bd5;--accent:var(--default-accent);--cyan:var(--accent);--surface-hover:#342e40;--danger:#f3a4a4;--sidebar-bg:#24212c;--radius:14px;--radius-sm:8px;--radius-md:14px;--radius-lg:20px;--radius-xl:28px}
html.light[data-theme="pro"]{--bg:#f6f5f9;--fg:#292735;--fg-secondary:#676271;--fg-muted:#676271;--border:#dedbe5;--border-light:#dedbe5;--surface:#ede9f4;--surface-raised:#e6e1ed;--input-bg:#ede9f4;--primary:#68509b;--primary-text:#fff;--default-accent:#8064a4;--accent:var(--default-accent);--surface-hover:#e8e3ef;--danger:#912d2d;--sidebar-bg:#eeecf3}
body :is(input:not(:is([type="checkbox"],[type="radio"],[type="range"],[type="color"],[type="file"],[type="hidden"],[type="button"],[type="reset"],[type="submit"],[type="image"])),textarea,[contenteditable="true"],[contenteditable=""]):not(#newNoteTitle):not(#newNoteBody):is(:focus,:focus-visible){outline:none!important;box-shadow:0 0 12px 0 color-mix(in srgb,var(--art) 8%,transparent)!important;filter:none!important;border-color:transparent!important}
html body #main{padding-top:76px;background:var(--bg)}
html body #mobileTopBar{display:flex;position:fixed!important;inset:0 0 auto;height:76px;padding:0 40px;background:var(--bg);border-bottom:1px solid var(--rule);z-index:45;justify-content:space-between}
html body .mobile-brand{position:static;transform:none;gap:12px}
html body .mobile-brand strong{font-size:23px}
html body .mobile-brand .fekrhot-mark{width:26px;height:26px;color:var(--art)}
html body .mobile-top-btn{width:44px;height:44px;min-height:44px;background:none;border:0;color:var(--fg)}
html body #sidebar{position:fixed;inset:76px 0 0 auto;width:220px;min-width:0;transform:translateX(100%);transition:transform .25s ease;background:var(--bg);border-inline-end:1px solid var(--rule);box-shadow:none;z-index:50}
html body #sidebar.open{transform:none}
html body #menuToggle{display:flex;right:22px;left:auto;top:16px;width:44px;height:44px;background:none;border:0;z-index:46}
html body #mobileTopBar .mobile-brand{margin-inline-start:42px}
html body #sidebarOverlay.open{display:block;position:fixed;inset:76px 0 0;background:#0003;z-index:49}
html body .view>.view-body{padding:28px 40px 48px;max-width:1400px;width:100%;margin-inline:auto;background:var(--bg)}
html body :is(.primary-btn,.planner-action-btn,.mini-action-btn,.secondary-btn,.form-input,.form-textarea,.custom-select-trigger){border-radius:var(--radius);font-family:inherit;letter-spacing:0}
html body :is(.primary-btn,.planner-action-btn){min-height:44px}
html body .modal{background:var(--bg);color:var(--fg);border-radius:var(--radius);border:0;box-shadow:0 20px 80px #0003}
html body .modal-header{padding:22px 26px;border-color:var(--rule)}
html body .modal-body{padding:24px 26px}
html body :is(.form-input,.form-textarea){background:var(--input-bg);border:1px solid transparent;padding:14px 16px;min-height:48px;color:var(--fg)}
html body .form-actions{justify-content:flex-start;gap:12px;direction:rtl}
html body .form-actions :is(#reminderEditSaveBtn,#newReminderSaveBtn,[data-action="plan-modal-save"]){order:-1;flex:1;background:var(--action);color:var(--on-action);justify-content:center}
html body .form-actions [data-action*="close"],html body .form-actions [data-action*="cancel"]{flex:0 0 80px;justify-content:center}
html body #reminderEditDeleteBtn{order:3;background:none;flex:0 0 auto}
html body .custom-select-dropdown{background:var(--bg);border:1px solid var(--rule);border-radius:var(--radius);box-shadow:0 12px 32px #0002}
html body .custom-select-option{color:var(--fg);min-height:44px;border-radius:var(--radius)}
html body .custom-select-option:is(:hover,.selected){background:var(--quiet);color:var(--fg)}
html body .custom-select-trigger{background:var(--surface);color:var(--fg);border:0;min-height:48px;padding:12px 16px}
/* Calendar toolbar: date beside the centered mode buttons, Today at physical left. */
html body .timeline-header{position:relative;padding:24px 40px 0;background:var(--bg);border:0;max-width:1400px;width:100%;margin:0 auto}
html body .planner-mode-switch{display:flex;width:max-content;position:static!important;transform:none!important;gap:8px;margin:0 auto!important;background:none;border:0;padding:0}
html body .planner-mode-switch button{padding:0 18px;min-height:46px;background:var(--quiet);border:0;border-radius:var(--radius);font:inherit;font-size:14px;color:var(--fg)}
html body .planner-mode-switch button.active{background:var(--action);color:var(--on-action)}
html body #timelineCalendarControls>.timeline-nav-row{margin-top:0;min-height:46px}
html body .timeline-date-nav{position:absolute;inset-inline-start:40px;top:24px;gap:0}
html body .timeline-date-picker{padding:0 6px;font-size:19px;display:flex;gap:4px;border:0;background:none;min-height:44px;align-items:center;cursor:pointer}
html body .timeline-month,html body .timeline-year{font-size:19px;font-weight:700;line-height:1.5;color:var(--fg)}
html body .timeline-nav-arrow{width:38px;height:44px;min-height:44px;background:none;border:0;color:var(--fg)}
html body .calendar-today-btn{position:absolute;left:40px;top:24px;height:46px;padding:0 22px;background:var(--quiet);color:var(--art);border:0;border-radius:var(--radius);font:inherit;font-size:13px;cursor:pointer}
html body .tl-view-toggle{display:none}
html body .tl-zoom-controls{display:flex;position:absolute;left:40px;bottom:-32px;font-size:12px;gap:8px}
html body .tl-zoom-btn{min-width:32px;min-height:32px;background:none;border:0}
html body .week-selector{margin-top:22px;margin-bottom:18px;gap:8px}
html body .week-day-btn{border:0;background:none;border-radius:var(--radius);min-height:76px}
html body .week-day-btn.selected{background:var(--action);color:var(--on-action)}
html body #timelineCalendarBody{padding-top:12px}
html body .timeline-content{height:min(60svh,540px);overflow-y:auto;overscroll-behavior:auto;scrollbar-width:none;background:color-mix(in srgb,var(--surface) 40%,var(--bg));border:0;border-radius:var(--radius);padding:14px 0}
.timeline-content::-webkit-scrollbar{display:none}
html body .timeline-content:has(.month-view){height:auto;overflow:visible;background:none;padding:0}
html body .timeline-card-abs{background:var(--quiet);color:var(--fg);border:0!important;border-radius:var(--radius);padding:4px 7px;box-shadow:none;overflow:visible;display:flex;align-items:center;gap:6px}
html body .timeline-card-main{display:flex;align-items:center;gap:7px;min-width:0;flex:1;height:100%;padding:0;line-height:1.3}
html body .timeline-card-title{font-size:12px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .tl-card-checkbox{position:relative;width:18px;height:18px;min-width:18px;min-height:18px;flex-shrink:0;margin:0!important;inset:auto!important;appearance:none;padding:0;border:1px solid var(--art);border-radius:4px;background:var(--bg);cursor:pointer}
html body .tl-card-checkbox::before{display:none}
html body .tl-card-checkbox:checked{background:var(--action);border-color:var(--action)}
html body .tl-card-checkbox:checked::after{width:8px;height:4px;top:4px;left:3px;border-color:var(--on-action)}
html body .timeline-card-abs .timeline-card-time{position:static;margin:0;font-size:10px;line-height:1.2;flex-shrink:0;direction:ltr;color:var(--muted)}
html body .timeline-card-caption{font-size:10px;color:var(--muted)}
html body .timeline-card-abs.is-short .timeline-card-caption{display:none}
.timeline-card-abs::after{content:'';position:absolute;width:42%;inset-block:0;opacity:0;border-radius:inherit;pointer-events:none;filter:blur(8px);background:linear-gradient(to left,color-mix(in srgb,var(--art) 48%,transparent),transparent);transition:opacity .15s}
.timeline-card-abs.drag-previous::after{right:0;opacity:1}
.timeline-card-abs.drag-next::after{left:0;opacity:1;transform:scaleX(-1)}
html body .timeline-unscheduled{margin-top:24px;padding:16px 18px;background:var(--surface);border:0;border-radius:var(--radius)}
html body .timeline-unscheduled-item{padding:4px 0;min-height:60px;background:none;border:0;border-bottom:1px solid var(--rule);border-radius:0;display:flex;gap:8px;align-items:center}
html body .timeline-unscheduled-items{display:block}
.timeline-allday-edit{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;flex:1;min-width:0;min-height:48px;background:none;border:0;color:var(--fg);font:inherit;text-align:start;gap:2px}
.timeline-allday-edit strong{font-size:14px;font-weight:600}
.timeline-allday-edit small{font-size:11px;color:var(--muted)}
html body .reminder-check,html body .action-check{width:20px;height:20px;min-width:20px;min-height:20px;border-radius:4px;border:1px solid var(--art);background:var(--bg)}
html body .reminder-check.done,html body .action-check.done{background:var(--action);color:var(--on-action);border-color:var(--action)}
html body .reminder-fab,html body .today-create-fab,html body .note-fab{position:fixed;left:28px;right:auto;bottom:28px;width:52px;height:52px;background:var(--action);color:var(--on-action);border:0;border-radius:13px;box-shadow:0 5px 20px #0003;z-index:39}
html body .reminder-fab .theme-icon{width:24px;height:24px}
html body #view-plans .view-header{padding:24px 40px;border:0;position:relative;background:none}
html body #view-plans .view-header>h1,html body #view-plans .view-header>h2{display:none}
/* Task list: one selected tab, with unattended work always alongside it. */
.task-list-controls{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.task-list-tabs{display:flex;gap:8px;align-items:center}
.task-list-tabs button{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 16px;background:var(--quiet);color:var(--fg);border:0;border-radius:var(--radius);font:inherit;font-size:13px;cursor:pointer}
.task-list-tabs button[aria-selected=true]{background:var(--action);color:var(--on-action)}
.task-tab-count{font-size:11px;border-radius:20px;background:color-mix(in srgb,var(--bg) 75%,transparent);color:var(--art);padding:2px 7px}
.task-list-search{display:flex;align-items:center;width:46px;min-width:46px;min-height:46px;margin-inline-start:auto;background:var(--quiet);border-radius:var(--radius);overflow:hidden;transition:width .35s cubic-bezier(.22,.8,.25,1)}
.task-list-search.is-open{width:320px}
.task-list-search button{border:0;background:none;color:var(--art);width:46px;height:46px;flex-shrink:0;cursor:pointer}
.task-list-search input{background:none;border:0;min-width:0;width:0;opacity:0;padding:0;transition:opacity .2s;color:var(--fg);font:inherit;font-size:14px}
.task-list-search.is-open input{width:100%;opacity:1;padding:8px}
html body .task-list-board{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;margin:0}
html body .task-list-group{background:var(--surface);padding:18px;border:0;border-radius:var(--radius);min-width:0}
html body .task-list-group-head{border:0;padding:0 0 18px;gap:8px}
html body .task-list-group-head h2{font-size:18px;color:var(--fg)}
html body .task-list-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body .task-list-unattended .task-list-rows{grid-template-columns:1fr}
html body .task-list-row{padding:16px;background:var(--bg);border:0;border-radius:var(--radius);min-height:106px;display:flex;align-items:flex-start;gap:10px}
html body .task-list-row .task-list-copy{min-width:0;flex:1}
html body .task-list-title{font-size:14px;font-weight:600;white-space:normal;line-height:1.8}
html body .task-list-meta{font-size:11px;flex-wrap:wrap;line-height:1.8;gap:5px;margin-top:10px;color:var(--muted)}
html body .task-list-zero{padding:28px 12px;font-size:13px;color:var(--muted);text-align:center}
html body .planner-book{padding:0;background:none;border:0;box-shadow:none}
html body .planner-hero{padding:0 0 20px;background:none;border:0}
html body .planner-overview{display:none}
html body .planner-section{background:none;border:0;border-bottom:1px solid var(--rule);padding:18px 0}
html body .planner-section-head h3{font-size:15px}
html body .planner-actions{order:1;display:flex;flex-wrap:wrap;padding:14px 0;gap:8px;border:0}
html body .planner-book{display:flex;flex-direction:column}
html body .plan-step{background:var(--surface);border:0;border-radius:var(--radius);margin-bottom:10px;padding:12px}
html body .plan-step-row{gap:9px}
html body .plan-step-text{font-size:14px;line-height:1.8}
html body .plan-step-actions{gap:0}
html body .plan-step-actions button{min-width:34px;min-height:44px;background:none;border:0}
html body .plan-step-reminder-toggle{width:auto;font:inherit;font-size:11px;display:flex;align-items:center;gap:5px;color:var(--art)}
html body .plan-step-reminder-form.open{padding:12px 0 0;display:block;border-top:1px solid var(--rule);margin-top:10px}
html body .plan-step-reminder-row{display:flex;gap:8px;flex-wrap:wrap}
html body .plan-step-reminder-row input{background:var(--bg);border:0;padding:10px;border-radius:var(--radius);min-height:44px;color:var(--fg);font:inherit}
.plan-wizard-nav{display:flex;gap:12px;margin-bottom:20px;color:var(--muted);font-size:12px}
.plan-wizard-nav span{flex:1;padding-bottom:10px;border-bottom:2px solid var(--rule)}
.plan-wizard-nav [aria-current=step]{color:var(--art);border-color:var(--art)}
.plan-wizard-footer{display:flex;gap:12px;align-items:center;margin-top:24px;border-top:1px solid var(--rule);padding-top:18px}
.plan-wizard-footer .primary-btn{flex:1;order:-1;justify-content:center}
@media(max-width:900px){html body .task-list-rows{grid-template-columns:1fr}html body .timeline-date-nav{position:static}html body #timelineCalendarControls>.timeline-nav-row{margin-top:16px}.calendar-today-btn{top:auto!important;bottom:100px}.tl-zoom-controls{display:none!important}}
@media(max-width:768px){
 html body #sidebar,html body #sidebarOverlay,html body #menuToggle{display:none!important}
 html body #main{padding-top:calc(60px + env(safe-area-inset-top));padding-bottom:calc(74px + env(safe-area-inset-bottom))}
 html body #mobileTopBar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0}
 html body #mobileTopBar .mobile-brand{margin-inline-start:0}
 html body .mobile-brand strong{font-size:20px}
 html body .view>.view-body{padding:18px 16px 28px}
 html body .timeline-header{padding:18px 16px 0}
 html body .planner-mode-switch button{min-height:44px;padding:0 16px;font-size:13px}
 html body .timeline-nav-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0;margin:16px 0 0}
 html body .timeline-date-nav{position:static;gap:0;margin:0;min-width:0}
 html body .timeline-date-picker,html body .timeline-month,html body .timeline-year{font-size:16px}
 html body .calendar-today-btn{position:static;min-height:44px;height:44px;padding:0 18px}
 html body .timeline-content{height:55svh}
 html body .week-selector{gap:3px;margin-top:16px;margin-bottom:0}
 html body .week-day-btn{min-height:64px;padding:8px 2px;font-size:11px}
 html body .reminder-fab,html body .today-create-fab,html body .note-fab{left:18px;bottom:calc(90px + env(safe-area-inset-bottom));width:48px;height:48px}
 html body .task-list-board{grid-template-columns:1fr;gap:18px}
 .task-list-controls{gap:8px;position:relative}
 .task-list-tabs{flex:1;gap:4px;min-width:0}
 .task-list-tabs button{padding:8px 6px;gap:4px;flex:1;justify-content:center;font-size:11px;white-space:nowrap}
 .task-list-search{width:44px;min-width:44px;min-height:44px}
 .task-list-search.is-open{position:absolute;inset:0;width:100%;z-index:2}
 .task-list-search button{height:44px;width:44px}
 html body .task-list-group{padding:14px}
 html body .timeline-unscheduled{padding:12px 14px;margin-top:20px}
 html body .modal-body{padding:20px}
 html body .modal-header{padding:18px 20px}
 html body #view-plans .view-header{padding:18px 16px}
 html body .form-actions{flex-wrap:wrap}
 html body #reminderEditDeleteBtn{flex-basis:100%;justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){html body #sidebar,.task-list-search,.task-list-search input,.timeline-card-abs::after{transition:none}}
html body .month-grid{gap:6px;border:0;min-width:0}
html body .month-day-cell{background:var(--surface);border:0;border-radius:var(--radius);padding:7px;min-height:160px;overflow:hidden}
html body .month-day-cell.today{background:color-mix(in srgb,var(--action) 14%,var(--surface));box-shadow:inset 0 0 0 1px var(--art)}
.month-today-label{font-size:10px;color:var(--art);font-weight:600}
html body .month-day-head{display:flex;align-items:center;justify-content:space-between;gap:3px}
html body .month-day-cell.today .month-day-num{color:var(--on-action);background:var(--action);border-radius:50%;width:24px;height:24px;display:grid;place-items:center}
html body .month-card{background:var(--quiet);border:0;border-radius:calc(var(--radius)/3);padding:4px 5px;font-size:11px;min-height:23px;white-space:normal}
html body .month-card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;line-height:1.6;overflow-wrap:anywhere}
.month-view-tools,.month-overview-dots,.month-scroll-hint{display:none}
@media(max-width:768px){
 .month-view-tools{display:flex;margin:0 0 8px}
 .month-zoom-toggle{background:var(--quiet);color:var(--art);border:0;font:inherit;font-size:12px;min-height:44px;padding:8px 12px;display:flex;align-items:center;gap:8px;border-radius:var(--radius)}
 .month-view.is-overview .month-grid{min-width:0;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
 html body .month-view.is-overview .month-day-cell{min-height:54px;height:clamp(54px,calc((100svh - 270px)/var(--calendar-weeks)),90px);padding:4px 2px}
 .month-view.is-overview .month-day-head{flex-direction:column;gap:1px}
 .month-view.is-overview .month-day-num{font-size:13px}
 .month-view.is-overview .month-day-cards{display:none}
 .month-view.is-overview .month-overview-dots{display:flex;justify-content:center;align-items:center;gap:3px;margin-top:5px;color:var(--art)}
 .month-overview-dot{width:4px;height:4px;border-radius:50%;background:var(--art)}
 .month-overview-dots small{font-size:8px}
 .month-view.is-overview .month-header-cell{padding:5px 0;font-size:9px;border:0}
 .month-view.is-overview .month-today-label{font-size:8px}
 .month-view.is-expanded .month-grid-scroll{overflow-x:auto;overscroll-behavior-x:contain;direction:rtl}
 .month-view.is-expanded .month-grid{min-width:820px}
 .month-view.is-expanded .month-scroll-hint{display:block;margin:0 0 12px;color:var(--muted);font-size:11px}
 html body .month-view.is-expanded .month-day-cell{min-height:190px}
}
html body .custom-select-menu{background:var(--bg);border:1px solid var(--rule);border-radius:var(--radius);box-shadow:0 12px 32px #0002}
html body .custom-select-option.active,html body .custom-select-option[aria-selected=true]{background:var(--quiet);color:var(--fg)}
html body .task-list-main{min-width:0;flex:1}
html body .task-list-row:has(.reminder-check.done) .task-list-title{text-decoration:line-through;color:var(--muted)}
html body [data-plan-panel][hidden]{display:none!important}
.plan-wizard-title{font-size:20px;line-height:1.7;margin:0 0 18px}
.plan-all-day-label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
html body .tl-ghost-card{background:var(--quiet);color:var(--fg);border-radius:var(--radius);border:0;box-shadow:0 8px 24px #0002}
.calendar-reveal-card{position:absolute;box-sizing:border-box;display:flex;align-items:center;gap:10px;overflow:hidden;padding:0;background:var(--quiet);color:var(--fg);border-radius:var(--radius);box-shadow:0 8px 24px #0002;direction:rtl;line-height:1.3;pointer-events:none}
.calendar-reveal-card.is-open{padding:8px 12px}
.calendar-reveal-copy{min-width:0;flex:1;opacity:0;transition:opacity .15s}
.calendar-reveal-copy strong,.calendar-reveal-copy small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.calendar-reveal-copy strong{font-size:13px}
.calendar-reveal-copy small{font-size:10px;color:var(--muted);margin-top:3px}
.calendar-reveal-check{width:18px;height:18px;flex-shrink:0;border:1px solid var(--art);border-radius:4px;opacity:0;transition:opacity .15s}
.calendar-reveal-card.is-open .calendar-reveal-copy,.calendar-reveal-card.is-open .calendar-reveal-check{opacity:1}
.calendar-reveal-card.done strong{text-decoration:line-through}
html body #main::before,html body::after{display:none}
html body .fekrhot-mark{fill:currentColor}
html body .view-header{background:none;border-color:var(--rule)}
html body .today-body{max-width:1280px}
html body .today-hero-overview{display:flex;align-items:center;justify-content:space-between;padding:28px 34px;background:var(--surface);border:0;border-radius:var(--radius);margin:0 0 36px;gap:32px;min-height:220px}
html body .today-hero-overview::before{display:none}
html body .today-overview-date{max-width:360px;flex-shrink:0;border-inline-start:1px solid var(--rule);padding-inline-start:30px;display:flex;flex-direction:column;gap:12px}
html body .today-date-hero{display:flex;gap:18px;align-items:center}
html body .today-date-num{font-size:90px;line-height:1;font-weight:800;color:var(--action)}
html body .today-date-month{font-size:44px;line-height:1.2;font-weight:700}
html body .today-date-weekday{font-size:13px;color:var(--muted)}
html body .today-meta{font-size:12px;margin:0}
.home-capture-copy{max-width:580px;flex:1;min-width:0}
.home-capture-copy h1{font-size:23px;line-height:1.65;font-weight:500;margin:0 0 8px}
.home-capture-copy p{font-size:14px;line-height:1.9;color:var(--muted);margin:0 0 22px}
.home-capture-actions{display:flex;align-items:center;gap:18px}
.home-capture-actions button{display:flex;align-items:center;gap:9px;min-height:46px;font:inherit;font-size:14px;border:0;border-radius:var(--radius);padding:0 18px}
.home-capture-actions .primary-btn{background:var(--action);color:var(--on-action)}
.home-capture-actions .home-write-btn{background:none;color:var(--muted)}
html body .today-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:36px}
html body .today-col{border:0;background:none;padding:0;box-shadow:none;min-width:0}
html body .today-black-label{background:none;color:var(--fg);padding:0 0 12px;border:0;font-size:16px}
html body .today-panel{border:0;background:none;padding:0}
html body .today-row,html body .today-tl-row{border:0;border-bottom:1px solid var(--rule);background:none;min-height:70px;border-radius:0;padding:10px 0}
html body .today-tl-box{border:0;background:none;padding:4px 0}
html body .today-tl-box.is-overdue{border:0;color:var(--fg)}
html body .today-tl-title{font-size:14px;font-weight:500;line-height:1.7}
html body .today-tl-time{font-size:12px;color:var(--muted)}
html body .today-chk{width:18px;height:18px;min-width:18px;min-height:18px;border:1px solid var(--art);border-radius:4px;background:var(--bg)}
html body .today-plan-card{border:0;background:var(--surface);padding:18px;border-radius:var(--radius);box-shadow:none}
html body .today-briefing{border:0;background:none;padding:0;margin:30px 0 0}
html body .today-briefing-head{border:0;padding:0 0 12px}
html body .today-briefing-head h2{font-size:16px}
html body .today-briefing-card{border:0;border-bottom:1px solid var(--rule);border-radius:0;background:none}
html body .today-scope-btn{border:0;border-radius:var(--radius);background:var(--quiet);min-height:40px;font-size:12px;letter-spacing:0}
html body .today-scope-btn.active{background:var(--action);color:var(--on-action)}
html body .chat-input-area{background:var(--surface);border:0;border-radius:var(--radius)}
html body :is(.note-card,.recording-card,.history-item,.settings-card,.billing-current,.credit-pack){border-color:var(--rule);border-radius:var(--radius);box-shadow:none}
html body .bottom-bar{background:var(--bg);border-top:1px solid var(--rule);backdrop-filter:none}
html body .bottom-bar .tab-btn{border:0;background:none;font-family:inherit;letter-spacing:0;font-size:12px}
html body .bottom-bar .tab-btn.active{color:var(--art);background:none}
html body .bottom-bar .tab-btn.active::before{display:none}
html body .bottom-bar svg{width:22px;height:22px}
@media(max-width:768px){html body .today-hero-overview{padding:22px 18px;gap:18px;min-height:190px;margin-bottom:24px}.home-capture-copy h1{font-size:18px}.home-capture-copy p{font-size:12px}.home-capture-actions{gap:4px}.home-capture-actions button{font-size:12px;padding:0 10px}html body .today-overview-date{padding-inline-start:14px;max-width:140px}html body .today-date-hero{gap:8px;flex-direction:column;align-items:flex-start}html body .today-date-num{font-size:62px}html body .today-date-month{font-size:24px}html body .today-meta{font-size:10px}html body .today-grid{grid-template-columns:1fr;gap:24px}}
@media(max-width:380px){html body .today-hero-overview{padding:18px 14px}.home-capture-actions{flex-wrap:wrap}html body .today-overview-date{max-width:112px}}
.chat-voice-error-card{position:absolute;inset:6px 64px 6px 6px;background:var(--quiet);border-radius:var(--radius);z-index:5;display:flex;align-items:center;gap:10px;padding:12px 16px}
html body .chat-input-area:has(.chat-voice-error-card:not(.hidden)) .chat-input-row{position:relative}
html body .chat-voice-error-card .chat-voice-status{flex:1;margin:0;border:0;background:none;font-size:12px;line-height:1.8}
html body .chat-voice-error-card .chat-voice-retry{min-height:44px;margin:0;border:0;background:none;padding:5px;color:var(--fg);font-size:12px}
@media(max-width:768px){.chat-voice-error-card{inset-inline-start:6px;inset-inline-end:58px;gap:6px;padding:8px}.chat-voice-error-card .chat-voice-status{font-size:11px!important}}

/* Physical toolbar placement is independent of the date navigation's LTR order. */
@media(min-width:769px){html[dir="rtl"] body .timeline-date-nav{right:40px;left:auto;width:230px}html[dir="ltr"] body .timeline-date-nav{right:40px;left:auto;width:230px}}
html body .week-day-btn.active{background:var(--action);color:var(--on-action)}
html body .week-day-btn.active :is(.week-day-name,.week-day-num,.week-day-badge){color:var(--on-action);background:none}
html body .week-day-num{font-size:18px;font-weight:600;background:none!important;color:inherit;width:auto;height:auto;line-height:1.5}
html body .week-day-name{font-size:11px;line-height:1.5}
html body .week-day-badge{font-size:9px;background:none;line-height:1.2}
html body .plan-step-editor{margin-top:14px;padding:12px;display:grid;gap:10px;background:var(--quiet);border-radius:var(--radius);font-size:13px}
html body .plan-step-editor .form-actions .primary-btn{flex:1}
html body .plan-step-editor .secondary-btn{flex:0 0 90px}
html body .chat-input-row{position:relative}
html body .chat-voice-error-card{inset:0 54px 0 0}
@media(max-width:768px){html body .chat-voice-error-card{inset:0 50px 0 0}html body .timeline-date-nav{width:auto;max-width:calc(100% - 86px)}html body .timeline-date-picker{padding:0 2px}}

html body #main{margin:0;width:100%;border:0}
html body .timeline-content::-webkit-scrollbar{display:none}
html body .task-list-group-head{display:flex;align-items:center;justify-content:space-between}
html body .timeline-card-abs{border:0!important}
html body .timeline-card-abs .tl-card-checkbox{border:1px solid var(--art)!important;border-radius:4px}
html body .timeline-card-abs .tl-card-checkbox:checked{border-color:var(--action)!important}

html body #view-timeline .planner-mode-switch{background:none;border:0}
html body #view-timeline .planner-mode-switch button.active{background:var(--action);color:var(--on-action)}
html body #weekSelector .week-day-btn.active{background:var(--action);color:var(--on-action)}
html body #weekSelector .week-day-btn.active :is(.week-day-name,.week-day-num,.week-day-badge){background:none!important;color:var(--on-action)}
html body .tl-card-checkbox{border-radius:4px!important}
html body .calendar-reveal-check{border-radius:4px!important}

html body #view-timeline #timelineCalendarBody{display:block;overflow:visible;min-height:0;height:auto;flex:none}
html body #view-timeline #timelineCalendarBody.hidden{display:none}
html body #view-timeline #timelineContent{height:min(60svh,540px);min-height:0;flex:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:auto}
html body #view-timeline #timelineContent:has(.month-view){height:auto;overflow:visible}
html body #view-timeline .timeline-card-overlap .timeline-card-time{display:block;font-size:9px;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-timeline .timeline-card-overlap.is-short .timeline-card-time{max-width:none}
@media(max-width:768px){html body #view-timeline #timelineContent{height:55svh}}

html body #view-timeline>.view-body{overflow-y:auto;overflow-x:hidden;min-height:0;overscroll-behavior:auto;scrollbar-width:none}
html body #view-timeline>.view-body::-webkit-scrollbar{display:none}
html body .reminder-check,html body .action-check{border-radius:4px!important}
html body #newReminderFab .theme-pro{--icon:url(/icons/ui/add.svg)!important}

/* Approved component design is the sole visual layer. Native CSS below this
   layer supplies feature geometry and state only; retired skins do not load. */
html{--note-border:var(--rule);--note-sep:var(--rule);--note-time:var(--muted);--note-icon:var(--art);--primary-dark:var(--action);--on-accent:var(--on-action);--gradient-accent:linear-gradient(var(--action),var(--action));--shadow-sm:none;--shadow-md:none;--shadow-glow:none;--glass-bg:var(--bg);--glass-border:var(--rule);--minimal-gutter:40px;--minimal-line:1px solid var(--rule);--minimal-line-strong:1px solid var(--rule);--soft-mint:var(--surface);--soft-peach:var(--surface);--mint-ink:var(--fg);--peach-ink:var(--fg)}
html,body{font-family:Peyda,sans-serif;line-height:1.7}
body :is(button,input,textarea,select){font:inherit;letter-spacing:0}
body :is(button,a){touch-action:manipulation}
body :is(button,a):focus-visible{outline:2px solid var(--art);outline-offset:3px}
body :is(.primary-btn,.planner-action-btn,.mini-action-btn,.send-btn){background:var(--action);color:var(--on-action);border:0;border-radius:var(--radius);box-shadow:none}
body :is(.secondary-btn,.mini-plain-btn,.filter-btn,.setting-action-btn){background:var(--quiet);color:var(--fg);border:0;border-radius:var(--radius);box-shadow:none;min-height:44px}
body :is(.header-icon-btn,.new-chat-btn,.nav-btn,.tab-btn,.context-btn,.chat-mic-btn){border:0;border-radius:var(--radius);box-shadow:none;letter-spacing:0;min-height:44px}
body :is(.setting-select,.setting-input,.reminder-date-input,.reminder-priority-select,.plan-edit-input,.plan-edit-date,.memory-card-input){background:var(--surface);border:1px solid transparent;color:var(--fg);border-radius:var(--radius);padding:12px 14px;min-height:48px}
body .search-bar{background:var(--surface);border:0;border-radius:var(--radius);padding:6px 14px;min-height:46px}
body .search-bar:focus-within{border:0;box-shadow:0 0 12px color-mix(in srgb,var(--art) 8%,transparent)}
body .view-header{padding:24px 40px 16px;border:0;background:var(--bg);gap:12px;flex-wrap:wrap}
body .view-header h2{font-size:26px;font-weight:700;letter-spacing:0;color:var(--fg)}
body .view-subtitle{font-size:13px;color:var(--muted)}
body #menuToggle .theme-icon{--icon:url(/icons/ui/panel.svg)!important}
body #mobileTopBar .mobile-top-btn{padding:10px}
body #mobileTopBar #mobileSettingsToggle{display:none}
body .sidebar-nav{direction:inherit}
body #sidebar .app-brand{display:none}
body #sidebar .sidebar-header{padding:20px 14px}
body .nav-btn{min-height:46px;font-size:14px;gap:12px}
body .nav-btn.active{background:var(--action);color:var(--on-action)}
body .today-hero-overview{border:0;box-shadow:none}
body .today-overview-date{border-inline-start:1px solid var(--rule)}
body .today-black-label{background:none;color:var(--fg)}
body .today-chk{border-radius:4px;flex:none}
body .today-tl-card{border:0;background:none}
body .today-plan-progress{height:3px;background:var(--rule)}
body .today-plan-progress>span{background:var(--art)}
body .today-col-plans{background:none}
body .today-plan-card{background:var(--surface);border:0;border-radius:var(--radius)}
body .today-section-link{color:var(--muted)}
body .bottom-bar .tab-btn[data-tab="inbox"]{order:1}
body .bottom-bar .tab-btn[data-tab="timeline"]{order:2}
body .bottom-bar .tab-btn[data-tab="record"]{order:3}
body .bottom-bar .tab-btn[data-tab="notes"]{order:4}
body .bottom-bar .tab-btn[data-tab="chat"]{order:5}
body .bottom-bar{direction:rtl}
/* Chat uses the approved welcome and spacious composer, with the same native
   streaming, selected-note, recording and recovery controls. */
body #view-chat .chat-attachment-menu{background:var(--bg);border:1px solid var(--rule);border-radius:var(--radius);box-shadow:0 8px 26px #0002}
body #view-chat .chat-attachment-menu button:is(:hover,:focus-visible){background:var(--surface);outline:none}
body #view-chat .chat-dot{display:none}
body #view-chat .chat-message.user{justify-content:flex-start}
body #view-chat .chat-message.assistant{justify-content:flex-end}
body #view-chat .chat-bubble{flex:0 1 auto;width:fit-content;max-width:90%}
body #view-chat .chat-bubble.user .bubble-content{background:var(--quiet);border:0;border-radius:var(--radius);padding:14px 18px;color:var(--fg)}
body #view-chat .chat-bubble.assistant .bubble-content{border:0;padding:6px 0;background:none;color:var(--fg)}
body #view-chat .bubble-content{font-size:15px;line-height:2}
/* Library retains its measured masonry and native audio/image/text actions. */
body #view-notes .view-body{max-width:1200px}
body #view-notes .library-layout-toggle{background:none;border:0;border-radius:var(--radius);height:44px}
body #view-notes .library-layout-toggle button{width:44px;height:44px;min-height:44px;border:0}
body #view-notes .library-layout-toggle button.active{background:var(--quiet);color:var(--art)}
body #view-notes .note-card{background:var(--surface);border:0;border-radius:var(--radius);box-shadow:none;overflow:hidden}
body #view-notes .note-card:hover{background:var(--hover)}
body #view-notes .note-card-body{padding:20px}
body #view-notes .note-card-title{font-size:18px;line-height:1.6;font-weight:600}
body #view-notes .note-card-excerpt{font-size:13px;line-height:1.95;-webkit-line-clamp:4}
body #view-notes .note-card-meta{opacity:1;pointer-events:auto;color:var(--muted)}
body #view-notes .note-card-visual{border:0;background:var(--quiet)}
body #view-notes .note-card .note-badge,body #view-notes .note-card-folder{background:none;border:0;color:var(--muted);font-size:11px}
body #view-notes .note-card-play{background:var(--action);color:var(--on-action);border:0;border-radius:calc(var(--radius)/2)}
body #view-notes .note-card .note-actions{background:none;border:0}
body .folder-rail-btn{min-height:44px;border:0;background:none;border-radius:var(--radius)}
body .folder-rail-btn.active{background:var(--action);color:var(--on-action)}
/* Record controls keep their state geometry; the idle button is the approved
   compact square or Soft rectangle, without the old large circular surface. */
body #view-record .record-body{max-width:960px;margin:auto;justify-content:center;gap:18px;padding-block:36px}
body .record-hero{width:100%;padding:18px 0 24px;background:none}
body .record-ring{border:0;background:none;box-shadow:none}
body .record-btn{width:104px;height:104px;border-radius:var(--radius);background:var(--action);color:var(--on-action);box-shadow:none}
body .record-btn .theme-icon{width:44px!important;height:44px!important}
body .recorder-status{font-size:20px;font-weight:600;color:var(--fg);letter-spacing:0}
body .timer{font-family:inherit;font-size:36px;font-weight:600}
body .stop-btn{border:0;border-radius:var(--radius);background:var(--quiet);color:var(--fg)}
body .record-control-primary{background:var(--action);color:var(--on-action)}
body .mic-buttons-row{width:100%;justify-content:center;background:none;border:0;gap:8px}
body .mic-btn{background:var(--surface);border:0;border-radius:var(--radius);min-height:48px;padding:10px 18px;color:var(--fg)}
body .mic-btn-divider{display:none}
body .capture-alt-actions{width:100%;max-width:480px}
body .capture-alt-btn{width:100%;background:var(--surface);border:0;border-radius:var(--radius);padding:16px 20px;min-height:72px;color:var(--fg)}
body .mic-session-lobby{background:var(--surface);border:0;border-radius:var(--radius)}
/* Settings, billing and dialogs share the same quiet surface language. */
body .settings-body{max-width:1000px}
body .settings-tabs{border:0;background:none;padding:0;margin-bottom:24px;gap:8px;flex-wrap:wrap}
body .settings-tab{background:var(--quiet);color:var(--muted);border:0;border-radius:var(--radius);padding:8px 18px;font-size:13px;min-height:44px}
body .settings-tab.active{background:var(--action);color:var(--on-action)}
body .settings-tab::after{display:none}
body .settings-section{border:0;border-bottom:1px solid var(--rule);padding:20px 0;background:none;box-shadow:none}
body .setting-row{padding:12px 0;gap:18px}
body .setting-row>label{font-size:14px}
body :is(.billing-current,.credit-pack,.plan-card,.ai-action-card,.memory-card,.support-ticket,.calendar-connection){background:var(--surface);border:0;border-radius:var(--radius);box-shadow:none}
body :is(.custom-select-option,.custom-select-trigger,.custom-select-menu){border-radius:var(--radius);box-shadow:none}
body .empty-state{border:0;background:none;text-align:center;padding:60px 20px}
body .empty-title{font-size:27px;font-weight:800;letter-spacing:0}
body .empty-text{font-size:14px;color:var(--muted);line-height:1.9}
body .confirm-actions{display:flex;gap:12px;direction:rtl}
body .confirm-actions .primary-btn{order:-1;flex:1;justify-content:center}
body .confirm-actions .secondary-btn{min-width:80px}
@media(max-width:768px){
 body .view-header{padding:20px 16px 14px;gap:8px}
 body .view-header h2{font-size:24px}
 body #view-chat>.view-header{padding:14px 16px 10px}

 .chat-welcome h1{font-size:29px}
 .chat-welcome p{font-size:13px;margin-bottom:16px}
 .chat-starters{flex-direction:column;gap:7px;width:min(330px,100%)}
 .chat-starters button{min-height:44px;padding:9px 13px;font-size:12px;flex:none}
 body #view-chat .chat-input-area,body #view-chat .chat-empty .chat-input-area{padding:12px}
 body #view-chat .chat-input-row,body #view-chat .chat-input-row.chat-composer-expanded{grid-template-columns:36px minmax(0,1fr) auto 38px;gap:8px 4px}
 body #view-chat #chatInput{min-height:34px;font-size:15px}
 body #view-chat .context-btn{font-size:11px;padding:0 3px}
 body #view-chat .send-btn{width:38px;height:38px;min-height:38px}
 body #view-chat .chat-mic-btn{width:36px;height:38px;min-height:38px}
 body #view-chat .chat-input-row .chat-context-row{min-height:38px;gap:4px}
 body #view-chat .chat-voice-error-card{inset-inline-end:44px}
 body #view-notes .view-header .search-bar{flex:1;min-width:140px}
 body #view-notes .library-layout-grid .note-card-body{padding:12px}
 body #view-notes .library-layout-grid .note-card-title{font-size:14px}
 body #view-notes .library-layout-grid .note-card-excerpt{font-size:12px;line-height:1.85;-webkit-line-clamp:3}
 body #mobileTopBar #mobileSettingsToggle{display:flex}
 body #view-record .record-body{padding:24px 22px}
 body .settings-tabs{gap:5px}
 body .settings-tab{padding:8px 12px;font-size:12px}
 body .setting-row{gap:12px;flex-wrap:wrap}
}
@media(max-height:700px){body #view-chat .chat-welcome{padding:8px 0}.chat-welcome h1{font-size:26px}.chat-welcome p{margin-bottom:10px}.chat-starters button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.chat-welcome{transition:none!important}}
body .home-capture-actions button{width:auto;flex:none}
body #view-chat>.view-header .header-icon-btn{width:44px;height:44px;flex:0 0 44px;margin:0;padding:10px}
body #view-chat #newChatBtn{width:auto;flex:0 0 auto;margin:0}
body #view-chat #newChatBtn [data-i18n="newChat"]{display:inline}
body #view-chat #chatSendBtn .theme-icon{width:22px!important;height:22px!important}
body #view-chat #chatSendBtn::before,body #view-chat #newChatBtn::before{display:none}
body #view-chat>.view-header{justify-content:flex-start}
body #view-chat #memoryBtn{margin:0}
body #view-chat>.view-header{display:flex}
body #view-chat #newChatBtn{min-width:0;max-width:none;white-space:nowrap}
body #view-chat>.view-header .header-icon-btn{min-width:44px;max-width:44px}
body .theme-icon:not(.theme-default):not(.theme-pro){display:inline-flex}
body .task-list-content{width:100%;max-width:none;padding:0}
body .task-list-board{width:100%;max-width:none;border:0;background:none;box-shadow:none}
body .task-list-controls{width:100%;max-width:none}
body .task-list-group{box-shadow:none}
body .bottom-bar .tab-btn{opacity:1;min-width:0;min-height:56px;gap:4px;padding:8px 2px;flex:1;color:var(--muted)}
body .bottom-bar .tab-btn>svg{display:block;width:22px;height:22px;flex:none}
body .bottom-bar .tab-btn>span[data-i18n]{font:inherit;font-size:11px;letter-spacing:0}
body .bottom-bar .tab-btn.active{font-weight:700;color:var(--fg)}
body .bottom-bar .tab-btn.active::after{display:none}
body .nav-btn>svg:not(.pro-icon){display:block;width:22px;height:22px;flex:none}
@media(max-width:768px){body .bottom-bar{height:calc(74px + env(safe-area-inset-bottom));padding:4px 8px calc(4px + env(safe-area-inset-bottom));gap:4px}}
body .modal-header h3{font-size:20px;font-weight:700;line-height:1.6;letter-spacing:0;color:var(--fg)}
body .modal-body{font-size:14px;line-height:1.8}
body .form-group label{font-size:13px;line-height:1.7;color:var(--fg);letter-spacing:0}
body .form-actions button{font-size:14px;min-height:46px;padding:10px 18px}
body .remind-before-chip{background:var(--quiet);border:0;border-radius:var(--radius);font-size:12px}

/* Theme controls share the approved icon set in every skin. */
body :is(#themeToggle,#mobileHeaderThemeToggle)::before{display:none}
body .theme-mode-icon{display:block;width:20px;height:20px;background:currentColor;mask:url('/icons/ui/sun.svg') center/contain no-repeat;-webkit-mask:url('/icons/ui/sun.svg') center/contain no-repeat}
html.light body .theme-mode-icon{mask-image:url('/icons/ui/moon.svg');-webkit-mask-image:url('/icons/ui/moon.svg')}
/* Plan details keep headings, inline edits and steps compact on phones. */
body .plan-title{font-size:16px;font-weight:700;line-height:1.7}
body .plan-meta{font:inherit;font-size:12px;color:var(--muted);line-height:1.8;margin-top:4px}
body .plan-card{padding:18px;margin-bottom:12px}
html body .planner-section-head{flex-direction:row;align-items:center;margin-bottom:8px;gap:10px}
html body .planner-section-head h3{margin:0;color:var(--fg)}
html body .planner-section-head .mini-action-btn{width:auto;min-height:38px;font-size:12px}
html body .planner-hero .plan-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
html body .planner-hero h2{margin:0;font-size:22px;line-height:1.7}
html body .planner-section{margin-top:0;padding:14px 0}
html body .planner-section p{margin:0;font-size:14px;line-height:1.8}
html body .field-edit-btn{width:36px;height:36px;min-height:36px;flex:0 0 36px}
html body .planner-hero .planner-progress-meta{font-size:12px}
@media(max-width:640px){
 html body .plan-step-row{display:grid;grid-template-columns:20px 16px minmax(0,1fr);align-items:center;gap:8px}
 html body .plan-step-actions{grid-column:3;justify-content:flex-start;opacity:1}
 html body .plan-step-reminder-toggle{width:auto;padding:0 6px}
 html body .planner-actions{flex-direction:row;align-items:center}
 html body .planner-actions .planner-action-btn{width:auto;font-size:12px}
}
body #view-chat>.view-header{justify-content:flex-end}

}
