* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 280px 40px 240px;
    display: flex;
    justify-content: center;
    align-items: flex-start;  
    
}

.container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 8px;
    font-size: 2.2em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 30px;
    font-size: 1em;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    padding: 10px 0;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.weekday.weekend {
    color: #e74c3c;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    background: #f7f8fc;
    border-radius: 12px;
    min-height: 110px;
    padding: 8px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.day:hover {
    background: #eef0f8;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.day.empty {
    background: transparent;
    pointer-events: none;
}

.day.weekend {
    background: #fdf0ef;
}

.day.weekend:hover {
    background: #fbe4e2;
}

.day-number {
    font-weight: 700;
    color: #333;
    font-size: 1em;
    margin-bottom: 4px;
}

.day.weekend .day-number {
    color: #e74c3c;
}

.day.today {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
}

.day.today .day-number {
    color: #fff;
}

.day.today:hover {
    background: linear-gradient(100deg, #FFC0CB, #C71585);
}

.plan-input {
    flex: 1;
    width: 100%;
    border: none;
    background: transparent;
    resize: none;
    font-family: inherit;
    font-size: 0.78em;
    color: #555;
    outline: none;
    line-height: 1.3;
    padding: 2px;
}

.plan-input::placeholder {
    color: #bbb;
    font-style: italic;
}

.day.today .plan-input {
    color: #fff;
}

.day.today .plan-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer {
    text-align: center;
    margin-top: 30px;
    color: #999;
    font-size: 0.85em;
}

body.dark-theme {
    --card: #1e1424;
    --border: #3a2a44;
    --text: #f0e6f5;
    --text-dim: #b09cba;
    --text-faint: #8a7a94;
    --purple-soft: #2a1f35;
    --pink-soft: #3a1f2f;
    --orange-soft: #33203a;

    background: linear-gradient(135deg, #1a0f22 0%, #241630 50%, #1e1428 100%);
}

body.dark-theme .day {
    background: #251a2e;
}

body.dark-theme .day.weekend {
    background: #2a1a2e;
}

body.dark-theme .day.today {
    background: linear-gradient(135deg, #4a1f3a, #3a2a5e);
}

body.dark-theme .benefit-card:nth-child(1) { background: #2e1a25; }
body.dark-theme .benefit-card:nth-child(2) { background: #2a1f35; }
body.dark-theme .benefit-card:nth-child(3) { background: #301a28; }
body.dark-theme .benefit-card:nth-child(4) { background: #241a35; }
body.dark-theme .benefit-card:nth-child(5) { background: #2e1a2a; }
body.dark-theme .benefit-card:nth-child(6) { background: #2a1a35; }

body.dark-theme .tips-box {
    background: #2e2030;
    border-color: #4a3050;
}

body.dark-theme .tips-box h3 { color: #d8a8d8; }
body.dark-theme .tips-box li { color: #c8a8c8; }

body.dark-theme .day-modal {
    background: #1e1424;
}

body.dark-theme .task-item,
body.dark-theme .step,
body.dark-theme .benefit-card {
    background: #251a2e;
}

body.dark-theme .task-time-input {
    background: #1a0f22;
    color: var(--text);
}

body.dark-theme .day-modal-textarea {
    background: #251a2e;
    color: var(--text);
}

body.dark-theme .day-modal-btn {
    background: #251a2e;
    color: var(--text);
}

body.dark-theme .empty-tasks {
    background: #251a2e;
}

/* Shared theme selector and palettes for every page. */
.theme-control {
    position: relative;
    width: 100%;
    color: #2d1520;
    font: 600 14px 'Segoe UI', sans-serif;
}

.theme-settings-button {
    width: 100%;
    padding: 11px 12px;
    color: inherit;
    background: #f5f0ff;
    border: 1px solid #e0cfe8;
    border-radius: 12px;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.theme-settings-button:hover { border-color: var(--accent); }

.theme-picker {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e8d0d9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 15, 30, .12);
}

.theme-control.is-open .theme-picker { display: flex; flex-direction: column; gap: 8px; }

.theme-picker select {
    width: 100%;
    max-width: 130px;
    padding: 5px 8px;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 8px;
    font: inherit;
}

.settings-picker { display: flex; flex-direction: column; gap: 8px; }
.theme-control.in-sidebar { margin-top: auto; padding-top: 14px; }
.theme-control.floating-settings { position: fixed; right: 16px; bottom: 16px; z-index: 1000; width: 180px; }

body[data-text-size="small"] { font-size: 14px; }
body[data-text-size="normal"] { font-size: 16px; }
body[data-text-size="large"] { font-size: 18px; }
body[data-text-size="small"] :is(p, li, .subtitle, .day-preview, .right-task-title, .step-content p) { font-size: 0.94em; }
body[data-text-size="large"] :is(p, li, .subtitle, .day-preview, .right-task-title, .step-content p) { font-size: 1.08em; }
body[data-text-size="large"] .left-menu-item,
body[data-text-size="large"] .theme-control { font-size: 1.02em; }

body[data-theme="dark"] {
    --card: #211b2b;
    --border: #453950;
    --text: #f3edf7;
    --text-dim: #c0b3ca;
    --text-faint: #9a8ba5;
    --accent: #ed8bb5;
    --accent-2: #c69be8;
    --accent-3: #c69be8;
    --purple-soft: #33283e;
    --pink-soft: #3b2939;
    --green: #5ee0a0;
    --yellow: #ffd166;
    --red: #ff758f;
    color: var(--text);
    background: linear-gradient(135deg, #17131e, #282033 55%, #201a2b) !important;
}

body[data-theme="dark"] .container,
body[data-theme="dark"] .day-modal,
body[data-theme="dark"] .left-menu,
body[data-theme="dark"] .right-menu {
    color: var(--text);
    background: var(--card) !important;
    border-color: var(--border);
}

body[data-theme="dark"] .left-holidays,
body[data-theme="dark"] .right-menu-load,
body[data-theme="dark"] .right-task,
body[data-theme="dark"] .right-menu-stats,
body[data-theme="dark"] .right-load-track,
body[data-theme="dark"] .day-mini-bar,
body[data-theme="dark"] .load-track,
body[data-theme="dark"] .day-load-track-horizontal {
    color: var(--text);
    background: #30273a !important;
    border-color: var(--border);
}

body[data-theme="dark"] .left-holiday-name,
body[data-theme="dark"] .right-stat-label,
body[data-theme="dark"] .right-stat-value,
body[data-theme="dark"] .right-task-title { color: var(--text); }

body[data-theme="dark"] :is(.benefit-card, .step, .burnout-step, .emergency-box, .final-note,
    .tips-box, .day, .task-item, .right-task, .empty-tasks, .day-modal-btn) {
    color: var(--text);
    background: #30273a !important;
    border-color: var(--border);
}

body[data-theme="dark"] .day-modal-overlay { background: rgba(10, 8, 14, .78); }
body[data-theme="dark"] .task-item,
body[data-theme="dark"] .empty-tasks,
body[data-theme="dark"] .day-load-section,
body[data-theme="dark"] .day-load-track-horizontal,
body[data-theme="dark"] .day-modal-btn:not(.primary),
body[data-theme="dark"] .task-time-input,
body[data-theme="dark"] .task-number,
body[data-theme="dark"] .task-priority,
body[data-theme="dark"] .task-delete,
body[data-theme="dark"] .add-task-btn,
body[data-theme="dark"] .task-time-hours {
    color: var(--text) !important;
    background: #30273a !important;
    border-color: var(--border) !important;
}

body[data-theme="dark"] .task-input,
body[data-theme="dark"] .day-load-info,
body[data-theme="dark"] .task-time-label,
body[data-theme="dark"] .task-time-unit,
body[data-theme="dark"] .day-load-status { color: var(--text-dim) !important; }

body[data-theme="dark"] .task-priority.is-active,
body[data-theme="dark"] .task-item.is-priority { border-color: #e6b86b !important; }
body[data-theme="dark"] .task-item.is-priority { background: #3b3030 !important; }
body[data-theme="dark"] .task-priority.is-active { color: #ffd479 !important; }
body[data-theme="dark"] .task-repeat-select { color: var(--text) !important; background: #211b2b !important; border-color: var(--border) !important; }

body[data-theme="dark"] :is(p, li, h1, h2, h3, .day-number, .right-task-title, .step-content p) {
    color: var(--text);
}

body[data-theme="dark"] .theme-control {
    color: #f3edf7;
}

body[data-theme="dark"] .theme-picker,
body[data-theme="dark"] .theme-settings-button {
    color: #f3edf7;
    background: #211b2b;
    border-color: #453950;
}

body[data-theme="warm"] {
    --card: #fffaf0;
    --border: #e6d4b6;
    --text: #443524;
    --text-dim: #806b50;
    --text-faint: #a89578;
    --accent: #a85e32;
    --accent-2: #bb7845;
    --accent-3: #95613a;
    --purple-soft: #f4e8d2;
    --pink-soft: #f7e6d6;
    --green: #43845c;
    --yellow: #be831d;
    --red: #b94e4e;
    color: var(--text);
    background: linear-gradient(135deg, #f6ead5, #ead8b9 55%, #f4e5cb) !important;
}

body[data-theme="warm"] .container,
body[data-theme="warm"] .day-modal,
body[data-theme="warm"] .left-menu,
body[data-theme="warm"] .right-menu {
    color: var(--text);
    background: var(--card) !important;
    border-color: var(--border);
}

body[data-theme="warm"] .left-holidays,
body[data-theme="warm"] .right-menu-load,
body[data-theme="warm"] .right-task,
body[data-theme="warm"] .right-menu-stats,
body[data-theme="warm"] .right-load-track,
body[data-theme="warm"] .day-mini-bar,
body[data-theme="warm"] .load-track,
body[data-theme="warm"] .day-load-track-horizontal {
    color: var(--text);
    background: #f2e5ce !important;
    border-color: var(--border);
}

body[data-theme="dark"] .load-bar,
body[data-theme="warm"] .load-bar {
    background: transparent !important;
    border: none !important;
}

body[data-theme="warm"] .left-holiday-name,
body[data-theme="warm"] .right-stat-label,
body[data-theme="warm"] .right-stat-value,
body[data-theme="warm"] .right-task-title { color: var(--text); }

body[data-theme="warm"] :is(.benefit-card, .step, .burnout-step, .emergency-box, .final-note,
    .tips-box, .day, .task-item, .right-task, .empty-tasks, .day-modal-btn) {
    color: var(--text);
    background: #f2e5ce !important;
    border-color: var(--border);
}

body[data-theme="warm"] .day-modal-overlay { background: rgba(75, 54, 32, .52); }
body[data-theme="warm"] .task-item,
body[data-theme="warm"] .empty-tasks,
body[data-theme="warm"] .day-load-section,
body[data-theme="warm"] .day-load-track-horizontal,
body[data-theme="warm"] .day-modal-btn:not(.primary),
body[data-theme="warm"] .task-time-input,
body[data-theme="warm"] .task-number,
body[data-theme="warm"] .task-priority,
body[data-theme="warm"] .task-delete,
body[data-theme="warm"] .add-task-btn,
body[data-theme="warm"] .task-time-hours {
    color: var(--text) !important;
    background: #f2e5ce !important;
    border-color: var(--border) !important;
}

body[data-theme="warm"] .task-input,
body[data-theme="warm"] .day-load-info,
body[data-theme="warm"] .task-time-label,
body[data-theme="warm"] .task-time-unit,
body[data-theme="warm"] .day-load-status { color: var(--text-dim) !important; }

body[data-theme="warm"] .task-priority.is-active,
body[data-theme="warm"] .task-item.is-priority { border-color: #b87922 !important; }
body[data-theme="warm"] .task-item.is-priority { background: #f3dfb6 !important; }
body[data-theme="warm"] .task-priority.is-active { color: #8f5716 !important; }
body[data-theme="warm"] .task-repeat-select { color: var(--text) !important; background: #fffaf0 !important; border-color: var(--border) !important; }

body[data-theme="warm"] :is(p, li, h1, h2, h3, .day-number, .right-task-title, .step-content p) {
    color: var(--text);
}

body[data-theme="warm"] .theme-control {
    color: #443524;
}

body[data-theme="warm"] .theme-picker,
body[data-theme="warm"] .theme-settings-button {
    color: #443524;
    background: #fffaf0;
    border-color: #e6d4b6;
}

@media (max-width: 600px) {
    .theme-control.floating-settings { right: 8px; bottom: 8px; }
}

.left-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #ffffff;
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    z-index: 100;
    overflow-y: auto;
}

.left-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px 20px;
    border-bottom: 1.5px dashed var(--border);
    margin-bottom: 20px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b83a6b, #6a3d9e);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'A Dream De La Danno', 'Segoe UI', sans-serif;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
}

.left-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.left-holidays {
    padding: 12px;
    margin: 8px 0 14px;
    background: #f5f0ff;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.left-holidays-title {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.82em;
    font-weight: 800;
}

.left-holidays-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.left-holiday {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.left-holiday-date {
    color: var(--accent);
    font-size: 0.72em;
    font-weight: 800;
}

.left-holiday-name {
    color: var(--text);
    font-size: 0.78em;
    line-height: 1.3;
}

.logo-mark {
    object-fit: contain;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.right-notes {
    margin-top: 2px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.right-notes summary {
    padding: 10px 11px;
    color: var(--accent);
    background: var(--pink-soft);
    font-size: 0.8em;
    font-weight: 800;
    cursor: pointer;
    list-style-position: inside;
}

.right-notes-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.right-notes-form input {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: 0.75em 'Segoe UI', sans-serif;
}

.right-notes-form input::placeholder { color: var(--text-faint); }

.right-notes-form button {
    padding: 7px 9px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    font: 700 0.75em 'Segoe UI', sans-serif;
    cursor: pointer;
}

.right-notes-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding: 0 8px 8px;
}

.right-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75em;
    line-height: 1.35;
}

.right-note-content { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.right-note a { color: var(--accent); font-weight: 700; }
.right-note-delete {
    flex: 0 0 auto;
    padding: 0 3px;
    color: var(--text-faint);
    background: transparent;
    border: 0;
    font-size: 1.15em;
    cursor: pointer;
}

.right-notes-empty { padding: 2px 3px; color: var(--text-faint); font-size: 0.72em; }

body[data-theme="dark"] .right-notes,
body[data-theme="dark"] .right-note { color: var(--text); background: #30273a; border-color: var(--border); }
body[data-theme="dark"] .right-notes summary { color: var(--text); background: #3b2939; }
body[data-theme="dark"] .right-notes-form input { color: var(--text); background: #211b2b; border-color: var(--border); }

body[data-theme="warm"] .right-notes,
body[data-theme="warm"] .right-note { color: var(--text); background: #f2e5ce; border-color: var(--border); }
body[data-theme="warm"] .right-notes summary { color: var(--text); background: #f7e6d6; }
body[data-theme="warm"] .right-notes-form input { color: var(--text); background: #fffaf0; border-color: var(--border); }

.right-goals {
    flex: 0 0 auto;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.right-goals summary {
    padding: 10px 12px;
    color: var(--accent);
    background: var(--pink-soft);
    font-size: 0.82em;
    font-weight: 800;
    cursor: pointer;
}

.right-goals-form { display: flex; flex-direction: column; gap: 6px; padding: 9px; }
.right-goals-form input[type="text"],
.right-goals-form input[type="date"] {
    width: 100%;
    min-width: 0;
    padding: 8px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font: 0.76em 'Segoe UI', sans-serif;
}
.right-goals-form input::placeholder { color: var(--text-faint); }
.goal-deadline-label { color: var(--text-dim); font-size: 0.7em; }
.right-goals-form button {
    padding: 8px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 8px;
    font: 700 0.76em 'Segoe UI', sans-serif;
    cursor: pointer;
}
.right-goals-list { display: flex; flex-direction: column; gap: 6px; max-height: 190px; overflow-y: auto; padding: 0 9px 9px; }
.goal-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 9px;
}
.goal-item input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent); }
.goal-content { flex: 1; min-width: 0; }
.goal-title { font-size: 0.77em; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.goal-item.is-done .goal-title { color: var(--text-faint); text-decoration: line-through; }
.goal-deadline { display: block; margin-top: 3px; color: var(--text-dim); font-size: 0.68em; }
.goal-delete { flex: 0 0 auto; padding: 0 3px; color: var(--text-faint); background: transparent; border: 0; font-size: 1.1em; cursor: pointer; }
.goals-empty { padding: 2px; color: var(--text-faint); font-size: 0.73em; }

body[data-theme="dark"] .right-goals,
body[data-theme="dark"] .goal-item { color: var(--text); background: #30273a; border-color: var(--border); }
body[data-theme="dark"] .right-goals summary { color: var(--text); background: #3b2939; }
body[data-theme="dark"] .right-goals-form input { color: var(--text); background: #211b2b; border-color: var(--border); }
body[data-theme="warm"] .right-goals,
body[data-theme="warm"] .goal-item { color: var(--text); background: #f2e5ce; border-color: var(--border); }
body[data-theme="warm"] .right-goals summary { color: var(--text); background: #f7e6d6; }
body[data-theme="warm"] .right-goals-form input { color: var(--text); background: #fffaf0; border-color: var(--border); }

.left-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px 12px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1.5px solid #e0cfe8;
}

.left-menu-item:hover {
    background: var(--pink-soft);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateX(3px);
}

.left-menu-item.active {
    background: linear-gradient(135deg, #b83a6b, #6a3d9e);
    color: #ffffff;
    border-color: transparent;
}

.left-menu-item.active:hover {
    background: linear-gradient(135deg, #b83a6b, #d44d7f);
    color: #ffffff;
}

.left-menu-icon {
    font-size: 1.15em;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.left-menu-label {
    flex: 1;
}

.left-menu-footer {
    padding-top: 16px;
    border-top: 1.5px dashed var(--border);
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.left-menu-date {
    font-size: 0.78em;
    color: var(--text-dim);
    font-weight: 600;
    padding: 0 8px;
    line-height: 1.5;
}

.left-menu-emergency {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #c1272d;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 10px;
    border-radius: 12px;
    font-size: 0.82em;
    font-weight: 800;
    text-align: center;
    line-height: 1.2;
    transition: none;
    box-shadow: none;
    border: none;
}

.left-menu-emergency:hover {
    background: #a01f24;
}

.left-menu-emergency:active {
    background: #8a1a1f;
}

.emergency-icon {
    font-size: 1.4em;
    line-height: 1;
}

.emergency-text {
    font-size: 0.95em;
}

.right-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    border-left: 1.5px solid var(--border);
    padding: 24px 16px;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.right-menu-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed var(--border);
}

.right-menu-label {
    font-size: 0.72em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.right-menu-date {
    font-family: 'A Dream De La Danno', 'Segoe UI', sans-serif;
    font-size: 1.2em;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.right-menu-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.right-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85em;
}

.right-stat-label {
    color: var(--text-dim);
    font-weight: 600;
}

.right-stat-value {
    font-weight: 800;
    color: var(--text);
}

.right-stat-done {
    color: var(--green);
}

.right-menu-load {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #fce8f0;
    border-radius: 12px;
}

.right-search {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.right-search-label {
    color: var(--accent);
    font-size: 0.82em;
    font-weight: 800;
}

.right-search-input {
    width: 100%;
    padding: 10px 11px;
    color: var(--text);
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

.right-search-input::placeholder { color: var(--text-faint); }

.right-search-results {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 34vh;
    overflow-y: auto;
}

.right-search-result {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 9px 10px;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
}

.right-search-result:hover { border-color: var(--accent); background: var(--pink-soft); }
.right-search-result-title { font-size: 0.84em; font-weight: 750; overflow-wrap: anywhere; }
.right-search-result-details { color: var(--text-dim); font-size: 0.72em; line-height: 1.35; }
.right-search-empty { padding: 8px 4px; color: var(--text-faint); font-size: 0.78em; }

.right-load-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    font-weight: 700;
    color: var(--accent);
}

.right-load-track {
    height: 8px;
    background: #e8d0d9;
    border-radius: 10px;
    overflow: hidden;
}

.right-load-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: var(--green);
    transition: width 0.4s ease, 
    background 0.4s ease;
}

.right-load-fill.level-low { background: var(--green); }
.right-load-fill.level-mid { background: var(--yellow); }
.right-load-fill.level-high { background: var(--red); }

.right-menu-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
}

.quote-card {
    flex: 0 0 auto;
    padding: 14px;
    color: var(--text);
    background: var(--pink-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.quote-card.is-changing { opacity: 0; transform: translateY(4px); }
.quote-card-label { margin-bottom: 8px; color: var(--accent); font-size: 0.68em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; }
.quote-text { margin: 0 0 10px; color: var(--text); font-size: 0.83em; font-style: italic; line-height: 1.5; }
.quote-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quote-author { color: var(--text-dim); font-size: 0.73em; font-weight: 750; }
.quote-source { color: var(--accent); font-size: 0.68em; font-weight: 700; text-decoration: none; }
.quote-source:hover { text-decoration: underline; }
.quote-controls { display: flex; gap: 5px; }
.quote-controls button {
    width: 26px;
    height: 26px;
    color: var(--accent);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
}
.quote-controls button:hover { border-color: var(--accent); }

body[data-theme="dark"] .quote-card { color: var(--text); background: #30273a; border-color: var(--border); }
body[data-theme="dark"] .quote-text { color: var(--text); }
body[data-theme="dark"] .quote-controls button { color: var(--text); background: #211b2b; border-color: var(--border); }
body[data-theme="warm"] .quote-card { color: var(--text); background: #f2e5ce; border-color: var(--border); }
body[data-theme="warm"] .quote-text { color: var(--text); }
body[data-theme="warm"] .quote-controls button { color: var(--text); background: #fffaf0; border-color: var(--border); }

.right-menu-tasks::-webkit-scrollbar {
    width: 5px;
}

.right-menu-tasks::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.right-task {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fdfaff;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

.right-task:hover {
    border-color: var(--accent);
    background: #fce8f0;
}

.right-task-checkbox {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--accent);
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
    font-size: 0.85em;
    font-weight: 800;
    color: #ffffff;
}

.right-task-checkbox:hover {
    background: #fce8f0;
}

.right-task.done .right-task-checkbox {
    background: var(--accent);
}

.right-task-checkbox::after {
    content: '✓';
    opacity: 0;
    transition: opacity 0.2s ease;
}

.right-task.done .right-task-checkbox::after {
    opacity: 1;
}

.right-task-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.right-task-title {
    font-size: 0.85em;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

.right-task.done .right-task-title {
    text-decoration: line-through;
    color: var(--text-faint);
}

.right-task-time {
    font-size: 0.75em;
    color: var(--accent);
    font-weight: 700;
}

.right-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-faint);
    font-size: 0.85em;
    font-style: italic;
}

@media (max-width: 1200px) {
    .right-menu {
        display: none;
    }

    body {
        padding-right: 20px !important;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.6em;
    }

    .day {
        min-height: 80px;
        padding: 5px;
    }

    .day-number {
        font-size: 0.85em;
    }

    .plan-input {
        font-size: 0.7em;
    }

    .weekday {
        font-size: 0.75em;
    }
}
