:root {
    --font-smallest: 0.75rem;
    --font-small: 0.85rem;
    --font-normal: 1rem;
    --font-big: 1.2rem;

    --color-red: #FF306E;
    --color-easy-red: #FF306E;
    --color-green: #34C759;
    --color-blue: #007AFF;
}

.box {
    border-radius: 35px;
}

.theme-light .box {
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.theme-dark .box {
    background: linear-gradient(175deg, rgba(36, 38, 45, 0.5) 0%, rgba(24, 26, 33, 0.5) 100%);
}

.dialog {
    padding: 1rem;
}

.dialog-text {
    padding: 0.3rem 0.5rem 1rem 0.5rem;
}

/***** Global *****************************************************************/

body {
    font-weight: 400;
}

body.theme-light {
    background: var(--gray-4);
    color: var(--gray-19);
}

body.theme-dark {
    background: var(--black);
    color: var(--gray-2);
}

/***** Common elements *****************************************************************/

.screen-scrollable {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

/***** Smoother *****************************************************************/

.theme-light .body-margin-smoother-top {
    display: none;
    /*background: linear-gradient(180deg, var(--color-white) 40%, rgba(255, 255, 255, 0) 100%);*/
}

.theme-dark .body-margin-smoother-top {
    background: linear-gradient(180deg, var(--color-black) 40%, rgba(0, 0, 0, 0) 100%);
}

.theme-light .body-margin-smoother-bottom {
    display: none;
    /*background: var(--color-white);*/
}

.theme-dark .body-margin-smoother-bottom {
    display: none;
    background: var(--color-black);
}

/***** Day ******************************************************************/

[data-screen="day"] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.theme-light [data-screen="day"] {
    background: linear-gradient(
        180deg,
        var(--gray-4) 0%,
        var(--gray-2) 20%,
        var(--gray-5) 33%,
        var(--gray-5) 53%,
        var(--gray-4) 100%
    );
}

.theme-dark [data-screen="day"] {
    background: linear-gradient(
        180deg,
        var(--black) 0%,
        var(--gray-18) 20%,
        var(--gray-19) 33%,
        var(--gray-20) 53%,
        var(--black) 100%
    );
}

/***** Tap feedback *************************************************************/

[data-tap] {
    transition: filter 0.08s ease;
}

[data-tap]:active,
[data-tap].tapping {
    filter: brightness(0.85);
}

[data-tap]:active:has(input[type="checkbox"]:active) {
    filter: none;
}

/***** Tabs *****************************************************************/

.tabs {
    padding: 0 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* filter: brightness() does not work inside backdrop-filter on Safari — use opacity instead */
.tabs [data-tap]:active,
.tabs [data-tap].tapping {
    filter: none;
    opacity: 0.6;
}

.tabs svg {
    width: 2rem;
    height: 2rem;
}

.tabs .spinner {
    width: 2rem;
    height: 2rem;
    font-size: 1.6rem;
}

.tab-title {
    font-size: 0.65rem;
    margin-top: 0.15rem;
    text-align: center;
}

.theme-dark .tabs svg {
    fill: var(--gray-5);
}

/***** Time Picker *****************************************************************/

#time-picker {
    padding: 4rem 1rem;
    text-align: center;
}

#time-picker-hours,
#time-picker-minutes {
    vertical-align: top;
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    height: 4rem;
    line-height: 3.75rem;
    width: 4rem;
    content: "";
    border-radius: 15px;
    border: 3px solid transparent;
}

#time-picker-divider {
    vertical-align: top;
    display: inline-block;
    font-size: 2rem;
    font-weight: 500;
    height: 4rem;
    line-height: 4rem;
    width: 1rem;
    content: "";
}

#time-picker .selected {
    border: 3px solid var(--color-blue);
}

#time-picker .invalid {
    border: 3px solid var(--color-red) !important;
}

/***** Day header *****************************************************************/

#day-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.week-mode .calendar-weekday {
    border-radius: 0 0 1.25rem 1.25rem;
    transition: 0.2s ease;
}

.week-mode .calendar-weekday-weather-conditions {
    height: 1.5rem;
    background: no-repeat center;
    background-size: 1.4rem;
}

.week-mode .calendar-weekday-weather-temperature {
    height: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.week-mode .calendar-weekday-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    height: 1.1rem;
}

.week-mode .calendar-weekday-date {
    position: relative;
    height: 2.5rem;
    font-weight: 400;
    font-size: 1.3rem;
}

.theme-light .week-mode .calendar-weekday.active {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--white) 100%);
}

.theme-dark .week-mode .calendar-weekday.active {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--gray-15) 100%);
}

.theme-light .week-mode .calendar-weekday-weather-temperature {
    color: var(--gray-13) !important;
}

.theme-dark .week-mode .calendar-weekday-weather-temperature {
    color: var(--gray-10) !important;
}

.calendar-weekday-current .calendar-weekday-date span {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--white);
}

.calendar-weekday-weekend .calendar-weekday-name,
.calendar-weekday-weekend .calendar-weekday-date {
    color: var(--color-red);
}

/**** Day title ****************************************************************/

.day-header-info {
    line-height: 2rem;
    padding: 0 2rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.theme-light .day-header-info {
    color: var(--gray-16);
}

.theme-dark .day-header-info {
    color: var(--gray-5);
}

#day-header-weather {
    font-size: 1.3rem;
    font-weight: 400;
}

.theme-light #day-header-weather {
    color: var(--gray-13);
}

.theme-dark #day-header-weather {
    color: var(--gray-10);
}

#day-header-weather-icon {
    height: 1.3rem;
    width: auto;
    margin-right: 0.3rem;
}

/***** Tickets *****************************************************************/

.ticket {
    position: relative;
    border-radius: 22px;
    margin: 0 0.7rem 0.5rem 0.7rem;
    padding: 0.75rem 1rem 0.6rem 2rem;
    overflow: hidden;
}

.theme-light .ticket {
    background: linear-gradient(180deg, var(--gray-1) 0%, var(--gray-3) 100%);
    border: 2px var(--white) solid;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 1px 0 var(--gray-7);
}

.theme-dark .ticket {
    background: linear-gradient(180deg, var(--gray-15) 0%, var(--gray-17) 100%);
    border-top: 1px var(--gray-11) solid;
    color: var(--white);
    font-weight: 500;
}

.ticket.has-time {
    padding-left: 6rem;
}

.ticket-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.5rem;
}

.ticket-description {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 400;
}

.theme-light .ticket-title,
.theme-light .ticket-description,
.theme-light .ticket-time,
.theme-light .ticket-duration {
    font-weight: 450;
}

.ticket-description,
.ticket-duration {
    color: var(--gray-10);
}

.ticket-time,
.ticket-duration {
    position: absolute;
    left: 0.9rem;
    width: 3.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.ticket-time {
    top: 0.6rem;
    font-weight: 400;
}

.ticket-duration {
    bottom: 0.5rem;
    font-size: var(--font-small);
}

.ticket-source {
    font-size: 0;
    position: absolute;
    left: 1rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 0.2rem;
    border-radius: 15px;
}

.theme-light .ticket-source {
    opacity: 1;
}

.theme-dark .ticket-source {
    opacity: 0.5;
}

.has-time .ticket-source {
    left: 5.2rem;
}

.no-tickets {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.3;
    padding: 1rem 2rem;
}

.task-list-title {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1.5rem 1rem 0.75rem 1rem;
}

.task-lists .ticket,
[data-urgent-tasks] .ticket {
    padding-left: 0.75rem;
    transition: opacity 0.3s ease;
}

.task-lists .ticket input[type="checkbox"],
[data-urgent-tasks] .ticket input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    margin-top:-1px;
    border-radius: 50%;
    border: 2px solid var(--list-checkbox-background);
    background: var(--white);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.task-lists .ticket input[type="checkbox"]:checked,
[data-urgent-tasks] .ticket input[type="checkbox"]:checked {
    background-color: var(--list-checkbox-checked-background);
}

.task-lists .ticket input[type="checkbox"]:checked::after,
[data-urgent-tasks] .ticket input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.3rem;
    height: 0.55rem;
    border-right: 2px solid var(--list-checkbox-foreground);
    border-bottom: 2px solid var(--list-checkbox-foreground);
    transform: translate(-50%, -65%) rotate(45deg) scale(1.15);
}

.tasks-show-rest-completed {
    text-align: center;
    font-weight: 600;
    opacity: 0.35;
    padding: 0.5rem 1rem 1rem 1rem;
    cursor: pointer;
}

/**** Ticket Details ****************************************************************/

#ticket-details {
    padding: 1.7rem 0.4rem 0.5rem 1.3rem;
}

#ticket-details-title {
    border-radius: 0;
    appearance: none;
    outline: none;
    margin: 0 0 0.5rem 0.4rem;
    border: none;
    font-size: 1.4rem;
    font-weight: 500;
    background: transparent;
    width: 100%;
    padding: 0;
    resize: none;
    overflow: hidden;
    display: block;
    line-height: 1.3;
    font-family: inherit;
}

.theme-dark #ticket-details-title {
    color: var(--white);
}

.ticket-details-row {
    height: 3.3rem;
    line-height: 3.2rem;
    display: flex;
}

.theme-light .ticket-details-row {
    border-top: 1px var(--gray-3) solid;
}

.theme-dark .ticket-details-row {
    border-top: 1px var(--gray-16) solid;
}

.ticket-details-row-title {
    width: 100px;
    padding: 0 0 0 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.theme-light .ticket-details-row-title {
    color: var(--gray-17);
}

.theme-dark .ticket-details-row-title {
    color: var(--gray-5);
}

.ticket-details-row-body {
    flex: 1;
    text-align: right;
    white-space: nowrap;
    font-weight: 500;
    padding-right: 1.5rem;
}

.theme-light .ticket-details-row-body {
    color: var(--black);
}

.theme-dark .ticket-details-row-body {
    color: var(--white);
}

/**** Ticket Details: DateTime  ****************************************************************/

.ticket-details-row-datetime .ticket-details-row-body {
    padding-right: 0;
}

.ticket-details-date,
.ticket-details-time {
    display: inline-block;
    vertical-align: top;
    height: 2.4rem;
    margin: 0.4rem 0.2rem;
    line-height: 2.4rem;
    border-radius: 0.5rem;
    padding: 0 0.7rem;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: center;
}

.theme-light .ticket-details-date,
.theme-light .ticket-details-time {
    background: var(--gray-3);
    color: var(--gray-17);
}

.theme-dark .ticket-details-date,
.theme-dark .ticket-details-time {
    background: var(--gray-15);
}

.ticket-details-date span,
.ticket-details-time span {
    display: inline-block;
    vertical-align: top;
}

.ticket-details-datetime-disabler {
    margin: 0 -1rem 0 0.2rem;
    padding: 0.7rem 0.4rem 0 0;
    height: 2.4rem;
    width: 2.5rem;
    text-align: center;
}

.theme-light .ticket-details-datetime-disabler {
    border-left: 2px var(--gray-1) solid;
    color: var(--gray-10);
}

.theme-dark .ticket-details-datetime-disabler {
    border-left: 2px var(--gray-17) solid;
    color: var(--gray-10);
}

.ticket-details-date [data-enabled="0"],
.ticket-details-time [data-enabled="0"] {
    font-size: 0.9rem;
    font-weight: 400;
}

.theme-light .ticket-details-date [data-enabled="0"],
.theme-light .ticket-details-time [data-enabled="0"] {
    color: var(--gray-12);
}

.theme-dark .ticket-details-date [data-enabled="0"],
.theme-dark .ticket-details-time [data-enabled="0"] {
    color: var(--gray-7);
}

#ticket-details select {
    height: 3.2rem;
    line-height: 3.2rem;
    position: relative;
    overflow: visible;
    direction: rtl;
    text-align: left;
    font-weight: 500;
}

/**** Ticket Details: Buttons  *************************************************************/

#ticket-details-controls {
    margin: 2rem -0.4rem 2rem -1.3rem; /* compensate padding of #ticket-details */
    position: relative;
}

#ticket-details-controls > * {
    position: absolute;
}

#ticket-details-delete {
    left: 1rem;
}

#ticket-details-close {
    right: 1rem;
}

#ticket-details-form-save {
    left: 6rem;
    right: 6rem;
}

/***** Demo button *****************************************************************/

.demo-mode-button:first-line {
    font-size: 1.2rem;
}

.demo-mode-button {
    text-align: center;
    background: var(--color-blue);
    color: var(--white);
    border-radius: 2rem;
    padding: 0.55rem 3.5rem 0.75rem 1rem;
    height: 4rem;
    line-height: 1.5rem;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
    font-weight: 400;
}

.demo-mode-button span {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: var(--color-blue);
    background: var(--white);
    line-height: 3rem;
    fill: #ff5500;
}

.demo-mode-button svg {
    margin-top: 0.25rem;
    width: 2.5rem;
    height: 2.5rem;
}

/***** Calendar: common *****************************************************************/

#calendar-months {
    padding: 1rem 1rem 5rem 1rem;
}

.calendar-months-week-days {
    position: absolute;
    top: 4.5rem;
    left: 1.5rem;
    right: 1.5rem;
    text-transform: uppercase;
    font-size: var(--font-small);
    font-weight: 500;
}

.theme-light .calendar-months-week-days {
    color: var(--gray-10);
    border-top: 1px solid var(--gray-4);
}

.theme-dark .calendar-months-week-days {
    color: var(--gray-10);
    border-top: 1px solid var(--gray-16);
}

.calendar-months-week-days > * {
    padding: 0.75rem 0;
}

.calendar-month-header-title {
    padding: 1rem 0 0 1rem;
    margin-bottom: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.theme-light .calendar-month-header-title {
    font-weight: 500;
}

/***** Calendar: month-mode *****************************************************************/

.month-mode .calendar-weekday-date {
    font-size: var(--font-big);
    font-weight: 500;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2rem;
    text-align: center;
    padding: 0.25rem;
    margin: 0 auto;
}

.month-mode [data-calendar-day].selected .calendar-weekday-date {
    background: var(--color-blue);
    border-radius: 12px;
    color: var(--white) !important;
}

.month-mode .calendar-weekday-current.selected .calendar-weekday-date span {
    display: inline-block;
    vertical-align: middle;
    width: 2rem;
    height: 2rem;
    background: var(--white);
    color: var(--color-red);
}

/***** Calendar: dots *****************************************************************/

[data-calendar-day-dots] {
    opacity: 0.6;
    width: 80%;
    margin: 2px auto 0.5rem auto;
    white-space: break-spaces;
}

[data-ticket-dot] {
    display: inline-block;
    vertical-align: top;
    width: 0.3rem;
    height: 0.3rem;
    margin: 1px;
    border-radius: 35%;
}

/** Animation *****************************************************************/

[data-animation="popup"] {
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    will-change: opacity, transform;
}

[data-animation="popup"].visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

[data-animation="slide-up"] {
    transform: translateY(100%);
    transition: transform 0.3s ease;
    pointer-events: none;
}

[data-animation="slide-up"].visible {
    transform: translateY(0);
    pointer-events: auto;
}

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

.overlay-gray {
    animation: overlayFadeIn 0.25s ease;
}

/** Common *****************************************************************/

[data-animation="popup"] {
    border-radius: 2rem;
}

.theme-light [data-animation="popup"] {
    /*background: linear-gradient(180deg, var(--gray-1) 0%, var(--gray-2) 65%, var(--gray-4) 100%);*/
    background: var(--gray-2);
    border-top: 2px var(--white) solid;
}

.theme-dark [data-animation="popup"] {
    /*background: linear-gradient(180deg, var(--gray-17) 0%, var(--gray-19) 65%, var(--black) 100%);*/
    background: var(--gray-19);
    border-top: 1px var(--gray-12) solid;
}

.theme-light .overlay-gray {
    background: var(--gray-4);
}

.theme-dark .overlay-gray {
    background: var(--black);
}

.overlay-blurred {
    backdrop-filter: blur(8px);
}

.theme-light .overlay-blurred {
    background: rgba(206, 207, 208, 0.5);
}

.theme-dark .overlay-blurred {
    background: rgba(44, 44, 46, 0.5);
}

/*** Select  *****************************************************************/

select {
    display: inline-block;
    vertical-align: top;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0;
}

.theme-light select {
    color: var(--gray-19);
}

.theme-dark select {
    color: var(--gray-2);
}

.with-dropdown-icon {
    position: relative;
    padding-right: 1.5rem;
}

.with-dropdown-icon:after {
    content: "▼";
    display: inline-block;
    position: absolute;
    right: 0.3rem;
}

.theme-light .with-dropdown-icon:after {
    color: var(--gray-7);
}

.theme-dark .with-dropdown-icon:after {
    color: var(--gray-13);
}

.with-dropdown-icon:has([data-select-trigger]) {
    padding-right: 0;
}

.with-dropdown-icon:has([data-select-trigger])::after {
    display: none;
}

[data-select-trigger] {
    display: block;
    width: 90%;
    margin: 0 auto;
    position: relative;
    padding-right: 1.5rem;
}

[data-select-trigger]::after {
    content: "▼";
    display: inline-block;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.theme-light [data-select-trigger]::after {
    color: var(--gray-7);
}

.theme-dark [data-select-trigger]::after {
    color: var(--gray-13);
}

@keyframes selectPickerBounce {
    0%   { transform: scale(0.5); opacity: 0; }
    50%  { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

#select-picker {
    border-radius: 1rem;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.12s ease, opacity 0.12s ease;
    transform-origin: top left;
}

#select-picker.visible {
    pointer-events: auto;
    animation: selectPickerBounce 0.28s ease-out forwards;
}

.theme-light #select-picker {
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.theme-dark #select-picker {
    background: var(--gray-17);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.theme-light #select-picker .selected-option,
.theme-dark #select-picker .selected-option {
    color: var(--color-blue);
}

.button {
    display: inline-block;
    vertical-align: top;
    border-radius: 2rem;
    height: 3.2rem;
    line-height: 3.2rem;
    padding: 0 1.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-size: 1.1rem;
    font-weight: 500;
}

.theme-light .button {
    background: var(--white);
    color: var(--gray-12);
    fill: var(--gray-12);
}

.theme-dark .button {
    background: var(--gray-16);
    color: var(--gray-7);
    fill: var(--gray-7);
}

.theme-light .button-primary,
.theme-dark .button-primary {
    background: var(--color-blue);
    color: var(--white);
}

.theme-light .button-danger,
.theme-dark .button-danger {
    background: var(--color-red);
    color: var(--white);
}

.theme-light .button-danger *,
.theme-dark .button-danger * {
    fill: var(--white);
}

.button-circle {
    width: 3.2rem;
    padding: 0;
}

.button-circle span {
    margin-top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
}

.button-circle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.button-circle.button-danger {
    color: var(--color-red);
    fill: var(--color-red);
}

/**** List *****************************************************************/


/** List **/

.list-alone {
    background: var(--list-alone-background);
    margin: 1rem;
    border-radius: 1.7rem;
}

.list-alone[data-list-caption] {
    margin-top: 2.5rem;
    position: relative;
}

.list-alone[data-list-caption]:before {
    display: block;
    overflow: auto;
    position: absolute;
    content: attr(data-list-caption);
    top: -1.5rem;
    left: 0;
    right: 0;
    font-weight: 500;
    color: var(--color-muted);
    padding: 0 1.5rem;
    font-size: var(--font-small);
    text-transform: uppercase;
}

/*************************************** List items ***************************************/

.list > * {
    position: relative;
    margin: 0 0 0 1rem;
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid var(--list-separator-color);
}

.list > *:first-child {
    padding-top: 1rem;
}

.list > *:last-child {
    border-bottom: 0;
    padding-bottom: 1rem;
}

.list > *:has(> small) {
    padding: 0.55rem 0 0.55rem 0;
}

/*************************************** List item with Icon ***************************************/

.list > *:has(> i) {
    padding-right: 3.5rem;
}

.list > * > i {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

/*************************************** Normal element ***************************************/
.list > * > div,
.list > * > input[type=text],
.list > * > input[type=password],
.list > * > input[type=number],
.list > * > select,
.list > * > a {
    display: block;
    text-decoration: none;
    line-height: 1.4;
    font-size: var(--font-normal);
    color: var(--list-normal-element-color);
    width: 100%;
    appearance: none;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*************************************** Muted element ***************************************/

.list > * > small {
    display: block;
    font-size: var(--font-small);
    color: var(--list-small-element-color);
    font-weight: 400;
}

/*************************************** Checkbox - switcher ***************************************/

.list > * input[type=checkbox] {
    position: absolute;
    right: 0.5rem;
    top: 0.25rem;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    width: 54px;
    height: 32px;
    background-color: var(--list-checkbox-background);
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.4s;
}

.list > *:has(> small) input[type=checkbox] {
    top: 0.5rem;
}

.list > * input[type=checkbox]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    background-color: var(--list-checkbox-foreground);
    border-radius: 50%;
    transition: transform 0.4s;
}

.list > * input[type=checkbox]:checked {
    background-color: var(--list-checkbox-checked-background);
}

.list input[type=checkbox]:checked::after {
    transform: translateX(22px);
}

/*!*************************************** Aside ***************************************!*/

.list > *:has(> aside) {
    display: flex;
}

.list > *:has(> aside) > * {
    flex-basis: 50%;
}

.list > *:has(> aside) > aside {
    text-align: right;
}

/*!*************************************** Select ***************************************!*/

.list > * > select:disabled {
    opacity: 1;
}

/*!*************************************** Other ***************************************!*/

.list > * > * i {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: var(--list-icon-background);
    border-radius: 50%;
    margin: 0 0.25rem;
}

.list > * .label {
    display: inline-block;
    height: 2rem;
    margin: -0.25rem;
    line-height: 2rem;
    padding: 0 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    background: var(--list-label-background);
}
