/* X24 customer dashboard on X24cloud: the original hub pages, minus what only the super admin / old hub had */
body.x24cloud nav > button[data-page="users"], body.x24cloud nav > button[data-page="setup"],
body.x24cloud nav > button[data-page="drive"], body.x24cloud nav > button[data-page="library"] { display: none !important; }
body.x24cloud #licence-banner, body.x24cloud #org-side { display: none !important; }
.device { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 13px; }
.device .dev.ok { color: #16a34a; font-weight: 600; }
.device .code { font-family: monospace; font-size: 15px; letter-spacing: 2px; background: #eef2ff; padding: 1px 7px; border-radius: 6px; }
.device .small-btn { padding: 4px 10px; font-size: 13px; }
.back { color: #3b6cf6; text-decoration: none; text-transform: none; letter-spacing: 0; }
.back:hover { text-decoration: underline; }
body.x24cloud.readonly #dash-pause-all, body.x24cloud.readonly .danger-outline { opacity: .5; }
.cu-settings-link { margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12) !important; padding-top: 14px !important; opacity: .9; }
body.x24cloud #own-password { display: none !important; }
.cu-settings-link { display: flex; align-items: center; gap: 0; }
/* the login page shows only when a customer really has to sign in (no flash while access is checked) */
html:not(.x24-signin) #login { visibility: hidden; }
.hub-link { display: inline-block; margin-top: 14px; padding: 12px 20px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; font-weight: 600; }
/* loading: animated placeholders in every dashboard panel until the X24cloud data has arrived */
@keyframes x24sh { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
html.x24-loading #dash-kpis, html.x24-loading #dash-screens, html.x24-loading #dash-donut, html.x24-loading #dash-upcoming, html.x24-loading #dash-alerts,
html.x24-loading #dash-map, html.x24-loading #dash-plays, html.x24-loading #dash-hours,
html.x24-loading #device-list, html.x24-loading #schedule-list, html.x24-loading #tk-list, html.x24-loading #audit-list {
  min-height: 90px; border-radius: 12px; background-color: #e9edf1 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23cbd2d9' stroke-width='5'/%3E%3Cpath d='M25 5a20 20 0 0 1 20 20' fill='none' stroke='%23f5b301' stroke-width='5' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E"), linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 70%) !important;
  background-repeat: no-repeat !important; background-size: 34px 34px, 60% 100% !important; background-position: center center, -150% 0 !important;
  animation: x24sh2 1.4s ease-in-out infinite !important; }
@keyframes x24sh2 { 0% { background-position: center center, -150% 0; } 100% { background-position: center center, 250% 0; } }
html.x24-loading #dash-kpis { min-height: 190px; }
html.x24-loading #dash-screens { min-height: 300px; }
html.x24-loading #dash-donut { min-height: 170px; }
html.x24-loading #dash-sub::after { content: ' · loading from X24cloud…'; }
/* customer name and licence card (top of the Dashboard) */
.x24-licence { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; background: #fff; border: 1px solid #e6e8eb; border-radius: 16px; padding: 14px 22px; margin-bottom: 18px; }
.x24-licence .li-item { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.x24-licence .li-item small { color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.x24-licence .li-item b { font-size: 16px; color: #111; }
.x24-licence .li-item:first-child b { font-size: 20px; }
.x24-licence .li-good b { color: #15803d; }
.x24-licence .li-warn b { color: #b45309; }
.x24-licence .li-bad b { color: #b91c1c; }
html.x24-loading .x24-licence { display: none; }
/* thin bar at the top while a page waits for X24cloud */
#x24-busy { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9998; opacity: 0; transition: opacity .2s;
  background: linear-gradient(90deg, transparent 0%, #f5b301 40%, #22c55e 60%, transparent 100%); background-size: 200% 100%; }
#x24-busy.on { opacity: 1; animation: x24bar 1s linear infinite; }
@keyframes x24bar { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
html.x24-loading #device-list, html.x24-loading #schedule-list { min-height: 260px; }
/* lists that load on their own (activity log, folders): placeholder while empty */
#audit-list:empty, .folder-list:empty { min-height: 140px; border-radius: 12px; background-color: #e9edf1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23cbd2d9' stroke-width='5'/%3E%3Cpath d='M25 5a20 20 0 0 1 20 20' fill='none' stroke='%23f5b301' stroke-width='5' stroke-linecap='round'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E"), linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 70%); background-repeat: no-repeat; background-size: 34px 34px, 60% 100%; animation: x24sh2 1.4s ease-in-out infinite; }
html.x24-loading #dash-kpis,
html.x24-loading #dash-screens,
html.x24-loading #dash-donut,
html.x24-loading #dash-upcoming,
html.x24-loading #dash-alerts,
html.x24-loading #dash-map,
html.x24-loading #dash-plays,
html.x24-loading #dash-hours,
html.x24-loading #device-list,
html.x24-loading #schedule-list,
html.x24-loading #tk-list,
html.x24-loading #audit-list { position: relative; }
html.x24-loading #dash-kpis::after,
html.x24-loading #dash-screens::after,
html.x24-loading #dash-donut::after,
html.x24-loading #dash-upcoming::after,
html.x24-loading #dash-alerts::after,
html.x24-loading #dash-map::after,
html.x24-loading #dash-plays::after,
html.x24-loading #dash-hours::after,
html.x24-loading #device-list::after,
html.x24-loading #schedule-list::after,
html.x24-loading #tk-list::after,
html.x24-loading #audit-list::after { content: 'Loading data from X24cloud…'; position: absolute; left: 0; right: 0; top: calc(50% + 26px);
  text-align: center; color: #6b7280; font: 500 13px/1.3 Inter, system-ui, sans-serif; pointer-events: none; }
#audit-list:empty::after, .folder-list:empty::after { content: 'Loading data from X24cloud…'; display: block; padding-top: calc(70px + 26px); text-align: center; color: #6b7280; font: 500 13px/1.3 Inter, system-ui, sans-serif; }
/* super-admin view marker (never shown to customers) */
.x24-admin-strip { position: sticky; top: 0; z-index: 9997; background: #f5b301; color: #1f1300; font: 500 13px/1.2 Inter, system-ui, sans-serif; padding: 8px 18px; text-align: center; }
.x24-admin-strip b { letter-spacing: .08em; }
.x24-admin-strip a { color: #1f1300; font-weight: 700; margin-left: 10px; }
.x24-admin-badge { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: #f5b301; color: #1f1300; font: 700 11px/1.4 Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
/* Schedules: day buttons, then From / To below */
#sch-rep-days { align-items: stretch; }
#x24-alldays { align-self: stretch; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.x24-rep-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; max-width: 66%; }
@media (max-width: 800px) { .x24-rep-times { max-width: 100%; } }
/* Schedules: New schedule bar and busy button */
.x24-sch-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.x24-sch-bar .primary { padding: 12px 22px; font-size: 15px; }
#x24-sch-cancel { margin-left: 10px; }
.x24-btn-spin { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: x24rot .8s linear infinite; }
@keyframes x24rot { to { transform: rotate(360deg); } }
#sch-cancel-edit { display: none !important; }

/* =====================  phones and small tablets  ===================== */
.x24-topbar, .x24-shade { display: none; }
@media (max-width: 820px) {
  body.x24cloud { overflow-x: hidden; }
  body.x24cloud .x24-topbar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 4500; height: 56px; padding: 0 14px;
    background: #0d1214; color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
  .x24-admin-strip { position: static; font-size: 11.5px; padding: 6px 12px; line-height: 1.35; }
  .x24-admin-strip a { display: inline-block; margin: 2px 0 0 6px; }
  .x24-burger { width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-content: center; gap: 4px; padding: 0; cursor: pointer; }
  .x24-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  html.x24-nav-open .x24-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  html.x24-nav-open .x24-burger span:nth-child(2) { opacity: 0; }
  html.x24-nav-open .x24-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .x24-top-logo { height: 22px; width: auto; }
  .x24-top-title { margin-left: auto; font-weight: 600; font-size: 15px; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
  /* menu slides in from the left */
  body.x24cloud aside { position: fixed !important; inset: 0 auto 0 0 !important; width: min(84vw, 300px) !important; z-index: 4600; transform: translateX(-105%);
    transition: transform .25s ease; overflow-y: auto; padding: 22px 16px !important; display: flex !important; }
  html.x24-nav-open body.x24cloud aside { transform: none; box-shadow: 8px 0 30px rgba(0,0,0,.35); }
  body.x24cloud aside nav { display: block !important; margin-top: 18px; }
  body.x24cloud aside nav button { font-size: 15px !important; padding: 12px 14px !important; width: 100%; }
  body.x24cloud .sidebar-footer { display: block !important; }
  html.x24-nav-open .x24-shade { display: block; position: fixed; inset: 0; z-index: 4550; background: rgba(0,0,0,.45); }
  /* content uses the full width */
  body.x24cloud main { margin: 0 !important; padding: 14px 14px 40px !important; max-width: 100% !important; width: auto !important; min-width: 0 !important; }
  body.x24cloud main * { min-width: 0; }
  body.x24cloud header { display: block !important; margin-bottom: 14px !important; }
  body.x24cloud header .eyebrow { font-size: 11px; }
  body.x24cloud h1#page-title { font-size: 26px !important; margin: 4px 0 10px; }
  body.x24cloud .header-status { max-width: none !important; display: flex !important; flex-wrap: wrap; gap: 8px 12px !important; font-size: 12px; }
  body.x24cloud .header-status #header-user { font-size: 12px; padding: 6px 10px; }
  body.x24cloud .panel { padding: 16px !important; border-radius: 14px !important; }
  body.x24cloud .section-heading { flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; }
  body.x24cloud .section-heading h2 { font-size: 20px; }
  /* every multi-column area becomes one column */
  body.x24cloud .dash-grid, body.x24cloud .dash-grid2, body.x24cloud .two-column, body.x24cloud .three-column, body.x24cloud .sched-grid,
  body.x24cloud .device-cards, body.x24cloud .stats { grid-template-columns: 1fr !important; }
  body.x24cloud .kpis { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  body.x24cloud .kpi { padding: 12px !important; }
  body.x24cloud .kpi strong { font-size: 24px !important; }
  body.x24cloud .kpi-ring, body.x24cloud .kpi svg.ring { transform: scale(.8); transform-origin: right center; }
  /* dashboard banner */
  body.x24cloud .dash-welcome { display: block !important; padding: 20px !important; min-height: 0 !important; }
  body.x24cloud .dash-welcome h2 { font-size: 22px !important; }
  body.x24cloud .hero-media, body.x24cloud .hero-video, body.x24cloud .hero-tv { display: none !important; }
  body.x24cloud .dash-actions { flex-wrap: wrap; margin-top: 14px; }
  body.x24cloud .dash-actions button { flex: 1 1 auto; }
  body.x24cloud #dash-tools { display: flex !important; flex-wrap: wrap; gap: 8px; justify-content: flex-start !important; margin: 0 0 12px !important; }
  body.x24cloud #dash-tools button { flex: 1; }
  /* licence card */
  .x24-licence { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px 16px; }
  .x24-licence .li-item:first-child { grid-column: 1 / -1; }
  .x24-licence .li-item { min-width: 0; }
  /* live screens, lists and rows */
  body.x24cloud .screen-wall { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; overflow: visible !important; }
  body.x24cloud .screen-wall .screen-tile { width: auto !important; min-width: 0 !important; }
  body.x24cloud .wall-head-right, body.x24cloud .wall-tools { flex-wrap: wrap; width: 100%; }
  body.x24cloud .wall-tools input { flex: 1; }
  body.x24cloud .chips { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 4px; }
  body.x24cloud .device-row, body.x24cloud .sched-row, body.x24cloud .tk-row, body.x24cloud .st-row { flex-direction: column; align-items: stretch !important; gap: 10px; }
  body.x24cloud .sched-row > div:last-child, body.x24cloud .st-acts, body.x24cloud .tk-act { display: flex; flex-wrap: wrap; gap: 8px; }
  body.x24cloud .dash-map { height: 260px !important; }
  /* forms */
  body.x24cloud input, body.x24cloud select, body.x24cloud textarea { font-size: 16px; max-width: 100%; }
  body.x24cloud form button[type=submit], body.x24cloud #sch-submit { width: 100%; }
  body.x24cloud #sch-rep-days { display: flex; flex-wrap: wrap; gap: 6px; }
  .x24-rep-times { max-width: 100% !important; grid-template-columns: 1fr 1fr; }
  body.x24cloud .inline-row { flex-wrap: wrap; }
  /* tables scroll sideways inside their panel */
  body.x24cloud table { display: block; overflow-x: auto; white-space: nowrap; max-width: 100%; }
  /* pop-ups use the whole screen width */
  body.x24cloud .viewer-card, body.x24cloud .notice-card { width: calc(100vw - 20px) !important; max-width: calc(100vw - 20px) !important; max-height: calc(100vh - 30px); overflow-y: auto; padding: 16px !important; }
  body.x24cloud .media-grid { grid-template-columns: 1fr 1fr !important; }
  footer { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 380px) { body.x24cloud .kpis { grid-template-columns: 1fr !important; } }

body.x24cloud .x24-hide { display: none !important; }
aside .edition .x24-admin-badge { color: #1f1300 !important; opacity: 1 !important; font-weight: 800; }

/* play / pause / stop waiting for the TV */
.x24-btn-spin.dark { border-color: rgba(0,0,0,.18); border-top-color: #111; }
.x24-wait { display: flex; align-items: center; gap: 8px; margin: 8px 12px; padding: 6px 10px; border-radius: 8px; background: #fff7e6; color: #92400e; font-size: 12.5px; font-weight: 600; }
.x24-wait::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(146,64,14,.25); border-top-color: #92400e; animation: x24rot .8s linear infinite; flex: none; }
button[data-x24lock] { cursor: progress !important; }
button[data-x24off] { opacity: .45; cursor: not-allowed !important; }
.x24-wait.bulk { margin: 6px 0 0; display: inline-flex; }
.x24-other { display: block; margin-top: 12px; text-align: center; font-size: 14px; }

/* the map box always anchors its tiles (the loading placeholder must not change that) */
#dash-map { position: relative !important; }

/* =====================  Scrolling text studio  ===================== */
.tks-studio { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.tks-form { padding: 0 !important; overflow: hidden; }
.tks-editor { display: flex; flex-direction: column; }
.tks-head { padding: 24px 26px 6px; }
.tks-head h2 { margin: 0 0 6px; }
.tks-head p { margin: 0; max-width: 62ch; }
.tks-step { padding: 18px 26px 20px; border-top: 1px solid #eef0f2; display: flex; flex-direction: column; gap: 14px; }
.tks-head + .tks-step { border-top: 0; }
.tks-step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tks-step-head h3 { margin: 0; font-size: 16px; }
.tks-num { width: 24px; height: 24px; border-radius: 50%; background: #111827; color: #fff; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.tks-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; }
.tks-step .tks-row:has(.tks-seg) { grid-template-columns: 1fr 1fr; }
.tks-field { display: flex; flex-direction: column; gap: 7px; position: relative; min-width: 0; }
.tks-label { font-size: 13px; font-weight: 600; color: #374151; }
.tks-field textarea { min-height: 84px; resize: vertical; font-size: 16px; line-height: 1.4; }
.tks-count { position: absolute; right: 10px; bottom: 8px; font-size: 11.5px; color: #9ca3af; pointer-events: none; }
/* switch */
.tks-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; height: 44px; }
.tks-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tks-slider { width: 46px; height: 26px; border-radius: 99px; background: #d1d5db; position: relative; transition: background .2s; flex: none; }
.tks-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tks-switch input:checked + .tks-slider { background: #16a34a; }
.tks-switch input:checked + .tks-slider::after { transform: translateX(20px); }
.tks-switch input:focus-visible + .tks-slider { outline: 2px solid #2563eb; outline-offset: 2px; }
.tks-on-label { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
/* segmented choices */
.tks-seg { display: flex; padding: 4px; gap: 4px; background: #f1f3f5; border-radius: 12px; }
.tks-seg button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; color: #4b5563; min-width: 0; }
.tks-seg button b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tks-seg button small { font-size: 10.5px; color: #9ca3af; white-space: nowrap; }
.tks-seg button:hover { color: #111827; }
.tks-seg button.on { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tks-seg button.on small { color: #6b7280; }
/* colours */
.tks-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tks-preset { border: 1.5px solid #e5e7eb; background: #fff; border-radius: 12px; padding: 8px 4px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tks-preset small { font-size: 11.5px; color: #4b5563; font-weight: 600; }
.tks-preset.on { border-color: #111827; box-shadow: 0 0 0 2px rgba(17,24,39,.08); }
.tks-chip { width: 100%; max-width: 64px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 13px; border: 1px solid rgba(0,0,0,.08); }
.tks-custom { display: flex; gap: 18px; margin-top: 4px; }
.tks-color { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #374151; cursor: pointer; }
.tks-color input[type=color] { -webkit-appearance: none; appearance: none; width: 30px !important; height: 30px; padding: 0; border: 1.5px solid #d1d5db; border-radius: 50%; background: none; cursor: pointer; }
.tks-color input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.tks-color input[type=color]::-webkit-color-swatch { border: 0; border-radius: 50%; }
.tks-color input[type=color]::-moz-color-swatch { border: 0; border-radius: 50%; }
/* targets */
.tks-add { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tks-add select { width: 100%; }
.tks-step .tk-targets { margin: 0; }
/* actions */
.tks-actions { display: flex; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid #eef0f2; background: #fafbfc; }
.tks-actions .primary { min-width: 160px; }
/* preview */
.tks-preview { position: sticky; top: 18px; padding: 22px 24px 28px !important; }
.tks-preview h3 { margin: 0 0 4px; }
.tks-preview p { margin: 0 0 16px; }
.tks-tv { padding: 10px; background: #0b0f12; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); position: relative; }
.tks-tv .tk-screen { width: 100% !important; margin: 0 !important; border-radius: 8px;
  background: radial-gradient(120% 90% at 20% 15%, #2b5464 0%, #13262d 45%, #070d10 100%) !important; }
.tks-tv .tk-screen::before { content: ''; position: absolute; inset: 18% 22% 30% 22%; border-radius: 10px; background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); }
.tks-stand { position: absolute; left: 50%; bottom: -16px; width: 26%; height: 8px; transform: translateX(-50%); background: #1f2937; border-radius: 0 0 8px 8px; }
/* saved list */
.tks-list .tk-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 4px; }
.tks-list .tk-swatch { width: 140px; height: 40px; border-radius: 8px; font-size: 13px; letter-spacing: .02em; }
.tks-list .tk-row strong { margin-right: 8px; font-size: 15px; }
.tks-list .tk-act { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 1100px) { .tks-studio { grid-template-columns: 1fr; } .tks-preview { position: static; order: -1; } }
@media (max-width: 820px) {
  .tks-head, .tks-step, .tks-actions { padding-left: 16px !important; padding-right: 16px !important; }
  .tks-row, .tks-step .tks-row:has(.tks-seg) { grid-template-columns: 1fr; }
  .tks-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tks-seg button small { display: none; }
  .tks-actions .primary { flex: 1; }
  .tks-list .tk-row { grid-template-columns: 1fr; }
  .tks-list .tk-swatch { width: 100%; }
  .tks-list .tk-act { justify-content: flex-start; }
}
.tks-row, .tks-step .tks-row:has(.tks-seg) { align-items: start; }
.tks-color input[type=color] { height: 30px !important; min-height: 30px !important; max-height: 30px; flex: none; }
.tks-add button { height: 100%; min-height: 44px; padding: 0 20px; }
.tks-field .tks-switch { height: 44px; }
body.x24cloud .tks-form { padding: 0 !important; }

/* Upload media on screen cards */
.x24-up-row { padding: 0 12px 10px; }
.x24-up { display: flex; width: 100%; justify-content: center; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 9px; border: 1.5px dashed #9ca3af; background: #fff; color: #111827; font-weight: 600; font-size: 13px; cursor: pointer; }
.x24-up:hover { border-color: #111827; background: #f9fafb; }
.x24-up small { color: #6b7280; font-weight: 500; font-size: 12px; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x24-up small::before { content: '· '; }
body.readonly .x24-up, body.readonly .x24-up-row { display: none !important; }
#device-list .x24-up-row .x24-up, .screen-tile .x24-up-row .x24-up, .x24-up-row .x24-up { width: 100% !important; max-width: none !important; box-sizing: border-box; }
.x24-up-row.in-tile { padding: 8px 0 0; }
.x24-up-row { align-self: stretch; width: auto; box-sizing: border-box; }
