.dateInput {
    display: flex;
    align-items: stretch;
    gap: 7px;
    margin-top: 7px;
}

.dateInput input {
    min-width: 0;
    margin-top: 0;
}

.dateInput .flatpickr-wrapper {
    display: block;
    flex: 1;
    min-width: 0;
}

.clearDate {
    padding: 8px 10px;
    font-size: 12px;
}

.two.metaRow {
    grid-template-columns: 120px minmax(0, 1fr);
}

.two:not(.metaRow) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two > label {
    min-width: 0;
}

.uploadCard {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.uploadTitle {
    display: block;
    margin: 0;
}

.uploadHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.fileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.uploadPreview {
    width: 100%;
    min-height: 110px;
    margin-top: 0;
    aspect-ratio: 3 / 1;
    background: #f5f7fb;
}

#editor {
    height: min(680px, calc(100vh - 32px));
    max-height: 95vh;
}

#editor form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#editor .fields {
    max-height: 72vh;
    overflow: visible;
}

#editor footer {
    margin-top: auto;
    padding-top: 24px;
}

.uploadPreview img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.uploadAction {
    position: static;
    flex: none;
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #24344b;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
}

.uploadCard:hover .uploadAction {
    background: #edf2f9;
}

#editor .flatpickr-calendar {
    z-index: 1000;
    background: #fff;
    border: 1px solid #dfe5ef;
    box-shadow: 0 12px 36px #101b3540;
}

.cardTop {
    justify-content: space-between;
    gap: 14px;
}

.topId {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 7px;
    min-width: 0;
    color: #263650;
}

.topId .metaLabel {
    flex: none;
    margin: 0;
}

.topId .idValue {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metaItem {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.metaItem .metaLabel {
    flex: none;
    margin: 0;
}

.metaItem .metaValue {
    min-width: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.metaItem .targetLink {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#editor .dialogHead {
    margin-bottom: 18px;
}

#editor .dialogHead h2 {
    margin: 0;
}
