/* Today list page: header/icon sizing alignment */
.today-menu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 12px 8px;
    padding: 8px 10px;
    background: #fffaf2;
    border: 1px solid #ffe3b4;
    border-radius: 6px;
}

.today-menu-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.today-menu-title {
    font-size: calc(var(--font-size-base) + 1px);
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1.35;
}

.today-menu-controls {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.today-menu-controls::-webkit-scrollbar {
    display: none;
}

.today-menu-controls .today-tab-menu {
    display: inline-flex;
    min-width: max-content;
    flex-wrap: nowrap;
}

.today-tab-menu .tab-item,
.today-sub-menu .sub-item {
    touch-action: manipulation;
}

.today-content-panel {
    margin: 10px 12px 0;
    border: 1px solid #d5dce4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.today-content-list {
    display: none;
}

.today-content-list.is-active {
    display: block;
}

.today-content-summary {
    padding: 12px;
    font-size: var(--font-size-sm);
    color: var(--color-text);
    border-bottom: 1px solid #e5e5e5;
    line-height: 1.45;
}

.today-wrong-link,
.today-wrong-link:hover,
.today-wrong-link:focus {
    color: var(--color-blue);
    text-decoration: none;
}

.today-inline-post-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.today-wrong-link-btn {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-blue);
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
}

.today-wrong-link-btn:hover,
.today-wrong-link-btn:focus {
    color: var(--color-blue);
    text-decoration: none;
}

.today-content-panel .today-list-item:first-child {
    border-top: none;
}

.today-section .today-item-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.45;
    word-break: keep-all;
}

.today-item-result {
    margin-left: 0;
    margin-right: 4px;
    color: var(--color-dark-gray);
    font-size: var(--font-size-sm);
}

.today-item-ox {
    display: inline-block;
    margin-right: 4px;
    color: var(--color-red);
    font-weight: 700;
}

.today-section .today-item-count {
    font-size: var(--font-size-sm);
    color: var(--color-dark-gray);
    margin-top: 4px;
}

.today-section .today-item-action {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: right;
}

.today-group-no {
    display: inline-block;
    color: #000;
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.today-empty {
    margin: 0;
    padding: 16px 12px;
    text-align: center;
    color: var(--color-dark-gray);
    font-size: var(--font-size-sm);
}

.today-status-form {
    margin: 0;
}

.today-status-form .today-status-btn {
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.today-section .today-status-btn {
    display: inline-block;
    width: 70px;
    min-width: 70px;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.today-section .today-status-btn.status-apply,
.today-section .today-status-btn.status-studying,
.today-section .today-status-btn.status-completed {
    border-width: 1px;
    border-style: solid;
}

.today-section .today-status-btn.status-apply {
    color: var(--color-black);
    background: var(--color-white);
    border-color: var(--color-blue);
}

.today-section .today-status-btn.status-studying {
    color: var(--color-black);
    background: var(--color-white);
    border-color: var(--color-black);
}

.today-section .today-status-btn.status-completed {
    color: var(--color-dark-gray);
    background: var(--color-lightgray);
    border-color: var(--color-gray);
}

@media (max-width: 599px) {
    .today-section .today-item-title {
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 600px) and (max-width: 1400px) {
    .today-content-panel {
        margin: 12px 16px 0;
    }

    .today-section .today-item-title {
        font-size: var(--font-size-md);
    }

    .today-section .today-item-count {
        font-size: var(--font-size-base);
    }
}
