:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #6b7280;
    --line: #e5e9f0;
    --primary: #00836E;
    --primary-dark: #006f5d;
    --secondary-green: #50B393;
    --blue: #599FD9;
    --danger: #E74124;
    --success: #15803d;
    --black: #1A1A1A;
    --shadow: 0 12px 30px rgba(23, 32, 51, .08);
    --radius: 8px;
    --space: 18px;
    --control-height: 42px;
    --ease: 180ms ease;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button,
a,
input,
select {
    transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: -18px;
    z-index: -2;
    background: url("https://www.tourisme-sarrebourg.fr/wp-content/uploads/2021/09/sarrebourg-ctomphotography-5-scaled.jpg") center / cover no-repeat;
    filter: blur(14px);
    transform: scale(1.05);
}

.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(10, 24, 34, .46);
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 18px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    padding: 30px 32px 34px;
    box-shadow: 0 18px 44px rgba(10, 24, 34, .24);
}

.login-heading {
    display: grid;
    justify-items: center;
    gap: 0;
    text-align: center;
}

.login-logo {
    width: min(250px, 82%);
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

.login-heading h1 {
    margin: 0 0 8px;
}

.login-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.login-card .btn {
    margin-top: 10px;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    inline-size: 16px;
    block-size: 16px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--black);
    color: #f9fafb;
    padding: 24px 18px 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(26, 26, 26, .12);
}

.brand {
    display: grid;
    gap: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 28px;
    padding: 0 4px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.brand img {
    width: 170px;
    max-width: 100%;
    height: auto;
}

.brand span { color: #fff; }

.nav {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: #d1d5db;
    margin-bottom: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    position: relative;
}

.nav a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateX(3px);
}

.nav a.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 131, 110, .28);
}

.nav a:active {
    transform: translateX(3px) scale(.99);
}

.logout-link {
    margin-top: 24px;
}

.logout-form {
    margin: 0;
}

.logout-form .logout-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #f3f4f6;
    font: inherit;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.logout-form .logout-link:hover {
    border-color: rgba(231, 65, 36, .6);
    background: rgba(231, 65, 36, .16);
    color: #fff;
    transform: translateY(-1px);
}

.logout-form .logout-link:active {
    transform: translateY(0) scale(.99);
}

.logout-form .logout-link::before {
    content: "\23FB";
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    line-height: 1;
}

.main {
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 6px 12px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--black);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(23, 32, 51, .05);
    white-space: nowrap;
}

.account-icon {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #e8f6f2;
    color: var(--primary-dark);
    font-size: 14px;
    line-height: 1;
}

h1, h2, h3 {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 900;
}
h1 { font-size: 28px; }
h2 { font-size: 20px; margin-bottom: 18px; }
p { color: var(--muted); line-height: 1.55; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space);
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 22px rgba(23, 32, 51, .055);
}

.card:hover,
.dashboard-card:hover,
.media-card:hover {
    box-shadow: 0 14px 34px rgba(23, 32, 51, .085);
}

.stat {
    color: var(--primary);
    font-size: 34px;
    font-weight: 700;
    margin-top: 10px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space);
    margin-bottom: var(--space);
}



label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.field-title {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkbox-grid.compact {
    grid-template-columns: 1fr;
    max-height: 300px;
    overflow: auto;
    padding-right: 4px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}

.check-row input {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    inline-size: 14px;
    block-size: 14px;
    flex: 0 0 auto;
    margin: 0;
}

.media-check-list {
    display: grid;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.media-check-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
    font-weight: 600;
    cursor: pointer;
}

.media-check-row:hover {
    border-color: rgba(0, 131, 110, .45);
    background: #edf8f5;
}

.media-check-row input {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    inline-size: 14px;
    block-size: 14px;
    flex: 0 0 auto;
    margin: 0;
}

.media-check-main {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
}

.media-check-name {
    color: var(--text);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.inline-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.inline-duration input {
    width: 86px;
    min-height: 34px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(26, 26, 26, .62);
}

.modal.is-open { display: flex; }

.modal-panel {
    width: min(1100px, 96vw);
    max-height: 88vh;
    overflow: auto;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.import-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.import-media-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}

.import-media-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.import-media-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 131, 110, .16);
}

.import-thumb {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: var(--black);
}

.import-thumb img,
.import-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-height: var(--control-height);
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
    inline-size: 16px;
    block-size: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

textarea {
    resize: vertical;
    line-height: 1.5;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(0, 131, 110, .14);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(0, 131, 110, .08);
}

input[type="checkbox"]:focus {
    outline: 2px solid rgba(0, 131, 110, .22);
    outline-offset: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius);
    min-height: var(--control-height);
    padding: 0 14px;
    background: var(--primary);
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(0, 131, 110, .16);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 131, 110, .22);
}
.btn:active {
    transform: translateY(0) scale(.99);
}
.btn.secondary { background: #e8f6f2; color: var(--primary); }
.btn.secondary:hover {
    background: #d8f0e9;
}
.btn.danger {
    background: var(--danger);
    box-shadow: 0 6px 14px rgba(231, 65, 36, .16);
}
.btn.danger:hover {
    background: #c9341b;
    box-shadow: 0 10px 20px rgba(231, 65, 36, .22);
}
.btn.small { min-height: 34px; padding: 0 11px; font-size: 13px; }

.alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--secondary-green);
    background: #e8f6f2;
    color: var(--primary-dark);
    font-weight: 500;
}

.alert strong {
    font-weight: 900;
}

.alert.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0;
    background: #f8fafc;
}

tbody tr:hover {
    background: #f8fafc;
}

.sortable-row {
    transition: background-color var(--ease), box-shadow var(--ease), opacity var(--ease);
}

.sortable-row.is-dragging {
    opacity: .55;
    background: #edf8f5;
    box-shadow: 0 10px 24px rgba(23, 32, 51, .12);
}

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--muted);
    background: #f1f5f9;
    border: 1px solid var(--line);
    cursor: grab;
    user-select: none;
    font-weight: 900;
    line-height: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.order-position {
    max-width: 82px;
}

.row-actions {
    text-align: right;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8f6f2;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.badge.neutral {
    background: #eef2f7;
    color: #475569;
}

.muted { color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

.autosave-status {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.autosave-status.is-saving {
    color: #b45309;
}

.autosave-status.is-saved {
    color: var(--success);
}

.autosave-status.is-error {
    color: var(--danger);
}
.two-cols { display: grid; grid-template-columns: 360px 1fr; gap: var(--space); align-items: start; }
.preview { max-width: 120px; max-height: 70px; border-radius: 6px; object-fit: cover; background: #111827; }

.drop-zone {
    display: flex;
    gap: 10px;
    place-items: center;
    min-height: 180px;
    padding: 22px;
    border: 2px dashed #b8c7d9;
    border-radius: var(--radius);
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.drop-zone:hover,
.drop-zone.is-dragover {
    border-color: var(--primary);
    background: #edf8f5;
    box-shadow: 0 0 0 4px rgba(0, 131, 110, .1);
}

.drop-zone-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: var(--text);
}

.drop-zone-text {
    color: var(--muted);
    font-size: 13px;
}

.drop-zone input {
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 8px;
    border: 0;
    background: transparent;
    display: none
}

.upload-preview {
    display: none;
    aspect-ratio: 16 / 9;
    min-height: 0;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius);
    background: #f8fafc;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--muted);
    text-align: center;
    padding: 16px;
}

.upload-preview.is-visible { display: flex; }
.upload-preview img,
.upload-preview video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-preview-list.is-visible {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    aspect-ratio: auto;
    min-height: 0;
    padding: 10px;
}

.upload-preview-item {
    display: grid;
    grid-template-rows: 86px auto;
    gap: 7px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.upload-preview-item img,
.upload-preview-item video {
    width: 100%;
    height: 86px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--black);
}

.upload-preview-item span {
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}


.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space);
    align-items: stretch;
}

.media-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(23, 32, 51, .04);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 300px;
    transition: box-shadow var(--ease), transform var(--ease);
}

.media-card:hover {
    transform: translateY(-2px);
}

.media-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #f8fafc;
    overflow: hidden;
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.playlist-items {
    display: grid;
    gap: 12px;
}

.playlist-item-card {
    display: grid;
    grid-template-columns: 92px 96px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.playlist-item-thumb {
    width: 92px;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.playlist-item-thumb img,
.playlist-item-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.playlist-position {
    display: grid;
    gap: 6px;
}

.playlist-position input {
    min-width: 76px;
}

.playlist-item-main {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.playlist-item-title {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.video-fallback {
    display: grid;
    gap: 8px;
    text-align: center;
    padding: 18px;
}

.video-symbol {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    font-weight: 700;
}

.media-body {
    padding: 14px;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 10px;
}

.media-body form {
    align-self: end;
    margin: 0;
}

.media-body .btn {
    width: 100%;
}

.media-name {
    font-weight: 700;
    overflow-wrap: anywhere;
    min-height: 42px;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space);
}

.dashboard-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: 0 6px 18px rgba(23, 32, 51, .04);
    display: grid;
    gap: 12px;
    align-content: start;
    transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}

.dashboard-card:hover {
    border-color: rgba(0, 131, 110, .22);
    transform: translateY(-1px);
}

.screen-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space);
    margin: 18px 0;
}

.screen-preview-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fafc;
}

.screen-preview-frame,
.preview-frame-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--black);
    border: 1px solid rgba(26, 26, 26, .14);
}

.screen-preview-frame iframe,
.preview-frame-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1920px;
    height: 940px;
    border: 0;
    pointer-events: none;
    background: var(--black);
    transform: translate(-50%, -50%) scale(.145);
    transform-origin: center center;
}

.screen-preview-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.screen-preview-body strong {
    font-weight: 800;
    overflow-wrap: anywhere;
}

.screen-name-with-status {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.screen-status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .9);
    flex: 0 0 auto;
}

.screen-status-dot.online {
    background: #2ECC71;
}

.screen-status-dot.idle {
    background: #F39C12;
}

.screen-status-dot.offline {
    background: #E74C3C;
}

.admin-footer {
    margin-top: auto;
    padding: 28px 0 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.admin-footer a {
    color: var(--primary-dark);
    font-weight: 800;
}

.admin-footer a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.inline-form input,
.inline-form select {
    width: auto;
    min-width: 180px;
}

@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .two-cols { grid-template-columns: 1fr; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .account-chip { max-width: 100%; white-space: normal; }
    .playlist-layout { grid-template-columns: 1fr; }
    .playlist-sidebar-panel {
        position: static;
        max-height: none;
    }
    .playlist-nav-list {
        max-height: 360px;
    }
    .playlist-workspace-head,
    .media-picker-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .playlist-add-button {
        width: 100%;
    }
    .slide-edit-form {
        grid-template-columns: 1fr 1fr;
    }
    .slide-edit-form .btn {
        grid-column: 1 / -1;
    }
}

.media-select-list,
.priority-media-list {
    display: grid;
    gap: 6px;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    padding-right: 4px;
}

.media-select-item,
.priority-media-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    margin: 0 0 6px;
    padding: 6px 10px;
    border: 1px solid #dfe7e5;
    border-radius: 8px;
    background: #f7faf9;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
}

.media-select-item:hover,
.priority-media-item:hover {
    border-color: rgba(0, 131, 110, .45);
    background: #edf8f5;
}

.media-select-item input[type="checkbox"],
.priority-media-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    inline-size: 14px;
    block-size: 14px;
    margin: 0;
    transform: none;
    flex-shrink: 0;
}

.media-select-item .media-check-main,
.priority-media-item .media-check-main {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    margin: 0;
}


form.stack.js-emergency-autosave-form {
    padding: 20px;
    border: solid #1A1A1A 2px;
    margin: 10px;
    border-radius: 30px;
}