* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* #363532, rgb(88, 111, 112) */
    align-items: center;
    display: flex;
    flex-direction: column;
    font-family: 'Work Sans', sans-serif;
    min-height: 100vh;
    padding-top: 3%;
}

/* Body light or darker themes */
.standard {
    background-image: linear-gradient(100deg, #575656, #062e3f);
    color: #ffdfdb;
    transition: 0.3s linear;
}

.light {
    background-image: linear-gradient(100deg, #d4f1ff, #ffffff);
    color: #1a150e;
    transition: 0.3s linear;
}

.darker {
    background-image: linear-gradient(100deg, #001214, #001f29);
    color: white;
    transition: 0.3s linear;
}

#header, #form, #datetime {
    margin: 0 1rem;
    min-height: 10vh;
    width: 100%;
}

#header {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    font-size: 3rem;
    min-height: 25vh;
    width: 100%;
}

.top-bar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    width: 100%;
}

/* Theme buttons div */
.flexrow-container {
    align-items: center;
    display: flex;
    justify-content: space-around;
}

.theme-selector {
    border: 1px solid #d1dae3;
    border-radius: 100%;
    height: 35px;
    margin: 0 8px;
    transition: tranform 150ms ease-in-out, box-shadow 200ms ease-in-out;
    width: 35px;
}

.theme-selector.standard-theme,
.theme-selector.light-theme,
.theme-selector.darker-theme {
    padding: 0;
}

.theme-selector:hover { 
    box-shadow: white 0 0 8px;
    cursor: pointer;
}

.theme-selector:active {
    transform: scale(0.95);
}

.standard-theme {
    background-image: linear-gradient(100deg, #575656, #062e3f);
}

.light-theme {
    background-image: linear-gradient(100deg, #d4f1ff, #ffffff);
}

.darker-theme {
    background-image: linear-gradient(100deg, #001214, #001f29);
}

/* Animation */
#title {
    border-right: solid 3px rgba(0, 0, 0, 0.75);
    white-space: pre;
    overflow: hidden;     
    letter-spacing: 0.20rem;
    margin-top: 50px;
    margin-bottom: 20px;
    max-width: 480px;
  }
  
  /* Animation */
#title {
    animation: animated-text 2s steps(11,end) 0.5s 1 normal both,
        animated-cursor 750ms steps(11,end) infinite;
  }

#title.darker-title {
    animation: animated-text 2s steps(11,end) 0.5s 1 normal both, darker-animated-cursor 750ms steps(11,end) infinite;
}

#title.brand-title {
    align-items: center;
    animation: none;
    border-right: 0;
    display: flex;
    justify-content: center;
    letter-spacing: 0;
    max-width: min(86vw, 560px);
    overflow: visible;
    white-space: normal;
    width: min(86vw, 560px);
}

.brand-logo {
    border-radius: 8px;
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand-logo-dashboard {
    max-height: 150px;
}

.auth-card .auth-logo-title {
    margin-bottom: 0.8rem;
}

.brand-logo-auth {
    max-height: 82px;
}
  
  /* text animation */
  
  @keyframes animated-text{
    from{width: 0%;}
    to{width: 480px;}
  }
  
  /* cursor animations */
  
  @keyframes animated-cursor{
    from{border-right-color: rgba(0, 0, 0, 0.75);}
    to{border-right-color: transparent;}
  }

  @keyframes darker-animated-cursor {
    from{border-right-color: #01394c;}
    to{border-right-color: transparent;}
  }

form {
    display: flex;
    font-size: 1.7rem;
    justify-content: center;
    margin: 15px 0;
    padding: 0.8rem;
    width: 100%;
}

form input {
    padding: 10px;
    font-size: 17px;
    border: none;
    outline: none;
    /* border-radius: 15; */
    border-top-left-radius: 17px;
    border-bottom-left-radius: 17px;
    max-width: 500px;
    transition: background-color 200ms ease-in-out;
    width: 100%;
}

form select {
    background-color: #181a1a;
    border: none;
    color: rgb(247, 226, 223);
    font-size: 17px;
    outline: none;
    padding: 10px;
}

/* Input themes */
form input.standard-input {
    background-color: #181a1a;
    color: rgb(247, 226, 223);
}


form input.light-input {
    background-color: #AEB1B4;
    color: #1a150e;
}

form input.light-input::placeholder {
    color: #1a150e;
    opacity: 0.7;
}

form input.darker-input {
    background-color: #01394c;
    color: white;
}

form input.darker-input::placeholder {
    color: white;
    opacity: 0.7;
}

form input:hover {
    cursor: text;
}

form input.standard-input:hover {
    background-color: rgb(0, 0, 0);
}

form input.light-input:hover {
    background-color: #919699;
}

form input.darker-input:hover {
    background-color: #013141;
}

button {
    border: none;
    outline: none; 
    transition: box-shadow 200ms ease, background-color 200ms ease-in-out;
}

button:hover {
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* Button themes */
button.standard-button {
    background-color: rgb(247, 226, 223);
    color: rgb(0, 0, 0);
}

button.standard-button:hover {
    background-color: white;
    box-shadow: #fff8 0 0 10px;
}

button.light-button {
    background-color: white;
    color: #1a150e;
}

button.light-button:hover {
    background-color: #f0f0f0;
}

button.darker-button {
    background-color: #002837;
    color: white;
}

button.darker-button:hover {
    background-color: #001f29;
}

form button {
    padding: 10px;
    font-size: 17px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    min-width: 100px;
}

.task-file-picker,
.task-inline-upload {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px dashed rgba(255, 255, 255, 0.35);
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.6rem 0.8rem;
}

.task-file-picker {
    border-radius: 0;
}

.task-file-picker input,
.task-inline-upload input {
    display: none;
}

.task-inline-upload {
    border-radius: 8px;
}

.task-inline-upload:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.6;
}

#myUnOrdList {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

.task-sections {
    gap: 0.85rem;
    padding: 0 1rem;
}

.task-section {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
}

.section-heading,
.section-toggle {
    align-items: center;
    background: rgba(0, 0, 0, 0.26);
    color: inherit;
    display: flex;
    font-size: 1.1rem;
    font-weight: 700;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    text-align: left;
    width: 100%;
}

.section-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-heading span:first-child,
.section-toggle span:first-child {
    align-items: center;
    display: inline-flex;
    gap: 0.55rem;
}

.section-toggle .fa-chevron-down {
    transition: transform 160ms ease;
}

.task-section.is-collapsed .section-toggle .fa-chevron-down {
    transform: rotate(-90deg);
}

.section-count {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.9rem;
    height: 1.8rem;
    justify-content: center;
    min-width: 1.8rem;
    padding: 0 0.55rem;
}

.section-panel {
    padding: 0.5rem 0 0.8rem;
}

.task-section.is-collapsed .section-panel {
    display: none;
}

.section-task-form {
    margin: 0;
}

.todo-list {
    max-width: 1200px;
    overflow: visible;
    /* To remove the bullets of unordered list */
    list-style: none;
    width: 100%;
}

.todo {
    margin: 0.65rem 1rem;
    /* background: rgb(247, 226, 223); */
    /* color: black; */
    font-size: 18px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 2.4rem minmax(220px, 1fr) repeat(4, 2.4rem);
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    transition: background-color 200ms ease-in-out;
    width: calc(100% - 2rem);
}

/* Items themes */
.standard-todo {
    background-color: rgb(26, 27, 27);
}

.light-todo {
    background-color:#AEB1B4;
}

.darker-todo {
    background-color: #01394c;
}

.todo li{
    display: block;
    line-height: 1.35;
    max-width: 100%;
    padding: 0.2rem 0;
    /* word-wrap: break-word; */
    /* flex-wrap: wrap; */
    font-size: 18px;
    border-radius: 8px;
    min-width: 0;

    /* wraps the links */
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.check-btn,
.delete-btn,
.drag-btn,
.pin-btn,
.edit-btn,
.save-edit-btn,
.cancel-edit-btn {
    font-size: 19px;
    cursor: pointer;
    justify-self: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 8px;
    margin: 0;
}

.drag-btn,
.admin-drag-handle {
    cursor: grab;
    touch-action: none;
}

.drag-btn:active,
.admin-drag-handle:active {
    cursor: grabbing;
}

.todo.dragging,
.admin-task-item.dragging {
    opacity: 0.45;
}

.todo.pinned,
.admin-task-item.pinned {
    box-shadow: rgba(255, 230, 109, 0.55) 0 0 0 2px, rgba(0, 0, 0, 0.2) 0 8px 22px;
}

.priority-top {
    border-left: 5px solid #ff5a5f;
}

.priority-mid {
    border-left: 5px solid #ffd166;
}

.priority-low {
    border-left: 5px solid #06d6a0;
}

.recycle-bin,
.admin-recycle-bin {
    align-items: center;
    background: rgba(0, 0, 0, 0.34);
    border: 2px dashed rgba(255, 255, 255, 0.38);
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0.5rem auto 1.5rem;
    max-width: 720px;
    padding: 0.85rem 1rem;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
    width: calc(100% - 2rem);
}

.recycle-bin > div,
.admin-recycle-bin > div {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.recycle-bin.is-over,
.admin-recycle-bin.is-over {
    background: rgba(122, 22, 15, 0.5);
    border-color: #ffd6d1;
    transform: translateY(-2px);
}

.empty-recycle-btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
}

.todo-item {
    padding: 0rem 0.5rem;
}

.task-files-panel {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    grid-column: 2 / -1;
    padding-top: 0.2rem;
}

.task-file-list {
    display: flex;
    flex: 1 1 320px;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 0;
}

.task-file-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    display: inline-flex;
    gap: 0.35rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.3rem;
}

.task-file-card a {
    align-items: center;
    color: inherit;
    display: inline-flex;
    gap: 0.4rem;
    max-width: min(280px, 65vw);
    min-width: 0;
    text-decoration: none;
}

.task-file-card img {
    aspect-ratio: 1;
    border-radius: 6px;
    height: 3rem;
    object-fit: cover;
    width: 3rem;
}

.task-file-card span {
    font-size: 0.82rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-file-delete {
    border-radius: 6px;
    flex: 0 0 1.9rem;
    height: 1.9rem;
    width: 1.9rem;
}

.todo-edit-form {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    grid-column: 2 / 3;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.todo-edit-form input {
    border-radius: 18px;
    font-size: 18px;
    max-width: none;
    min-width: 0;
}

.task-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fa-trash, .fa-check { 
    pointer-events: none;
}

.fa-grip-vertical,
.fa-thumbtack,
.fa-recycle,
.fa-paperclip,
.fa-file,
.fa-pen,
.fa-save,
.fa-times {
    pointer-events: none;
}


.completed {
    transition: 0.2s;
    text-decoration: line-through;
    opacity: 0.5;
}

.fall {
    transition: 0.5s;
    transform: translateY(45rem) rotateZ(45deg);
    opacity: 0;
}

.user-menu {
    align-items: center;
    display: flex;
    font-size: 1rem;
    gap: 0.75rem;
}

.logout-link,
.auth-switch a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-page {
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.22) 0 20px 45px;
    max-width: 430px;
    padding: 2rem;
    width: 100%;
}

.auth-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auth-card p {
    line-height: 1.5;
    margin-bottom: 1rem;
}

.auth-form {
    align-items: stretch;
    flex-direction: column;
    font-size: 1rem;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    background-color: #181a1a;
    border-radius: 8px;
    color: rgb(247, 226, 223);
    max-width: none;
}

.auth-form .remember-row {
    align-items: center;
    flex-direction: row;
}

.auth-form input[type="checkbox"] {
    width: auto;
}

.auth-form button {
    border-radius: 8px;
    width: 100%;
}

.auth-error,
.auth-message {
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75rem;
}

.auth-error {
    background: rgba(180, 35, 24, 0.85);
    color: white;
}

.auth-message {
    background: rgba(1, 57, 76, 0.95);
    color: white;
}

.auth-switch {
    margin-top: 1rem;
    text-align: center;
}

.admin-page {
    align-items: stretch;
    padding: 2rem;
}

.admin-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.admin-header h1 {
    font-size: 2.4rem;
}

.admin-heading-brand,
.admin-user-heading-card {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.admin-heading-logo {
    max-height: 58px;
    max-width: min(220px, 60vw);
}

.admin-user-heading-card {
    background: rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.2) 0 14px 32px;
    padding: 0.85rem 1rem;
}

.admin-kicker {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.admin-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.admin-nav a,
.admin-action-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-user-link {
    display: inline-block;
}

.admin-shell {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.admin-panel {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.18) 0 18px 40px;
    margin-bottom: 1rem;
    padding: 1rem;
}

.admin-panel-heading {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.admin-panel h2 {
    font-size: 1.35rem;
}

.admin-refresh,
.admin-icon-button {
    background-color: rgb(247, 226, 223);
    border-radius: 8px;
    color: #000;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
}

.admin-task-form button,
.admin-edit-form button {
    border-radius: 8px;
    margin-top: 0;
    min-width: auto;
    width: auto;
}

.admin-icon-button {
    align-items: center;
    display: inline-flex;
    flex: 0 0 2.4rem;
    height: 2.4rem;
    justify-content: center;
    padding: 0;
    width: 2.4rem;
}

.admin-icon-button.danger {
    background-color: #ffd6d1;
    color: #7a160f;
}

.admin-status {
    min-height: 1.4rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    border-collapse: collapse;
    width: 100%;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.admin-table th {
    font-weight: 700;
}

.admin-task-form,
.admin-edit-form,
.admin-access-form {
    align-items: stretch;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}

.is-hidden {
    display: none !important;
}

.admin-task-form input,
.admin-edit-form input {
    background-color: #181a1a;
    border-radius: 8px;
    color: rgb(247, 226, 223);
    max-width: none;
}

.admin-access-form {
    align-items: flex-start;
    flex-direction: column;
    min-width: 220px;
}

.admin-access-form select {
    background-color: #181a1a;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgb(247, 226, 223);
    font-size: 0.95rem;
    padding: 0.55rem;
    width: 100%;
}

.admin-assignment-list {
    display: grid;
    gap: 0.4rem;
    max-height: 9rem;
    overflow: auto;
    width: 100%;
}

.admin-assignment-list label {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    line-height: 1.25;
    white-space: normal;
}

.admin-assignment-list input {
    flex: 0 0 auto;
}

.admin-task-list {
    list-style: none;
}

.admin-task-sections {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-task-item {
    align-items: center;
    background-color: rgb(26, 27, 27);
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 2.4rem minmax(220px, 1fr) 2.4rem 2.4rem 2.4rem 2.4rem auto;
    margin-top: 0.75rem;
    padding: 0.65rem;
}

.admin-task-files-panel {
    grid-column: 2 / -1;
}

.admin-task-item .admin-edit-form {
    grid-column: 2 / 3;
}

.admin-task-item.completed input {
    opacity: 0.58;
    text-decoration: line-through;
}

.admin-task-preview {
    font-size: 0.95rem;
    grid-column: 2 / 3;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.admin-task-meta {
    font-size: 0.88rem;
    opacity: 0.8;
    white-space: nowrap;
}

/* Responsive design */
@media only screen and (max-width: 1000px) {
    .flexrow-container {
        margin-right: 0;
    }
}

@media only screen and (max-width: 800px) {
    #header {
        font-size: 2rem;
    }

    #title {
        animation: 
            animated-text 3s steps(16,end) 0.5s 1 normal both,
            animated-cursor 750ms steps(16,end) infinite;
        margin-bottom: 10px;
        margin-top: 30px;
        max-width: 330px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .admin-nav {
        justify-content: flex-start;
    }

    .admin-task-item {
        grid-template-columns: 2.4rem 1fr 2.4rem 2.4rem 2.4rem 2.4rem;
    }

    .todo {
        grid-template-columns: 2.4rem 1fr 2.4rem 2.4rem 2.4rem 2.4rem;
    }

    .task-files-panel,
    .todo-edit-form {
        grid-column: 2 / -1;
    }

    .admin-task-meta {
        grid-column: 2 / -1;
    }
}

@media only screen and (max-width: 400px) {
    #header {
        font-size: 1.5rem;
    }

    #title {
        animation: 
            animated-text 3.5s steps(16,end) 0.5s 1 normal both,
            animated-cursor 750ms steps(16,end) infinite;
        max-width: 255px;
    }
}

@media only screen and (max-width: 400px) {
    .top-bar {
        align-items: center;
        flex-direction: column;
        gap: 1rem;
    }

    form {
        align-items: center;
        flex-direction: column;
    }

    form input {
        border-radius: 17px;
    }

    form button {
        border-radius: 15px;
        margin-top: 15px;
        width: 50%;
    }
    form > button.light-button {
        box-shadow: 0 0 5px lightgray;
    }

    .admin-page {
        padding: 1rem;
    }

    .admin-task-form,
    .admin-edit-form,
    .admin-access-form {
        flex-direction: row;
    }
}

@media only screen and (max-width: 600px) {
    html {
        overflow-x: hidden;
    }

    body {
        min-height: 100dvh;
        overflow-x: hidden;
        padding: 0;
        width: 100%;
    }

    #header,
    #form,
    #datetime {
        margin: 0;
    }

    #header {
        font-size: 1.55rem;
        min-height: auto;
        padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.7rem;
    }

    .top-bar,
    .admin-header {
        gap: 0.8rem;
        padding: 0;
    }

    .user-menu,
    .admin-nav {
        gap: 0.55rem;
        width: 100%;
    }

    .user-menu {
        align-items: flex-start;
        flex-direction: column;
    }

    #title {
        font-size: 2.35rem;
        margin-top: 1.2rem;
        max-width: min(100%, 330px);
    }

    .version,
    #datetime {
        display: none;
    }

    #myUnOrdList,
    .admin-shell {
        max-width: none;
        padding: 0 0.75rem 1rem;
    }

    .admin-page {
        padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 1rem;
    }

    .admin-header {
        margin-bottom: 0.85rem;
    }

    .admin-user-heading-card,
    .admin-panel {
        box-shadow: none;
        width: 100%;
    }

    .admin-header h1 {
        font-size: 1.55rem;
        line-height: 1.15;
    }

    .admin-panel {
        padding: 0.8rem;
    }

    .section-heading,
    .section-toggle {
        min-height: 3rem;
        padding: 0.75rem 0.85rem;
    }

    .section-panel {
        padding: 0.55rem;
    }

    .section-task-form,
    .admin-task-form,
    .admin-access-form {
        align-items: stretch;
        flex-direction: column;
        gap: 0.55rem;
        padding: 0;
    }

    .section-task-form input,
    .admin-task-form input,
    .admin-task-form select,
    .admin-access-form select,
    .task-file-picker,
    .section-task-form button,
    .admin-task-form button,
    .admin-access-form button {
        border-radius: 8px;
        min-height: 2.85rem;
        width: 100%;
    }

    .admin-task-item,
    .todo {
        align-items: start;
        gap: 0.55rem;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin: 0.65rem 0 0;
        padding: 0.75rem;
        width: 100%;
    }

    .admin-task-preview,
    .todo-item {
        font-size: 1rem;
        grid-column: 1 / -1;
        grid-row: 1;
        line-height: 1.45;
        min-width: 0;
        overflow-wrap: anywhere;
        padding: 0.15rem 0 0.35rem;
        word-break: normal;
    }

    .todo li {
        font-size: 1rem;
        word-break: normal;
    }

    .admin-drag-handle,
    .drag-btn {
        grid-column: 1;
        grid-row: 2;
    }

    .admin-icon-button,
    .check-btn,
    .delete-btn,
    .drag-btn,
    .pin-btn,
    .edit-btn,
    .save-edit-btn,
    .cancel-edit-btn {
        height: 2.65rem;
        min-height: 2.65rem;
        min-width: 0;
        width: 100%;
    }

    .admin-task-item > .admin-icon-button:not(.task-file-delete),
    .todo > button {
        grid-row: 2;
    }

    .admin-task-item > button:nth-of-type(1),
    .todo > button:nth-of-type(1) {
        grid-column: 1;
        justify-self: stretch;
        width: 100%;
    }

    .admin-task-item > button:nth-of-type(2),
    .todo > button:nth-of-type(2) {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
    }

    .admin-task-item > button:nth-of-type(3),
    .todo > button:nth-of-type(3) {
        grid-column: 3;
        justify-self: stretch;
        margin-right: 0;
        width: 100%;
    }

    .admin-task-item > button:nth-of-type(4),
    .todo > button:nth-of-type(4) {
        grid-column: 4;
        justify-self: stretch;
        margin-right: 0;
        width: 100%;
    }

    .admin-task-item > button:nth-of-type(5),
    .todo > button:nth-of-type(5) {
        grid-column: 5;
        justify-self: stretch;
        width: 100%;
    }

    .admin-task-meta {
        grid-column: 1 / -1;
        white-space: normal;
    }

    .task-files-panel,
    .admin-task-files-panel {
        grid-column: 1 / -1;
    }

    .task-file-list {
        flex-basis: 100%;
    }

    .task-file-card,
    .task-file-card a,
    .task-inline-upload {
        width: 100%;
    }

    .task-file-delete,
    .task-file-delete.admin-icon-button {
        flex: 0 0 2.4rem;
        height: 2.4rem;
        min-height: 2.4rem;
        width: 2.4rem;
    }

    .todo-edit-form,
    .admin-task-item .admin-edit-form {
        align-items: stretch;
        flex-direction: column;
        grid-column: 1 / -1;
        grid-row: 1 / span 2;
    }

    .todo-edit-form input,
    .admin-edit-form input {
        border-radius: 8px;
    }

    .recycle-bin,
    .admin-recycle-bin {
        align-items: stretch;
        flex-direction: column;
        margin: 0.8rem 0.75rem 1rem;
        width: calc(100% - 1.5rem);
    }

    .admin-table-wrap {
        overflow: visible;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        background: rgb(26, 27, 27);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        margin-top: 0.75rem;
        padding: 0.75rem;
    }

    .admin-table td {
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 0.7rem;
        justify-content: space-between;
        padding: 0.55rem 0;
        white-space: normal;
        word-break: break-word;
    }

    .admin-table td:first-child {
        padding-top: 0;
    }

    .admin-table td:first-child::before,
    .admin-table td:nth-child(2)::before {
        display: none;
    }

    .admin-table td:first-child,
    .admin-table td:nth-child(2) {
        border-bottom: 0;
        display: block;
    }

    .admin-table td:nth-child(2) {
        padding-top: 0.35rem;
    }

    .admin-table td::before {
        color: rgba(255, 223, 219, 0.78);
        content: attr(data-label);
        flex: 0 0 6rem;
        font-weight: 700;
    }

    .admin-table td:last-child {
        border-bottom: 0;
        display: block;
        padding-bottom: 0;
    }

    .admin-table td:last-child::before {
        display: none;
    }

    .admin-table .admin-action-link {
        background-color: rgb(247, 226, 223);
        border-radius: 8px;
        color: #000;
        display: block;
        font-weight: 700;
        padding: 0.8rem;
        text-align: center;
        text-decoration: none;
        width: 100%;
    }

    .admin-table .admin-user-link {
        background: transparent;
        color: inherit;
        font-size: 1.05rem;
        padding: 0;
        text-align: left;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}
