.content .card.panel,
.content .form-card {
    padding: 20px;
}

.content h3 {
    color: #182126;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 10px 0 20px;
}

.content .location-name,
.content .mips-card h3,
.content .creative h3 {
    margin-bottom: 20px;
}

.content .mips-actions {
    margin-top: auto;
    padding-top: 16px;
}

.content .card > a {
    display: inline-block;
    margin-top: 16px;
}

.content p {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 8px;
}

.content .meta-label {
    color: #718089;
}

.content .meta-value {
    color: #182126;
}

.content .btn {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content .btn-sm {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 15px;
}

.content .form-card label.form-label {
    font-size: 16px;
    line-height: 1.3;
}

.content .form-card input,
.content .form-card select,
.content .form-card textarea {
    font-size: 15px;
}

.content .form-card textarea {
    min-height: 48px;
    resize: vertical;
}

.content .modal-title {
    font-size: 20px;
}

.content .modal .btn {
    min-height: 40px;
}

.mips-actions {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
}

.mips-actions form,
.mips-actions .btn {
    width: 100%;
}

.mips-actions .btn {
    min-height: 40px;
    white-space: nowrap;
    text-align: center;
}

.mips-card {
    position: relative !important;
}

.mips-card > .status {
    position: absolute !important;
    top: 20px;
    right: 20px;
}

/* Auth pages: spacing between heading, fields, errors and links */
.auth h1 {
    margin: 0 0 24px;
}

.auth > h1 + .muted {
    font-size: 14px;
    margin: -16px 0 24px;
}

.auth .form-check {
    padding-left: 0;
}

.auth form > p,
.auth form > .mb-3 {
    margin: 0 0 18px;
}

.auth label {
    margin-bottom: 6px;
}

.auth .helptext {
    display: block;
    margin-top: 8px;
    color: #65747c;
    font-size: 14px;
    line-height: 1.5;
}

.auth form .btn {
    margin-top: 8px;
}

.auth > p:not(.muted) {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.auth > form + p:not(.muted),
.auth > p + p:not(.muted) {
    margin-top: 24px;
}

/* Form errors: one pattern on every form */
.errorlist {
    font-size: 14px;
    line-height: 1.4;
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}

.errorlist.nonfield {
    background: #fee2e2;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 10px 14px;
}

/* Playlists: room between card actions, loop switch and launch error */
.content .playlist-actions {
    gap: 12px;
    margin-top: 12px;
}

.content .playlist-actions .playlist-launch-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.content .playlist-loop {
    margin: 4px 0 0;
}

.content .playlist-launch-error {
    margin: 12px 0 0;
    padding: 12px 14px;
    line-height: 1.4;
}

.content .playlist-upload,
.content .playlist-progress {
    margin-top: 12px;
}

/* Playlist form: reset link opposite the location label */
.field-head {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
}

.field-head .form-label {
    margin-bottom: 5px;
}

.link-button {
    background: none;
    border: 0;
    color: #155eef;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.link-button:hover {
    text-decoration: underline;
}

.link-button[hidden] {
    display: none;
}
