:root {
    --size1: 14px;
    --size2: 12px;
    --stat1: 21px;
    --stat2: 21px;
    --stat3: 18px;
    --statm2: -7px;
    --statm3: -4px;
    --bg1: #fff;
    --bg2: #eee;
    --bg3: #aaa;
    --bcolor1: #000;
    --bcolor2: #ccc;
    --border1: #888;
    --text1: #000;
    --text2: #444;
    --text3: #888;
    --text4: #ccc;
    --text5: #fff;
    --hover1: #ffff0088;
}

body {
    background: var(--bg2);
    color: var(--text1);
    margin: 0;
    font-family: sans-serif;
}
.col-50 {
    width: 50%;
    float: left;
}
.tasks > div {
    margin: 4px;
}
.tasks > div, .task-full {
    padding: 6px;
    background: var(--bg1);
    border-radius: 10px;
    box-shadow: 0 0 13px rgb(0 0 0 / 50%);
}
.tasks .task:hover {
    background: rgba(255,255,0,0.1);
}
.task-full .tasks > div {
    margin: 10px 0 5px 0;
}
.task-info {
    margin-bottom: 2px;
}
.task-info .task-importance {
    color: #fff;
    padding: 0 2px;
    display: inline;
}
.task-info > div {
    display: inline;
}
.task-info > div, .note-info, .tcount {
    font-size: var(--size2);
    color: #aaa;
    white-space: pre;
}
.task-info .task-plan span {
    color: #000;
    padding: 0 2px;
}
.task-info .task-start span::before {
    content: '\2191 ';
}
.task-info .task-end span::before {
    content: '\2193 ';
}
a {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.task-full .task-task {
    font-weight: bold;
}
.task-full {
    margin: 30px 20px 13px 20px
}
.task-full > .task {
    margin-top: 20px;
}
a.button {
    padding: 0 5px;
    border-radius: 5px;
    background: var(--bg3);
    color: #fff;
    border: 1px solid var(--border1);
    cursor: pointer;
    font-size: 12px;
}
a.noteedit {
    float: right;
    border-radius: 0 10px;
}
a.notename {
    float: left;
    border-radius: 10px 0;
    font-size: var(--size2);
    box-shadow: 0 0 3px;
    margin: 0 6px 0 -6px;
    padding: 0 4px;
}
a.button.toptab {
    border-radius: 0 0 5px 5px;
    border-top: 0;
    padding: 3px 5px;
}
a.button.toptab[active] {
    background: green;
    cursor: default;
    padding-bottom: 5px;
 }

 a.button.newtask {
    border-radius: 0 0 5px 0;
    border-width: 0 1px 1px 0;
    position: fixed;
    padding: 5px;
    font-size: 150%;
    line-height: var(--size1);    
}
.topbar {
    width: 100%;
    top: 0;
    position: fixed;
    background: var(--bg2);
}
.topbar a {
    box-shadow: 0 0 6px rgb(0 0 0 / 50%);
    font-size: 14px;
}
.topbarheight {
    height: 25px;
}

.task-info .task-status {
    width: var(--size1);
    height: var(--size1);
    display: inline-block;
    border-radius: 8px;
    background-clip: padding-box !important;
    color: black;
    text-align: center;
    font-size: var(--stat1);
    vertical-align: middle;
}
.tasks.child{
    margin-left:20px;
}
.both {
    clear: both;
    border-bottom: 1px solid #000;
    margin-bottom: 20px;
    height: 20px;
}
.task-info .task-importance, .tasks .task-rest, .tasks .task-size {
    font-size: var(--size1);
}
.progressbar {
    height: 2px;
    background: #aaa;
    display: block;
}
.progressbar.full {
    height: 4px;
}
.task-parent a {
    text-decoration: underline;
}
.controls {
    margin: 6px 0px 20px 0px;
}
.note {
    border-radius: 10px;
    border-left: 1px solid #000;
    padding: 0 0 3px 6px;
    margin-bottom: 6px;
    box-shadow: 0 0 2px rgb(0 0 0 / 50%);
    //background: var(--bg1);
}
.note-text {
    padding-right: 6px;
}
.note-text a {
    color: #1A73E8;
}
dialog {
	display: none;
}
dialog[open] {
	display: block;
    box-shadow: 0 0 6px;
}
#task-fullprogress {
    text-align: right;
    display: inline;
}

.task-play b {
    color: red;
}

#progessrange {
    width: 100%;
}

#progessfill {
    width: 40px;
}

.task-task input {
    width: 100%;
}

.switch-toggle a {
    border-radius: 0;
  	display: inline-block;
    cursor: pointer;
 }
 .switch-toggle a + a {
    border-left: 0;
 }
 .switch-toggle a:nth-child(1) {
    border-radius: 5px 0 0 5px;
 }
 .switch-toggle a:last-child {
    border-radius: 0 5px 5px 0;
 }
 .switch-toggle a[active] {
    background: green;
    cursor: default;
 }

 #swviewmode, #sweditor {
   	float: right;
 }

 form#note {
    margin: 10px;
 }

 textarea[name="note"],  textarea[name="descr"] {
    width: calc(100% - 10px);
    height: 400px;
 }

 #symbolcount {
    text-align: right;
    font-size: 60%;
    color: var(--text3);
 }

 #symbolcount span {
    color: var(--text2);
 }

.notes {
    margin-bottom: 20px;
}

#submitcont {
    display: inline;
    float: right;
}

#notecont, #descrcont {
    clear: both;
}

.task-type t {
    width: 16px;
    display: inline-block;
    text-align: center;
    color: var(--text1);
    /*color: transparent;
    text-shadow: 0 0 0 var(--text3);*/
}

.task-info > .task-sort {
    font-size: x-small;
    color: var(--text4);
}

#shdescr, #shnotes {
    float: right;
    margin-right: 15px;
    display: inline-block;
}
#shdescr[active], #shnotes[active], .button.green {
    background: green;
}
.button.green.big {
    font-size: var(--size1);
    padding: 5px 15px;
}
.parents {
    display: inline;
    font-size: var(--size2);
    font-weight: normal;
    color: #aaa;
}
.parents a {
    color: #aaa;
    text-decoration: underline;
}
.task-status i1 {
    margin-top: var(--statm2);
    display: block;
    font-size: var(--stat2);
}
.task-status i2 {
    margin-top: var(--statm3);
    display: block;
    font-size: var(--stat3);
}
#user {
    position: fixed;
    right: 5px;
}
#friends {
    position: fixed;
    right: 40px;
}
.task-info l, .task-info label {
    color: var(--text1);
    font-size: var(--size2);
}
.task-wait > span {
    color: var(--text1);
    font-size: var(--size1);
}
.task[mini] .task-descr > div, .task[mini] .task, .task[mini] .note-text, .task-full .task .task .notes, .task[mini] .note {
    display: none;
}
.task[mini] .note:has([sact]) {
    display: block;
    font-size: var(--size2);
}
.task[mini] .notes {
    margin-bottom: 0px;
}
.rtaskbar a {
    width: 14px;
    margin-left: 6px;
    text-align: center;
}
.rtaskbar [n] {
    cursor: default;
    opacity: 0.2;
}
.rtaskbar [d] {
    //transform: scaleY(0.5);
    //transform: scaleX(1.5);
}
.rtaskbar [au] {
    line-height: 7px;
    margin-bottom: 10px;
}
.rtaskbar [ad] {
    line-height: 14px;
}
.task[mini] .task-descr {
    font-size: var(--size2);
    font-weight: normal;
}
[shide], [sopen] .rtaskbar, [sact] .rtaskbar {
    display: none !important;
}
[sopen]:not([sact]) {
    //opacity: 0.3;
    display: block !important;
}
[sact] {
    display: block !important;
}
.task:has(> .task-task a[sact]), .task:has(> .task-descr[sact]), .task:has(> .notes .note-text[sact]) {
    background: rgba(0,255,0,0.15) !important;
}
.hilight, .rtaskbar a:hover {
    background: rgba(255,255,0,0.6);
}
.goal {
    clear: both;
    
}
.goalimg {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    float: left;
    margin: -15px 5px 20px -6px;
    padding: 3px;
    box-shadow: 0 0 13px rgb(0 0 0 / 50%);
}
.goalimg img {
    width: 100%;
    height: 100%;
    border-radius: 47px;
    background: #888888;
}
.done .goalimg {
    padding: 0;
}
.done .goalimg img {
    border-radius: 50px;
}
div:has(>.goal) b {
    display: block;
    margin-bottom: 20px;
}
.task-files a, a.link {
    text-decoration: underline;
}
.task-files .file {
    display: inline-block;
}
.task-files div, .task-image div {
    padding: 3px 5px;
    margin: 3px 5px;
}
.task-files [edit] {
    border: 1px solid var(--text1);
    border-radius: 14px;
}
.task-files [edit] b, .minname a {
    color: #aa0000;
    cursor: pointer;
}
.task-files [edit] b:hover, a .minname:hover {
    background: var(--hover1);
}
.mainimg img {
    max-width: 100%;
}
.error {
    color: red;
}
.minname {
    box-shadow: 0 0 3px;
    margin: 0 4px;
    padding: 0 4px;
    border-radius: 6px;
    border: 1px var(--text1);
    color: var(--text1);
}
[mini] .minname {
    border-radius: 0 10px;
    font-size: var(--size2);
    box-shadow: 0 0 3px;
    margin: 4px 6px -6px -6px;
    padding: 0 4px;
}
[mini] .ltaskbar, [mini] .rtaskbar {
    float: left;
    shape-outside: inset(calc(100% - 10px) 0 0 0);
    display: flex;
    align-items: flex-end;
    height: 100%;
}
[mini] .rtaskbar {
    float: right;
    shape-outside: inset(calc(100% - 10px) 0 0 0);
    display: flex;
    align-items: flex-end;
    height: 100%;
    margin: 8px -4px -11px 0;
}
[mini] .task-task {
    display: flex;
}
[mini] .task-task > div {
    width: 100%;
}
label, input[type="checkbox"] {
    cursor: pointer;
}
.task-perf l {
    color: var(--text3);
}

@media (max-width: 768px) {
    :root {
        --stat1: 19px;
        --stat2: 13px;
        --stat3: 16px;
        --statm2: -3px;
    }
    a.button.newtask {
        padding: 3px 7px 7px 7px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg1: #333;
        --bg2: #222;
        --bg3: #666;
        --bcolor1: #fff;
        --bcolor2: #666;
        --border1: #000;
        --text1: #fff;
        --text2: #ccc;
        --text4: #444;
        --text5: #000;
    }
    a, .task-importance, .task-info .task-plan span{
        color: #fff;
    }
    .both {
        border-color: #fff;
    }
}