.widget--category-filter__banks,
.widget--category-filter__metadata {
    display: inline-block;
    padding: 0.3125rem 0.375rem;
}

.widget--category-filter__banks:hover,
.widget--category-filter__metadata:hover {
    color: #fff;
    background: #5f9fd6;
    text-decoration: none;
}

.widget--category-filter__banks.selected,
.widget--category-filter__metadata.selected {
    color: #fff;
    background: #ed5f82;
}

.date-list-picker__input {
    width: 100%;
}

.date-list-picker__input--hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.date-list-picker__input.is-invalid {
    border-color: #db3737;
    box-shadow: 0 0 0 1px #db3737;
}

.date-list-picker {
    position: relative;
}

.date-list-picker-field {
    position: relative;
}

.date-list-picker-field__input {
    padding-right: 3.25rem;
}

.date-list-picker--inline {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3rem;
}

.date-list-picker__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid #cfd9e3;
    border-radius: 6px;
    background: #fff;
    color: #397eaf;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease;
}

.date-list-picker--inline .date-list-picker__trigger {
    width: 100%;
    height: 100%;
    border: 0;
    border-left: 1px solid #cfd9e3;
    border-radius: 0 6px 6px 0;
    background: transparent;
}

.date-list-picker__trigger:hover,
.date-list-picker__trigger[aria-expanded="true"] {
    border-color: #6eaddd;
    color: #2878b5;
    box-shadow: 0 0 0 3px rgba(73, 148, 207, 0.12);
}

.date-list-picker--inline .date-list-picker__trigger:hover,
.date-list-picker--inline .date-list-picker__trigger[aria-expanded="true"] {
    background: #edf6fd;
    box-shadow: none;
}

.date-list-picker__trigger-icon {
    display: block;
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.date-list-picker__calendar {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    z-index: 30;
    width: 17rem;
    max-width: calc(100vw - 2rem);
    padding: 0.875rem;
    background: #fff;
    border: 1px solid #d8e1e8;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(38, 65, 91, 0.18);
}

.date-list-picker__calendar[hidden] {
    display: none;
}

.date-list-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.date-list-calendar__title {
    min-width: 6rem;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #263b50;
    cursor: pointer;
    font-weight: 600;
    line-height: 2rem;
}

.date-list-calendar__title:hover {
    background: #edf6fd;
    color: #2878b5;
}

.date-list-calendar__nav,
.date-list-calendar__day {
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.date-list-calendar__nav {
    width: 2rem;
    border: 1px solid #e1e8ef;
    border-radius: 6px;
    color: #4c6379;
    font-weight: 600;
}

.date-list-calendar__nav:hover:not(:disabled) {
    border-color: #b9d4e9;
    background: #edf6fd;
    color: #2878b5;
}

.date-list-calendar__nav:disabled,
.date-list-calendar__day:disabled {
    color: #a7b6c2;
    cursor: default;
}

.date-list-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
}

.date-list-calendar__weekday {
    color: #8190a2;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.75rem;
    text-align: center;
}

.date-list-calendar__empty {
    height: 2rem;
}

.date-list-calendar__day {
    border-radius: 6px;
    color: #344b62;
    text-align: center;
    transition: background 0.12s ease, color 0.12s ease,
        box-shadow 0.12s ease;
}

.date-list-calendar__day:hover:not(:disabled) {
    background: #edf6fd;
    color: #2878b5;
}

.date-list-calendar__day.today {
    box-shadow: inset 0 0 0 1px #6eaddd;
    color: #2878b5;
    font-weight: 600;
}

.date-list-calendar__day.selected {
    color: #fff;
    background: #3488ca;
    box-shadow: 0 3px 8px rgba(52, 136, 202, 0.24);
    font-weight: 600;
}

.date-list-calendar__day.selected:hover:not(:disabled) {
    background: #2878b5;
    color: #fff;
}

.date-list-calendar__year-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    max-height: calc(2rem * 3 + 0.25rem * 2);
    margin-bottom: 0.5rem;
    overflow-y: auto;
}

.date-list-calendar__year {
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.date-list-calendar__year:hover {
    background: #edf6fd;
    color: #2878b5;
}

.date-list-calendar__year.selected {
    color: #fff;
    background: #3488ca;
}

.date-list-calendar__month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
}

.date-list-calendar__month {
    height: 2rem;
    padding: 0;
    border: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.date-list-calendar__month:hover:not(:disabled) {
    border-color: #b9d4e9;
    background: #edf6fd;
    color: #2878b5;
}

.date-list-calendar__month:disabled {
    color: #a7b6c2;
    cursor: default;
}

.date-list-calendar__month.selected {
    color: #fff;
    background: #3488ca;
}
.submit-code-template-tools {
    margin: 0 0 12px;
}

.bank-list-page {
    --bank-list-border: #dce5ed;
    --bank-list-muted: #708096;
    --bank-list-soft: #f7faff;
}

.bank-list-section {
    overflow: hidden;
    border: 1px solid var(--bank-list-border);
    border-radius: 10px;
}

.bank-list-header {
    background: var(--bank-list-soft);
}

.bank__list {
    margin: 0;
}

.bank-list-card {
    padding: 22px 24px;
}

.bank-list-card__media {
    display: flex;
    align-items: stretch;
    gap: 22px;
}

.bank-list-card__visual {
    flex: 0 0 132px;
}

.bank-logo-box,
.bank-logo,
.bank-logo-placeholder {
    width: 132px;
    height: 112px;
    border-radius: 8px;
}

.bank-logo-box {
    overflow: hidden;
    border: 1px solid var(--bank-list-border);
    background: var(--bank-list-soft);
}

.bank-logo {
    display: block;
    object-fit: contain;
}

.bank-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8aa0b8;
    font-size: 32px;
}

.bank__right,
.bank-list-card__body {
    min-width: 0;
}

.bank-list-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.bank-list-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.bank-list-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 7px;
    color: var(--bank-list-muted);
    font-size: 12px;
}

.bank-list-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: #edf5ff;
    color: #356fae;
    font-weight: 600;
}

.bank-list-card__description {
    display: -webkit-box;
    max-width: 860px;
    margin-top: 14px;
    overflow: hidden;
    color: #526176;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.bank-list-card__description > :first-child,
.bank-list-card__description > :last-child {
    margin-top: 0;
    margin-bottom: 0;
}

.bank-list-card__empty-description {
    color: #96a2b2;
}

.bank-list-card__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.bank-list-card__actions form,
.bank-list-card__actions .button {
    margin: 0;
}

.bank-list-delete {
    color: #b84040;
    border-color: #e7bebe;
}

.bank-list-delete:hover {
    color: #fff;
    background: #c94b4b;
    border-color: #c94b4b;
}

.problem-edit-page {
    --bank-edit-border: #d8e1e8;
    --bank-edit-border-soft: #e8eef4;
    --bank-edit-muted: #6b7890;
    --bank-edit-bg: #f6f9fc;
    --bank-edit-blue: #3488ca;
    --bank-edit-blue-soft: #edf6fd;
    --bank-edit-green: #23825d;
    --bank-edit-red: #c23030;
    --bank-edit-radius: 10px;
    padding-bottom: 32px;
}

.problem-edit-page *,
.problem-edit-page *::before,
.problem-edit-page *::after {
    box-sizing: border-box;
}

.problem-edit-form {
    margin: 0;
}

.problem-edit-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    margin-bottom: 16px;
    padding: 18px 22px;
    border: 1px solid var(--bank-edit-border);
    border-radius: var(--bank-edit-radius);
    background: linear-gradient(135deg, #fff 0%, #f7fbff 100%);
    box-shadow: 0 8px 24px rgba(53, 79, 105, 0.06);
}

.problem-edit-overview__eyebrow {
    margin: 0 0 2px;
    color: var(--bank-edit-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.problem-edit-overview__title {
    margin: 0;
    color: #203247;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.25;
}

.problem-edit-overview__identity {
    display: flex;
    flex: 0 1 48%;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    color: var(--bank-edit-muted);
}

.problem-edit-overview__pid {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #cfe2f3;
    border-radius: 6px;
    background: var(--bank-edit-blue-soft);
    color: #296da4;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.8125rem;
}

.problem-edit-overview__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.problem-edit-hint-slot:empty {
    display: none;
}

.problem-edit-hint-slot:not(:empty) {
    margin-bottom: 16px;
    padding: 0;
}

.problem-edit-hint-slot .note {
    border-radius: 6px;
}

.problem-edit-hint-slot .typo > :first-child,
.problem-edit-hint-slot .note > :first-child {
    margin-top: 0;
}

.problem-edit-hint-slot .typo > :last-child,
.problem-edit-hint-slot .note > :last-child {
    margin-bottom: 0;
}

.problem-edit-card {
    border: 1px solid var(--bank-edit-border);
    border-radius: var(--bank-edit-radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(53, 79, 105, 0.045);
    overflow: visible;
}

.problem-edit-card + .problem-edit-card,
.problem-edit-actions {
    margin-top: 18px;
}

.problem-edit-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--bank-edit-border-soft);
    border-radius: var(--bank-edit-radius) var(--bank-edit-radius) 0 0;
    background: var(--bank-edit-bg);
}

.problem-edit-card__header .section__title {
    margin: 0;
    color: #2a3f55;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.problem-edit-card__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4f1fb;
    color: #2878b5;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.problem-edit-card > .section__body {
    padding: 20px;
}

.problem-edit-grid {
    display: grid;
    gap: 18px 20px;
}

.problem-edit-grid--basic {
    grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1.3fr) auto;
    align-items: end;
}

.problem-edit-grid--meta {
    grid-template-columns: minmax(0, 1fr) 160px;
    align-items: start;
}

.problem-edit-grid--context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.problem-edit-field {
    min-width: 0;
}

.problem-edit-field label,
.problem-edit-field .form__item {
    margin-bottom: 0;
}

.problem-edit-field .textbox {
    width: 100%;
    min-height: 42px;
    margin-bottom: 0;
    border-color: #cfd9e3;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.problem-edit-field .textbox:hover {
    border-color: #aebdca;
}

.problem-edit-field .textbox:focus {
    border-color: #6eaddd;
    box-shadow: 0 0 0 3px rgba(73, 148, 207, 0.12);
}

.problem-edit-field .columns {
    float: none;
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.problem-edit-field .form__item > label {
    display: block;
}

.problem-edit-field label > span {
    display: inline-block;
    margin-bottom: 6px;
    color: #243447;
    font-weight: 600;
}

.problem-edit-field .help-text {
    margin: 7px 0 0;
    color: #8190a2;
    line-height: 1.45;
}

.problem-edit-field--wide {
    grid-column: span 1;
}

.problem-edit-grid--meta .problem-edit-field--wide,
.problem-edit-grid--context .problem-edit-field--wide {
    grid-column: 1 / -1;
}

.problem-edit-field--toggle {
    align-self: end;
    display: flex;
    align-items: center;
    min-height: 42px;
}

.problem-edit-page label.problem-edit-hidden {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0 !important;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
}

.problem-edit-hidden input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    accent-color: var(--bank-edit-blue);
    cursor: pointer;
}

.problem-edit-hidden input:focus-visible {
    border-color: var(--bank-edit-blue);
    box-shadow: 0 0 0 3px rgba(73, 148, 207, 0.18);
}

.problem-edit-hidden__label {
    margin: 0 !important;
    color: #344b62 !important;
    font-weight: 600;
}

.problem-edit-content .section__tab-container {
    margin-bottom: 12px;
    border-bottom: 1px solid var(--bank-edit-border-soft);
}

.problem-edit-content .section__tab-header {
    margin-bottom: -1px;
}

.problem-edit-content .section__tab-header-item {
    padding-right: 14px;
    padding-left: 14px;
}

.problem-edit-content textarea[data-editor] {
    min-height: 560px;
}

.problem-edit-content__fallback {
    min-height: 500px;
}

.problem-edit-content .monaco-editor,
.problem-edit-content__fallback {
    border-radius: 6px;
    overflow: hidden;
}

.problem-edit-actions {
    border: 1px solid var(--bank-edit-border);
    border-radius: var(--bank-edit-radius);
    background: #fff;
    box-shadow: 0 8px 22px rgba(53, 79, 105, 0.045);
}

.problem-edit-actions .section__body {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
    min-height: 72px;
    padding: 14px 20px;
}

.problem-edit-actions .button {
    min-width: 108px;
    margin: 0;
}

.problem-edit-delete {
    color: var(--bank-edit-red);
    margin-right: auto !important;
    border-color: #e7c3c3;
    order: -1;
}

.problem-edit-delete:hover {
    border-color: #cf5656;
    background: #cf5656;
    color: #fff;
}

.problem-edit-side-card {
    margin-bottom: 14px;
    border: 1px solid var(--bank-edit-border);
    border-radius: var(--bank-edit-radius);
    background: #fff;
    box-shadow: 0 7px 20px rgba(53, 79, 105, 0.04);
    overflow: hidden;
}

.problem-edit-sidebar > .section:not(.problem-edit-side-card) {
    margin-bottom: 14px;
    border: 1px solid var(--bank-edit-border);
    border-radius: var(--bank-edit-radius);
    box-shadow: 0 7px 20px rgba(53, 79, 105, 0.04);
    overflow: hidden;
}

.problem-edit-sidebar > .section:not(.problem-edit-side-card) > .section__header {
    min-height: 48px;
    padding-top: 11px;
    border-bottom: 1px solid var(--bank-edit-border-soft);
    background: var(--bank-edit-bg);
}

.problem-edit-side-card .section__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--bank-edit-border-soft);
    border-radius: var(--bank-edit-radius) var(--bank-edit-radius) 0 0;
    background: var(--bank-edit-bg);
}

.problem-edit-side-card .section__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #344b62;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
}

.problem-edit-side-card .section__body {
    padding: 12px;
}

.problem-edit-side-hint,
.problem-edit-side-count {
    flex: 0 0 auto;
    color: var(--bank-edit-muted);
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.problem-edit-side-count {
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf8f1;
    color: #16704d;
    font-weight: 600;
}

.problem-edit-page .widget--category-filter {
    margin: -4px;
}

.problem-edit-page .widget--category-filter__category {
    padding: 4px;
}

.problem-edit-page [data-widget-banks-container] .widget--category-filter__category,
.problem-edit-page [data-widget-metadata-container] .widget--category-filter__category {
    width: 100%;
}

.problem-edit-page .widget--category-filter__banks,
.problem-edit-page .widget--category-filter__metadata {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.55rem;
    border: 1px solid #e5edf5;
    border-radius: 6px;
    background: #fff;
    color: #36516d;
    line-height: 1.3;
    overflow-wrap: anywhere;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.problem-edit-page .widget--category-filter__banks:hover,
.problem-edit-page .widget--category-filter__metadata:hover {
    border-color: #a8c7e8;
    background: #edf5ff;
    color: #1d5d9f;
}

.problem-edit-page .widget--category-filter__banks.selected,
.problem-edit-page .widget--category-filter__metadata.selected,
.problem-edit-page .widget--category-filter__tag.selected {
    border-color: #2f9f72;
    background: #eaf8f1;
    color: var(--bank-edit-green);
    font-weight: 600;
}

.problem-edit-page .widget--category-filter__banks.selected::before,
.problem-edit-page .widget--category-filter__metadata.selected::before,
.problem-edit-page .widget--category-filter__tag.selected::before {
    margin-right: 5px;
    content: "\2713";
    font-weight: 700;
}

@media (min-width: 901px) {
    .problem-edit-sidebar {
        padding-left: 6px;
    }
}

@media (max-width: 900px) {
    .problem-edit-grid--basic,
    .problem-edit-grid--meta,
    .problem-edit-grid--context {
        grid-template-columns: 1fr;
    }

    .problem-edit-field--toggle {
        padding-bottom: 0;
    }

    .problem-edit-actions .section__body {
        justify-content: flex-start;
    }

    .problem-edit-overview__identity {
        flex-basis: 55%;
    }
}

@media (max-width: 640px) {
    .problem-edit-page {
        padding-bottom: 16px;
    }

    .problem-edit-overview {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-right: -10px;
        margin-left: -10px;
        padding: 16px;
        border-radius: 0;
    }

    .problem-edit-overview__identity {
        flex-basis: auto;
        justify-content: flex-start;
        width: 100%;
    }

    .problem-edit-card,
    .problem-edit-actions,
    .problem-edit-side-card {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .problem-edit-card__header,
    .problem-edit-side-card .section__header {
        border-radius: 0;
    }

    .problem-edit-card > .section__body {
        padding: 16px;
    }

    .problem-edit-actions .section__body {
        flex-wrap: wrap;
        padding: 14px 16px;
    }

    .problem-edit-actions .button {
        flex: 1 1 120px;
    }

    .problem-edit-delete {
        margin-right: 0 !important;
    }

    .bank-list-card {
        padding: 18px;
    }

    .bank-list-card__media,
    .bank-list-card__topline {
        flex-direction: column;
    }

    .bank-list-card__visual {
        flex-basis: auto;
    }

    .bank-logo-box,
    .bank-logo,
    .bank-logo-placeholder {
        width: 100%;
        height: 128px;
    }

    .bank-list-card__actions {
        width: 100%;
    }

    .bank-list-card__actions .button {
        flex: 1 1 auto;
    }
}
