@charset "UTF-8";

/* Generated by GitHub Copilot - Nov-19-2026 */
.wellness-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.wellness-list .tasks-empty { grid-column: 1 / -1; }
.wellness-category-filter { flex: 0 1 190px; min-width: 180px; }
.wellness-status { border-radius: 20px; padding: 6px 8px; background: #f2e8fa; color: #623d80; font-size: 10px; font-weight: 700; text-align: center; }
.wellness-status.done { background: #daf2e3; color: #266743; }
#wellness-form { display: grid; gap: 14px; }
#wellness-form > label { display: grid; gap: 6px; color: #5e4d72; font-size: 11px; font-weight: 600; }
#wellness-form input, #wellness-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9c9e6; border-radius: 11px; background: rgba(255,255,255,.8); color: #30243c; font: inherit; }
#wellness-form input:focus-visible, #wellness-form textarea:focus-visible { outline: 2px solid #8256bc; outline-offset: 2px; }
.wellness-form-hint { margin: 0; color: #6f6079; font-size: 10px; line-height: 1.4; }
.dark-theme #wellness-form > label, .dark-theme .wellness-form-hint { color: #eee5fa; }
@media (max-width: 700px) { .wellness-list { grid-template-columns: minmax(0, 1fr); padding: 12px; } .wellness-category-filter { flex: 1 1 180px; } }

/* Generated by GitHub Copilot - Nov-19-2026 */
.reminders-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.reminders-list .tasks-empty { grid-column: 1 / -1; }
.reminder-card { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 18px; border: 1px solid #e8dcf0; border-radius: 16px; background: linear-gradient(145deg, #fff, #f8f2ff); box-shadow: 0 5px 16px rgba(110,74,134,.06); }
.reminder-card:nth-child(even) { background: linear-gradient(145deg, #fff, #fff4f8); }
.reminder-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.reminder-card .goal-badge.overdue { color: #983249; }
.reminder-card .goal-badge.done { color: #266743; }
.reminder-priority { color: #665475; font-size: 10px; font-weight: 600; }
.reminder-card h2 { margin: 0; color: #422b59; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.reminder-details { margin: 0; color: #706078; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.reminder-date { margin: 0; color: #706078; font-size: 11px; }
.reminder-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.reminder-actions button { min-height: 36px; padding: 6px 12px; border: 1px solid #dfd0ea; border-radius: 9px; background: rgba(255,255,255,.85); color: #634080; font-size: 11px; font-weight: 600; }
.reminder-actions .reminder-complete { background: #eee3fa; }
.reminder-card button:focus-visible, #reminder-form input:focus-visible, #reminder-form textarea:focus-visible { outline: 2px solid #8256bc; outline-offset: 2px; }
#reminder-form { display: grid; gap: 14px; }
#reminder-form > label { display: grid; gap: 6px; color: #5e4d72; font-size: 11px; font-weight: 600; }
#reminder-form input, #reminder-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9c9e6; border-radius: 11px; background: rgba(255,255,255,.8); color: #30243c; font: inherit; }
#reminder-form .datetime-control input { min-width: 0; padding-right: 52px; }
.reminder-form-hint { margin: 0; color: #6f6079; font-size: 10px; line-height: 1.4; }
.dark-theme .reminder-card, .dark-theme .reminder-card:nth-child(even) { border-color: #514762; background: #403650; }
.dark-theme .reminder-card h2, .dark-theme .reminder-details, .dark-theme .reminder-date, .dark-theme .reminder-priority, .dark-theme #reminder-form > label, .dark-theme .reminder-form-hint { color: #eee5fa; }
.dark-theme .reminder-actions button, .dark-theme .reminder-actions .reminder-complete { background: #574568; border-color: #756484; color: #f1e8f7; }
@media (max-width: 700px) { .reminders-list { grid-template-columns: minmax(0, 1fr); padding: 12px; } .reminder-card { padding: 14px; } }

/* Generated by GitHub Copilot - Nov-19-2026 */
.projects-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.projects-list .tasks-empty { grid-column: 1 / -1; }
.project-card { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 18px; border: 1px solid #e8dcf0; border-radius: 16px; background: linear-gradient(145deg, #fff, #f8f2ff); box-shadow: 0 5px 16px rgba(110,74,134,.06); }
.project-card:nth-child(even) { background: linear-gradient(145deg, #fff, #f0f8f7); }
.project-card-top, .project-steps-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-card h2 { margin: 0; color: #422b59; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.project-description { margin: 0; color: #706078; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.project-date, .project-empty { margin: 0; color: #706078; font-size: 11px; }
.project-steps-heading { padding-top: 5px; color: #6f5f7c; font-size: 11px; }
.project-steps-heading span { font-size: 10px; }
.project-steps { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.project-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding: 6px 0; border-bottom: 1px solid #eee6f2; }
.project-step label { display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0; color: #4d3b5f; font-size: 11px; line-height: 1.4; }
.project-step label span { overflow-wrap: anywhere; }
.project-step label input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: #7041d8; }
.project-step input:checked + span { color: #706078; text-decoration: line-through; }
.project-step-actions, .project-card-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.project-step-actions button, .project-card-actions button, .project-step-form button { min-height: 36px; padding: 5px 9px; border: 1px solid #e1d3eb; border-radius: 9px; background: rgba(255,255,255,.85); color: #634080; font-size: 10px; font-weight: 600; }
.project-card-actions { justify-content: flex-end; margin-top: auto; }
.project-step-form { display: flex; flex-wrap: wrap; gap: 6px; }
.project-step-form input { flex: 1 1 120px; min-width: 0; padding: 9px; border: 1px solid #d9c9e6; border-radius: 9px; background: #fff; color: #30243c; font: inherit; font-size: 11px; }
.project-step-form button[type="submit"] { background: #eee3fa; }
.project-card button:focus-visible, .project-card input:focus-visible, #project-form input:focus-visible, #project-form textarea:focus-visible { outline: 2px solid #8256bc; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#project-form { display: grid; gap: 14px; }
#project-form > label { display: grid; gap: 6px; color: #5e4d72; font-size: 11px; font-weight: 600; }
#project-form input, #project-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9c9e6; border-radius: 11px; background: rgba(255,255,255,.8); color: #30243c; font: inherit; }
#project-form .datetime-control input { min-width: 0; padding-right: 52px; }
.project-form-hint { margin: 0; color: #6f6079; font-size: 10px; line-height: 1.4; }
.dark-theme .project-card, .dark-theme .project-card:nth-child(even) { border-color: #514762; background: #403650; }
.dark-theme .project-card h2, .dark-theme .project-description, .dark-theme .project-date, .dark-theme .project-empty, .dark-theme .project-steps-heading, .dark-theme .project-step label, .dark-theme #project-form > label, .dark-theme .project-form-hint { color: #eee5fa; }
.dark-theme .project-step input:checked + span { color: #d3c7db; }
.dark-theme .project-step { border-color: #6a587b; }
.dark-theme .project-step-actions button, .dark-theme .project-card-actions button, .dark-theme .project-step-form button { background: #574568; border-color: #756484; color: #f1e8f7; }
@media (max-width: 700px) { .projects-list { grid-template-columns: minmax(0, 1fr); padding: 12px; } .project-card { padding: 14px; } }

/* Generated by GitHub Copilot - Nov-20-2026 */
body.auth-pending { min-height: 100vh; background: #f7f4fb; }
body.auth-pending .app-shell { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 20% 5%, #eee6ff, transparent 48%), linear-gradient(145deg, #f8f6fb, #f1eafb); }
.auth-card { width: min(100%, 430px); padding: clamp(24px, 5vw, 40px); border: 1px solid #e8def5; border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 20px 60px rgba(70, 43, 107, .13); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 30px; color: #482987; font-size: 19px; }
.auth-brand-mark { width: 44px; height: 44px; flex: 0 0 44px; filter: drop-shadow(0 3px 5px rgba(76, 44, 130, .16)); }
.auth-card h1 { margin: 0 0 8px; color: #291a42; font-size: clamp(22px, 5vw, 28px); }
.auth-card > p:not(.auth-message), .auth-setup-notice { margin: 0 0 22px; color: #625a6c; line-height: 1.55; }
.auth-form { display: grid; gap: 10px; }
.auth-form[hidden] { display: none; }
.auth-form label { margin-top: 6px; color: #403650; font-size: 14px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 46px; border: 1px solid #d9cfe5; border-radius: 10px; padding: 10px 12px; background: #fff; color: #2f2738; font: inherit; }
.auth-form input:focus-visible, .profile-editor input:focus-visible { outline: 3px solid #8a61d1; outline-offset: 2px; }
.auth-submit { min-height: 46px; margin-top: 12px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; }
.auth-message { min-height: 24px; margin: 14px 0 0; color: #633d9b; font-size: 14px; line-height: 1.5; }
.auth-message[data-error="true"] { color: #9c2c3b; }
.auth-setup-notice { padding: 12px; border-radius: 10px; background: #f3edfd; }
.profile { width: 100%; color: inherit; text-align: left; }
.profile-top:focus-visible { outline: 3px solid #8a61d1; outline-offset: 2px; }
.profile-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-top { padding: 0; font: inherit; cursor: pointer; }
.avatar.has-photo { color: transparent; background-position: center; background-repeat: no-repeat; background-size: cover; }
.profile-view { max-width: 900px; }
.profile-section { margin: 18px 0; padding: clamp(18px, 3vw, 28px); border: 1px solid #e8defa; border-radius: 18px; background: #fff; }
.profile-section h2 { margin: 0 0 18px; color: #35116f; font-size: 18px; }
.profile-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-editor label { display: grid; gap: 7px; color: #4a4057; font-size: 14px; font-weight: 600; }
.profile-editor input { min-width: 0; min-height: 42px; border: 1px solid #ded5e9; border-radius: 9px; padding: 9px 11px; background: #fff; color: #30283a; font: inherit; }
.profile-editor .profile-wide { grid-column: 1 / -1; }
.profile-photo-row { display: flex; align-items: center; gap: 16px; }
.profile-photo-preview { width: 68px; height: 68px; overflow: hidden; border-radius: 50%; background: #eee6ff; color: #6039a4; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-section .modal-actions { margin-top: 18px; }
.profile-security-hint { color: #635b6d; font-size: 13px; line-height: 1.5; }
.dark-theme .profile-section { border-color: #514762; background: #302b49; }
.dark-theme .profile-section h2, .dark-theme .profile-editor label { color: #eee5fa; }
.dark-theme .profile-editor input { border-color: #6a587b; background: #403650; color: #f1e8f7; }
.dark-theme .profile-security-hint { color: #d3c7db; }
@media (max-width: 600px) {
  .auth-screen { padding: 16px; }
  .profile-editor { grid-template-columns: 1fr; }
  .profile-editor .profile-wide { grid-column: auto; }
  .profile-section { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-screen *, .auth-screen *::before, .auth-screen *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

:root {
  --purple: #6234ce;
  --purple-dark: #351381;
  --purple-deep: #2a0d69;
  --violet: #7b43ef;
  --line: #e7e7ef;
  --text: #2d2b42;
  --muted: #77758a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--text); background: #ebe8ff; }
button, input { font: inherit; }
button, a, input[type="checkbox"] { cursor: pointer; }

.app-shell { display: grid; grid-template-columns: 182px minmax(0, 1fr); max-width: 1440px; height: 100vh; margin: 0 auto; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 12px 38px rgba(55, 32, 125, .10); }
.sidebar { position: relative; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(211, 196, 255, .82) 0%, rgba(177, 151, 235, .72) 100%); color: #4d2c82; border-right: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); overflow: hidden; }
.brand { height: 76px; display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand strong { display: block; font-size: 17px; }
.brand small { display: block; margin-top: 2px; font-size: 7px; opacity: .9; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; filter: drop-shadow(0 3px 5px rgba(76, 44, 130, .16)); }

.side-nav { display: flex; flex-direction: column; gap: 3px; padding: 10px 9px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: #4d2c82; text-align: left; font-size: 12px; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.38); transform: translateX(2px); }
.nav-item.active { background: linear-gradient(135deg, rgba(130, 92, 210, .82), rgba(161, 128, 221, .68)); color: white; box-shadow: 0 6px 14px rgba(91, 58, 145, .14); }
.nav-icon { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; font-size: 11px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); }
.quote { height: 64px; display: flex; align-items: center; justify-content: space-between; margin: 0 12px; font-family: Georgia, serif; font-size: 12px; font-style: italic; opacity: .85; }
.profile { height: 53px; display: flex; align-items: center; gap: 8px; padding: 7px 13px; background: rgba(0,0,0,.13); font-size: 10px; }
.profile b { margin-left: auto; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #7348db; color: white; font-size: 12px; }
.avatar.small { width: 30px; height: 30px; background: #4a278f; }

.main { min-width: 0; height: 100vh; overflow: hidden; background: #f8f8fd; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px 0 28px; background: white; border-bottom: 1px solid #eeeef4; }
.topbar-brand { display: none; }
.search { width: 50%; display: flex; align-items: center; gap: 10px; color: #9a98a5; }
.search span { font-size: 21px; }
.search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.top-actions button { width: 24px; height: 24px; border: 0; background: transparent; color: #34215e; font-size: 18px; }
.top-actions .avatar { width: 36px; height: 36px; }

.content { height: calc(100vh - 62px); overflow: auto; padding: 14px 32px 24px; background: linear-gradient(135deg, #fafafe 0%, #f3f2ff 100%); }
.welcome { min-height: 108px; display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.welcome h1 { margin: 4px 0 5px; color: #35116f; font-size: 29px; letter-spacing: -.7px; }
.welcome h1 span { font-size: 24px; }
.welcome p { margin: 0 0 4px; font-size: 11px; }
.welcome em { font-size: 10px; font-weight: 500; }
.motivation-card { min-width: 0; flex: 1; min-height: 82px; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; border: 1px solid rgba(124, 86, 196, .10); border-radius: 18px; background: linear-gradient(135deg, rgba(248, 247, 255, .96), rgba(230, 223, 255, .78)); box-shadow: 0 8px 22px rgba(99, 66, 167, .08); }
.motivation-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; color: #45306f; font-family: Georgia, serif; line-height: 1.4; }
.motivation-copy span { font-size: 13px; font-style: italic; }
.motivation-copy small { color: #71628e; font-family: Inter, Arial, sans-serif; font-size: 10px; font-weight: 600; }
.motivation-sun { position: relative; width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; background: radial-gradient(circle at 50% 54%, #d8aaf2 0 18%, transparent 19%), linear-gradient(135deg, #f7d8aa 0 25%, #ead0fb 25% 52%, #b7a1e9 52% 78%, #d9cdf7 78%); box-shadow: inset 0 0 18px rgba(255,255,255,.72), 0 6px 14px rgba(129,91,188,.14); }
.motivation-sun::before { content: ""; position: absolute; inset: 8px -6px -4px 10px; border-radius: 50% 50% 45% 55%; background: linear-gradient(140deg, transparent 0 52%, rgba(255,255,255,.72) 53% 58%, transparent 59%), linear-gradient(155deg, rgba(91, 113, 179, .20), rgba(255,255,255,.20)); }
.motivation-sun span { position: absolute; left: 25px; bottom: 7px; width: 10px; height: 18px; border-radius: 100% 0 100% 0; background: #7e64bd; transform: rotate(-25deg); }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; height: 82px; margin-bottom: 12px; }
.metric-card { position: relative; display: flex; align-items: center; gap: 9px; height: 82px; padding: 14px 12px; border: 1px solid #eeeef4; border-radius: 14px; background: white; box-shadow: 0 5px 18px rgba(53,38,104,.05); }
.metric-icon { width: 39px; height: 39px; display: grid; flex: 0 0 39px; place-items: center; border-radius: 50%; background: #ede7ff; color: #6932db; font-size: 20px; }
.metric-icon.checkbox { border-radius: 7px; }
.metric-icon.calendar, .metric-icon.chart { border-radius: 8px; background: #f1efff; }
.metric-copy small { display: block; margin-bottom: 4px; font-size: 10px; }
.metric-copy strong { font-size: 18px; }
.metric-card .progress-line { position: absolute; left: 60px; right: 50px; bottom: 12px; height: 5px; border-radius: 6px; background: #ecebf2; }
.metric-card .progress-line span { display: block; height: 100%; border-radius: inherit; background: #6d35dc; }
.metric-card > b { position: absolute; right: 13px; bottom: 8px; color: #6534c7; font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; align-items: stretch; }
.panel { min-width: 0; min-height: 270px; display: flex; flex-direction: column; border: 1px solid #eeeef4; border-radius: 14px; background: white; padding: 16px; box-shadow: 0 6px 18px rgba(53,38,104,.04); }
.panel-header { min-height: 40px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.panel-header h2 { margin: 1px 0 0; font-size: 13px; }
.panel-header a { color: #7a43e8; font-size: 9px; text-decoration: none; }
.small-btn { height: 31px; border: 0; border-radius: 6px; color: white; background: #6d35d1; padding: 0 10px; font-size: 9px; }
.small-btn span { font-size: 13px; }
.task-list { display: flex; flex-direction: column; max-height: 186px; overflow-y: auto; }
.task { min-height: 31px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 7px; border-bottom: 1px solid #f4f3f7; font-size: 10px; }
.task input { appearance: none; width: 14px; height: 14px; border: 1px solid #aaa4b9; border-radius: 3px; }
.task input:checked { border-color: #7041d8; background: #7041d8; }
.task input:checked::after { content: "✓"; display: block; color: white; text-align: center; line-height: 12px; font-size: 9px; }
.task.done span { text-decoration: line-through 1.5px #77758a; }
.task time { color: #696777; font-size: 9px; }
.panel-link { display: block; margin-top: auto; padding-top: 12px; color: #7041d8; font-size: 9px; text-decoration: none; }

.timeline { position: relative; height: 175px; margin-left: 10px; padding-left: 16px; overflow-y: auto; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 3px; width: 1px; background: #e0ddeb; }
.agenda-item { position: relative; min-height: 42px; display: grid; grid-template-columns: 68px 1fr; align-content: start; row-gap: 2px; margin-bottom: 2px; font-size: 9px; }
.agenda-item::before { content: ""; position: absolute; left: -17px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #777; }
.agenda-item.blue::before { background: #6871d8; }
.agenda-item.pink::before { background: #c3689d; }
.agenda-item.orange::before { background: #ed8a50; }
.agenda-item.green::before { background: #50ad73; }
.agenda-item strong { grid-column: 2; }
.agenda-item small { grid-column: 2; color: #77758a; }
.agenda-empty { color: #77758a; font-size: 10px; }
.task-category-icon { text-decoration: none; }

.note { min-height: 50px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 8px; border-top: 1px solid #f1f0f5; padding: 4px 0; }
.notes-panel .note:first-of-type { border-top: 0; }
.note-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; font-size: 14px; }
.note-icon.yellow { background: #fff1b9; }
.note-icon.green { background: #baf1d1; color: #24a85c; }
.note-icon.pink { background: #f3cedd; color: #ed3a74; }
.note strong { display: block; margin-top: 3px; font-size: 9px; }
.note p { margin: 4px 0 0; color: #77758a; font-size: 8px; line-height: 1.35; }
.note > small { margin-top: 4px; color: #77758a; font-size: 8px; }

.project { min-height: 45px; display: grid; grid-template-columns: 31px minmax(0, 92px) minmax(0, 1fr) 28px; align-items: center; gap: 7px; font-size: 9px; }
.project strong, .habit strong { overflow-wrap: anywhere; }
.project-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: white; font-size: 11px; }
.project-icon.purple { background: #8d65df; }
.project-icon.cyan { background: #39bcd8; }
.project-icon.green { background: #4dbb77; }
.project-icon.blue { background: #5375dd; }
.bar { height: 7px; border-radius: 8px; background: #eeedf3; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: #8143da; }
.project b { text-align: right; font-size: 9px; }

.habit { min-height: 45px; display: grid; grid-template-columns: 31px minmax(0, 1fr) 81px 30px; align-items: center; gap: 7px; font-size: 9px; }
.habit-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; color: #6354cf; background: #f0edff; font-size: 16px; }
.habit-dots { display: flex; gap: 3px; }
.habit-dots i { width: 9px; height: 9px; border: 1.5px solid #8a4cd7; border-radius: 50%; }
.habit-dots i.filled { background: #7040c8; }
.habit-dots i:first-child { margin-right: 1px; }
.habit b { text-align: right; font-size: 9px; }

.week-panel .panel-header div { display: flex; align-items: center; gap: 5px; font-size: 9px; }
.week-panel .panel-header button { border: 0; background: transparent; color: #77758a; }
.week { height: 165px; display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); overflow: auto; border: 1px solid #f1f0f5; border-radius: 8px; }
.week-day { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 164px; width: 100%; padding: 8px; border: 0; border-right: 1px solid #f1f0f5; background: transparent; color: inherit; text-align: left; }
.week-day:last-child { border-right: 0; }
.week-day:hover { background: #f7f3ff; }
.week-date { color: #7041c3; text-align: center; font-size: 10px; white-space: nowrap; }
.week-date strong { display: block; margin-bottom: 3px; }
.week-events { display: grid; gap: 4px; min-width: 0; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.week-events > span:not(.week-empty) { padding: 4px; border-radius: 5px; background: #f0eaff; color: #62409b; }
.week-empty { color: #96909f; }
.week-hint { margin: 6px 0 0; color: #888095; font-size: 9px; }
.week-panel .panel-link { text-align: right; }
.mobile-nav, .mobile-more { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(43, 29, 78, .28); backdrop-filter: blur(5px); }
.modal-backdrop[hidden], .notification-popover[hidden] { display: none; }
.modal { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: white; padding: 20px; box-shadow: 0 20px 60px rgba(45, 28, 91, .22); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-header h2 { margin: 0; color: #39216f; font-size: 18px; }
.modal-close { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #f2eff8; color: #77758a; font-size: 20px; }
#planner-form { display: grid; gap: 12px; }
#planner-form label { display: grid; gap: 6px; color: #625f72; font-size: 11px; }
#planner-form input, #planner-form textarea, #planner-form select { width: 100%; border: 1px solid #dedbea; border-radius: 8px; outline: 0; background: #fbfbfd; color: #2d2b42; padding: 10px; font-size: 12px; }
#planner-form input:focus, #planner-form textarea:focus, #planner-form select:focus { border-color: #8c62dc; box-shadow: 0 0 0 3px rgba(140,98,220,.10); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.modal-actions button { height: 36px; border: 0; border-radius: 8px; padding: 0 14px; font-size: 11px; }
.modal-actions .secondary { background: #efedf5; color: #625f72; }
.modal-actions .primary { background: #6d35d1; color: white; }
.glass-backdrop { background: rgba(48, 30, 82, .22); backdrop-filter: blur(7px); }
.modal.glass-modal { position: relative; border: 1px solid rgba(255,255,255,.82); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(240,230,255,.78) 58%, rgba(255,238,248,.79)); padding: 24px; box-shadow: 0 24px 60px rgba(62,34,112,.22), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -12px 25px rgba(158,116,209,.08); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
.glass-modal::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.38); border-radius: 19px; pointer-events: none; }
.glass-modal .modal-header { position: relative; margin-bottom: 20px; }
.glass-modal .modal-header h2 { color: #452273; font-size: 19px; letter-spacing: -.3px; }
.glass-modal .modal-close { border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.55); color: #745a91; }
.glass-modal #planner-form { position: relative; gap: 14px; }
.glass-modal #planner-form label { color: #5e4d72; font-weight: 600; }
.glass-modal #planner-form .optional-goal-status small { color: #8d7a9a; font-size: 10px; font-weight: 400; }
.glass-modal #planner-form input, .glass-modal #planner-form textarea, .glass-modal #planner-form select { border: 1px solid rgba(171,145,204,.42); border-radius: 11px; background: rgba(255,255,255,.62); padding: 11px 12px; box-shadow: inset 0 1px 4px rgba(96,65,136,.04); }
.glass-modal #planner-form input:focus, .glass-modal #planner-form textarea:focus, .glass-modal #planner-form select:focus { border-color: #9c76d5; background: rgba(255,255,255,.88); box-shadow: 0 0 0 3px rgba(140,98,220,.13); }
.glass-modal .modal-actions { margin-top: 6px; }
.glass-modal .modal-actions button { height: 40px; border-radius: 10px; padding: 0 18px; font-weight: 600; }
.glass-modal .modal-actions .secondary { border: 1px solid rgba(169,145,199,.35); background: rgba(255,255,255,.5); color: #695b7b; }
.glass-modal .modal-actions .primary { background: linear-gradient(135deg, #8659db, #6335c6); box-shadow: 0 5px 12px rgba(105,60,178,.2); }
.modal.note-modal { width: min(1020px, 100%); height: min(820px, calc(100vh - 40px)); height: min(820px, calc(100dvh - 40px)); display: flex; flex-direction: column; overflow: hidden; }
.note-modal .modal-header { flex: 0 0 auto; margin-bottom: 12px; }
.note-modal #planner-form { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "name" "drawing" "writing" "actions"; gap: 10px; }
.note-modal #planner-form > label:first-of-type { grid-area: name; }
.optional-details { display: grid; gap: 6px; }
.note-modal #planner-form .optional-details { grid-area: writing; min-height: 0; }
.note-modal .details-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.note-modal .modal-actions { grid-area: actions; margin: 0; }
.note-modal .note-paper { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid #e7dce8; border-radius: 10px; background: linear-gradient(90deg, transparent 25px, #efc4d2 25px, #efc4d2 26px, transparent 26px), repeating-linear-gradient(to bottom, #fffdf9 0, #fffdf9 27px, #dfebf3 27px, #dfebf3 28px); }
.note-modal #planner-form .optional-details textarea, .note-modal #planner-form .optional-details textarea:focus { display: block; width: 100%; height: 100%; min-height: 0; padding: 8px 14px 8px 34px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #3d3451; font-family: Georgia, serif; font-size: 13px; line-height: 28px; resize: none; }
.note-drawing { position: relative; z-index: 3; grid-area: drawing; min-height: 0; }
.drawing-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.drawing-header strong { color: #5e4d72; font-size: 11px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.drawing-tools { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.drawing-tools button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(169,145,199,.35); border-radius: 12px; background: rgba(255,255,255,.55); color: #725b86; font-size: 11px; font-weight: 600; }
.tool-control { position: relative; }
.drawing-tools .tool-toggle, .drawing-tools .color-toggle { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,.75); box-shadow: 0 3px 10px rgba(100,65,145,.08); }
.tool-toggle-icon { color: #8052ba; font-size: 17px; line-height: 1; }
.drawing-chevron { width: 6px; height: 6px; margin-left: 3px; border-right: 1.5px solid #80619d; border-bottom: 1.5px solid #80619d; transform: rotate(45deg) translateY(-2px); }
.color-preview { width: 23px; height: 23px; border: 2px solid white; border-radius: 50%; background: #7041d8; box-shadow: 0 0 0 1px #d4c3e4; }
.drawing-popover { position: absolute; z-index: 4; top: calc(100% + 8px); width: 248px; max-height: min(340px, calc(100dvh - 190px)); overflow-y: auto; padding: 12px; border: 1px solid rgba(188,163,210,.5); border-radius: 16px; background: rgba(255,252,255,.98); box-shadow: 0 12px 30px rgba(63,38,96,.2); }
.tool-menu { left: 0; }
.color-menu { right: 0; }
.popover-title { margin: 0 0 9px; color: #887398; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tool-options { display: grid; gap: 3px; }
.drawing-tools .tool-option { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 35px; padding: 5px 7px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.drawing-tools .tool-option:hover, .drawing-tools .tool-option[aria-pressed="true"] { background: #f2eafb; }
.tool-mark { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; background: #efe5fa; color: #7650a8; font-size: 15px; }
.tool-mark::before { content: ""; width: 4px; height: 16px; border-radius: 5px 5px 2px 2px; background: #8a65bd; transform: rotate(40deg); }
.tool-option[data-mode="write"] .tool-mark::before { content: "T"; width: auto; height: auto; background: none; font-family: Georgia, serif; font-weight: 700; transform: none; }
.tool-option[data-mode="fine"] .tool-mark::before { width: 2px; }
.tool-option[data-mode="bold"] .tool-mark::before { width: 7px; }
.tool-option[data-mode="pencil"] .tool-mark::before { width: 3px; opacity: .65; }
.tool-option[data-mode="brush"] .tool-mark::before { width: 8px; border-radius: 7px 7px 2px 2px; opacity: .8; }
.tool-option[data-mode="highlighter"] .tool-mark::before { width: 9px; border-radius: 3px; background: #e8a4c7; }
.tool-option[data-mode="eraser"] .tool-mark::before { width: 12px; height: 11px; border-radius: 3px; background: #d3a9d0; }
.tool-copy { display: grid; min-width: 0; gap: 2px; }
.tool-copy strong { color: #543c70; font-size: 11px; }
.tool-copy small { color: #998aa4; font-size: 9px; font-weight: 400; }
.tool-tick { margin-left: auto; color: #8a58c3; visibility: hidden; }
.tool-option[aria-pressed="true"] .tool-tick { visibility: visible; }
.color-swatches { display: grid; grid-template-columns: repeat(6, 1fr); justify-items: center; gap: 8px 5px; padding: 2px 0 12px; }
.drawing-tools .color-swatch { width: 27px; height: 27px; min-height: 0; padding: 0; border: 2px solid white; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #dfd1e6; }
.drawing-tools .color-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #9a72c6; }
.color-sliders { display: grid; gap: 7px; padding-top: 9px; border-top: 1px solid #f0e9f4; }
.note-modal #planner-form .color-sliders label { display: grid; grid-template-columns: 75px 1fr; align-items: center; gap: 8px; color: #887a94; font-size: 10px; font-weight: 500; }
.note-modal #planner-form .color-sliders input { width: 100%; height: 7px; padding: 0; border: 0; border-radius: 8px; appearance: none; box-shadow: none; cursor: pointer; }
.color-sliders input::-webkit-slider-thumb { width: 14px; height: 14px; border: 2px solid white; border-radius: 50%; appearance: none; background: #a47bc9; box-shadow: 0 0 0 1px #c5b4d2; }
.color-sliders input::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid white; border-radius: 50%; background: #a47bc9; box-shadow: 0 0 0 1px #c5b4d2; }
.color-hex-row { display: flex; align-items: center; gap: 7px; margin-top: 12px; }
.note-modal #planner-form .color-hex-row label { color: #887a94; font-size: 10px; }
.note-modal #planner-form .color-hex-row input { min-width: 0; flex: 1; height: 30px; padding: 5px 7px; border-radius: 8px; font-size: 11px; }
.drawing-tools .color-apply { min-height: 30px; padding: 0 9px; border-radius: 8px; background: #efe4fa; color: #7046a1; }
.selection-control { display: block; min-width: 0; width: 100%; }
.selection-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid rgba(168,135,205,.38); border-radius: 11px; background: rgba(255,255,255,.7); color: #5e4183; text-align: left; font-size: 11px; font-weight: 600; box-shadow: 0 3px 10px rgba(100,65,145,.06); }
.selection-toggle:focus-visible, .selection-option:focus-visible, .drawing-tools button:focus-visible { outline: 2px solid #a686d5; outline-offset: 2px; }
.selection-menu { position: fixed; z-index: 200; top: auto; padding: 6px; max-height: min(320px, calc(100dvh - 24px)); }
.selection-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 38px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #604777; text-align: left; font-size: 11px; font-weight: 600; }
.selection-option:hover, .selection-option[aria-selected="true"] { background: #f2eafb; color: #7041a0; }
.selection-tick { color: #8a58c3; visibility: hidden; }
.selection-option[aria-selected="true"] .selection-tick { visibility: visible; }
.goal-status-control .selection-control { flex: 1; width: auto; }
.goal-status-control .selection-toggle { min-height: 32px; padding: 6px 9px; }
.glass-modal #planner-form input[type="date"], .glass-modal #planner-form input[type="time"] { color-scheme: light; color: #5e4183; }
.glass-modal #planner-form input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .65; }
/* Generated by GitHub Copilot - Nov-19-2026 */
.datetime-control { display: flex; align-items: stretch; position: relative; min-width: 0; }
.glass-modal #planner-form .datetime-control input { min-width: 0; padding-right: 52px; }
.datetime-control input::-webkit-calendar-picker-indicator { display: none; }
.datetime-toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 9px; background: #f0e8fa; color: #7041a0; font-size: 19px; }
.datetime-toggle:hover, .datetime-toggle[aria-expanded="true"] { background: #e4d4f5; }
.datetime-toggle:focus-visible, .datetime-picker button:focus-visible, .habit-card button:focus-visible, .habit-schedule button:focus-visible, .habit-day-options input:focus-visible + span { outline: 2px solid #8256bc; outline-offset: 2px; }
.datetime-picker { position: fixed; z-index: 210; max-height: calc(100dvh - 24px); color: #53366f; }
.picker-header, .picker-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.picker-header strong { font-size: 13px; text-transform: capitalize; }
.picker-header button, .picker-footer button { min-width: 38px; min-height: 36px; border: 0; border-radius: 10px; background: #f3ebfb; color: #633d8f; font-weight: 700; }
.picker-header button { font-size: 20px; }
.picker-footer { justify-content: flex-end; margin-top: 10px; }
.picker-footer button { padding: 0 12px; font-size: 11px; }
.picker-weekdays, .picker-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.picker-weekdays { margin: 12px 0 4px; color: #74647e; font-size: 10px; font-weight: 700; }
.picker-days button { min-height: 32px; border: 0; border-radius: 9px; background: transparent; color: #53366f; font-size: 11px; }
.picker-days button:hover, .picker-days button[aria-current="date"] { background: #e9dcf9; color: #512581; font-weight: 700; }
.picker-title { display: block; margin-bottom: 12px; font-size: 13px; }
.picker-time { display: flex; align-items: end; gap: 8px; }
.picker-time label { display: grid; gap: 5px; flex: 1; font-size: 11px; }
.picker-time input { width: 100%; min-width: 0; padding: 9px; border: 1px solid #d5c3e6; border-radius: 9px; color: #53366f; background: white; }
.picker-time > span { padding-bottom: 9px; }
.habit-dashboard-row { display: flex; align-items: center; gap: 8px; min-height: 37px; border-top: 1px solid rgba(110,90,140,.1); font-size: 10px; }
.habit-dashboard-row > span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #e8ddfa; color: #633d8f; }
.habit-dashboard-row strong { flex: 1; overflow-wrap: anywhere; }
.habit-dashboard-row small, .habit-empty { color: #706078; font-size: 10px; }
.habits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.habits-list .tasks-empty { grid-column: 1 / -1; }
.habit-card { display: grid; align-content: start; gap: 14px; min-width: 0; padding: 18px; border: 1px solid #eadff0; border-radius: 16px; background: linear-gradient(145deg, #fff, #f8f2ff); }
.habit-card:nth-child(even) { background: linear-gradient(145deg, #fff, #eff9f5); }
.habit-card-head { display: flex; align-items: center; gap: 10px; }
.habit-card-head > div { flex: 1; min-width: 0; }
.habit-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; background: #eadff9; color: #673c98; font-size: 20px; }
.habit-card h2 { margin: 0; color: #422b59; font-size: 14px; overflow-wrap: anywhere; }
.habit-card-head p, .habit-description { margin: 5px 0 0; color: #706078; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.habit-description { margin: 0; }
.habit-streak { border-radius: 20px; padding: 6px 8px; background: #f5e8d9; color: #805225; font-size: 10px; font-weight: 700; white-space: nowrap; }
.habit-week-heading { display: flex; justify-content: space-between; gap: 8px; color: #6f5f7c; font-size: 10px; }
.habit-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.habit-day { display: grid; justify-items: center; gap: 4px; min-width: 0; min-height: 66px; padding: 6px 2px; border: 1px solid #e8deee; border-radius: 10px; background: rgba(255,255,255,.8); color: #644d78; font-size: 10px; }
.habit-day strong { font-size: 12px; }
.habit-day small { font-size: 13px; line-height: 1; }
.habit-day.checked { border-color: #9c76ce; background: #e9ddf9; color: #502681; }
.habit-day:disabled { opacity: .48; cursor: default; }
.habit-card-actions { display: flex; justify-content: flex-end; gap: 6px; }
.habit-card-actions button { min-height: 36px; padding: 6px 12px; border: 1px solid #dfd0ea; border-radius: 9px; background: #fff; color: #634080; font-size: 11px; font-weight: 600; }
#habit-form { display: grid; gap: 14px; }
#habit-form > label { display: grid; gap: 6px; color: #5e4d72; font-size: 11px; font-weight: 600; }
#habit-form input[type="text"], #habit-form input:not([type]), #habit-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #d9c9e6; border-radius: 11px; background: rgba(255,255,255,.8); color: #30243c; font: inherit; }
.habit-schedule { min-width: 0; margin: 0; padding: 12px; border: 1px solid #dfd1e9; border-radius: 12px; }
.habit-schedule legend { padding: 0 4px; color: #5e4d72; font-size: 11px; font-weight: 700; }
.habit-everyday { min-height: 36px; margin-bottom: 10px; padding: 5px 10px; border: 0; border-radius: 9px; background: #eee3fa; color: #60378d; font-size: 11px; font-weight: 700; }
.habit-day-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.habit-day-options label { position: relative; min-width: 0; }
.habit-day-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.habit-day-options span { display: grid; place-items: center; min-height: 38px; border: 1px solid #e2d4eb; border-radius: 9px; background: white; color: #685577; font-size: 10px; cursor: pointer; }
.habit-day-options input:checked + span { border-color: #8d65bf; background: #e7d8f7; color: #502681; font-weight: 700; }
.habit-schedule small { display: block; margin-top: 10px; color: #6f6079; font-size: 10px; }
.dark-theme .datetime-toggle { background: #59446f; color: #f1e8f7; }
.dark-theme .datetime-picker { color: #f1e8f7; }
.dark-theme .picker-days button, .dark-theme .picker-weekdays { color: #f1e8f7; }
.dark-theme .picker-days button:hover, .dark-theme .picker-days button[aria-current="date"], .dark-theme .picker-header button, .dark-theme .picker-footer button { background: #59466b; color: #fff; }
.dark-theme .habit-card, .dark-theme .habit-card:nth-child(even) { border-color: #514762; background: #403650; }
.dark-theme .habit-card h2, .dark-theme .habit-card-head p, .dark-theme .habit-description, .dark-theme .habit-week-heading, .dark-theme .habit-empty, .dark-theme .habit-dashboard-row small { color: #eee5fa; }
.dark-theme .habit-day, .dark-theme .habit-card-actions button { background: #574568; border-color: #756484; color: #f1e8f7; }
.dark-theme .habit-day.checked { background: #8062a4; color: #fff; }
.dark-theme #habit-form > label, .dark-theme .habit-schedule legend, .dark-theme .habit-schedule small { color: #eee5fa; }
@media (max-width: 700px) { .habits-list { grid-template-columns: 1fr; padding: 12px; } .habit-card { padding: 14px; } }
.dark-theme .drawing-popover { border-color: #675575; background: #382d48; }
.dark-theme .selection-toggle { border-color: #6a587b; background: #574568; color: #eee5fa; }
.dark-theme .selection-option { color: #f1e8f7; }
.dark-theme .selection-option:hover, .dark-theme .selection-option[aria-selected="true"] { background: #514063; color: #f1e8f7; }
.dark-theme .popover-title, .dark-theme .tool-copy small, .dark-theme .note-modal #planner-form .color-sliders label, .dark-theme .note-modal #planner-form .color-hex-row label { color: #cbbbd5; }
.dark-theme .tool-copy strong { color: #f1e8f7; }
.dark-theme .drawing-tools .tool-option:hover, .dark-theme .drawing-tools .tool-option[aria-pressed="true"] { background: #514063; }
.dark-theme .tool-mark { background: #5a476d; }
.dark-theme .color-sliders { border-color: #5b4867; }
.drawing-canvas { display: none; }
.note-modal .drawing-canvas { display: block; position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; cursor: crosshair; touch-action: none; }
.note-modal .note-paper.drawing-active .drawing-canvas { pointer-events: auto; }
.notification-popover { position: fixed; z-index: 90; top: 54px; right: 72px; width: 250px; border: 1px solid #ebe8f2; border-radius: 12px; background: white; padding: 14px; box-shadow: 0 12px 40px rgba(53,38,104,.16); }
.notification-popover strong { color: #39216f; font-size: 12px; }
.notification-popover p { margin: 10px 0 0; border-top: 1px solid #f1eff5; padding-top: 8px; color: #77758a; font-size: 10px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); border-radius: 8px; background: #39216f; color: white; padding: 10px 16px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.section-view { min-height: calc(100vh - 180px); }
.section-view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-view-header h1 { margin: 0; color: #35116f; font-size: 24px; }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.section-card { min-height: 130px; border: 1px solid #eeeef4; border-radius: 12px; background: white; padding: 16px; box-shadow: 0 5px 16px rgba(53,38,104,.025); }
.section-card h3 { margin: 0 0 8px; color: #39216f; font-size: 13px; }
.section-card p { margin: 0; color: #77758a; font-size: 10px; line-height: 1.6; }
.tasks-view { max-width: 1000px; margin: 0 auto; }
.tasks-view .section-view-header { align-items: center; margin: 6px 0 20px; }
.tasks-view .section-add { height: 38px; padding: 0 16px; font-size: 11px; }
.task-summary { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.tasks-container { overflow: hidden; border: 1px solid #eae7f1; border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(53,38,104,.05); }
.tasks-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #eeeaf4; }
.task-filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #f5f2fb; }
.task-filter { border: 0; border-radius: 7px; padding: 8px 12px; background: transparent; color: #706781; font-size: 11px; }
.task-filter.active { background: white; color: #6234ce; font-weight: 700; box-shadow: 0 2px 6px rgba(53,38,104,.1); }
.task-search { display: flex; align-items: center; gap: 8px; min-width: 190px; padding: 8px 12px; border: 1px solid #e6e1ef; border-radius: 9px; color: #8d81a1; }
.task-search span { font-size: 18px; line-height: 1; }
.task-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid #f1eef5; }
.task-row:last-child { border-bottom: 0; }
.task-row-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1; cursor: pointer; }
.task-row-main input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: #7041d8; }
.task-row-copy { display: flex; flex-direction: column; min-width: 0; gap: 5px; }
.task-row-copy strong { color: #302943; font-size: 12px; overflow-wrap: anywhere; }
.task-row.is-done .task-row-copy strong { color: #9992a3; text-decoration: line-through; }
.task-details { color: #777183; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.task-time { color: #8b809d; font-size: 10px; }
.task-category { color: #7354a0; font-size: 10px; }
.goals-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.goals-summary > div { display: flex; flex-direction: column; gap: 8px; padding: 15px; border: 1px solid rgba(183,153,196,.2); border-radius: 14px; background: #f5edff; }
.goals-summary > div:nth-child(2) { background: #eaf5fc; }
.goals-summary > div:nth-child(3) { background: #eaf7ed; }
.goals-summary > div:nth-child(4) { background: #fff1f3; }
.goals-summary span { color: #776587; font-size: 11px; }
.goals-summary strong { color: #4b326c; font-size: 23px; }
.goals-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 16px; }
.goals-list .tasks-empty { grid-column: 1 / -1; }
.goal-card { display: flex; flex-direction: column; min-width: 0; gap: 12px; padding: 18px; border: 1px solid #ecdfed; border-radius: 16px; background: linear-gradient(145deg, #fff, #fff4f9); box-shadow: 0 5px 16px rgba(110,74,134,.06); }
.goal-card:nth-child(3n + 2) { background: linear-gradient(145deg, #fff, #f1f0ff); }
.goal-card:nth-child(3n) { background: linear-gradient(145deg, #fff, #eff9f6); }
.goal-card-top, .goal-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.goal-card h2 { margin: 0; color: #422b59; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.goal-badge { padding: 5px 9px; border-radius: 20px; background: #eee6fb; color: #714aa0; font-size: 10px; font-weight: 700; }
.goal-badge.done { background: #daf2e3; color: #347b55; }
.goal-badge.overdue { background: #ffe3e5; color: #b0475c; }
.goal-category, .goal-date { color: #82738e; font-size: 11px; }
.goal-status-control { display: flex; align-items: center; gap: 8px; color: #82738e; font-size: 10px; font-weight: 600; }
.goal-status-control select { min-width: 0; padding: 6px 9px; border: 1px solid #e8dcef; border-radius: 9px; background: rgba(255,255,255,.75); color: #674886; font: inherit; }
.goal-details { margin: 0; color: #776d80; font-size: 11px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.goal-progress-heading { margin-top: auto; padding-top: 5px; color: #7c6d89; font-size: 11px; }
.goal-progress-heading strong { color: #7041ba; font-size: 13px; }
.goal-progress { height: 8px; overflow: hidden; border-radius: 8px; background: #eee8f3; }
.goal-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #aa82e7, #df9bc8); }
.goal-actions, .goal-adjust, .goal-manage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.goal-actions { justify-content: space-between; padding-top: 4px; }
.goal-actions button { min-height: 32px; padding: 5px 9px; border: 1px solid #e8dcef; border-radius: 9px; background: rgba(255,255,255,.7); color: #745294; font-size: 10px; font-weight: 600; }
.goal-actions button:disabled { opacity: .45; cursor: default; }
.goal-manage button:first-child { border-color: #dac8ee; background: #f0e5fa; color: #673e9b; }
.dark-theme .goals-summary > div { background: #403650; border-color: #514762; }
.dark-theme .goals-summary span, .dark-theme .goal-details, .dark-theme .goal-category, .dark-theme .goal-date, .dark-theme .goal-progress-heading { color: #d3c7db; }
.dark-theme .goals-summary strong, .dark-theme .goal-card h2, .dark-theme .goal-progress-heading strong { color: #eee5fa; }
.dark-theme .goal-card, .dark-theme .goal-card:nth-child(n) { background: #403650; border-color: #514762; }
.dark-theme .goal-actions button { background: #574568; border-color: #6a587b; color: #eee5fa; }
.dark-theme .goal-status-control { color: #d3c7db; }
.dark-theme .goal-status-control select { background: #574568; border-color: #6a587b; color: #eee5fa; }
.dark-theme .goal-progress { background: #60506f; }
.agenda-date-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #eee8ff; color: #7041d8; font-size: 18px; }
.agenda-row .task-row-copy { flex: 1; }
.agenda-calendar { margin-bottom: 16px; padding: 16px; border: 1px solid #eae7f1; border-radius: 16px; background: white; box-shadow: 0 8px 26px rgba(53,38,104,.05); }
.calendar-header, .calendar-navigation { display: flex; align-items: center; }
.calendar-header { justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.calendar-navigation { gap: 8px; }
.calendar-month { min-width: 150px; margin: 0; color: #39216f; text-align: center; font-size: 16px; }
.calendar-navigation button, .calendar-today { min-width: 34px; min-height: 34px; padding: 0 10px; border: 1px solid #eee9f4; border-radius: 8px; background: #faf8fd; color: #6845a4; }
.calendar-navigation button { font-size: 20px; }
.calendar-today { font-size: 11px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays span { padding: 8px 4px; color: #827a90; text-align: center; font-size: 10px; font-weight: 700; }
.calendar-days { gap: 4px; }
.calendar-day, .calendar-blank { min-width: 0; min-height: 82px; border: 1px solid #f0edf5; border-radius: 8px; }
.calendar-day { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 7px; background: #fff; color: var(--text); text-align: left; }
.calendar-day:hover { background: #f8f5ff; }
.calendar-day.selected { border-color: #8052d6; background: #f4efff; }
.calendar-day.today .calendar-day-number { color: #6d35d1; font-weight: 800; }
.calendar-day-number { font-size: 11px; font-weight: 600; }
.calendar-events { display: grid; gap: 3px; width: 100%; }
.calendar-events span { overflow: hidden; padding: 3px 4px; border-radius: 4px; background: #eee8ff; color: #604196; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.calendar-count { position: absolute; top: 6px; right: 7px; color: #7752bd; font-size: 9px; }
.calendar-hint { margin: 10px 0 0; color: #888095; font-size: 10px; }
.agenda-list-title { flex-basis: 100%; margin: 0; color: #39216f; font-size: 13px; }
.agenda-view .section-view-header { padding: 18px 20px; border: 1px solid #e8defa; border-radius: 16px; background: linear-gradient(110deg, #f1e9ff, #fceefa 65%, #fff4e8); }
.agenda-view .section-view-header h1::after { content: " ✦"; color: #d78a56; }
.agenda-view .section-add { box-shadow: 0 5px 12px rgba(109,53,209,.2); }
.agenda-view .agenda-calendar { border-color: #e9e1f4; background: linear-gradient(180deg, #fbf8ff, #fff 140px); }
.agenda-view .calendar-month { color: #59329c; }
.agenda-view .calendar-navigation button, .agenda-view .calendar-today { border-color: #e8ddfa; background: #f2eaff; color: #6034ad; }
.agenda-view .calendar-weekdays span { color: #8062a6; }
.agenda-view .calendar-day { border-color: #eee8f5; background: #fff; transition: background .15s, border-color .15s; }
.agenda-view .calendar-day:nth-child(7n + 6), .agenda-view .calendar-day:nth-child(7n) { background: #fff9f5; }
.agenda-view .calendar-day:hover { border-color: #cdb5f1; background: #f8f2ff; }
.agenda-view .calendar-day.today .calendar-day-number { display: grid; width: 23px; height: 23px; place-items: center; margin: -4px 0 0 -4px; border-radius: 50%; background: #e9defe; color: #59309f; }
.agenda-view .calendar-day.selected { border-color: #9471dd; background: #f1eaff; box-shadow: inset 0 0 0 1px #9471dd; }
.agenda-view .calendar-events span:nth-child(2n) { background: #e1f3ed; color: #31695b; }
.agenda-view .calendar-count { border-radius: 8px; padding: 1px 5px; background: #f7e4d8; color: #96562e; font-weight: 700; }
.agenda-view .agenda-date-icon { background: #f6e5ee; color: #9c4d83; }
.agenda-view .agenda-row:nth-child(3n + 2) .agenda-date-icon { background: #e0f3ed; color: #347864; }
.agenda-view .agenda-row:nth-child(3n) .agenda-date-icon { background: #fff0d9; color: #956329; }
.task-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.task-row-actions button { padding: 7px 9px; border: 1px solid #eee9f4; border-radius: 7px; background: #faf8fd; color: #6845a4; font-size: 10px; }
.task-row-actions button:hover { background: #f0e9fb; }
.tasks-empty { margin: 0; padding: 40px 20px; color: #888095; text-align: center; font-size: 12px; line-height: 1.5; }
.notes-view-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; padding: 16px; }
.notes-view-list .tasks-empty { grid-column: 1 / -1; }
.note-card { min-width: 0; min-height: 190px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #f0e3ed; border-radius: 14px; background: #fff3f8; box-shadow: 0 5px 16px rgba(110,74,134,.06); }
.note-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.note-card-header h2 { min-width: 0; margin: 0; color: #422b59; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.note-pin { flex-shrink: 0; padding: 5px 7px; border: 1px solid rgba(147,105,159,.18); border-radius: 8px; background: rgba(255,255,255,.55); color: #79519b; font-size: 10px; }
.note-pin[aria-pressed="true"] { background: #eadbfa; color: #603696; }
.note-card-page { display: block; width: 100%; max-height: 240px; overflow-y: auto; padding: 8px 10px 8px 27px; border: 1px solid #ede5e8; border-radius: 8px; background: linear-gradient(90deg, transparent 19px, #efc4d2 19px, #efc4d2 20px, transparent 20px), repeating-linear-gradient(to bottom, #fffdf9 0, #fffdf9 21px, #e1edf4 21px, #e1edf4 22px); text-align: left; }
.note-card-page.has-drawing { position: relative; height: auto; max-height: none; aspect-ratio: 2 / 3; overflow: hidden; }
.note-card-content { display: block; margin: 0; color: #665c6c; font-size: 11px; line-height: 22px; overflow-wrap: anywhere; white-space: pre-wrap; }
.note-card-drawing { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
.note-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; color: #817489; font-size: 10px; }
.dark-theme .note-card { border-color: #514762; background: #403650; }
.dark-theme .note-card-header h2 { color: #eee5fa; }
.dark-theme .note-card-content, .dark-theme .note-card-footer { color: #d3c7db; }
.dark-theme .note-card-page .note-card-content { color: #50465b; }
.dark-theme .note-pin { background: #574568; color: #eee5fa; border-color: #6a587b; }
.dark-theme .note-pin[aria-pressed="true"] { background: #765b9a; color: #fff; }
.dark-theme { --text: #ece8f7; background: #1d1930; }
.dark-theme .main, .dark-theme .content { background: #242039; }
.dark-theme .topbar, .dark-theme .panel, .dark-theme .metric-card, .dark-theme .motivation-card, .dark-theme .modal, .dark-theme .section-card { background: #302b49; border-color: #403956; color: #ece8f7; }
.dark-theme .welcome h1, .dark-theme .section-view-header h1 { color: #c5b1ee; }
.dark-theme .motivation-copy { color: #eee5fa; }
.dark-theme .motivation-copy small { color: #cbbce1; }
.dark-theme .search input { color: #ece8f7; }
.dark-theme .tasks-container { background: #302b49; border-color: #403956; }
.dark-theme .agenda-calendar { background: #302b49; border-color: #403956; }
.dark-theme .calendar-month, .dark-theme .agenda-list-title { color: #e4d8f8; }
.dark-theme .calendar-day { background: #302b49; border-color: #504763; }
.dark-theme .calendar-day:hover, .dark-theme .calendar-day.selected, .dark-theme .week-day:hover { background: #51416e; }
.dark-theme .calendar-blank { border-color: #403956; }
.dark-theme .agenda-view .section-view-header { background: linear-gradient(110deg, #403057, #493351); border-color: #5a4871; }
.dark-theme .agenda-view .agenda-calendar { background: #302b49; border-color: #504763; }
.dark-theme .agenda-view .calendar-month { color: #e4d8f8; }
.dark-theme .agenda-view .calendar-day { background: #302b49; border-color: #504763; }
.dark-theme .agenda-view .calendar-day:nth-child(7n + 6), .dark-theme .agenda-view .calendar-day:nth-child(7n) { background: #3c3048; }
.dark-theme .agenda-view .calendar-day:hover, .dark-theme .agenda-view .calendar-day.selected { background: #55416f; border-color: #b69ae5; }
.dark-theme .agenda-view .calendar-weekdays span { color: #c7b5dc; }
.dark-theme .tasks-toolbar, .dark-theme .task-row { border-color: #403956; }
.dark-theme .task-filters, .dark-theme .task-row-actions button { background: #403956; }
.dark-theme .task-filter { color: #d3cae7; }
.dark-theme .task-filter.active { background: #625180; color: white; }
.dark-theme .task-row-copy strong { color: #ece8f7; }
.dark-theme .task-row.is-done .task-row-copy strong, .dark-theme .task-details, .dark-theme .task-time, .dark-theme .task-summary { color: #c1b6d2; }
.dark-theme .task-category { color: #d3b9f4; }
.dark-theme .task-row-actions button { color: #e2d4ff; border-color: #574d6e; }
.dark-theme .modal.glass-modal { border-color: rgba(215,195,245,.35); background: linear-gradient(145deg, rgba(67,52,94,.93), rgba(48,39,71,.9)); }
.dark-theme .glass-modal .modal-header h2, .dark-theme .glass-modal #planner-form label { color: #eee5fa; }
.dark-theme .glass-modal .modal-close, .dark-theme .glass-modal .modal-actions .secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #eee5fa; }
.dark-theme .drawing-header strong, .dark-theme .drawing-hint { color: #dfd4ec; }

body:not(.dark-theme) .content { background: linear-gradient(135deg, #fff7fb, #f8f5ff 50%, #f1f8fc); }
body:not(.dark-theme) .content.dashboard-home { background: #fff; }
body:not(.dark-theme) .nav-item:hover { background: rgba(255,238,247,.7); }
body:not(.dark-theme) .nav-item.active { background: linear-gradient(135deg, rgba(246,207,230,.9), rgba(214,197,247,.9)); color: #452275; }
body:not(.dark-theme) .nav-item.active .nav-icon { border-color: rgba(102,65,154,.25); }
body:not(.dark-theme) .metric-card, body:not(.dark-theme) .panel, body:not(.dark-theme) .section-card { border-color: rgba(181,153,190,.18); box-shadow: 0 6px 20px rgba(110,74,134,.06); }
body:not(.dark-theme) .metrics .metric-card:nth-child(1), body:not(.dark-theme) .tasks-panel { background: linear-gradient(145deg, #fff, #ffedf5); }
body:not(.dark-theme) .metrics .metric-card:nth-child(2), body:not(.dark-theme) .agenda-panel { background: linear-gradient(145deg, #fff, #eaf5fd); }
body:not(.dark-theme) .metrics .metric-card:nth-child(3), body:not(.dark-theme) .habits-panel { background: linear-gradient(145deg, #fff, #eaf8ef); }
body:not(.dark-theme) .metrics .metric-card:nth-child(4), body:not(.dark-theme) .projects-panel { background: linear-gradient(145deg, #fff, #f0eaff); }
body:not(.dark-theme) .notes-panel { background: linear-gradient(145deg, #fff, #fff8df); }
body:not(.dark-theme) .week-panel { background: linear-gradient(145deg, #fff, #ffeff6); }
body:not(.dark-theme) .metrics .metric-card:nth-child(1) .metric-icon { background: #f9dbe9; color: #a23f76; }
body:not(.dark-theme) .metrics .metric-card:nth-child(2) .metric-icon { background: #dceefb; color: #376e9d; }
body:not(.dark-theme) .metrics .metric-card:nth-child(3) .metric-icon { background: #d9f1e2; color: #347d59; }
body:not(.dark-theme) .metrics .metric-card:nth-child(4) .metric-icon { background: #e9dfff; color: #6b47ad; }
body:not(.dark-theme) .section-view:not(.agenda-view) .section-view-header { padding: 18px 20px; border: 1px solid #f1e0ee; border-radius: 16px; background: linear-gradient(110deg, #fceaf3, #f0eaff 65%, #eaf5fc); }
body:not(.dark-theme) .section-card:nth-child(3n + 1) { background: linear-gradient(145deg, #fff, #ffedf5); }
body:not(.dark-theme) .section-card:nth-child(3n + 2) { background: linear-gradient(145deg, #fff, #eaf5fd); }
body:not(.dark-theme) .section-card:nth-child(3n) { background: linear-gradient(145deg, #fff, #fff8df); }
body:not(.dark-theme) .note-card:nth-child(5n + 1) { background: linear-gradient(145deg, #fff, #ffedf5); }
body:not(.dark-theme) .note-card:nth-child(5n + 2) { background: linear-gradient(145deg, #fff, #eaf5fd); }
body:not(.dark-theme) .note-card:nth-child(5n + 3) { background: linear-gradient(145deg, #fff, #fff6d8); }
body:not(.dark-theme) .note-card:nth-child(5n + 4) { background: linear-gradient(145deg, #fff, #eaf8ef); }
body:not(.dark-theme) .note-card:nth-child(5n) { background: linear-gradient(145deg, #fff, #f0eaff); }
body:not(.dark-theme) .tasks-container { border-color: #efdeea; background: linear-gradient(150deg, #fff, #fff8fb); }
body:not(.dark-theme) .task-filters { background: #f7eaf3; }
body:not(.dark-theme) .task-filter.active { background: #fff; color: #743b9c; }
body:not(.dark-theme) .task-row-actions button { background: #f8eff8; border-color: #f0e2ee; }
body:not(.dark-theme) .agenda-view .agenda-calendar { border-color: #eddfea; background: linear-gradient(155deg, #fff2f8, #f4efff 45%, #edf8fa); }
body:not(.dark-theme) .week-day:nth-child(4n + 2) .week-events > span:not(.week-empty) { background: #e2f2fc; color: #396889; }
body:not(.dark-theme) .week-day:nth-child(4n + 3) .week-events > span:not(.week-empty) { background: #e0f3e7; color: #3a7151; }
body:not(.dark-theme) .week-day:nth-child(4n) .week-events > span:not(.week-empty) { background: #fff1d2; color: #795b27; }
body:not(.dark-theme) .mobile-nav button.active { color: #713eae; background: #fbeaf3; border-radius: 10px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .goals-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goals-list { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .modal.note-modal { padding: 14px; }
  .note-modal .modal-header { margin-bottom: 8px; }
  .note-modal #planner-form { gap: 7px; }
  .note-modal #planner-form > label:first-of-type input { padding: 7px 10px; }
  .note-modal .modal-actions button { height: 34px; }
  .drawing-header { gap: 4px; }
  .drawing-tools { gap: 5px; }
  .drawing-tools > .drawing-clear { padding: 0 9px; }
}

@media (max-width: 900px) {
  body { background: white; }
  .app-shell { display: block; width: 100%; max-width: 430px; height: 100vh; margin: 0 auto; overflow: hidden; }
  .sidebar { display: none; }
  .main { height: 100vh; }
  .topbar { height: 54px; display: flex; padding: 0 16px; }
  .topbar-brand { display: block; color: #4d2c82; font-size: 15px; }
  .search { display: none; }
  .top-actions { gap: 0; }
  .top-actions button:not(.profile-top) { display: none; }
  .top-actions .profile-top { width: 36px; height: 36px; }
  .content { height: calc(100vh - 118px); overflow-y: auto; padding: 18px 16px 24px; background: #fff; }
  .welcome { min-height: 0; flex-direction: column; gap: 12px; padding-bottom: 18px; }
  .welcome h1 { margin-top: 0; font-size: 23px; }
  .welcome p { font-size: 10px; }
  .welcome em { font-size: 9px; }
  .motivation-card { display: flex; width: 100%; flex: none; }
  .motivation-copy span { font-size: 12px; }
  .metrics { grid-template-columns: repeat(2, 1fr); height: 152px; gap: 8px; }
  .metric-card { height: 72px; padding: 8px; }
  .metric-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .metric-copy strong { font-size: 16px; }
  .metric-card .progress-line { left: 51px; bottom: 8px; right: 43px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 10px; }
  .panel { min-height: 0; padding: 14px; }
  .panel-header { min-height: 40px; }
  .task { min-height: 34px; }
  .task-list { max-height: 204px; }
  .task.done span { text-decoration: none; }
  .timeline { height: 178px; }
  .agenda-item { min-height: 42px; }
  .tasks-view .section-view-header { gap: 10px; }
  .tasks-view .section-view-header h1 { font-size: 21px; }
  .tasks-toolbar { align-items: stretch; }
  .task-search { width: 100%; }
  .task-row { flex-wrap: wrap; padding: 14px; }
  .task-row-main { flex-basis: 100%; }
  .task-row-actions { margin-left: 30px; }
  .agenda-row .task-row-copy { flex-basis: calc(100% - 48px); }
  .agenda-row .task-row-actions { margin-left: 48px; }
  .section-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .agenda-calendar { padding: 12px; }
  .calendar-month { min-width: 120px; font-size: 13px; }
  .calendar-days { gap: 2px; }
  .calendar-day, .calendar-blank { min-height: 48px; }
  .calendar-day { padding: 5px; }
  .calendar-events { display: none; }
  .calendar-count { top: auto; right: 5px; bottom: 4px; }
  .mobile-nav { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 430px; height: 64px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-top: 1px solid #ebeaf1; background: white; z-index: 10; }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; background: transparent; color: #77758a; font-size: 16px; }
  .mobile-nav button.active { color: #6b35d1; }
  .mobile-nav small { font-size: 8px; }
  .mobile-more:not([hidden]) { position: fixed; z-index: 11; left: 50%; bottom: 74px; transform: translateX(-50%); display: block; width: calc(100% - 32px); max-width: 398px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 16px; border: 1px solid rgba(187,157,211,.4); border-radius: 20px; background: rgba(255,250,255,.97); box-shadow: 0 12px 35px rgba(74,44,106,.2); }
  .mobile-more p { margin: 0 0 12px; color: #503374; font-size: 13px; font-weight: 700; }
  .mobile-more-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mobile-more-item { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 10px; border: 1px solid rgba(180,151,202,.2); border-radius: 12px; background: #f5edfb; color: #5a4078; text-align: left; font-size: 11px; font-weight: 600; }
  .mobile-more-item:nth-child(4n + 2) { background: #fcebf3; }
  .mobile-more-item:nth-child(4n + 3) { background: #eaf5fa; }
  .mobile-more-item:nth-child(4n) { background: #ecf7ef; }
  .mobile-more-item .nav-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.7); font-size: 14px; }
  .mobile-more-item.active { border-color: #9e75cd; box-shadow: inset 0 0 0 1px #bda0db; }
  .mobile-more-toggle[aria-expanded="true"] { color: #713eae; background: #fbeaf3; border-radius: 10px; }
  .dark-theme .mobile-more:not([hidden]) { background: #352b48; border-color: #685276; }
  .dark-theme .mobile-more p { color: #eee5fa; }
  .dark-theme .mobile-more-item { background: #4b3b5f; border-color: #665178; color: #f1e7fa; }
  .dark-theme .mobile-more-item .nav-icon { background: #675479; }
}
