:root {
    --color-bg: #F9FEFF;
    --color-card: #FFFFFF;
    --color-border: #E6EEF2;
    --color-primary: #7BDFF2;
    --color-primary-hover: #5EC8E0;
    --color-secondary: #A8DADC;
    --color-accent: #B2F7EF;
    --color-danger: #FF8FA3;
    --color-text-main: #1D3557;
    --color-text-sub: #6C7A89;
    --radius-life: 8px;
    --shadow-life: 0 2px 8px rgba(0, 0, 0, 0.04);
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --app-viewport-height: 100vh;
    --mobile-nav-height: 64px;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body.theme-life {
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

.container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    box-shadow: none;
}

h1 {
    text-align: left;
    color: #1a1a1a;
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

/* New Input Area Styling */
.todo-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    margin-bottom: 18px;
}

.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

/* Custom Select Styling */
.custom-select-container,
.custom-datepicker-container {
    flex: 1;
    position: relative;
    user-select: none;
}

.custom-select-container.is-disabled {
    pointer-events: none;
    opacity: 0.78;
}

.goal-path-container {
    flex: 1;
}

.custom-text-input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    color: #303133;
    box-sizing: border-box;
    outline: none;
}

.custom-text-input:hover {
    border-color: #c0c4cc;
}

.custom-text-input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.theme-life .custom-text-input,
.theme-life .content-row textarea,
.theme-life .report-textarea,
.theme-life .report-date-input,
.theme-life .custom-select-trigger,
.theme-life .custom-datepicker-trigger {
    background-color: var(--color-card);
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    color: var(--color-text-main);
}

.theme-life .custom-text-input::placeholder,
.theme-life .content-row textarea::placeholder,
.theme-life .report-textarea::placeholder {
    color: var(--color-text-sub);
}

.theme-life .custom-text-input:focus,
.theme-life .content-row textarea:focus,
.theme-life .report-textarea:focus,
.theme-life .report-date-input:focus,
.theme-life .custom-select-container.active .custom-select-trigger,
.theme-life .custom-datepicker-container.active .custom-datepicker-trigger {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(123, 223, 242, 0.22);
}

.theme-life .custom-text-input:hover,
.theme-life .content-row textarea:hover,
.theme-life .report-textarea:hover,
.theme-life .report-date-input:hover,
.theme-life .custom-select-trigger:hover,
.theme-life .custom-datepicker-trigger:hover {
    border-color: rgba(29, 53, 87, 0.22);
}

body.modal-open {
    overflow: hidden;
}

.custom-options-list,
.custom-calendar-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 9999; /* Ensure it's above everything */
    display: none;
    box-sizing: border-box;
}

.custom-select-container.active .custom-options-list,
.custom-datepicker-container.active .custom-calendar-popup {
    display: block;
    animation: slideUp 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.custom-select-trigger,
.custom-datepicker-trigger {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    height: 44px;
    cursor: pointer;
    font-size: 14px;
    color: #303133;
    transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    box-sizing: border-box;
    position: relative;
}

.custom-datetime-input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    background-color: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 16px;
    color: #303133;
    box-sizing: border-box;
    outline: none;
}

.custom-datetime-input:hover {
    border-color: #c0c4cc;
}

.custom-datetime-input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #c0c4cc;
    transition: transform 0.2s;
}

.custom-select-container.active .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.datetime-time-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid #ebeef5;
}

.datetime-time-input {
    width: 72px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #303133;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.datetime-time-input:focus {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.datetime-time-sep {
    color: #909399;
    font-size: 14px;
}

.datetime-clear-btn {
    margin-left: auto;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    font-size: 14px;
}

.datetime-clear-btn:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.custom-select-trigger:hover,
.custom-datepicker-trigger:hover {
    border-color: #c0c4cc;
}

.custom-select-container.active .custom-select-trigger,
.custom-datepicker-container.active .custom-datepicker-trigger {
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

/* Custom Options List Styling */
.custom-options-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.custom-option {
    padding: 10px 12px;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.custom-option:last-child {
    margin-bottom: 0;
}

.custom-option:hover {
    background-color: #f5f7fa;
    color: #409eff;
}

.custom-option.selected {
    color: #fff;
    font-weight: 600;
    background-color: #409eff;
}

/* Custom Calendar Popup Styling */
.custom-calendar-popup {
    width: 300px;
    border-radius: 12px;
    padding: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.calendar-header span {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #303133;
}

.calendar-header button {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.calendar-header button:hover {
    border-color: #409eff;
    color: #409eff;
    background: #f0f7ff;
}

.theme-life .calendar-header button {
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
}

.theme-life .calendar-header button:hover {
    border-color: var(--color-primary);
    background: rgba(123, 223, 242, 0.16);
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #909399;
    margin-bottom: 12px;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #606266;
    cursor: pointer;
    border-radius: 50%; /* Circle shape for days */
    transition: all 0.2s;
}

.calendar-day:hover:not(.not-current-month) {
    background-color: #f0f7ff;
    color: #409eff;
}

.calendar-day.selected {
    background-color: #409eff !important;
    color: #fff !important;
    font-weight: 700;
}

.calendar-day.today {
    color: #409eff;
    font-weight: 700;
    position: relative;
}

.calendar-day.today::after {
    content: "";
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background-color: #409eff;
    border-radius: 50%;
}

.calendar-day.not-current-month {
    color: #dcdfe6;
    cursor: default;
}


.input-error {
    border-color: #f56c6c !important;
}

.title-row {
    margin-bottom: 1.5rem;
}

.title-row input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    color: #606266;
    box-sizing: border-box;
}

.theme-life .title-row input {
    background: var(--color-card);
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    color: var(--color-text-main);
}

.theme-life .title-row input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(123, 223, 242, 0.22);
}

.title-row input::placeholder {
    color: #c0c4cc;
}

.content-row {
    margin-bottom: 1.5rem;
}

.content-row textarea {
    width: 100%;
    height: 120px;
    padding: 12px 15px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    outline: none;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    color: #606266;
    box-sizing: border-box;
}

.content-row textarea::placeholder {
    color: #c0c4cc;
}

.button-row {
    display: flex;
    justify-content: flex-end;
}

#add-btn {
    padding: 8px 25px;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, opacity 0.2s;
}

#add-btn,
.doing-btn,
.finish-btn,
.progress-btn,
.onhold-btn,
.activate-btn,
.comment-btn,
.delete-btn,
.submit-btn {
    min-height: 36px;
}

.theme-life #add-btn {
    padding: 0 18px;
    background-color: rgba(123, 223, 242, 0.38);
    color: var(--color-text-main);
    border: 1px solid rgba(94, 200, 224, 0.62);
    border-radius: var(--radius-life);
    font-weight: 700;
    box-shadow: var(--shadow-life);
}

.theme-life #add-btn:hover {
    background-color: rgba(94, 200, 224, 0.56);
}

.theme-life #add-btn:active {
    background-color: rgba(94, 200, 224, 0.7);
}

#add-btn:hover {
    background-color: #66b1ff;
}

#add-btn:active {
    background-color: #3a8ee6;
}

/* Tab styles */
.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ebeef5;
    padding-bottom: 5px;
}

.theme-life .tabs {
    border-bottom-color: var(--color-border);
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #909399;
    transition: all 0.2s;
    position: relative;
}

.theme-life .tab-item {
    color: var(--color-text-sub);
}

.tab-item:hover {
    color: #409eff;
}

.theme-life .tab-item:hover {
    color: var(--color-text-main);
}

.tab-item.active {
    color: #409eff;
}

.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #606266;
    font-size: 12px;
    line-height: 1;
}

.tab-item.active .tab-count {
    background: #ecf5ff;
    color: #409eff;
}

.theme-life .tab-item.active {
    color: var(--color-text-main);
}

.theme-life .tab-count {
    background: var(--color-bg);
    color: var(--color-text-sub);
    border: 1px solid var(--color-border);
}

.theme-life .tab-item.active .tab-count {
    background: var(--color-accent);
    color: var(--color-text-main);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #409eff;
    border-radius: 3px;
}

.theme-life .tab-item.active::after {
    background-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Status styles */
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
    vertical-align: middle;
}

.theme-life .status-tag {
    border-radius: 999px;
    margin-left: 0;
    border: 1px solid var(--color-border);
}

.status-todo { background-color: #f0f2f5; color: #909399; }
.status-doing { background-color: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.status-pending-release { background-color: #f9f0ff; color: #722ed1; border: 1px solid #d3adf7; }
.status-onhold { background-color: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.status-done { background-color: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }

.theme-life .status-todo { background-color: var(--color-bg); color: var(--color-text-sub); }
.theme-life .status-doing { background-color: rgba(123, 223, 242, 0.24); color: var(--color-text-main); }
.theme-life .status-pending-release { background-color: rgba(230, 210, 255, 0.45); color: var(--color-text-main); }
.theme-life .status-onhold { background-color: rgba(168, 218, 220, 0.35); color: var(--color-text-main); }
.theme-life .status-done { background-color: rgba(178, 247, 239, 0.55); color: var(--color-text-main); }

/* Progress section */
.progress-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ebeef5;
}

.theme-life .progress-section {
    border-top-color: var(--color-border);
}

.progress-list {
    font-size: 13px;
    color: #606266;
    margin-bottom: 10px;
}

.progress-item {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.theme-life .progress-list {
    color: var(--color-text-sub);
}

.progress-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #409eff;
}

.theme-life .progress-item::before {
    color: var(--color-primary-hover);
}

.progress-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.progress-input-group input {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
}

.submit-btn {
    padding: 5px 12px;
    background-color: #67c23a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.theme-life .submit-btn {
    background-color: var(--color-primary);
    border-radius: var(--radius-life);
    font-size: 13px;
}

.theme-life .submit-btn:hover {
    background-color: var(--color-primary-hover);
}

.action-btns {
    display: flex;
    gap: 8px;
}

.doing-btn {
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.theme-life .doing-btn {
    background-color: var(--color-primary);
    border-radius: var(--radius-life);
    padding: 0 14px;
    font-weight: 600;
    box-shadow: var(--shadow-life);
}

.theme-life .doing-btn:hover {
    background-color: var(--color-primary-hover);
}

.finish-btn {
    background-color: #67c23a;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.theme-life .finish-btn,
.theme-life .progress-btn,
.theme-life .onhold-btn,
.theme-life .activate-btn,
.theme-life .comment-btn {
    background: rgba(249, 254, 255, 0.9);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 0 12px;
    font-size: 14px;
}

.theme-life .finish-btn:hover,
.theme-life .progress-btn:hover,
.theme-life .onhold-btn:hover,
.theme-life .activate-btn:hover,
.theme-life .comment-btn:hover {
    background: var(--color-accent);
}

.theme-life .progress-btn {
    border-color: rgba(168, 218, 220, 0.7);
    background: rgba(168, 218, 220, 0.28);
}

.theme-life .progress-btn:hover {
    background: rgba(168, 218, 220, 0.42);
}

.theme-life .onhold-btn {
    border-color: rgba(108, 122, 137, 0.5);
    background: rgba(108, 122, 137, 0.12);
}

.theme-life .onhold-btn:hover {
    background: rgba(108, 122, 137, 0.18);
}

.theme-life .finish-btn {
    border-color: rgba(103, 194, 58, 0.55);
    background: rgba(103, 194, 58, 0.16);
}

.theme-life .finish-btn:hover {
    background: rgba(103, 194, 58, 0.22);
}

.progress-btn {
    background-color: #e6a23c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.onhold-btn {
    background-color: #909399;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

.activate-btn {
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

ul.todo-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}


/* List Item Styling */
li {
    background: #ffffff; /* Clean white for items */
    padding: 20px;
    border: 1px solid #e4e7ed;
    border-radius: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #dcdfe6;
}

.todo-head-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    column-gap: 12px;
    margin-bottom: 8px;
}

.todo-tags {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.priority-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    vertical-align: middle;
}

.priority-tag.priority-p0 { background-color: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.priority-tag.priority-p1 { background-color: #fef0e6; color: #e6a23c; border: 1px solid #fdf6ec; }
.priority-tag.priority-p2 { background-color: #f0f9e6; color: #67c23a; border: 1px solid #e1f9d1; }
.priority-tag.priority-p3 { background-color: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }

.theme-life .priority-tag {
    background: #FFE5D9;
    color: #D97706;
    border: 1px solid #FAD2C5;
    border-radius: 999px;
    font-weight: 600;
}

.theme-life .priority-tag.priority-p0 {
    background: rgba(255, 143, 163, 0.24);
    border-color: rgba(255, 143, 163, 0.40);
    color: var(--color-text-main);
}

.todo-title-text {
    font-weight: bold; 
    font-size: 18px; 
    color: #303133;
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

.theme-life .todo-title-text {
    color: var(--color-text-main);
}

.todo-title-priority {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 8px;
}

.todo-content-text {
    font-size: 15px; 
    color: #606266; 
    white-space: pre-wrap; 
    margin-bottom: 12px; 
    line-height: 1.6;
    word-break: break-all; /* Ensure long words wrap */
}

.theme-life .todo-content-text {
    color: var(--color-text-sub);
}

li:last-child {
    margin-bottom: 0;
}

.action-btns {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Align buttons to the right */
    border-top: 1px solid #f0f2f5;
    padding-top: 15px;
    margin-top: 5px;
}

.theme-life .action-btns {
    border-top-color: var(--color-border);
}

.theme-life .action-btns button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-life);
}

.delete-btn {
    background-color: #f56c6c;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.delete-btn:hover {
    background-color: #f78989;
}

.theme-life .delete-btn {
    background-color: var(--color-danger);
    border-radius: var(--radius-life);
    box-shadow: var(--shadow-life);
    padding: 0 14px;
}

.theme-life .delete-btn:hover {
    filter: brightness(0.96);
}


/* Priority styles */
.priority-p0 {
    background-color: #ffcccc; /* Light Red */
}
.priority-p1 {
    background-color: #ffe0b3; /* Light Orange */
}
.priority-p2 {
    background-color: #ffffcc; /* Light Yellow */
}
.priority-p3 {
    background-color: #e6ffe6; /* Light Green */
}

.todo-item-details {
    font-size: 0.8em;
    color: #777;
    margin-top: 5px;
}

.theme-life .todo-item-details {
    color: var(--color-text-sub);
}

.todo-item-details span {
    margin-right: 10px;
}

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.custom-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-icon {
    display: none;
}

.modal-message {
    font-size: 14px;
    color: #303133;
    margin-bottom: 25px;
    line-height: 1.6;
}

.app-toast {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 4000;
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(31, 35, 40, 0.92);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.app-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.modal-btn {
    padding: 10px 40px;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn:hover {
    background-color: #66b1ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.modal-btn:active {
    transform: translateY(0);
}

.modal-btn.cancel:hover {
    background-color: #e4e7ed !important;
    color: #606266 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Comment button for completed todos */
.comment-btn {
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-btn:hover {
    background-color: #66b1ff;
}

.comment-container {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e4e7ed;
}

.comment-list {
    font-size: 13px;
    color: #606266;
    margin-bottom: 10px;
}

.comment-item {
    margin-bottom: 6px;
    padding: 6px 10px;
    background-color: #f5f7fa;
    border-radius: 4px;
    line-height: 1.5;
}

.comment-input-group {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.comment-input-group input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 13px;
}

.comment-submit-btn {
    padding: 6px 12px;
    background-color: #67c23a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.theme-life .comment-submit-btn {
    min-height: 36px;
    padding: 0 14px;
    background-color: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-life);
    font-weight: 600;
    box-shadow: var(--shadow-life);
}

.theme-life .comment-submit-btn:hover {
    background-color: var(--color-primary-hover);
}

/* Disabled button state */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.report-toolbar {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.todo-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1rem;
}

.todo-page-header h1 {
    margin-bottom: 0;
}

.report-menu {
    position: relative;
}

.todo-report-menu {
    flex: 0 0 auto;
    width: 132px;
}

.report-menu-trigger {
    width: 100%;
    min-width: 104px;
    box-sizing: border-box;
}

.report-menu-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.report-menu-option {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #303133;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.report-menu-option:hover {
    background: #ecf5ff;
    color: #409eff;
}

.theme-life .report-menu-popover {
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    box-shadow: var(--shadow-life);
}

.theme-life .report-menu-option {
    color: var(--color-text-main);
}

.theme-life .report-menu-option:hover {
    background: var(--color-accent);
    color: var(--color-text-main);
}

.report-btn {
    padding: 8px 14px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    background-color: #fff;
    color: #303133;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-btn:hover {
    border-color: #409eff;
    color: #409eff;
    box-shadow: 0 4px 12px rgba(64, 158, 255, 0.12);
    transform: translateY(-1px);
}

.theme-life .report-btn {
    min-height: 36px;
    padding: 0 14px;
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
    box-shadow: none;
    transform: none;
}

.theme-life .report-btn:hover {
    border-color: var(--color-primary);
    background: rgba(123, 223, 242, 0.18);
    color: var(--color-text-main);
    box-shadow: none;
}

.report-modal-content {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 760px;
    width: 92%;
    height: min(92vh, calc(var(--app-viewport-height, 100dvh) - 32px));
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.2s ease;
}

.theme-life .report-modal-content {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    box-shadow: var(--shadow-life);
}

.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #ebeef5;
    background: #fafcff;
    flex-shrink: 0;
}

.theme-life .report-modal-header {
    border-bottom-color: var(--color-border);
    background: var(--color-bg);
}

.report-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #303133;
}

.theme-life .report-modal-title {
    color: var(--color-text-main);
}

.report-modal-close {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e4e7ed;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #606266;
    transition: all 0.2s;
}

.report-modal-close:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.report-modal-body {
    padding: 18px 22px 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.report-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.report-field {
    flex: 1;
    min-width: 0;
}

.report-label {
    font-size: 12px;
    color: #909399;
    margin-bottom: 6px;
}

.report-date-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #303133;
    background: #fff;
    box-sizing: border-box;
}

.report-textarea {
    width: 100%;
    border: 1px solid #dcdfe6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #303133;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
    line-height: 1.6;
}

.report-result-view {
    width: 100%;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    padding: 12px 14px;
    box-sizing: border-box;
    background: #fbfcfe;
    min-height: 260px;
    max-height: 52vh;
    overflow: auto;
    color: #303133;
    font-size: 14px;
    line-height: 1.7;
}

.report-result-view:empty::before {
    content: '提交后将在这里显示生成内容';
    color: #c0c4cc;
}

.report-result-view h1,
.report-result-view h2,
.report-result-view h3 {
    margin: 12px 0 8px;
    color: #1f2328;
}

.report-result-view h1 { font-size: 18px; }
.report-result-view h2 { font-size: 16px; }
.report-result-view h3 { font-size: 14px; }

.report-result-view p {
    margin: 8px 0;
}

.report-result-view ul {
    margin: 8px 0 8px 18px;
    padding: 0;
}

.report-result-view li {
    background: transparent;
    border: none;
    padding: 0;
    margin: 6px 0;
    display: list-item;
    gap: 0;
    transition: none;
}

.report-result-view li:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.report-result-view code {
    background: rgba(27, 31, 35, 0.06);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 12px;
}

.report-result-view pre {
    background: #0b1220;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 10px;
    overflow: auto;
    margin: 10px 0;
}

.report-result-view pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.report-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 22px 18px;
    border-top: 1px solid #ebeef5;
    position: sticky;
    bottom: 0;
    flex-shrink: 0;
    background: #fff;
    z-index: 2;
}

.theme-life .report-modal-footer {
    background: var(--color-card);
}

.report-modal-footer-right {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.hidden {
    display: none !important;
}

.app-brand {
    font-weight: 800;
    color: #ffffff;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #5bbcff;
    background: rgba(91, 188, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(91, 188, 255, 0.22);
}

.brand-mark-life {
    color: var(--color-text-main);
    background: rgba(123, 223, 242, 0.28);
    box-shadow: inset 0 0 0 1px rgba(29, 53, 87, 0.10);
}

.brand-logo {
    width: 28px;
    height: 28px;
    display: block;
}

.brand-text {
    min-width: 0;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
}

.theme-life .app-brand {
    color: var(--color-text-main);
    background: transparent;
    border-bottom-color: var(--color-border);
}

.app-shell {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 100vh;
    height: 100vh;
}

.app-sidebar {
    width: 220px;
    flex: 0 0 220px;
    background: linear-gradient(180deg, #001529 0%, #001529 60%, #00101f 100%);
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.theme-life .app-sidebar {
    background: #EAF4F4;
    border-right: 1px solid var(--color-border);
}

.app-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding: 0 8px;
}

.app-nav-item {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 6px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-nav-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 0.9;
}

.app-nav-text {
    flex: 1 1 auto;
    min-width: 0;
}

.app-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.app-nav-item.active {
    background: #1890ff;
    color: #ffffff;
    box-shadow: none;
}

.theme-life .app-nav-item {
    color: var(--color-text-main);
    border-radius: var(--radius-life);
}

.theme-life .app-nav-item:hover {
    background: var(--color-accent);
    color: var(--color-text-main);
}

.theme-life .app-nav-item.active {
    background: var(--color-secondary);
    color: var(--color-text-main);
}

.current-user {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.65);
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
    height: 100vh;
}

.theme-life .app-main {
    background: var(--color-bg);
}

.app-header {
    height: 56px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: none;
}

.theme-life .app-header {
    background: var(--color-bg);
    border-bottom-color: var(--color-border);
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.04);
}

.theme-life .workspace-switch {
    background: var(--color-card);
    border: 1px solid var(--color-border);
}

.workspace-btn {
    height: 32px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.65);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.workspace-btn.active {
    background: #1890ff;
    color: #fff;
}

.theme-life .workspace-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.theme-life .workspace-btn {
    color: var(--color-text-main);
}

.account-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.app-header-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.65);
}

.app-header-icon:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.88);
}

.app-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px;
}

.app-content {
    padding: 24px;
    box-sizing: border-box;
    flex: 1;
    overflow: auto;
    height: calc(100vh - 56px);
}

.theme-life .app-content {
    background: var(--color-bg);
}

.app-page {
    background: #ffffff;
    border-radius: 6px;
    padding: 22px 22px 24px;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
}

.theme-life .app-page,
.theme-life .todo-card,
.theme-life li,
.theme-life .idea-card,
.theme-life .plan-card,
.theme-life .placeholder-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    box-shadow: var(--shadow-life);
}

.theme-life li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-life);
    border-color: var(--color-border);
}

.logout-btn,
.auth-submit {
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #d9d9d9;
    background: #ffffff;
    color: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    font-size: 14px;
}

.logout-btn:hover,
.auth-submit:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.theme-life .logout-btn {
    border-color: var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
}

.theme-life .logout-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-text-main);
    background: rgba(123, 223, 242, 0.18);
}

.auth-view {
    max-width: 360px;
    margin: 0 auto;
    padding: 84px 16px 16px;
    box-sizing: border-box;
}

.auth-view h1 {
    margin: 0 0 16px;
}

.auth-form {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.logout-btn:hover,
.auth-submit:hover {
    border-color: #c0c4cc;
    color: #303133;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-row {
    width: 100%;
}

.auth-error {
    color: #f56c6c;
    font-size: 13px;
    margin-top: 4px;
}

.placeholder-card {
    background: #f8f9fb;
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 18px 16px;
}

.placeholder-title {
    font-size: 16px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 8px;
}

.placeholder-subtitle {
    font-size: 14px;
    color: #606266;
    line-height: 1.6;
}

.plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.plan-title {
    margin: 0 0 6px;
}

.plan-subtitle {
    font-size: 13px;
    color: #909399;
}

.plan-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#plan-quarter-container {
    flex: 0 0 auto;
    min-width: 240px;
}

.plan-row {
    margin-bottom: 12px;
}

.plan-path-title {
    margin: 0;
}

.plan-shell {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    align-items: start;
}

#page-plan {
    padding-bottom: 88px;
}

#page-idea {
    padding-bottom: 18px;
}

.idea-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.idea-title {
    margin: 0 0 6px;
}

.idea-subtitle {
    font-size: 13px;
    color: #909399;
}

.idea-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.idea-input-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
}

.idea-input-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.idea-input-actions .report-btn {
    min-width: 160px;
}

.idea-input {
    min-height: 88px;
    resize: vertical;
}

.idea-section {
    margin-bottom: 16px;
}

.idea-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 10px;
}

.idea-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.idea-item {
    background: #ffffff;
    border: 1px solid #ebeef5;
    border-radius: 12px;
    padding: 12px;
}

.idea-item-content {
    font-size: 14px;
    color: #303133;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 10px;
}

.idea-item-meta {
    font-size: 12px;
    color: #909399;
    margin-bottom: 10px;
}

.idea-item-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.idea-item-actions .report-btn {
    height: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.completed-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.completed-load-more-wrap .report-btn {
    min-width: 140px;
}

.schedule-header,
.schedule-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-calendar-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.schedule-calendar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.schedule-month-btn,
.schedule-today-btn {
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
    cursor: pointer;
    box-shadow: none;
}

.schedule-month-btn {
    width: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.schedule-today-btn {
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
}

.schedule-month-btn:hover,
.schedule-today-btn:hover {
    border-color: var(--color-primary);
    background: rgba(123, 223, 242, 0.16);
}

.schedule-header {
    margin-bottom: 16px;
}

.schedule-title {
    margin-bottom: 6px;
}

.schedule-subtitle {
    color: #909399;
    font-size: 13px;
}

.schedule-hero {
    background: linear-gradient(135deg, rgba(123, 223, 242, 0.28), rgba(178, 247, 239, 0.46));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 18px;
    margin-bottom: 16px;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.schedule-countdown-main {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
}

.schedule-countdown-days {
    font-size: 28px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--color-text-main);
}

.schedule-countdown-sub,
.schedule-empty-hero {
    margin-top: 6px;
    color: var(--color-text-sub);
    font-size: 13px;
}

.schedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 16px;
    align-items: start;
}

.schedule-main,
.schedule-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 16px;
    box-shadow: var(--shadow-life);
}

.schedule-card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.schedule-create-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.schedule-create-head .schedule-card-title {
    margin-bottom: 0;
}

.schedule-form-body {
    margin-top: 14px;
}

.schedule-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.schedule-select-container {
    min-width: 0;
}

.schedule-repeat-date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.schedule-form-actions {
    justify-content: flex-end;
    margin-top: 12px;
}

.schedule-month-label {
    font-weight: 700;
    color: var(--color-text-main);
}

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

.schedule-weekdays {
    margin: 14px 0 8px;
    color: var(--color-text-sub);
    font-size: 12px;
    text-align: center;
}

.schedule-day {
    min-height: 86px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 8px;
    box-sizing: border-box;
    background: rgba(249, 254, 255, 0.72);
    overflow: hidden;
}

.schedule-day.muted {
    border-color: transparent;
    background: transparent;
}

.schedule-day.today {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(123, 223, 242, 0.2);
}

.schedule-day.has-events {
    cursor: pointer;
}

.schedule-day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 6px;
}

.schedule-day-dot,
.schedule-day-more {
    font-size: 11px;
    line-height: 1.3;
    color: var(--color-text-main);
    background: rgba(168, 218, 220, 0.32);
    border-radius: 6px;
    padding: 3px 5px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
}

.schedule-day-dot {
    display: block;
    width: 100%;
    border: 0;
    text-align: center;
    cursor: pointer;
}

.schedule-day-more {
    text-overflow: ellipsis;
}

.schedule-day-dot:hover {
    background: rgba(123, 223, 242, 0.32);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 10px;
    background: rgba(249, 254, 255, 0.7);
}

.schedule-open-item {
    cursor: pointer;
}

.schedule-open-item:hover {
    border-color: rgba(123, 223, 242, 0.75);
    background: rgba(249, 254, 255, 0.96);
}

.schedule-list-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-main);
}

.schedule-list-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--color-text-sub);
}

.schedule-list-days {
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 13px;
}

.schedule-delete-btn {
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-life);
    background: var(--color-danger);
    color: #fff;
    cursor: pointer;
}

.schedule-system-badge {
    flex: 0 0 auto;
    height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: var(--radius-life);
    background: rgba(123, 223, 242, 0.22);
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 700;
}

.schedule-empty {
    color: var(--color-text-sub);
    font-size: 13px;
}

.schedule-detail-content {
    max-width: 520px;
}

.schedule-detail-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-day-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-day-summary-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    padding: 10px;
    background: rgba(249, 254, 255, 0.7);
}

.schedule-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.schedule-detail-row span {
    color: var(--color-text-sub);
    font-size: 13px;
}

.schedule-detail-row strong {
    color: var(--color-text-main);
    font-size: 14px;
    text-align: right;
}

.grass-form-body {
    margin-bottom: 16px;
}

.grass-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.grass-form-actions,
.grass-toolbar,
.grass-tabs,
.grass-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grass-form-actions {
    justify-content: space-between;
    margin-top: 12px;
}

.grass-tab-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.grass-toolbar {
    justify-content: space-between;
    margin-bottom: 14px;
}

.grass-status-tabs {
    margin-bottom: 16px;
}

.grass-tab-content {
    display: block;
}

.grass-section-title {
    margin: 16px 0 10px;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 800;
}

.grass-section-title:first-child {
    margin-top: 0;
}

.grass-tabs {
    flex-wrap: wrap;
}

.grass-tab {
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.grass-tab.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.grass-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-sub);
    font-size: 13px;
    white-space: nowrap;
}

.grass-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.grass-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    padding: 14px;
    box-shadow: var(--shadow-life);
}

.grass-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.grass-card-title {
    color: var(--color-text-main);
    font-weight: 800;
    font-size: 15px;
}

.grass-card-meta,
.grass-plan {
    color: var(--color-text-sub);
    font-size: 13px;
    line-height: 1.6;
}

.grass-card-meta {
    margin-top: 4px;
}

.grass-date {
    flex: 0 0 auto;
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 700;
    background: rgba(123, 223, 242, 0.22);
    border-radius: var(--radius-life);
    padding: 4px 8px;
}

.grass-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.grass-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: var(--radius-life);
    background: rgba(178, 247, 239, 0.5);
    color: var(--color-text-main);
    font-size: 12px;
    font-weight: 700;
}

.grass-plan {
    margin-top: 12px;
    white-space: pre-wrap;
}

.grass-large-textarea {
    min-height: 260px;
}

.grass-actions {
    justify-content: flex-end;
    margin-top: 14px;
    flex-wrap: wrap;
}

.grass-schedule-sync-row {
    margin-top: 14px;
}

.grass-rating {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.grass-rating-option {
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-life);
    background: var(--color-card);
    color: var(--color-text-main);
    cursor: pointer;
    font-weight: 700;
}

.grass-rating-option.active {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
}

.grass-rating-text {
    margin-top: 12px;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 800;
}

.plan-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
}

.plan-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 10px;
}

.plan-goals {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-goal-item {
    border: 1px solid #e4e7ed;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-goal-item:hover {
    border-color: #c0c4cc;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.plan-goal-item.active {
    border-color: #1890ff;
    box-shadow: 0 8px 24px rgba(24, 144, 255, 0.18);
}

.plan-goal-title {
    font-size: 14px;
    font-weight: 700;
    color: #303133;
    margin-bottom: 4px;
    word-break: break-word;
}

.plan-goal-meta {
    font-size: 12px;
    color: #909399;
}

.plan-empty {
    padding: 12px;
    border: 1px dashed #e4e7ed;
    border-radius: 12px;
    background: #fbfcfe;
    color: #909399;
    font-size: 13px;
}

.plan-path-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.plan-paths {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-path-item {
    border: 1px solid #e4e7ed;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.plan-path-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.plan-path-row:last-child {
    margin-bottom: 0;
}

.plan-path-field {
    min-width: 0;
}

.plan-path-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.plan-path-item .report-textarea {
    min-height: 96px;
}

.plan-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding-top: 14px;
    pointer-events: none;
}

.plan-footer-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border: 1px solid #ebeef5;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.plan-footer-left {
    flex: 1;
    min-width: 0;
    color: #909399;
    font-size: 12px;
}

.plan-footer-right {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.report-btn.btn-primary {
    background-color: #409eff;
    border-color: #409eff;
    color: #fff;
}

.theme-life .report-btn.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-life);
}

.report-btn.btn-primary:hover {
    background-color: #1677ff;
    border-color: #1677ff;
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.2);
    transform: translateY(-1px);
}

.theme-life .report-btn.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    box-shadow: var(--shadow-life);
    transform: none;
}

.report-btn.btn-secondary {
    background-color: #fff;
}

.report-btn.btn-secondary:hover {
    border-color: #409eff;
    color: #409eff;
}

.theme-life .report-btn.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-text-main);
}

.report-btn.btn-danger {
    border-color: #fde2e2;
    background: #fef0f0;
    color: #f56c6c;
}

.theme-life .report-btn.btn-danger {
    border-color: var(--color-danger);
    background: var(--color-danger);
    color: #fff;
    box-shadow: var(--shadow-life);
}

.report-btn.btn-danger:hover {
    border-color: #f56c6c;
    color: #f56c6c;
    box-shadow: 0 6px 16px rgba(245, 108, 108, 0.16);
}

.theme-life .report-btn.btn-danger:hover {
    border-color: var(--color-danger);
    color: #fff;
    filter: brightness(0.96);
    box-shadow: var(--shadow-life);
}

.custom-option-sub {
    font-size: 12px;
    color: #909399;
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-word;
}

.theme-life .custom-option-sub {
    color: var(--color-text-sub);
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        min-height: var(--app-viewport-height, 100dvh);
        overflow-y: auto;
        overscroll-behavior-x: none;
    }

    .container,
    .app-view {
        min-height: var(--app-viewport-height, 100dvh);
    }

    input,
    textarea,
    select,
    .custom-text-input,
    .custom-select-trigger,
    .custom-datepicker-trigger,
    .custom-datetime-input,
    .datetime-time-input,
    .report-date-input,
    .report-textarea,
    .idea-input {
        font-size: 16px !important;
        line-height: 1.35;
    }

    .app-shell {
        flex-direction: column;
        height: auto;
        min-height: var(--app-viewport-height, 100dvh);
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        flex: none;
        z-index: 900;
        flex-direction: row;
        align-items: center;
        box-sizing: border-box;
        background: linear-gradient(180deg, #001529 0%, #00101f 100%);
        transform: translateZ(0);
    }

    .theme-life .app-sidebar {
        background: #EAF4F4;
        border-top: 1px solid var(--color-border);
    }

    .app-brand {
        display: none;
    }

    .app-nav {
        flex: 1;
        height: var(--mobile-nav-height);
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        margin: 0;
        padding: 8px 10px;
        box-sizing: border-box;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }

    .app-nav-item {
        text-align: center;
        height: 48px;
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 10px;
        flex: 1 1 0;
        min-width: 64px;
        width: auto;
        white-space: nowrap;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
    }

    .app-nav-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .app-main {
        height: auto;
        min-height: var(--app-viewport-height, 100dvh);
    }

    .app-header {
        padding: 0 12px;
    }

    .app-header-right {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }

    .current-user {
        display: none;
    }

    .logout-btn {
        height: 34px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .app-content {
        padding: 12px;
        height: auto;
        min-height: calc(var(--app-viewport-height, 100dvh) - 56px);
        overflow: auto;
        padding-bottom: calc(var(--mobile-nav-height) + 28px + env(safe-area-inset-bottom));
    }

    .app-page {
        padding: 14px 14px 16px;
        border-radius: 10px;
    }

    h1 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .tabs {
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-item {
        padding: 10px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .todo-card {
        padding: 14px;
        border-radius: 10px;
    }

    .input-row {
        flex-direction: column;
        gap: 12px;
    }

    .title-row,
    .content-row {
        margin-bottom: 12px;
    }

    #add-btn {
        width: 100%;
        border-radius: 10px;
        padding: 10px 14px;
    }

    ul.todo-list {
        margin-top: 14px;
    }

    li {
        padding: 14px;
        border-radius: 12px;
    }

    .todo-title-text {
        font-size: 16px;
        white-space: normal;
    }

    .todo-head-row {
        align-items: flex-start;
    }

    .todo-tags {
        gap: 8px;
    }

    .todo-content-text {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .todo-page-header {
        align-items: center;
        flex-direction: row;
        gap: 10px;
    }

    .todo-report-menu {
        flex: 0 0 auto;
    }

    .report-menu-popover {
        left: auto;
        right: 0;
        width: 100%;
    }

    .action-btns {
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 6px;
        width: 100%;
    }

    .doing-btn,
    .finish-btn,
    .progress-btn,
    .onhold-btn,
    .activate-btn,
    .delete-btn,
    .comment-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .theme-life .action-btns button {
        padding: 0 6px;
    }

    .report-toolbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .report-btn {
        flex: 1 1 auto;
        min-width: 110px;
    }

    .idea-item-actions {
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 6px;
    }

    .idea-item-actions .report-btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .report-modal-content {
        width: calc(100% - 24px);
        height: calc(var(--app-viewport-height, 100dvh) - 24px);
        max-height: calc(var(--app-viewport-height, 100dvh) - 24px);
    }

    .report-modal-header {
        padding: 14px 14px;
    }

    .report-modal-body {
        padding: 14px 14px 10px;
    }

    .report-form-row {
        flex-direction: column;
        gap: 10px;
    }

    .report-modal-footer {
        padding: 12px 14px 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .report-modal-footer-right {
        width: 100%;
        justify-content: stretch;
    }

    .report-modal-footer-right .modal-btn {
        flex: 1;
    }

    .custom-calendar-popup {
        width: min(320px, calc(100vw - 24px));
    }

    .plan-header {
        flex-direction: column;
        align-items: stretch;
    }

    .plan-header-right {
        justify-content: flex-start;
    }

    #plan-quarter-container {
        min-width: 100%;
    }

    .plan-shell {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan-path-row {
        grid-template-columns: 1fr;
    }

    .plan-footer {
        bottom: calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom));
    }

    .plan-footer-bar {
        border-radius: 12px;
        padding: 10px 10px;
    }

    .idea-input-actions .report-btn {
        width: 100%;
    }

    .schedule-header {
        align-items: stretch;
    }

    .schedule-calendar-head {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .schedule-calendar-actions {
        gap: 6px;
    }

    .schedule-month-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .schedule-today-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    .schedule-month-label {
        text-align: center;
        font-size: 14px;
    }

    .schedule-layout {
        grid-template-columns: 1fr;
    }

    .schedule-form-grid {
        grid-template-columns: 1fr;
    }

    .schedule-create-head {
        align-items: stretch;
    }

    .schedule-repeat-date-fields {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-hero {
        padding: 14px;
        min-height: 84px;
    }

    .schedule-countdown-days {
        font-size: 24px;
    }

    .schedule-calendar-grid,
    .schedule-weekdays {
        gap: 5px;
    }

    .schedule-day {
        min-height: 68px;
        padding: 6px;
    }

    .schedule-day-dot,
    .schedule-day-more {
        font-size: 10px;
        padding: 2px 4px;
    }

    .schedule-detail-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .schedule-detail-row strong {
        text-align: left;
    }

    .grass-form-grid,
    .grass-grid {
        grid-template-columns: 1fr;
    }

    .grass-toolbar,
    .grass-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .grass-tabs {
        width: 100%;
    }

    .grass-tab {
        flex: 1;
    }
}
