.todo-widget__popup {
    --todo-note-surface: rgba(255, 255, 255, 0.06);
    --todo-note-border: rgba(255, 255, 255, 0.08);
    --todo-note-text: #f4f6fb;
    --todo-note-placeholder: rgba(255, 255, 255, 0.34);
    --todo-note-summary-text: rgba(255, 255, 255, 0.72);
    --todo-note-summary-hover: rgba(255, 255, 255, 0.10);
    --todo-item-note-color: rgba(255, 255, 255, 0.48);
    --todo-item-note-completed: #aeb4bd;
    --todo-subtask-surface: rgba(255, 255, 255, 0.04);
    --todo-subtask-border: rgba(255, 255, 255, 0.08);
    --todo-subtask-text: rgba(255, 255, 255, 0.78);
    --todo-subtask-muted: rgba(255, 255, 255, 0.42);
    --todo-subtask-check-surface: rgba(255, 255, 255, 0.08);
    --todo-subtask-check-border: rgba(255, 255, 255, 0.18);
    --todo-subtask-check-active: linear-gradient(135deg, #4b93ff 0%, #6c5dff 100%);
    --todo-subtask-check-active-border: rgba(77, 144, 255, 0.42);
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 82px 24px 24px;
    opacity: 0;
    pointer-events: none;
}

.todo-widget__popup[hidden] {
    display: none !important;
}

.todo-widget__popup:target {
    display: flex !important;
    opacity: 1;
    pointer-events: none;
}

.todo-widget__popup.is-open {
    opacity: 1;
    pointer-events: none;
}

.todo-widget__dialog {
    position: relative;
    z-index: 1;
    container-type: inline-size;
    pointer-events: auto;
    width: min(calc(100vw - 32px), var(--todo-popup-width, 520px));
    transform: translateY(calc(-100% - 46px));
    opacity: 0;
    transform-origin: top center;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.todo-widget__popup.is-open .todo-widget__dialog {
    transform: translateY(0);
    opacity: 1;
}

.todo-widget__popup:target .todo-widget__dialog {
    transform: translateY(0);
    opacity: 1;
}

.todo-widget__popup--theme-memo {
    --todo-note-surface: rgba(255, 255, 255, 0.72);
    --todo-note-border: rgba(148, 163, 184, 0.26);
    --todo-note-text: #1f2937;
    --todo-note-placeholder: #95a1b1;
    --todo-note-summary-text: #64748b;
    --todo-note-summary-hover: rgba(96, 165, 250, 0.08);
    --todo-item-note-color: #6b7a8f;
    --todo-item-note-completed: #8b98aa;
    --todo-subtask-surface: rgba(255, 255, 255, 0.6);
    --todo-subtask-border: rgba(148, 163, 184, 0.24);
    --todo-subtask-text: #334155;
    --todo-subtask-muted: #8b98aa;
    --todo-subtask-check-surface: rgba(255, 255, 255, 0.92);
    --todo-subtask-check-border: rgba(148, 163, 184, 0.34);
    --todo-subtask-check-active: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
    --todo-subtask-check-active-border: rgba(96, 165, 250, 0.34);
}

.todo-widget__popup--theme-glass {
    --todo-note-surface: rgba(255, 255, 255, 0.48);
    --todo-note-border: rgba(255, 255, 255, 0.42);
    --todo-note-text: #0f172a;
    --todo-note-placeholder: #8ca0b7;
    --todo-note-summary-text: #5b6b82;
    --todo-note-summary-hover: rgba(96, 165, 250, 0.08);
    --todo-item-note-color: #6a7a91;
    --todo-item-note-completed: #8192a7;
    --todo-subtask-surface: rgba(255, 255, 255, 0.34);
    --todo-subtask-border: rgba(255, 255, 255, 0.42);
    --todo-subtask-text: #334155;
    --todo-subtask-muted: #8192a7;
    --todo-subtask-check-surface: rgba(255, 255, 255, 0.8);
    --todo-subtask-check-border: rgba(148, 163, 184, 0.24);
    --todo-subtask-check-active: linear-gradient(135deg, #7dd3fc 0%, #60a5fa 100%);
    --todo-subtask-check-active-border: rgba(96, 165, 250, 0.28);
}

.todo-widget__popup--theme-simple {
    --todo-note-surface: #ffffff;
    --todo-note-border: rgba(203, 213, 225, 0.72);
    --todo-note-text: #0f172a;
    --todo-note-placeholder: #94a3b8;
    --todo-note-summary-text: #64748b;
    --todo-note-summary-hover: rgba(59, 130, 246, 0.08);
    --todo-item-note-color: #64748b;
    --todo-item-note-completed: #8b98aa;
    --todo-subtask-surface: #ffffff;
    --todo-subtask-border: rgba(203, 213, 225, 0.72);
    --todo-subtask-text: #334155;
    --todo-subtask-muted: #8b98aa;
    --todo-subtask-check-surface: #ffffff;
    --todo-subtask-check-border: rgba(148, 163, 184, 0.42);
    --todo-subtask-check-active: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --todo-subtask-check-active-border: rgba(59, 130, 246, 0.3);
}

.todo-widget__popup--theme-check {
    --todo-theme-primary: var(--primary-color, #6d714b);
    --todo-theme-secondary: var(--secondary-color, #b2b49c);
    --todo-theme-accent: var(--accent-color, #ffffff);
    --todo-theme-header-bg: var(--header-bg-color, rgba(23, 25, 29, 1));
    --todo-theme-header-text: var(--header-font-color, #ffffff);
    --todo-theme-header-font: var(--header-font-family, "Pretendard", sans-serif);
    --todo-theme-header-size: var(--header-font-size, 14px);
    --todo-theme-header-height: var(--header-height, 50px);
    --todo-theme-container-bg: var(--container-bg-color, rgba(61, 62, 48, 0.84));
    --todo-theme-container-border: var(--container-border-color, #3d3e30);
    --todo-theme-container-radius: var(--container-border-radius, 12px);
    --todo-theme-card-bg: var(--card-bg-color, #2B2C21);
    --todo-theme-card-border: var(--card-border-color, #3d3e30);
    --todo-theme-card-radius: var(--card-border-radius, 8px);
    --todo-theme-content-font: var(--content-font-family, "Paperlogy-4Regular", "Pretendard", sans-serif);
    --todo-theme-content-size: var(--content-font-size, 14px);
    --todo-theme-content-color: var(--content-font-color, #bfbfbf);
    --todo-theme-title-font: var(--title-font-family, "Pretendard", sans-serif);
    --todo-theme-title-size: var(--title-font-size, 25px);
    --todo-theme-title-color: var(--title-font-color, #eeeeee);
    --todo-theme-subtitle-size: var(--sub-title-font-size, 16px);
    --todo-theme-btn-primary-text: var(--btn-primary-text, #3D3E30);
    --todo-theme-btn-primary-bg: var(--btn-primary-bg, #b2b49c);
    --todo-theme-btn-primary-radius: var(--btn-primary-radius, 8px);
    --todo-theme-btn-secondary-text: var(--btn-secondary-text, #3D3E30);
    --todo-theme-btn-secondary-bg: var(--btn-secondary-bg, #eeeeee);
    --todo-theme-btn-secondary-radius: var(--btn-secondary-radius, 8px);
    --todo-theme-btn-accent-text: var(--btn-accent-text, #eeeeee);
    --todo-theme-btn-accent-bg: var(--btn-accent-bg, #3D3E30);
    --todo-theme-btn-accent-radius: var(--btn-accent-radius, 8px);
    --todo-theme-form-bg: var(--form-bg-color, #eeeeee);
    --todo-theme-form-border: var(--form-border-color, #b2b49c);
    --todo-theme-form-radius: var(--form-border-radius, 8px);
    --todo-theme-form-text: var(--form-text-color, #999999);
    --todo-note-surface: var(--todo-theme-form-bg);
    --todo-note-border: var(--todo-theme-form-border);
    --todo-note-text: var(--todo-theme-btn-primary-text);
    --todo-note-placeholder: rgb(from var(--todo-theme-form-text) r g b / 82%);
    --todo-note-summary-text: var(--todo-theme-form-text);
    --todo-note-summary-hover: rgb(from var(--todo-theme-secondary) r g b / 14%);
    --todo-item-note-color: rgb(from var(--todo-theme-content-color) r g b / 84%);
    --todo-item-note-completed: rgb(from var(--todo-theme-content-color) r g b / 56%);
    --todo-subtask-surface: rgb(from var(--todo-theme-form-bg) r g b / 96%);
    --todo-subtask-border: rgb(from var(--todo-theme-form-border) r g b / 88%);
    --todo-subtask-text: var(--todo-theme-btn-primary-text);
    --todo-subtask-muted: rgb(from var(--todo-theme-content-color) r g b / 68%);
    --todo-subtask-check-surface: var(--todo-theme-form-bg);
    --todo-subtask-check-border: var(--todo-theme-form-border);
    --todo-subtask-check-active: linear-gradient(135deg, var(--todo-theme-btn-primary-bg) 0%, var(--todo-theme-secondary) 100%);
    --todo-subtask-check-active-border: rgb(from var(--todo-theme-btn-primary-bg) r g b / 78%);
}

.todo-widget__popup--theme-memo .todo-widget__backdrop {
    background: transparent;
    backdrop-filter: none;
}

.todo-widget__popup--theme-memo .todo-widget__chrome {
    border-radius: 26px;
    border-color: rgba(179, 191, 204, 0.46);
    background: linear-gradient(180deg, rgba(249, 251, 253, 0.98) 0%, rgba(236, 241, 246, 0.96) 100%);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "SUIT", sans-serif;
}

.todo-widget__popup--theme-memo .todo-widget__chrome::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    display: block;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 100%);
}

.todo-widget__popup--theme-memo .todo-widget__header {
    border-bottom-color: rgba(203, 213, 225, 0.92);
}

.todo-widget__popup--theme-memo .todo-widget__app-badge {
    width: 48px;
    height: 12px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.todo-widget__popup--theme-memo .todo-widget__app-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #28c840;
}

.todo-widget__popup--theme-memo .todo-widget__app-badge-check {
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #ff6159;
    transform: none;
}

.todo-widget__popup--theme-memo .todo-widget__app-badge-dot {
    top: 0;
    left: 16px;
    right: auto;
    bottom: auto;
    width: 12px;
    height: 12px;
    border: 0;
    background: #ffbd2e;
}

.todo-widget__popup--theme-memo .todo-widget__eyebrow,
.todo-widget__popup--theme-memo .todo-widget__subtitle,
.todo-widget__popup--theme-memo .todo-widget__summary,
.todo-widget__popup--theme-memo .todo-widget__guide,
.todo-widget__popup--theme-memo .todo-widget__item-meta,
.todo-widget__popup--theme-memo .todo-widget__feedback {
    color: #66758a;
}

.todo-widget__popup--theme-memo .todo-widget__title-input,
.todo-widget__popup--theme-memo .todo-widget__item-content,
.todo-widget__popup--theme-memo .todo-widget__item-text strong,
.todo-widget__popup--theme-memo .todo-widget__meter strong {
    color: #1f2937;
}

.todo-widget__popup--theme-memo .todo-widget__title-input:focus,
.todo-widget__popup--theme-memo .todo-widget__form input,
.todo-widget__popup--theme-memo .todo-widget__form select,
.todo-widget__popup--theme-memo .todo-widget__edit-form input,
.todo-widget__popup--theme-memo .todo-widget__edit-form select {
    color: #1f2937;
}

.todo-widget__popup--theme-memo .todo-widget__form input::placeholder,
.todo-widget__popup--theme-memo .todo-widget__edit-form input::placeholder {
    color: #95a1b1;
}

.todo-widget__popup--theme-memo .todo-widget__meter,
.todo-widget__popup--theme-memo .todo-widget__filters,
.todo-widget__popup--theme-memo .todo-widget__form input,
.todo-widget__popup--theme-memo .todo-widget__form select,
.todo-widget__popup--theme-memo .todo-widget__item,
.todo-widget__popup--theme-memo .todo-widget__chip,
.todo-widget__popup--theme-memo .todo-widget__drag,
.todo-widget__popup--theme-memo .todo-widget__edit-form input,
.todo-widget__popup--theme-memo .todo-widget__edit-form select,
.todo-widget__popup--theme-memo .todo-widget__edit-cancel,
.todo-widget__popup--theme-memo .todo-widget__empty {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.26);
        color: #95a1b1;

}

.todo-widget__popup--theme-memo .todo-widget__edit-save {
    background: linear-gradient(90deg, #60a5fa 0%, #93c5fd 100%);
}

.todo-widget__popup--theme-memo .todo-widget__form button,
.todo-widget__popup--theme-memo .todo-widget__close,
.todo-widget__popup--theme-memo .todo-widget__drag,
.todo-widget__popup--theme-memo .todo-widget__item-delete {
    background: rgba(148, 163, 184, 0.14);
    color: #425466;
}

.todo-widget__popup--theme-memo .todo-widget__filters button,
.todo-widget__popup--theme-memo .todo-widget__clear,
.todo-widget__popup--theme-memo .todo-widget__chip,
.todo-widget__popup--theme-memo .todo-widget__meter span {
    color: #64748b;
}

.todo-widget__popup--theme-memo .todo-widget__quick-date {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(148, 163, 184, 0.26);
    color: #64748b;
}

.todo-widget__popup--theme-memo .todo-widget__quick-date:hover,
.todo-widget__popup--theme-memo .todo-widget__quick-date:focus-visible {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
    color: #1d4ed8;
}

.todo-widget__popup--theme-memo .todo-widget__filters button.is-active {
    background: rgba(96, 165, 250, 0.12);
    color: #1d4ed8;
}

.todo-widget__popup--theme-memo .todo-widget__quick-date.is-active {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.24);
    color: #1d4ed8;
}

.todo-widget__popup--theme-memo .todo-widget__toggle span {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.34);
}

.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: rgba(96, 165, 250, 0.34);
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
}

.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-text strong,
.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-meta,
.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-content,
.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-delete {
    color: #8b98aa;
}

.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-memo .todo-widget__item.is-completed .todo-widget__item-content:focus-visible strong {
    color: #8b98aa;
}

.todo-widget__popup--theme-glass .todo-widget__backdrop {
    background: transparent;
    backdrop-filter: none;
}

.todo-widget__popup--theme-glass .todo-widget__chrome {
    border-color: rgba(255, 255, 255, 0.62);
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.34), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.88), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(241, 245, 249, 0.52) 100%);
    box-shadow: 0 24px 70px rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(26px) saturate(1.45);
    color: #555;
}

.todo-widget__popup--theme-glass .todo-widget__header {
    border-bottom-color: rgba(255, 255, 255, 0.44);
}

.todo-widget__popup--theme-glass .todo-widget__app-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(191, 219, 254, 0.92) 100%);
    box-shadow: 0 10px 20px rgba(148, 163, 184, 0.16);
}

.todo-widget__popup--theme-glass .todo-widget__app-badge-dot {
    border-color: rgba(255, 255, 255, 0.9);
    background: #93c5fd;
}

.todo-widget__popup--theme-glass .todo-widget__title-input,
.todo-widget__popup--theme-glass .todo-widget__item-content,
.todo-widget__popup--theme-glass .todo-widget__item-text strong,
.todo-widget__popup--theme-glass .todo-widget__meter strong {
    color: #0f172a;
}

.todo-widget__popup--theme-glass .todo-widget__title-input:focus,
.todo-widget__popup--theme-glass .todo-widget__form input,
.todo-widget__popup--theme-glass .todo-widget__form select,
.todo-widget__popup--theme-glass .todo-widget__edit-form input:not([type="checkbox"]),
.todo-widget__popup--theme-glass .todo-widget__edit-form select,
.todo-widget__popup--theme-glass .todo-widget__edit-form textarea {
    color: #95a1b1;
}

.todo-widget__popup--theme-glass .todo-widget__form input::placeholder,
.todo-widget__popup--theme-glass .todo-widget__edit-form input::placeholder {
    color: #8ca0b7;
}

.todo-widget__popup--theme-glass .todo-widget__eyebrow,
.todo-widget__popup--theme-glass .todo-widget__subtitle,
.todo-widget__popup--theme-glass .todo-widget__summary,
.todo-widget__popup--theme-glass .todo-widget__guide,
.todo-widget__popup--theme-glass .todo-widget__item-meta,
.todo-widget__popup--theme-glass .todo-widget__feedback,
.todo-widget__popup--theme-glass .todo-widget__empty,
.todo-widget__popup--theme-glass .todo-widget__chip,
.todo-widget__popup--theme-glass .todo-widget__meter span,
.todo-widget__popup--theme-glass .todo-widget__filters button,
.todo-widget__popup--theme-glass .todo-widget__clear {
    color: #5b6b82;
}

.todo-widget__popup--theme-glass .todo-widget__meter,
.todo-widget__popup--theme-glass .todo-widget__filters,
.todo-widget__popup--theme-glass .todo-widget__form input,
.todo-widget__popup--theme-glass .todo-widget__form select,
.todo-widget__popup--theme-glass .todo-widget__item,
.todo-widget__popup--theme-glass .todo-widget__chip,
.todo-widget__popup--theme-glass .todo-widget__drag,
.todo-widget__popup--theme-glass .todo-widget__edit-form input,
.todo-widget__popup--theme-glass .todo-widget__edit-form select,
.todo-widget__popup--theme-glass .todo-widget__edit-cancel,
.todo-widget__popup--theme-glass .todo-widget__empty {
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(255, 255, 255, 0.42);
}

.todo-widget__popup--theme-glass .todo-widget__edit-save {
    background: linear-gradient(90deg, #7dd3fc 0%, #60a5fa 100%);
}

.todo-widget__popup--theme-glass .todo-widget__form button,
.todo-widget__popup--theme-glass .todo-widget__close,
.todo-widget__popup--theme-glass .todo-widget__drag,
.todo-widget__popup--theme-glass .todo-widget__item-delete {
    background: rgba(255, 255, 255, 0.42);
    color: #334155;
}

.todo-widget__popup--theme-glass .todo-widget__filters button.is-active {
    background: rgba(96, 165, 250, 0.14);
    color: #1d4ed8;
}

.todo-widget__popup--theme-glass .todo-widget__quick-date {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.42);
    color: #5b6b82;
}

.todo-widget__popup--theme-glass .todo-widget__quick-date:hover,
.todo-widget__popup--theme-glass .todo-widget__quick-date:focus-visible {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
    color: #1d4ed8;
}

.todo-widget__popup--theme-glass .todo-widget__quick-date.is-active {
    background: rgba(96, 165, 250, 0.14);
    border-color: rgba(96, 165, 250, 0.22);
    color: #1d4ed8;
}

.todo-widget__popup--theme-glass .todo-widget__toggle span {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(148, 163, 184, 0.22);
}

.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: rgba(96, 165, 250, 0.28);
    background: linear-gradient(135deg, #7dd3fc 0%, #60a5fa 100%);
}

.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-text strong,
.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-meta,
.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-content,
.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-delete {
    color: #8192a7;
}

.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-glass .todo-widget__item.is-completed .todo-widget__item-content:focus-visible strong {
    color: #8192a7;
}

.todo-widget__popup--theme-glass .todo-widget__close:hover,
.todo-widget__popup--theme-glass .todo-widget__close:focus-visible,
.todo-widget__popup--theme-glass .todo-widget__clear:hover,
.todo-widget__popup--theme-glass .todo-widget__clear:focus-visible,
.todo-widget__popup--theme-glass .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-glass .todo-widget__item-content:focus-visible strong,
.todo-widget__popup--theme-glass .todo-widget__item-delete:hover,
.todo-widget__popup--theme-glass .todo-widget__item-delete:focus-visible {
    color: #555;
}

.todo-widget__popup--theme-simple .todo-widget__backdrop {
    background: rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

.todo-widget__popup--theme-simple .todo-widget__chrome {
    border-color: rgba(203, 213, 225, 0.82);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.todo-widget__popup--theme-simple .todo-widget__header {
    border-bottom-color: rgba(203, 213, 225, 0.9);
}

.todo-widget__popup--theme-simple .todo-widget__app-badge {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
}

.todo-widget__popup--theme-simple .todo-widget__title-input,
.todo-widget__popup--theme-simple .todo-widget__item-content,
.todo-widget__popup--theme-simple .todo-widget__item-text strong,
.todo-widget__popup--theme-simple .todo-widget__meter strong {
    color: #0f172a;
}

.todo-widget__popup--theme-simple .todo-widget__title-input:focus,
.todo-widget__popup--theme-simple .todo-widget__form input,
.todo-widget__popup--theme-simple .todo-widget__form select,
.todo-widget__popup--theme-simple .todo-widget__edit-form input,
.todo-widget__popup--theme-simple .todo-widget__edit-form select {
    color: #0f172a;
}

.todo-widget__popup--theme-simple .todo-widget__form input::placeholder,
.todo-widget__popup--theme-simple .todo-widget__edit-form input::placeholder {
    color: #94a3b8;
}

.todo-widget__popup--theme-simple .todo-widget__eyebrow,
.todo-widget__popup--theme-simple .todo-widget__subtitle,
.todo-widget__popup--theme-simple .todo-widget__summary,
.todo-widget__popup--theme-simple .todo-widget__guide,
.todo-widget__popup--theme-simple .todo-widget__item-meta,
.todo-widget__popup--theme-simple .todo-widget__feedback,
.todo-widget__popup--theme-simple .todo-widget__chip,
.todo-widget__popup--theme-simple .todo-widget__meter span,
.todo-widget__popup--theme-simple .todo-widget__filters button,
.todo-widget__popup--theme-simple .todo-widget__clear {
    color: #64748b;
}

.todo-widget__popup--theme-simple .todo-widget__meter,
.todo-widget__popup--theme-simple .todo-widget__filters,
.todo-widget__popup--theme-simple .todo-widget__form input,
.todo-widget__popup--theme-simple .todo-widget__form select,
.todo-widget__popup--theme-simple .todo-widget__item,
.todo-widget__popup--theme-simple .todo-widget__chip,
.todo-widget__popup--theme-simple .todo-widget__drag,
.todo-widget__popup--theme-simple .todo-widget__edit-form input,
.todo-widget__popup--theme-simple .todo-widget__edit-form select,
.todo-widget__popup--theme-simple .todo-widget__edit-cancel,
.todo-widget__popup--theme-simple .todo-widget__empty {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.72);
}

.todo-widget__popup--theme-simple .todo-widget__edit-save {
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}

.todo-widget__popup--theme-simple .todo-widget__form button,
.todo-widget__popup--theme-simple .todo-widget__close,
.todo-widget__popup--theme-simple .todo-widget__drag,
.todo-widget__popup--theme-simple .todo-widget__item-delete {
    background: rgba(148, 163, 184, 0.14);
    color: #334155;
}

.todo-widget__popup--theme-simple .todo-widget__filters button.is-active {
    background: rgba(59, 130, 246, 0.10);
    color: #1e3a8a;
}

.todo-widget__popup--theme-simple .todo-widget__quick-date {
    background: #ffffff;
    border-color: rgba(203, 213, 225, 0.72);
    color: #64748b;
}

.todo-widget__popup--theme-simple .todo-widget__quick-date:hover,
.todo-widget__popup--theme-simple .todo-widget__quick-date:focus-visible {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.18);
    color: #1e3a8a;
}

.todo-widget__popup--theme-simple .todo-widget__quick-date.is-active {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.26);
    color: #1e3a8a;
}

.todo-widget__popup--theme-simple .todo-widget__toggle span {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.42);
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: rgba(59, 130, 246, 0.30);
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-text strong,
.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-meta,
.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-content,
.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-delete {
    color: #8b98aa;
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-content:focus-visible strong {
    color: #8b98aa;
}

.todo-widget__popup--theme-check .todo-widget__backdrop {
    background: transparent;
    backdrop-filter: none;
}

.todo-widget__popup--theme-check .todo-widget__chrome {
    border-color: var(--todo-theme-container-border);
    border-radius: var(--todo-theme-container-radius);
    background:
        radial-gradient(circle at top left, rgb(from var(--todo-theme-secondary) r g b / 18%), transparent 34%),
        radial-gradient(circle at bottom right, rgb(from var(--todo-theme-primary) r g b / 14%), transparent 40%),
        linear-gradient(180deg,
            rgb(from var(--todo-theme-header-bg) r g b / 100%) 0%,
            rgb(from var(--todo-theme-container-bg) r g b / 96%) 22%,
            rgb(from var(--todo-theme-card-bg) r g b / 100%) 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgb(from var(--todo-theme-accent) r g b / 6%);
    color: var(--todo-theme-content-color);
    font-family: var(--todo-theme-content-font);
    font-size: var(--todo-theme-content-size);
}

.todo-widget__popup--theme-check .todo-widget__chrome::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgb(from var(--todo-theme-accent) r g b / 5%) 0%, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0) 78%, rgb(from var(--todo-theme-secondary) r g b / 8%) 100%),
        radial-gradient(circle at center, transparent 52%, rgb(from var(--todo-theme-container-border) r g b / 40%) 100%);
}

.todo-widget__popup--theme-check .todo-widget__chrome::after {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background: linear-gradient(135deg, rgb(from var(--todo-theme-accent) r g b / 3%), transparent 34%, rgb(from var(--todo-theme-secondary) r g b / 6%) 100%);
    opacity: 1;
}

.todo-widget__popup--theme-check .todo-widget__header {
    min-height: var(--todo-theme-header-height);
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgb(from var(--todo-theme-container-border) r g b / 100%);
}

.todo-widget__popup--theme-check .todo-widget__app-badge {
    width: 48px;
    height: 12px;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.todo-widget__popup--theme-check .todo-widget__app-badge-check {
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--todo-theme-btn-secondary-bg);
    transform: none;
}

.todo-widget__popup--theme-check .todo-widget__app-badge-dot {
    top: 0;
    left: 16px;
    right: auto;
    bottom: auto;
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--todo-theme-btn-primary-bg);
}

.todo-widget__popup--theme-check .todo-widget__app-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--todo-theme-primary);
}

.todo-widget__popup--theme-check .todo-widget__chrome,
.todo-widget__popup--theme-check .todo-widget__form,
.todo-widget__popup--theme-check .todo-widget__toolbar,
.todo-widget__popup--theme-check .todo-widget__list,
.todo-widget__popup--theme-check .todo-widget__empty,
.todo-widget__popup--theme-check .todo-widget__feedback {
    font-family: var(--todo-theme-content-font);
}

.todo-widget__popup--theme-check .todo-widget__title-input,
.todo-widget__popup--theme-check .todo-widget__item-content,
.todo-widget__popup--theme-check .todo-widget__item-text strong,
.todo-widget__popup--theme-check .todo-widget__meter strong {
    color: var(--todo-theme-title-color);
    text-shadow: none;
}

.todo-widget__popup--theme-check .todo-widget__title-input,
.todo-widget__popup--theme-check .todo-widget__item-text strong,
.todo-widget__popup--theme-check .todo-widget__meter strong {
    font-family: var(--todo-theme-content-font);
}

.todo-widget__popup--theme-check .todo-widget__title-input {
    font-size: var(--todo-theme-title-size);
}

.todo-widget__popup--theme-check .todo-widget__title-input:focus,
.todo-widget__popup--theme-check .todo-widget__form input,
.todo-widget__popup--theme-check .todo-widget__form select,
.todo-widget__popup--theme-check .todo-widget__edit-form input,
.todo-widget__popup--theme-check .todo-widget__edit-form select {
    color: var(--todo-theme-btn-primary-text);
}

.todo-widget__popup--theme-check .todo-widget__form input::placeholder,
.todo-widget__popup--theme-check .todo-widget__edit-form input::placeholder {
    color: var(--todo-theme-form-text);
}

.todo-widget__popup--theme-check .todo-widget__eyebrow,
.todo-widget__popup--theme-check .todo-widget__subtitle,
.todo-widget__popup--theme-check .todo-widget__summary,
.todo-widget__popup--theme-check .todo-widget__guide,
.todo-widget__popup--theme-check .todo-widget__item-meta,
.todo-widget__popup--theme-check .todo-widget__feedback,
.todo-widget__popup--theme-check .todo-widget__chip,
.todo-widget__popup--theme-check .todo-widget__meter span,
.todo-widget__popup--theme-check .todo-widget__filters button,
.todo-widget__popup--theme-check .todo-widget__clear {
    color: var(--todo-theme-content-color);
    text-shadow: none;
}

.todo-widget__popup--theme-check .todo-widget__subtitle {
    font-size: var(--todo-theme-subtitle-size);
}

.todo-widget__popup--theme-check .todo-widget__meter,
.todo-widget__popup--theme-check .todo-widget__filters,
.todo-widget__popup--theme-check .todo-widget__item,
.todo-widget__popup--theme-check .todo-widget__chip,
.todo-widget__popup--theme-check .todo-widget__drag,
.todo-widget__popup--theme-check .todo-widget__edit-cancel,
.todo-widget__popup--theme-check .todo-widget__empty {
    background: rgb(from var(--todo-theme-card-bg) r g b / 92%);
    border-color: var(--todo-theme-card-border);
    box-shadow: inset 0 1px 0 rgb(from var(--todo-theme-accent) r g b / 3%);
}

.todo-widget__popup--theme-check .todo-widget__meter,
.todo-widget__popup--theme-check .todo-widget__item,
.todo-widget__popup--theme-check .todo-widget__drag,
.todo-widget__popup--theme-check .todo-widget__empty,
.todo-widget__popup--theme-check .todo-widget__chip {
    border-radius: var(--todo-theme-card-radius);
}

.todo-widget__popup--theme-check .todo-widget__form input,
.todo-widget__popup--theme-check .todo-widget__form select,
.todo-widget__popup--theme-check .todo-widget__form textarea,
.todo-widget__popup--theme-check .todo-widget__edit-form input,
.todo-widget__popup--theme-check .todo-widget__edit-form select,
.todo-widget__popup--theme-check .todo-widget__edit-form textarea,
.todo-widget__popup--theme-check .todo-widget__options-panel,
.todo-widget__popup--theme-check .todo-widget__note-panel {
    background: var(--todo-theme-form-bg);
    border-color: var(--todo-theme-form-border);
    color: var(--todo-theme-btn-primary-text);
    border-radius: var(--todo-theme-form-radius);
    box-shadow: inset 0 1px 0 rgb(from var(--todo-theme-accent) r g b / 10%);
}

.todo-widget__popup--theme-check .todo-widget__form input:focus,
.todo-widget__popup--theme-check .todo-widget__form select:focus,
.todo-widget__popup--theme-check .todo-widget__form textarea:focus,
.todo-widget__popup--theme-check .todo-widget__edit-form input:not([type="checkbox"]):focus,
.todo-widget__popup--theme-check .todo-widget__edit-form select:focus,
.todo-widget__popup--theme-check .todo-widget__edit-form textarea:focus {
    border-color: var(--todo-theme-primary);
    box-shadow: 0 0 0 4px rgb(from var(--todo-theme-primary) r g b / 12%);
    background: var(--todo-theme-form-bg);
}

.todo-widget__popup--theme-check .todo-widget__edit-save {
    background: var(--todo-theme-btn-primary-bg);
    color: var(--todo-theme-btn-primary-text);
    border-radius: var(--todo-theme-btn-primary-radius);
}

.todo-widget__popup--theme-check .todo-widget__form button {
    background: var(--todo-theme-btn-primary-bg);
    color: var(--todo-theme-btn-primary-text);
    border: 1px solid var(--todo-theme-btn-primary-bg);
    border-radius: var(--todo-theme-btn-primary-radius);
}

.todo-widget__popup--theme-check .todo-widget__close,
.todo-widget__popup--theme-check .todo-widget__item-delete {
    background: var(--todo-theme-btn-accent-bg);
    color: var(--todo-theme-btn-accent-text);
    border: 1px solid var(--todo-theme-btn-accent-bg);
    border-radius: var(--todo-theme-btn-accent-radius);
}

.todo-widget__popup--theme-check .todo-widget__drag {
    background: rgb(from var(--todo-theme-card-bg) r g b / 90%);
    color: var(--todo-theme-secondary);
    border: 1px solid var(--todo-theme-card-border);
    border-radius: var(--todo-theme-card-radius);
}

.todo-widget__popup--theme-check .todo-widget__form button:hover,
.todo-widget__popup--theme-check .todo-widget__form button:focus-visible,
.todo-widget__popup--theme-check .todo-widget__edit-save:hover,
.todo-widget__popup--theme-check .todo-widget__edit-save:focus-visible {
    background: var(--todo-theme-primary);
    border-color: var(--todo-theme-primary);
    color: var(--todo-theme-accent);
}

.todo-widget__popup--theme-check .todo-widget__close:hover,
.todo-widget__popup--theme-check .todo-widget__close:focus-visible,
.todo-widget__popup--theme-check .todo-widget__item-delete:hover,
.todo-widget__popup--theme-check .todo-widget__item-delete:focus-visible {
    background: var(--todo-theme-btn-secondary-bg);
    border-color: var(--todo-theme-btn-secondary-bg);
    color: var(--todo-theme-btn-secondary-text);
}

.todo-widget__popup--theme-check .todo-widget__filters button.is-active {
    background: var(--todo-theme-btn-primary-bg);
    color: var(--todo-theme-btn-primary-text);
    border-radius: var(--todo-theme-btn-primary-radius);
}

.todo-widget__popup--theme-check .todo-widget__quick-date {
    background: var(--todo-theme-btn-secondary-bg);
    border-color: var(--todo-theme-form-border);
    color: var(--todo-theme-btn-secondary-text);
    border-radius: var(--todo-theme-btn-secondary-radius);
}

.todo-widget__popup--theme-check .todo-widget__quick-date:hover,
.todo-widget__popup--theme-check .todo-widget__quick-date:focus-visible {
    background: var(--todo-theme-btn-primary-bg);
    border-color: var(--todo-theme-btn-primary-bg);
    color: var(--todo-theme-btn-primary-text);
}

.todo-widget__popup--theme-check .todo-widget__quick-date.is-active {
    background: var(--todo-theme-primary);
    border-color: var(--todo-theme-primary);
    color: var(--todo-theme-accent);
}

.todo-widget__popup--theme-check .todo-widget__toggle span {
    background: var(--todo-theme-form-bg);
    border-color: var(--todo-theme-form-border);
}

.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: var(--todo-theme-btn-primary-bg);
    background: linear-gradient(135deg, var(--todo-theme-btn-primary-bg) 0%, var(--todo-theme-secondary) 100%);
}

.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-text strong,
.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-meta,
.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-content,
.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-delete {
    color: rgb(from var(--todo-theme-content-color) r g b / 64%);
}

.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-check .todo-widget__item.is-completed .todo-widget__item-content:focus-visible strong {
    color: rgb(from var(--todo-theme-content-color) r g b / 72%);
}

.todo-widget__popup--theme-check .todo-widget__chip--due.is-overdue {
    border-color: rgb(from var(--todo-theme-btn-secondary-bg) r g b / 44%);
    background: rgb(from var(--todo-theme-btn-secondary-bg) r g b / 12%);
    color: var(--todo-theme-btn-secondary-bg);
}

.todo-widget__popup--theme-check .todo-widget__chip--due.is-today {
    border-color: rgb(from var(--todo-theme-btn-primary-bg) r g b / 44%);
    background: rgb(from var(--todo-theme-btn-primary-bg) r g b / 14%);
    color: var(--todo-theme-btn-primary-bg);
}

.todo-widget__popup--theme-check .todo-widget__chip--due.is-soon {
    border-color: rgb(from var(--todo-theme-secondary) r g b / 42%);
    background: rgb(from var(--todo-theme-secondary) r g b / 14%);
    color: var(--todo-theme-secondary);
}

.todo-widget__popup--theme-check .todo-widget__feedback[data-tone="error"] {
    color: var(--todo-theme-btn-secondary-bg);
}

.todo-widget__popup--theme-check .todo-widget__feedback[data-tone="info"] {
    color: var(--todo-theme-secondary);
}

.todo-widget__chrome {
    position: relative;
    box-sizing: border-box;
    container-type: inline-size;
    overflow: hidden;
    width: 100%;
    max-height: min(82vh, 780px);
    padding: 28px 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(65, 123, 255, 0.20), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 109, 160, 0.14), transparent 20%),
        linear-gradient(180deg, rgba(17, 17, 20, 0.98) 0%, rgba(4, 4, 6, 0.99) 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
    overflow-y: auto;
}

.todo-widget__chrome::before,
.todo-widget__chrome::after {
    display: none;
}

.todo-widget__header,
.todo-widget__form,
.todo-widget__toolbar,
.todo-widget__list,
.todo-widget__empty,
.todo-widget__feedback {
    position: relative;
    z-index: 1;
}

.todo-widget__header {
    display: flex;
    justify-content: flex-end;
    gap: 0;
    align-items: flex-start;
    padding-bottom: 0;
    border-bottom: 0;
}

.todo-widget__header-actions {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: auto;
}

.todo-widget__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.62);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.todo-widget__close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.todo-widget__close:hover,
.todo-widget__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
}

.todo-widget__form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.todo-widget__form-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.todo-widget__form-options,
.todo-widget__edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.todo-widget__form-options {
    gap: 8px;
}

.todo-widget__form input,
.todo-widget__form select,
.todo-widget__form textarea {
    min-width: 0;
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: #f4f6fb;
    font-size: 16px;
    outline: none;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.todo-widget__form textarea,
.todo-widget__edit-form textarea {
    min-height: 92px;
    padding: 12px 14px;
    border: 1px solid var(--todo-note-border);
    border-radius: 16px;
    background: var(--todo-note-surface);
    color: var(--todo-note-text);
    line-height: 1.5;
    resize: vertical;
}

.todo-widget__form-options input,
.todo-widget__form-options select {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 13px;
}

.todo-widget__form input:focus,
.todo-widget__form select:focus,
.todo-widget__form textarea:focus,
.todo-widget__edit-form input:not([type="checkbox"]):focus,
.todo-widget__edit-form select:focus,
.todo-widget__edit-form textarea:focus {
    border-color: rgba(75, 147, 255, 0.44);
    box-shadow: 0 0 0 4px rgba(75, 147, 255, 0.12);
    background: rgba(255, 255, 255, 0.09);
}

.todo-widget__form textarea:focus,
.todo-widget__edit-form textarea:focus {
    background: var(--todo-note-surface);
}

.todo-widget__form input::placeholder {
    color: rgba(255, 255, 255, 0.34);
}

.todo-widget__form textarea::placeholder,
.todo-widget__edit-form input::placeholder,
.todo-widget__edit-form textarea::placeholder {
    color: var(--todo-note-placeholder);
}

.todo-widget__options-panel,
.todo-widget__note-panel {
    overflow: hidden;
    border: 1px solid var(--todo-note-border);
    border-radius: 18px;
    background: var(--todo-note-surface);
}

.todo-widget__options-summary,
.todo-widget__note-summary {
    position: relative;
    padding: 12px 42px 12px 16px;
    color: var(--todo-note-summary-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.todo-widget__options-summary::-webkit-details-marker,
.todo-widget__note-summary::-webkit-details-marker {
    display: none;
}

.todo-widget__options-summary::after,
.todo-widget__note-summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
}

.todo-widget__options-panel[open] .todo-widget__options-summary::after,
.todo-widget__note-panel[open] .todo-widget__note-summary::after {
    content: "−";
}

.todo-widget__options-summary:hover,
.todo-widget__options-summary:focus-visible,
.todo-widget__note-summary:hover,
.todo-widget__note-summary:focus-visible {
    background: var(--todo-note-summary-hover);
}

.todo-widget__options-body {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--todo-note-border);
}

.todo-widget__note-panel textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--todo-note-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.todo-widget__note-panel textarea:focus {
    background: transparent;
    box-shadow: none;
}

.todo-widget__form select,
.todo-widget__edit-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px;
    padding-right: 34px;
    cursor: pointer;
}

.todo-widget__form button,
.todo-widget__filters button,
.todo-widget__clear,
.todo-widget__item-delete {
    font: inherit;
    cursor: pointer;
}

.todo-widget__form button {
    min-width: 84px;
    padding: 0 18px;
    border: 0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    box-shadow: none;
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.todo-widget__form button:hover,
.todo-widget__form button:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.todo-widget__quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.todo-widget__quick-date {
    width: 100%;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.68);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.todo-widget__quick-date:hover,
.todo-widget__quick-date:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.todo-widget__quick-date.is-active {
    border-color: rgba(75, 147, 255, 0.26);
    background: rgba(75, 147, 255, 0.18);
    color: #ffffff;
}

.todo-widget__quick-date.is-muted {
    opacity: 0.82;
}

.todo-widget__toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.todo-widget__filters {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.todo-widget__filters button,
.todo-widget__clear {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.todo-widget__filters button {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.todo-widget__filters button.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.todo-widget__clear {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 12px;
    font-weight: 700;
}

.todo-widget__clear:hover,
.todo-widget__clear:focus-visible {
    color: #ffffff;
}

.todo-widget__clear:disabled {
    cursor: default;
    pointer-events: none;
    color: #9ca3af;
}

.todo-widget__list {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.todo-widget__item {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 12px;
    align-items: flex-start;
    min-height: 64px;
    padding: 14px 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
}

.todo-widget__item.is-completed {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.todo-widget__item.is-editing {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
}

.todo-widget__item.is-calendar-match {
    border-color: rgba(255, 122, 89, 0.42);
    box-shadow: inset 0 0 0 1px var(--todo-accent-soft);
}

.todo-widget__item.is-drag-source {
    opacity: 0.58;
}

.todo-widget__item.is-drop-before {
    box-shadow: inset 0 2px 0 var(--todo-accent);
}

.todo-widget__item.is-drop-after {
    box-shadow: inset 0 -2px 0 var(--todo-accent);
}

.todo-widget__drag {
    position: relative;
    width: 20px;
    min-height: 34px;
    align-self: stretch;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.42);
    cursor: grab;
    user-select: none;
}

.todo-widget__drag::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 16px;
    transform: translate(-50%, -50%);
    background-image: radial-gradient(currentColor 1.2px, transparent 1.2px);
    background-size: 4px 6px;
}

.todo-widget__drag.is-disabled {
    opacity: 0.45;
    cursor: default;
}

.todo-widget__drag,
.todo-widget__toggle,
.todo-widget__item-delete {
    align-self: flex-start;
}

.todo-widget__toggle {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 0;
    background: none;
    padding: 0;
}

.todo-widget__toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
}

.todo-widget__toggle span {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: rgba(77, 144, 255, 0.42);
    background: linear-gradient(135deg, #4b93ff 0%, #6c5dff 100%);
    transform: scale(1.04);
}

.todo-widget__item.is-completed .todo-widget__toggle span::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.todo-widget__item-text {
    min-width: 0;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.todo-widget__item-main {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.todo-widget__item-content {
    display: block;
    min-width: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f5f7fb;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.todo-widget__item-content:hover strong,
.todo-widget__item-content:focus-visible strong {
    color: #ffffff;
}

.todo-widget__item-text strong {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.todo-widget__item-note {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--todo-item-note-color);
    font-size: 12px;
    line-height: 1.45;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.todo-widget__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.todo-widget__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.todo-widget__chip--due.is-overdue {
    border-color: rgba(255, 156, 142, 0.26);
    background: rgba(255, 156, 142, 0.14);
    color: #ffb6aa;
}

.todo-widget__chip--due.is-today {
    border-color: rgba(255, 211, 132, 0.28);
    background: rgba(255, 211, 132, 0.16);
    color: #ffd888;
}

.todo-widget__chip--due.is-soon {
    border-color: rgba(139, 197, 255, 0.24);
    background: rgba(139, 197, 255, 0.14);
    color: #b9d9ff;
}

.todo-widget__item-meta {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.36);
    font-size: 11px;
}

.todo-widget__subtasks {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.todo-widget__subtask-label {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--todo-subtask-border);
    border-radius: 14px;
    background: var(--todo-subtask-surface);
    cursor: pointer;
}

.todo-widget__subtask-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.todo-widget__subtask-mark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid var(--todo-subtask-check-border);
    border-radius: 999px;
    background: var(--todo-subtask-check-surface);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.todo-widget__subtask-input:checked + .todo-widget__subtask-mark {
    border-color: var(--todo-subtask-check-active-border);
    background: var(--todo-subtask-check-active);
}

.todo-widget__subtask-input:checked + .todo-widget__subtask-mark::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.todo-widget__subtask-text {
    min-width: 0;
    color: var(--todo-subtask-text);
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.todo-widget__subtask.is-completed .todo-widget__subtask-text {
    color: var(--todo-subtask-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.todo-widget__item.is-completed .todo-widget__item-text strong {
    color: #c9cdd4;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.todo-widget__item.is-completed .todo-widget__item-note {
    color: var(--todo-item-note-completed);
}

.todo-widget__item.is-completed .todo-widget__item-meta {
    color: #aeb4bd;
}

.todo-widget__item.is-completed .todo-widget__item-content,
.todo-widget__item.is-completed .todo-widget__item-delete {
    color: #bcc2cb;
}

.todo-widget__item.is-completed .todo-widget__item-content:hover strong,
.todo-widget__item.is-completed .todo-widget__item-content:focus-visible strong {
    color: #c9cdd4;
}

.todo-widget__item-delete {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    line-height: 1;
}

.todo-widget__item-delete:hover,
.todo-widget__item-delete:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.todo-widget__edit-form {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.todo-widget__edit-form input:not([type="checkbox"]),
.todo-widget__edit-form select,
.todo-widget__edit-form textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
    font: inherit;
    outline: none;
}

.todo-widget__edit-form input:not([type="checkbox"]):focus {
    border-color: rgba(75, 147, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(75, 147, 255, 0.12);
}

.todo-widget__edit-caption {
    display: block;
    color: var(--todo-note-summary-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.todo-widget__edit-subtasks {
    display: grid;
    gap: 8px;
}

.todo-widget__subtask-editor {
    display: grid;
    gap: 8px;
}

.todo-widget__subtask-editor-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.todo-widget__subtask-editor-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    accent-color: var(--todo-accent);
}

.todo-widget__edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.todo-widget__edit-save,
.todo-widget__edit-cancel {
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.todo-widget__edit-save {
    background: linear-gradient(135deg, #4b93ff 0%, #6c5dff 100%);
    color: #fff;
}

.todo-widget__edit-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.todo-widget__empty {
    display: none;
    margin-top: 16px;
    padding: 18px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
}

.todo-widget__empty.is-visible {
    display: block;
}

.todo-widget__feedback {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
}

.todo-widget__feedback[data-tone="error"] {
    color: #ff9c8e;
}

.todo-widget__feedback[data-tone="info"] {
    color: #8bc5ff;
}

.todo-widget__popup--layout-compact .todo-widget__chrome {
    max-height: min(78vh, 720px);
    padding: 22px 20px 20px;
    border-radius: 24px;
}

.todo-widget__popup--layout-compact .todo-widget__header {
    gap: 14px;
    padding-bottom: 16px;
}

.todo-widget__popup--layout-compact .todo-widget__title-input {
    font-size: 28px;
}

.todo-widget__popup--layout-compact .todo-widget__subtitle,
.todo-widget__popup--layout-compact .todo-widget__guide,
.todo-widget__popup--layout-compact .todo-widget__summary,
.todo-widget__popup--layout-compact .todo-widget__feedback {
    font-size: 12px;
}

.todo-widget__popup--layout-compact .todo-widget__meter {
    min-width: 68px;
    padding: 10px 12px;
    border-radius: 16px;
}

.todo-widget__popup--layout-compact .todo-widget__meter strong {
    font-size: 22px;
}

.todo-widget__popup--layout-compact .todo-widget__summary {
    margin-top: 10px;
}

.todo-widget__popup--layout-compact .todo-widget__guide {
    margin-top: 12px;
}

.todo-widget__popup--layout-compact .todo-widget__form {
    gap: 8px;
    margin-top: 18px;
}

.todo-widget__popup--layout-compact .todo-widget__form-main,
.todo-widget__popup--layout-compact .todo-widget__form-options,
.todo-widget__popup--layout-compact .todo-widget__edit-grid {
    gap: 8px;
}

.todo-widget__popup--layout-compact .todo-widget__form input,
.todo-widget__popup--layout-compact .todo-widget__form select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 15px;
}

.todo-widget__popup--layout-compact .todo-widget__form textarea,
.todo-widget__popup--layout-compact .todo-widget__edit-form textarea {
    min-height: 84px;
    border-radius: 15px;
}

.todo-widget__popup--layout-compact .todo-widget__form-options input,
.todo-widget__popup--layout-compact .todo-widget__form-options select {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 12px;
}

.todo-widget__popup--layout-compact .todo-widget__note-summary {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 11px;
}

.todo-widget__popup--layout-compact .todo-widget__options-body {
    gap: 8px;
    padding: 10px;
}

.todo-widget__popup--layout-compact .todo-widget__form button {
    min-width: 76px;
    border-radius: 15px;
    font-size: 14px;
}

.todo-widget__popup--layout-compact .todo-widget__quick-actions {
    gap: 6px;
}

.todo-widget__popup--layout-compact .todo-widget__quick-date {
    min-height: 32px;
    font-size: 11px;
}

.todo-widget__popup--layout-compact .todo-widget__toolbar {
    margin-top: 16px;
}

.todo-widget__popup--layout-compact .todo-widget__list {
    gap: 10px;
    margin-top: 16px;
}

.todo-widget__popup--layout-compact .todo-widget__item {
    min-height: 58px;
    gap: 10px;
    padding: 12px 12px 12px 10px;
    border-radius: 16px;
}

.todo-widget__popup--layout-compact .todo-widget__empty {
    margin-top: 14px;
    padding: 16px 14px;
    border-radius: 16px;
}

.todo-widget__popup--layout-airy .todo-widget__dialog {
    width: min(calc(100vw - 32px), max(var(--todo-popup-width, 520px), 560px));
}

.todo-widget__popup--layout-airy .todo-widget__chrome {
    max-height: min(86vh, 820px);
    padding: 34px 30px 30px;
    border-radius: 34px;
}

.todo-widget__popup--layout-airy .todo-widget__header {
    gap: 22px;
    padding-bottom: 24px;
}

.todo-widget__popup--layout-airy .todo-widget__title-input {
    font-size: 35px;
}

.todo-widget__popup--layout-airy .todo-widget__subtitle {
    margin-top: 8px;
    font-size: 14px;
}

.todo-widget__popup--layout-airy .todo-widget__meter {
    min-width: 82px;
    padding: 14px 16px;
}

.todo-widget__popup--layout-airy .todo-widget__meter strong {
    font-size: 28px;
}

.todo-widget__popup--layout-airy .todo-widget__summary {
    margin-top: 14px;
    font-size: 13px;
}

.todo-widget__popup--layout-airy .todo-widget__guide {
    margin-top: 16px;
    font-size: 13px;
}

.todo-widget__popup--layout-airy .todo-widget__form {
    gap: 12px;
    margin-top: 26px;
}

.todo-widget__popup--layout-airy .todo-widget__form-main,
.todo-widget__popup--layout-airy .todo-widget__form-options,
.todo-widget__popup--layout-airy .todo-widget__edit-grid {
    gap: 12px;
}

.todo-widget__popup--layout-airy .todo-widget__form input,
.todo-widget__popup--layout-airy .todo-widget__form select {
    min-height: 58px;
    border-radius: 20px;
}

.todo-widget__popup--layout-airy .todo-widget__form textarea,
.todo-widget__popup--layout-airy .todo-widget__edit-form textarea {
    min-height: 108px;
    border-radius: 20px;
}

.todo-widget__popup--layout-airy .todo-widget__form-options input,
.todo-widget__popup--layout-airy .todo-widget__form-options select {
    min-height: 46px;
    border-radius: 16px;
    font-size: 13px;
}

.todo-widget__popup--layout-airy .todo-widget__form button {
    min-width: 94px;
    border-radius: 20px;
}

.todo-widget__popup--layout-airy .todo-widget__quick-actions {
    gap: 10px;
}

.todo-widget__popup--layout-airy .todo-widget__quick-date {
    min-height: 38px;
    font-size: 12px;
}

.todo-widget__popup--layout-airy .todo-widget__toolbar {
    margin-top: 24px;
}

.todo-widget__popup--layout-airy .todo-widget__list {
    gap: 14px;
    margin-top: 22px;
}

.todo-widget__popup--layout-airy .todo-widget__item {
    min-height: 70px;
    padding: 16px 16px 16px 14px;
    border-radius: 22px;
}

.todo-widget__popup--layout-airy .todo-widget__empty {
    margin-top: 18px;
    padding: 22px 18px;
    border-radius: 22px;
}

.todo-widget__popup--layout-split .todo-widget__dialog {
    width: min(calc(100vw - 32px), max(var(--todo-popup-width, 520px), 640px));
}

@container (min-width: 620px) {
    .todo-widget__popup--layout-split .todo-widget__chrome {
        display: grid;
        grid-template-columns: minmax(280px, 0.84fr) minmax(0, 1.16fr);
        grid-template-areas:
            "header header"
            "form toolbar"
            "form list"
            "feedback list";
        column-gap: 18px;
        row-gap: 12px;
        align-items: start;
    }

    .todo-widget__popup--layout-split .todo-widget__header {
        grid-area: header;
        margin: 0;
    }

    .todo-widget__popup--layout-split .todo-widget__form {
        grid-area: form;
        margin-top: 0;
        align-self: start;
        padding: 12px;
        border: 1px solid var(--todo-note-border);
        border-radius: 20px;
        background: var(--todo-note-surface);
    }

    .todo-widget__popup--layout-split .todo-widget__toolbar {
        grid-area: toolbar;
        margin-top: 0;
        gap: 10px;
        padding: 10px 12px 12px;
        border: 1px solid var(--todo-note-border);
        border-radius: 18px;
        background: var(--todo-note-surface);
        flex-direction: column;
        align-items: stretch;
    }

    .todo-widget__popup--layout-split .todo-widget__filters {
        width: 100%;
        justify-content: stretch;
    }

    .todo-widget__popup--layout-split .todo-widget__filters button {
        flex: 1 1 0;
    }

    .todo-widget__popup--layout-split .todo-widget__clear {
        width: 100%;
        padding-top: 0;
        text-align: left;
    }

    .todo-widget__popup--layout-split .todo-widget__list {
        grid-area: list;
        margin-top: 0;
    }

    .todo-widget__popup--layout-split .todo-widget__empty {
        grid-column: 2;
        grid-row: 2 / span 2;
        margin-top: 0;
    }

    .todo-widget__popup--layout-split .todo-widget__feedback {
        grid-area: feedback;
        margin-top: 0;
        padding: 10px 12px;
        border: 1px solid var(--todo-note-border);
        border-radius: 16px;
        background: var(--todo-note-surface);
    }

    .todo-widget__popup--layout-split .todo-widget__form-options,
    .todo-widget__popup--layout-split .todo-widget__edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .todo-widget__popup--layout-split .todo-widget__quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .todo-widget__popup--layout-split .todo-widget__options-body {
        gap: 8px;
        padding: 10px;
    }

    .todo-widget__popup--layout-split .todo-widget__note-panel textarea {
        min-height: 80px;
    }
}

@media (max-width: 640px) {
    .todo-widget__popup {
        padding: 70px 16px 16px;
    }

    .todo-widget {
        top: 14px;
    }

    .todo-widget__mini {
        min-width: 116px;
        height: 38px;
        gap: 8px;
        padding: 0 10px 0 9px;
    }

    .todo-widget__mini-icon {
        width: 16px;
        height: 16px;
    }

    .todo-widget__mini-icon svg {
        width: 16px;
        height: 16px;
    }

    .todo-widget__mini-label {
        font-size: 11px;
    }

    .todo-widget__mini-label::after {
        height: 16px;
        margin-left: 8px;
    }

    .todo-widget__mini-count {
        font-size: 11px;
    }

    .todo-widget__chrome {
        width: 100%;
        padding: 18px 16px 18px;
        border-radius: 24px;
    }

    .todo-widget__header {
        flex-direction: column;
        align-items: stretch;
    }

    .todo-widget__header-main {
        align-items: flex-start;
    }

    .todo-widget__header-actions {
        justify-content: space-between;
        align-items: center;
    }

    .todo-widget__meter {
        min-width: 0;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .todo-widget__meter strong {
        font-size: 24px;
    }

    .todo-widget__title-input {
        font-size: 26px;
    }

    .todo-widget__form-main {
        grid-template-columns: 1fr;
    }

    .todo-widget__form-options,
    .todo-widget__edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .todo-widget__form-options input,
    .todo-widget__form-options select {
        min-height: 42px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 12px;
    }

    .todo-widget__form textarea,
    .todo-widget__edit-form textarea {
        min-height: 84px;
    }

    .todo-widget__form button {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        font-size: 15px;
    }

    .todo-widget__quick-actions {
        gap: 6px;
    }

    .todo-widget__popup--layout-airy .todo-widget__dialog,
    .todo-widget__popup--layout-split .todo-widget__dialog {
        width: min(calc(100vw - 32px), var(--todo-popup-width, 520px));
    }

    .todo-widget__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .todo-widget__filters {
        justify-content: space-between;
    }

    .todo-widget__clear {
        text-align: right;
    }
}

@container (max-width: 400px) {
    .todo-widget__chrome {
        padding: 22px 18px 20px;
        border-radius: 24px;
    }

    .todo-widget__header {
        gap: 14px;
        padding-bottom: 16px;
    }

    .todo-widget__header-main {
        gap: 12px;
    }

    .todo-widget__header-actions {
        gap: 8px;
    }

    .todo-widget__app-badge {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .todo-widget__app-badge-check {
        top: 7px;
        left: 10px;
        width: 6px;
        height: 10px;
    }

    .todo-widget__app-badge-dot {
        right: -2px;
        bottom: -1px;
        width: 10px;
        height: 10px;
    }

    .todo-widget__eyebrow,
    .todo-widget__meter span,
    .todo-widget__item-meta,
    .todo-widget__clear,
    .todo-widget__feedback,
    .todo-widget__guide,
    .todo-widget__filters button {
        font-size: 10px;
    }

    .todo-widget__title-input {
        font-size: 24px;
    }

    .todo-widget__subtitle {
        font-size: 12px;
    }

    .todo-widget__meter {
        min-width: 64px;
        padding: 10px 12px;
        border-radius: 16px;
    }

    .todo-widget__meter strong {
        font-size: 22px;
    }

    .todo-widget__close {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .todo-widget__close svg {
        width: 16px;
        height: 16px;
    }

    .todo-widget__summary {
        margin-top: 10px;
        gap: 8px;
        font-size: 11px;
    }

    .todo-widget__form {
        gap: 10px;
        margin-top: 18px;
    }

    .todo-widget__form-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .todo-widget__form-options,
    .todo-widget__edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .todo-widget__form input,
    .todo-widget__form select {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 15px;
        font-size: 14px;
    }

    .todo-widget__form-options input,
    .todo-widget__form-options select {
        min-height: 40px;
        padding: 0 11px;
        border-radius: 12px;
        font-size: 12px;
    }

    .todo-widget__form textarea,
    .todo-widget__edit-form textarea {
        min-height: 80px;
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 13px;
    }

    .todo-widget__form button {
        width: 100%;
        min-width: 0;
        border-radius: 15px;
        font-size: 12px;
    }

    .todo-widget__quick-date {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .todo-widget__toolbar {
        margin-top: 16px;
        gap: 10px;
    }

    .todo-widget__filters {
        gap: 4px;
        padding: 3px;
    }

    .todo-widget__filters button {
        padding: 6px 10px;
    }

    .todo-widget__list {
        gap: 10px;
        margin-top: 16px;
    }

    .todo-widget__item {
        min-height: 56px;
        gap: 10px;
        padding: 12px 12px 12px 10px;
        border-radius: 16px;
    }

    .todo-widget__drag {
        width: 18px;
        min-height: 30px;
        border-radius: 10px;
    }

    .todo-widget__toggle {
        width: 22px;
        height: 22px;
    }

    .todo-widget__toggle span {
        width: 22px;
        height: 22px;
    }

    .todo-widget__item.is-completed .todo-widget__toggle span::after {
        top: 4px;
        left: 7px;
        width: 5px;
        height: 9px;
    }

    .todo-widget__item-text,
    .todo-widget__item-text strong,
    .todo-widget__edit-form input:not([type="checkbox"]),
    .todo-widget__edit-form select,
    .todo-widget__edit-form textarea {
        font-size: 13px;
    }

    .todo-widget__item-note,
    .todo-widget__subtask-text,
    .todo-widget__options-summary,
    .todo-widget__note-summary {
        font-size: 11px;
    }

    .todo-widget__chips {
        gap: 4px;
    }

    .todo-widget__chip {
        padding: 4px 6px;
        font-size: 9px;
    }

    .todo-widget__item-meta {
        margin-top: 3px;
    }

    .todo-widget__item-delete {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 16px;
    }

    .todo-widget__edit-form {
        gap: 6px;
    }

    .todo-widget__edit-form input:not([type="checkbox"]),
    .todo-widget__edit-form select,
    .todo-widget__edit-form textarea {
        padding: 9px 10px;
        border-radius: 12px;
    }

    .todo-widget__edit-save,
    .todo-widget__edit-cancel {
        min-height: 30px;
        padding: 0 10px;
        border-radius: 9px;
        font-size: 11px;
    }

    .todo-widget__empty {
        padding: 16px 14px;
        border-radius: 16px;
        font-size: 12px;
    }
}

/* Compact typography pass */
.todo-widget__chrome {
    font-size: 12px;
    max-height: min(80vh, 720px);
    padding: 22px 20px 20px;
    border-radius: 26px;
}

.todo-widget__header {
    gap: 14px;
    padding-bottom: 16px;
}

.todo-widget__header-main {
    gap: 12px;
}

.todo-widget__header-actions {
    gap: 8px;
}

.todo-widget__app-badge {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.todo-widget__app-badge-check {
    top: 7px;
    left: 10px;
    width: 6px;
    height: 10px;
}

.todo-widget__app-badge-dot {
    right: -2px;
    bottom: -1px;
    width: 10px;
    height: 10px;
}

.todo-widget__eyebrow,
.todo-widget__meter span {
    font-size: 10px;
}

.todo-widget__title-input {
    font-size: 24px;
}

.todo-widget__subtitle {
    margin-top: 5px;
    font-size: 12px;
}

.todo-widget__meter {
    min-width: 64px;
    padding: 10px 12px;
    border-radius: 16px;
}

.todo-widget__meter strong {
    font-size: 22px;
}

.todo-widget__close {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.todo-widget__close svg {
    width: 16px;
    height: 16px;
}

.todo-widget__summary,
.todo-widget__guide,
.todo-widget__feedback {
    font-size: 11px;
}

.todo-widget__summary {
    margin-top: 10px;
}

.todo-widget__guide {
    margin-top: 12px;
}

.todo-widget__form {
    gap: 8px;
    margin-top: 18px;
}

.todo-widget__form input,
.todo-widget__form select,
.todo-widget__form textarea {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 15px;
    font-size: 12px;
}

.todo-widget__form textarea,
.todo-widget__edit-form textarea {
    min-height: 78px;
    padding: 10px 12px;
    border-radius: 14px;
}

.todo-widget__form-options {
    gap: 6px;
}

.todo-widget__form-options input,
.todo-widget__form-options select {
    min-height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 12px;
}

.todo-widget__options-summary,
.todo-widget__note-summary {
    padding: 10px 36px 10px 14px;
    font-size: 11px;
}

.todo-widget__options-summary::after,
.todo-widget__note-summary::after {
    right: 14px;
    font-size: 14px;
}

.todo-widget__options-body {
    gap: 8px;
    padding: 10px;
}

.todo-widget__note-panel textarea {
    min-height: 84px;
}

.todo-widget__quick-actions {
    gap: 6px;
}

.todo-widget__quick-date {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

.todo-widget__toolbar {
    gap: 10px;
    margin-top: 16px;
}

.todo-widget__filters {
    gap: 4px;
    padding: 3px;
}

.todo-widget__filters button {
    padding: 6px 10px;
    font-size: 11px;
}

.todo-widget__clear {
    padding: 6px 0;
    font-size: 11px;
}

.todo-widget__list {
    gap: 10px;
    margin-top: 16px;
}

.todo-widget__item {
    min-height: 56px;
    gap: 10px;
    padding: 12px 12px 12px 10px;
    border-radius: 16px;
}

.todo-widget__drag {
    width: 18px;
    min-height: 30px;
    border-radius: 10px;
}

.todo-widget__toggle {
    width: 22px;
    height: 22px;
}

.todo-widget__toggle span {
    width: 22px;
    height: 22px;
}

.todo-widget__item.is-completed .todo-widget__toggle span::after {
    top: 4px;
    left: 7px;
    width: 5px;
    height: 9px;
}

.todo-widget__item-text,
.todo-widget__item-text strong,
.todo-widget__edit-form input:not([type="checkbox"]),
.todo-widget__edit-form select,
.todo-widget__edit-form textarea {
    font-size: 12px;
}

.todo-widget__item-text {
    line-height: 1.45;
}

.todo-widget__item-text strong {
    font-size: 13px;
}

.todo-widget__item-note,
.todo-widget__subtask-text {
    font-size: 11px;
}

.todo-widget__chips {
    gap: 4px;
    margin-top: 4px;
}

.todo-widget__chip {
    padding: 3px 6px;
    font-size: 9px;
}

.todo-widget__item-meta {
    margin-top: 3px;
    font-size: 10px;
}

.todo-widget__subtasks,
.todo-widget__subtask-editor,
.todo-widget__edit-subtasks {
    gap: 6px;
}

.todo-widget__subtask-label {
    gap: 7px;
    padding: 3px 5px;
    border-radius: 3px;
}

.todo-widget__subtask-mark {
    width: 16px;
    height: 16px;
}

.todo-widget__subtask-input:checked + .todo-widget__subtask-mark::after {
    top: 2px;
    left: 5px;
    width: 4px;
    height: 7px;
}

.todo-widget__item-delete {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 16px;
}

.todo-widget__edit-form {
    gap: 6px;
}

.todo-widget__edit-form input:not([type="checkbox"]),
.todo-widget__edit-form select,
.todo-widget__edit-form textarea {
    padding: 9px 10px;
    border-radius: 12px;
        color: #95a1b1;

}

.todo-widget__edit-caption {
    font-size: 10px;
}

.todo-widget__subtask-editor-row {
    gap: 8px;
}

.todo-widget__edit-save,
.todo-widget__edit-cancel {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 9px;
    font-size: 11px;
}

.todo-widget__empty {
    margin-top: 14px;
    padding: 16px 14px;
    border-radius: 16px;
    font-size: 12px;
}

.todo-widget__popup--layout-compact .todo-widget__chrome {
    max-height: min(78vh, 680px);
    padding: 18px 16px 16px;
    border-radius: 22px;
}

.todo-widget__popup--layout-compact .todo-widget__title-input {
    font-size: 22px;
}

.todo-widget__popup--layout-compact .todo-widget__subtitle,
.todo-widget__popup--layout-compact .todo-widget__guide,
.todo-widget__popup--layout-compact .todo-widget__summary,
.todo-widget__popup--layout-compact .todo-widget__feedback {
    font-size: 11px;
}

.todo-widget__popup--layout-compact .todo-widget__meter {
    min-width: 60px;
    padding: 9px 10px;
    border-radius: 14px;
}

.todo-widget__popup--layout-compact .todo-widget__meter strong {
    font-size: 20px;
}

.todo-widget__popup--layout-compact .todo-widget__form input,
.todo-widget__popup--layout-compact .todo-widget__form select {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 13px;
}

.todo-widget__popup--layout-compact .todo-widget__form textarea,
.todo-widget__popup--layout-compact .todo-widget__edit-form textarea {
    min-height: 72px;
    border-radius: 13px;
}

.todo-widget__popup--layout-compact .todo-widget__form-options input,
.todo-widget__popup--layout-compact .todo-widget__form-options select {
    min-height: 36px;
    font-size: 11px;
}

.todo-widget__popup--layout-compact .todo-widget__quick-date {
    min-height: 28px;
    font-size: 10px;
}

.todo-widget__popup--layout-compact .todo-widget__item {
    min-height: 52px;
    padding: 10px 10px 10px 9px;
}

.todo-widget__popup--layout-airy .todo-widget__chrome {
    max-height: min(83vh, 760px);
    padding: 26px 24px 24px;
    border-radius: 28px;
}

.todo-widget__popup--layout-airy .todo-widget__header {
    gap: 16px;
    padding-bottom: 18px;
}

.todo-widget__popup--layout-airy .todo-widget__title-input {
    font-size: 28px;
}

.todo-widget__popup--layout-airy .todo-widget__subtitle,
.todo-widget__popup--layout-airy .todo-widget__guide,
.todo-widget__popup--layout-airy .todo-widget__summary {
    font-size: 12px;
}

.todo-widget__popup--layout-airy .todo-widget__meter {
    min-width: 70px;
    padding: 12px 14px;
}

.todo-widget__popup--layout-airy .todo-widget__meter strong {
    font-size: 24px;
}

.todo-widget__popup--layout-airy .todo-widget__form {
    gap: 10px;
    margin-top: 20px;
}

.todo-widget__popup--layout-airy .todo-widget__form input,
.todo-widget__popup--layout-airy .todo-widget__form select {
    min-height: 48px;
    border-radius: 18px;
}

.todo-widget__popup--layout-airy .todo-widget__form textarea,
.todo-widget__popup--layout-airy .todo-widget__edit-form textarea {
    min-height: 88px;
    border-radius: 18px;
}

.todo-widget__popup--layout-airy .todo-widget__form-options input,
.todo-widget__popup--layout-airy .todo-widget__form-options select {
    min-height: 40px;
    border-radius: 14px;
    font-size: 12px;
}

.todo-widget__popup--layout-airy .todo-widget__quick-date {
    min-height: 32px;
    font-size: 11px;
}

.todo-widget__popup--layout-airy .todo-widget__item {
    min-height: 60px;
    padding: 14px 14px 14px 12px;
    border-radius: 18px;
}

.todo-widget__popup--layout-split .todo-widget__chrome {
    max-height: min(79vh, 700px);
    padding: 20px 18px 18px;
    border-radius: 24px;
}

.todo-widget__popup--layout-split .todo-widget__header {
    gap: 14px;
    padding-bottom: 14px;
}

.todo-widget__popup--layout-split .todo-widget__title-input {
    font-size: 22px;
}

.todo-widget__popup--layout-split .todo-widget__subtitle,
.todo-widget__popup--layout-split .todo-widget__summary,
.todo-widget__popup--layout-split .todo-widget__feedback {
    font-size: 11px;
}

.todo-widget__popup--layout-split .todo-widget__meter {
    min-width: 60px;
    padding: 9px 10px;
    border-radius: 14px;
}

.todo-widget__popup--layout-split .todo-widget__meter strong {
    font-size: 20px;
}

.todo-widget__popup--layout-split .todo-widget__form {
    gap: 8px;
}

.todo-widget__popup--layout-split .todo-widget__form input,
.todo-widget__popup--layout-split .todo-widget__form select {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 13px;
}

.todo-widget__popup--layout-split .todo-widget__form textarea,
.todo-widget__popup--layout-split .todo-widget__edit-form textarea {
    min-height: 76px;
    border-radius: 13px;
}

.todo-widget__popup--layout-split .todo-widget__form-options input,
.todo-widget__popup--layout-split .todo-widget__form-options select {
    min-height: 36px;
    font-size: 11px;
}

.todo-widget__popup--layout-split .todo-widget__options-summary,
.todo-widget__popup--layout-split .todo-widget__note-summary {
    padding: 9px 34px 9px 12px;
}

.todo-widget__popup--layout-split .todo-widget__options-summary::after,
.todo-widget__popup--layout-split .todo-widget__note-summary::after {
    right: 12px;
}

.todo-widget__popup--layout-split .todo-widget__quick-date {
    min-height: 28px;
    font-size: 10px;
}

.todo-widget__popup--layout-split .todo-widget__toolbar {
    gap: 8px;
}

.todo-widget__popup--layout-split .todo-widget__filters {
    gap: 3px;
    padding: 3px;
}

.todo-widget__popup--layout-split .todo-widget__filters button,
.todo-widget__popup--layout-split .todo-widget__clear {
    font-size: 10px;
}

.todo-widget__popup--layout-split .todo-widget__list {
    gap: 8px;
}

.todo-widget__popup--layout-split .todo-widget__item {
    min-height: 54px;
    padding: 10px 10px 10px 9px;
    border-radius: 15px;
}

.todo-widget__popup--theme-simple .todo-widget__chrome {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "list"
        "empty"
        "feedback"
        "form";
    gap: 10px;
    max-height: min(82vh, 640px);
    padding: 12px 12px 14px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, #26272b 0%, #1d1e22 100%);
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38);
}

.todo-widget__popup--theme-simple .todo-widget__header {
    grid-area: header;
    justify-content: flex-end;
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.todo-widget__popup--theme-simple .todo-widget__header-main,
.todo-widget__popup--theme-simple .todo-widget__meter,
.todo-widget__popup--theme-simple .todo-widget__toolbar,
.todo-widget__popup--theme-simple .todo-widget__options-panel,
.todo-widget__popup--theme-simple .todo-widget__guide {
    display: none;
}

.todo-widget__popup--theme-simple .todo-widget__header-actions {
    gap: 0;
}

.todo-widget__popup--theme-simple .todo-widget__close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.46);
}

.todo-widget__popup--theme-simple .todo-widget__close:hover,
.todo-widget__popup--theme-simple .todo-widget__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: none;
}

.todo-widget__popup--theme-simple .todo-widget__form {
    grid-area: form;
    position: sticky;
    bottom: -14px;
    z-index: 3;
    gap: 0;
    margin-top: 0;
    padding-top: 12px;
    background: linear-gradient(180deg, rgba(29, 30, 34, 0) 0%, rgba(29, 30, 34, 0.88) 26%, #1d1e22 100%);
}

.todo-widget__popup--theme-simple .todo-widget__form-main {
    position: relative;
}

.todo-widget__popup--theme-simple .todo-widget__form-main::before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.42);
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
}

.todo-widget__popup--theme-simple .todo-widget__form input {
    min-height: 38px;
    padding: 0 14px 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: #34353a;
    color: #f5f7fb;
}

.todo-widget__popup--theme-simple .todo-widget__form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.todo-widget__popup--theme-simple .todo-widget__form input:focus {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
    background: #3a3b40;
}

.todo-widget__popup--theme-simple .todo-widget__list {
    grid-area: list;
    gap: 0;
    margin-top: 0;
}

.todo-widget__popup--theme-simple .todo-widget__item {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    min-height: 0;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: transparent;
}

.todo-widget__popup--theme-simple .todo-widget__item:last-child {
    border-bottom: 0;
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.04);
}

.todo-widget__popup--theme-simple .todo-widget__item.is-editing {
    padding: 10px 0 14px;
}

.todo-widget__popup--theme-simple .todo-widget__drag {
    display: none;
}

.todo-widget__popup--theme-simple .todo-widget__toggle {
    width: 22px;
    height: 22px;
    margin-top: 1px;
}

.todo-widget__popup--theme-simple .todo-widget__toggle span {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border-color: rgba(255, 255, 255, 0.34);
    background: transparent;
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__toggle span {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.14);
    transform: none;
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__toggle span::after {
    top: 3px;
    left: 7px;
    width: 4px;
    height: 8px;
}

.todo-widget__popup--theme-simple .todo-widget__item-main {
    gap: 6px;
}

.todo-widget__popup--theme-simple .todo-widget__item-content {
    color: #f3f4f6;
}

.todo-widget__popup--theme-simple .todo-widget__item-content:hover strong,
.todo-widget__popup--theme-simple .todo-widget__item-content:focus-visible strong {
    color: #ffffff;
}

.todo-widget__popup--theme-simple .todo-widget__item-text strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
        color: #f9f9f9;
}

.todo-widget__popup--theme-simple .todo-widget__item-note,
.todo-widget__popup--theme-simple .todo-widget__chips,
.todo-widget__popup--theme-simple .todo-widget__item-meta {
    display: none;
}

.todo-widget__popup--theme-simple .todo-widget__subtasks {
    display: grid;
    gap: 4px;
    margin-top: 1px;
}

.todo-widget__popup--theme-simple .todo-widget__subtask-label {
    gap: 6px;
    padding: 5px 8px;
    border-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.todo-widget__popup--theme-simple .todo-widget__subtask-mark {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.22);
    background: transparent;
}

.todo-widget__popup--theme-simple .todo-widget__subtask-input:checked + .todo-widget__subtask-mark {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.14);
}

.todo-widget__popup--theme-simple .todo-widget__subtask-input:checked + .todo-widget__subtask-mark::after {
    top: 2px;
    left: 4px;
    width: 3px;
    height: 6px;
}

.todo-widget__popup--theme-simple .todo-widget__subtask-text {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.35;
}

.todo-widget__popup--theme-simple .todo-widget__subtask.is-completed .todo-widget__subtask-text {
    color: rgba(255, 255, 255, 0.3);
}

.todo-widget__popup--theme-simple .todo-widget__item.is-completed .todo-widget__item-text strong {
    color: rgba(255, 255, 255, 0.42);
    text-decoration-thickness: 1px;
}

.todo-widget__popup--theme-simple .todo-widget__item-delete {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.22);
    font-size: 16px;
}

.todo-widget__popup--theme-simple .todo-widget__item-delete:hover,
.todo-widget__popup--theme-simple .todo-widget__item-delete:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

.todo-widget__popup--theme-simple .todo-widget__edit-form {
    gap: 6px;
}

.todo-widget__popup--theme-simple .todo-widget__edit-form input:not([type="checkbox"]),
.todo-widget__popup--theme-simple .todo-widget__edit-form select,
.todo-widget__popup--theme-simple .todo-widget__edit-form textarea {
    border-color: rgba(255, 255, 255, 0.08);
    background: #2d2e33;
    color: #f5f7fb;
    border-radius: 10px;
}

.todo-widget__popup--theme-simple .todo-widget__edit-form input:not([type="checkbox"]):focus,
.todo-widget__popup--theme-simple .todo-widget__edit-form select:focus,
.todo-widget__popup--theme-simple .todo-widget__edit-form textarea:focus {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.todo-widget__popup--theme-simple .todo-widget__edit-caption {
    color: rgba(255, 255, 255, 0.48);
}

.todo-widget__popup--theme-simple .todo-widget__edit-save {
    background: #3a3b40;
    color: #ffffff;
}

.todo-widget__popup--theme-simple .todo-widget__edit-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.todo-widget__popup--theme-simple .todo-widget__empty {
    grid-area: empty;
    margin-top: 0;
    padding: 22px 12px;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.34);
}

.todo-widget__popup--theme-simple .todo-widget__feedback {
    grid-area: feedback;
    margin-top: 0;
    color: rgba(255, 255, 255, 0.46);
}

@media (max-width: 640px) {
    .todo-widget__chrome {
        padding: 16px 14px 16px;
        border-radius: 22px;
    }

    .todo-widget__title-input {
        font-size: 22px;
    }

    .todo-widget__meter strong {
        font-size: 20px;
    }

    .todo-widget__form input,
    .todo-widget__form select {
        min-height: 42px;
        font-size: 12px;
    }

    .todo-widget__form-options input,
    .todo-widget__form-options select {
        min-height: 38px;
        font-size: 11px;
    }

    .todo-widget__form textarea,
    .todo-widget__edit-form textarea {
        min-height: 76px;
        font-size: 12px;
    }

    .todo-widget__quick-date {
        min-height: 30px;
        font-size: 10px;
    }

    .todo-widget__item {
        min-height: 52px;
    }
}

@container (max-width: 400px) {
    .todo-widget__chrome {
        padding: 18px 16px 18px;
        border-radius: 22px;
    }

    .todo-widget__title-input {
        font-size: 21px;
    }

    .todo-widget__subtitle,
    .todo-widget__summary,
    .todo-widget__guide,
    .todo-widget__feedback,
    .todo-widget__item-meta,
    .todo-widget__filters button,
    .todo-widget__clear {
        font-size: 10px;
    }

    .todo-widget__form input,
    .todo-widget__form select {
        min-height: 40px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 12px;
    }

    .todo-widget__form-options input,
    .todo-widget__form-options select {
        min-height: 36px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 11px;
    }

    .todo-widget__form textarea,
    .todo-widget__edit-form textarea {
        min-height: 72px;
        padding: 9px 10px;
        border-radius: 12px;
        font-size: 12px;
    }
}
