*,
::before,
::after {
	box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    --padding-body: 0.5em;
    --border-radius: 0.375rem;
    --duration: 0.2s;
    --color-default: #111;
    --color-background: #eee;
    --color-primary: #35b027;
    --color-primary-contrast: #111;
    --color-gray: #888;
    --color-gray-lighter: #ccc;
    --color-gray-light: #ddd;
}

@media (prefers-color-scheme: dark) {
    html {
        --color-default: #fff;
        --color-background: #222;
        --color-gray-lighter: #444;
        --color-gray-light: #333;
    }
}

body {
    margin: 0;
    font: 1rem/1 Arial, sans-serif;
    color: var(--color-default);
    background-color: var(--color-background);
}

a {
    text-decoration-line: none;
    color: inherit;
}

button {
    -webkit-appearance: button;
    padding: 0;
    color: inherit;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-weight: inherit;
    font-size: 100%;
    line-height: 1;
    margin: 0;
}

img {
    vertical-align: top;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.btn, .ctrl {
    font-weight: 700;
    line-height: 1.25;
    padding: 1em;
    border-radius: 1.5em;
}

.btn._lg, .ctrl._lg {
    font-size: 1.125em;
}

.btn {
    color: var(--color-primary-contrast);
    background-color: var(--color-primary);
}

.ctrl {
    padding: 0.875em;
    color: inherit;
    background-color: transparent;
    border: solid 0.125em;
}

.icon {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 1em;
    line-height: 1;
    font-style: normal;
}

.root {
    padding: var(--padding-body);
}

.hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--padding-body);
}

html._authed .user__guest {
    display: none;
}

.user__auth {
    display: flex;
    align-items: center;
    column-gap: 10px;
}

.user__auth:not(html._authed .user__auth) {
    display: none;
}

.user__pic {
    display: block;
    width: 2em;
    height: 2em;
    background-color: var(--color-gray);
    background-image: var(--user-pic, none);
    background-position: 50% 50%;
    background-size: cover;
    border-radius: 50%;
    overflow: hidden;
}

.user__name {
    font-size: 0.8125em;
}

.panel {
    position: fixed;
    right: 1em;
    bottom: 1.5em;
}

[popover] {
    font-size: 1rem;
    padding: 0.5em;
    color: var(--color-default);
    background-color: var(--color-background);
    border: none;
    border-radius: var(--border-radius);
}

[popover]._down {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

[popover]::backdrop {
    background-color: #000;
    opacity: 0.5;
}

.nav {
    background-color: var(--color-gray-light);
    border: solid 0.0625rem var(--color-gray-lighter);
    border-radius: var(--border-radius);
}

.nav li {
    border-top: solid 0.0625rem var(--color-gray-lighter);
}

.nav li:first-child {
    border-top: none;
}

.nav li button {
    width: 100%;
    font-size: 1.125em;
    font-weight: 700;
    text-align: left;
    padding: 1em;
}

.view:not(._active) {
    display: none;
}

.share {
    display: flex;
    flex-flow: column;
    row-gap: 0.5em;
}

.items__list {
    display: flex;
    flex-flow: column;
}

.items._list .items__list {
    row-gap: 0.5em;
}

.items:not(._mass) .items__mass-on,
.items:not(._mass) .items__mass-one,
.items._mass .items__mass-off,
.items._mass:not([data-items-qty="1"]) .items__mass-one {
    display: none;
}

.item {
    display: flex;
    justify-content: space-between;
    background-color: var(--color-gray-light);
}

.item._sel {
    background-color: var(--color-gray);
}

.item__icon, .item__name, .item__actions {
    font-size: 1.125em;
    font-weight: 700;
    padding: 1.125rem;
}

.item__icon {
    padding-left: 0.5625rem;
    padding-right: 0;
}

.item__icon._not-done {
    color: var(--color-primary);
}

.item__name {
    flex: 1 1 0px;
    min-width: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item__name:focus-visible {
    outline: solid 0.0625rem var(--color-primary);
    border-radius: var(--border-radius);
}

.item._list {
    border-radius: var(--border-radius);
}

.item._task {
    margin-left: calc(0em - var(--padding-body));
    margin-right: calc(0em - var(--padding-body));
    border-top: solid 0.0625em var(--color-gray-lighter);
}

.item._task:first-child {
    border-top-color: transparent;
}

.item._task._done .item__icon._not-done {
    display: none;
}

.item._task:not(._done) .item__icon._done {
    display: none;
}

.item._task._done {
    color: var(--color-gray);
    background-color: transparent;
    border-top-color: transparent;
}

.alert {
    max-width: 80vw;
    padding: 1em;
    border-radius: var(--border-radius);
    opacity: 1;
    transform: translateY(0);
    transition: all var(--duration);
}

.alert._success {
    color: #fff;
    background-color: #4caf50;
}

.alert._danger {
    color: #fff;
    background-color: #f44336;
}


.alerts {
    position: fixed;
    z-index: 9999;
    top: 4rem;
    left: 0;
    right: 0;
    height: 0;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    row-gap: 0.5em;
}

.alerts .alert {
    box-shadow: 0 0 10px #0001;
}

@starting-style {
    .alert {
        opacity: 0;
        transform: translateY(-100%);
    }
}