button.tt-profile-subject-btn.bf1 {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 2.85em;
    min-height: 2.85em;
    margin: 0;
    padding: 11px 36px 11px 11px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-family: "Montserrat Regular", Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    cursor: pointer;
    position: relative;
    appearance: none;
    overflow: hidden;
}

button.tt-profile-subject-btn.bf1 .tt-profile-subject-value {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

button.tt-profile-subject-btn.bf1:hover:not(.input-error),
button.tt-profile-subject-btn.bf1:focus:not(.input-error) {
    border-color: #333;
}

button.tt-profile-subject-btn.bf1:after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: translateY(-70%) rotate(45deg);
}

.tt-profile-subject.is-empty .tt-profile-subject-value {
    color: transparent;
}

button.tt-profile-subject-btn.input-error {
    border-color: #c13515;
}

.tt-profile-picker {
    z-index: 100000;
    min-width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
}

.tt-profile-picker .tt-cat-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tt-profile-picker .tt-chip {
    min-width: max-content;
    white-space: nowrap;
}

/* The consultation card row is about 504px. Duration stays as wide as
   its label, the date keeps the full timestamp, and the subject stays
   wide enough for a name plus a level ("French Horn · Grade 8"). */
.cwit1 {
    flex-wrap: wrap;
    row-gap: 8px;
}

.cwit1 > .mlc1,
.cwit1 > .mdc0,
.cwit1 > .msc1 {
    width: auto;
    box-sizing: border-box;
}

.cwit1 > .mlc1 {
    flex: 0 0 auto;
    min-width: min(128px, 100%);
    max-width: 100%;
}

@media (min-width: 501px) {
    .cwit1 > .mlc1 {
        flex-basis: 128px;
        width: 128px;
    }
}

.cwit1 > .mdc0 {
    flex: 1 1 162px;
    min-width: min(162px, 100%);
}

.cwit1 > .msc1 {
    flex: 1 1 214px;
    min-width: min(214px, 100%);
}

.cwit1 > .mlc1 select.bf1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cwit1 > .mdc0 input,
.cwit1 > .mdc0 .datetimepicker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.tt-chat-subject-line {
    margin: 8px 0 0;
    color: #222;
    font-size: 15px;
    line-height: 1.4;
}
