/* Dedicated, cache-versioned dashboard and dark-theme readability layer. */
.home-dashboard[hidden]{display:none!important}
.home-dashboard{width:min(1480px,100%);margin:0 auto;padding:clamp(26px,4vw,52px) clamp(20px,4vw,64px) 60px;color:var(--ink,#242522)}
.home-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.dashboard-kicker,.dashboard-card-kicker{font-size:10px;letter-spacing:.08em;color:var(--muted,#777b73);font-weight:700}
.home-welcome h1{font:500 clamp(30px,3vw,39px)/1.12 'Newsreader',Georgia,serif;margin:8px 0 9px;color:var(--ink,#242522)}
.home-welcome p{color:var(--muted,#777b73);font-size:13px;margin:0}
.home-quick-actions{display:flex;gap:9px;flex-wrap:wrap}
.home-quick-actions button{min-height:40px;border-radius:7px;padding:9px 13px;font-size:12px}
.reminder-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 11px;padding:11px 12px 8px;margin:2px 0 13px;border:1px solid var(--line,#e2e5df);border-radius:8px;background:var(--canvas,#f6f7f5)}
.reminder-fields label{margin-bottom:8px!important}.reminder-fields label span,.reminder-fields>small{color:var(--muted,#777b73);font-size:10px;font-weight:400}.reminder-fields input{font-variant-numeric:tabular-nums}.reminder-fields>small{grid-column:1/-1;line-height:1.5;margin:-2px 0 3px}
.dashboard-secondary{border:1px solid var(--line,#e2e5df);background:var(--paper,#fff);color:var(--ink,#242522)}
.dashboard-secondary:hover{background:var(--canvas,#f5f6f3)}
.dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:15px}
.dashboard-stat{min-width:0;min-height:82px;display:flex;align-items:center;gap:12px;text-align:left;background:var(--paper,#fff);border:1px solid var(--line,#e2e5df);border-radius:10px;padding:14px 16px;color:var(--ink,#242522);box-shadow:0 2px 8px #20241b08;transition:border-color .16s,transform .16s,box-shadow .16s}
.dashboard-stat:hover{border-color:#c5cec2;transform:translateY(-1px);box-shadow:0 7px 20px #20241b0d}
.dashboard-stat-icon{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:10px;background:#eef2ed;color:#42654a;font-size:17px}
.dashboard-stat>span:nth-child(2){min-width:0;flex:1}.dashboard-stat strong,.dashboard-stat small{display:block}.dashboard-stat strong{font:500 21px 'Newsreader',Georgia,serif;color:var(--ink,#242522)}.dashboard-stat small{font-size:11px;color:var(--muted,#777b73);margin-top:3px}.dashboard-stat-arrow{color:var(--muted,#777b73);font-size:14px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:14px;align-items:start}
.dashboard-card{min-width:0;border:1px solid var(--line,#e2e5df);border-radius:10px;background:var(--paper,#fff);padding:18px 19px 14px;box-shadow:0 2px 9px #20241b08}
.dashboard-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.dashboard-card-head h2{font:500 23px 'Newsreader',Georgia,serif;margin:5px 0 0;color:var(--ink,#242522)}
.dashboard-link{flex:none;border:0;border-radius:6px;background:transparent;color:var(--green,#346f52);padding:7px 9px;font-size:11px;font-weight:600}.dashboard-link:hover{background:var(--canvas,#f5f6f3);color:var(--ink,#242522)}
.dashboard-card-content{min-height:72px}.dashboard-task-row,.dashboard-reminder-row{width:100%;min-height:54px;display:flex;align-items:center;gap:11px;text-align:left;border:0;border-top:1px solid var(--line,#e9eae6);border-radius:0;background:transparent;color:var(--ink,#242522);padding:10px 3px}.dashboard-task-row:hover,.dashboard-reminder-row:hover,.dashboard-notebook-row:hover{background:var(--canvas,#f5f6f3)}
.dashboard-task-marker{width:17px;height:17px;border:1px solid #9ba99a;border-radius:5px;flex:none}.dashboard-task-copy,.dashboard-reminder-copy,.dashboard-notebook-copy{min-width:0;flex:1}.dashboard-task-copy strong,.dashboard-task-copy small,.dashboard-reminder-copy strong,.dashboard-reminder-copy small,.dashboard-notebook-copy strong,.dashboard-notebook-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-task-copy strong,.dashboard-reminder-copy strong,.dashboard-notebook-copy strong{font-size:12px;font-weight:600;color:var(--ink,#242522)}.dashboard-task-copy small,.dashboard-reminder-copy small,.dashboard-notebook-copy small{font-size:10px;color:var(--muted,#777b73);margin-top:4px}.dashboard-task-due{font-size:10px;color:var(--muted,#777b73);flex:none}
.dashboard-reminder-date{width:58px;flex:none;text-align:center;border-radius:7px;background:var(--canvas,#f3f5f1);color:var(--ink,#242522);padding:7px 4px}.dashboard-reminder-date strong,.dashboard-reminder-date small{display:block}.dashboard-reminder-date strong{font-size:10px;font-weight:700}.dashboard-reminder-date small{font-size:9px;color:var(--muted,#777b73);margin-top:3px}.dashboard-row-arrow{color:var(--muted,#777b73);font-size:13px}.dashboard-empty{padding:20px 5px;color:var(--muted,#777b73);font-size:12px;line-height:1.6}.dashboard-more{padding:8px 2px 1px;color:var(--muted,#777b73);font-size:11px}
.dashboard-notebooks{grid-column:1/-1}.dashboard-notebook-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-notebook-row{min-width:0;min-height:64px;display:flex;align-items:center;gap:10px;border:1px solid var(--line,#e2e5df);border-radius:8px;padding:11px;background:transparent;color:var(--ink,#242522);text-align:left}.dashboard-notebook-icon{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:9px;background:#eef2ed;color:#42654a;font-size:16px}.dashboard-notebook-badge{max-width:88px;flex:none;color:var(--muted,#777b73);font-size:10px}.dashboard-notebook-empty{grid-column:1/-1}
/* Keep text and controls legible across every dark-mode view. */
body[data-theme="dark"]{--ink:#f0f1ed;--muted:#b9bdb5;--line:#484c45;--paper:#252824;--canvas:#1c1f1b;color:var(--ink)}
body[data-theme="dark"] .home-dashboard,body[data-theme="dark"] .home-welcome h1,body[data-theme="dark"] .dashboard-stat,body[data-theme="dark"] .dashboard-stat strong,body[data-theme="dark"] .dashboard-card-head h2,body[data-theme="dark"] .dashboard-task-row,body[data-theme="dark"] .dashboard-reminder-row,body[data-theme="dark"] .dashboard-notebook-row,body[data-theme="dark"] .dashboard-task-copy strong,body[data-theme="dark"] .dashboard-reminder-copy strong,body[data-theme="dark"] .dashboard-notebook-copy strong{color:var(--ink)}
body[data-theme="dark"] .dashboard-stat,body[data-theme="dark"] .dashboard-card{background:#282b27;border-color:#454941;box-shadow:0 3px 12px #0002}
body[data-theme="dark"] .dashboard-notebook-row{background:#252824;border-color:#454941}
body[data-theme="dark"] .dashboard-stat-icon,body[data-theme="dark"] .dashboard-reminder-date,body[data-theme="dark"] .dashboard-notebook-icon{background:#353d34;color:#d7e6d5}
body[data-theme="dark"] .dashboard-task-marker{border-color:#9caa98}
body[data-theme="dark"] .dashboard-link{color:#b7d5bb}
body[data-theme="dark"] .dashboard-task-row:hover,body[data-theme="dark"] .dashboard-reminder-row:hover,body[data-theme="dark"] .dashboard-notebook-row:hover,body[data-theme="dark"] .dashboard-link:hover{background:#343832;color:#fff}
body[data-theme="dark"] .collection-card,body[data-theme="dark"] .notebook-card,body[data-theme="dark"] .settings-section,body[data-theme="dark"] .settings-row,body[data-theme="dark"] .event-dialog,body[data-theme="dark"] .notebook-dialog,body[data-theme="dark"] .template-dialog,body[data-theme="dark"] .collab-dialog,body[data-theme="dark"] .history-dialog,body[data-theme="dark"] .search-box{background:#282b27;color:var(--ink);border-color:#484c45}
body[data-theme="dark"] .collection-copy small,body[data-theme="dark"] .notebook-open small,body[data-theme="dark"] .settings-row p,body[data-theme="dark"] .event-dialog label,body[data-theme="dark"] .notebook-dialog label,body[data-theme="dark"] .calendar-controls,body[data-theme="dark"] .calendar-weekdays,body[data-theme="dark"] .day-event-meta,body[data-theme="dark"] .day-event-notes{color:#b9bdb5}
body[data-theme="dark"] .settings-row input,body[data-theme="dark"] .event-dialog input,body[data-theme="dark"] .event-dialog select,body[data-theme="dark"] .event-dialog textarea,body[data-theme="dark"] .notebook-dialog input,body[data-theme="dark"] .search-input,body[data-theme="dark"] .notebook-filter select{background:#20231f;color:#f0f1ed;border-color:#555a52;color-scheme:dark}
body[data-theme="dark"] .settings-row input::placeholder,body[data-theme="dark"] .event-dialog input::placeholder,body[data-theme="dark"] .event-dialog textarea::placeholder,body[data-theme="dark"] .search-input::placeholder{color:#a7aca2}
body[data-theme="dark"] .page-subtitle,body[data-theme="dark"] .page-tools,body[data-theme="dark"] .crumb,body[data-theme="dark"] .top-button,body[data-theme="dark"] .formatbar button,body[data-theme="dark"] .section-label,body[data-theme="dark"] .side-action,body[data-theme="dark"] .profile,body[data-theme="dark"] .tree-row,body[data-theme="dark"] .nav-item{color:#c4c8c0}
body[data-theme="dark"] .dashboard-secondary{background:#30342f;color:#f0f1ed;border-color:#555a52}
body[data-theme="dark"] .reminder-fields{background:#20231f;border-color:#484c45}
body[data-theme="liquid-glass"] .dashboard-stat,body[data-theme="liquid-glass"] .dashboard-card,body[data-theme="liquid-glass"] .dashboard-notebook-row{background:rgba(255,255,255,.78);border-color:rgba(220,225,218,.88);box-shadow:0 7px 24px #31382f12}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){body[data-theme="liquid-glass"] .dashboard-stat,body[data-theme="liquid-glass"] .dashboard-card,body[data-theme="liquid-glass"] .dashboard-notebook-row{backdrop-filter:blur(16px) saturate(1.08);-webkit-backdrop-filter:blur(16px) saturate(1.08)}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.dashboard-notebooks{grid-column:auto}}
@media(max-width:650px){.home-dashboard{padding:25px 15px 38px}.home-welcome{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:18px}.home-welcome h1{font-size:31px}.home-quick-actions{width:100%}.home-quick-actions button{flex:1}.dashboard-summary{gap:7px}.dashboard-stat{min-height:70px;gap:7px;padding:10px 8px}.dashboard-stat-icon{width:29px;height:29px}.dashboard-stat small{font-size:9px}.dashboard-stat-arrow{display:none}.dashboard-card{padding:14px 13px 10px}.dashboard-card-head h2{font-size:20px}.dashboard-notebook-list{grid-template-columns:1fr}.dashboard-notebook-badge{margin-left:auto}}
@media(max-width:520px){.reminder-fields{grid-template-columns:1fr}}
@media(prefers-reduced-transparency:reduce){body[data-theme="liquid-glass"] .dashboard-stat,body[data-theme="liquid-glass"] .dashboard-card,body[data-theme="liquid-glass"] .dashboard-notebook-row{background:var(--paper,#fff);backdrop-filter:none;-webkit-backdrop-filter:none}}
