:root { color-scheme: light; --ink: #1e2924; --muted: #738078; --line: #e0e5dc; --paper: #f5f6f0; --accent: #d9f58b; --forest: #263f31; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
:focus-visible { outline: 3px solid #729941; outline-offset: 4px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 5%; background: #fff; border-bottom: 1px solid var(--line); }
.brand, nav, .item-actions, .move-form { display: flex; align-items: center; gap: 12px; }
.brand { gap: 18px; font-weight: 600; }
.brand-mark { font-size: 32px; line-height: 1; letter-spacing: -3px; font-weight: 800; }
.brand-mark span { color: #9cbb56; font-size: 13px; padding-left: 5px; }
nav { gap: 8px; }
form { margin: 0; }
.workspace { width: min(1280px, 90%); margin: 48px auto 70px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; gap: 24px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; margin: 0 0 10px; color: #657b50; }
h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -1.7px; margin: 0 0 14px; }
h2 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.35px; }
h3 { margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }
.live-badge { background: #e8eddf; padding: 9px 15px; border-radius: 30px; font-size: 12px; white-space: nowrap; }
.live-badge span { color: #648e49; margin-right: 5px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; }
.playlist-panel, .panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.panel-heading { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-heading .muted { font-size: 12px; }
.playlist { list-style: none; padding: 0; margin: 0; }
.media-row { display: flex; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid #edf0e9; }
.item-number { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.thumbnail { width: 104px; height: 72px; flex-shrink: 0; background: #202823; border-radius: 8px; overflow: hidden; position: relative; }
.thumbnail img, .thumbnail video { width: 100%; height: 100%; object-fit: cover; }
.video-label { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 11px; background: #0009; border-radius: 4px; padding: 2px 6px; }
.item-details { flex: 1; min-width: 0; }
.item-details h3 { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: 14px; font-weight: 550; }
.item-details p { font-size: 10px; color: var(--muted); margin-top: 6px; }
.item-actions, .move-form { gap: 4px; }
.icon-button { border: 1px solid transparent; background: transparent; width: 32px; height: 38px; border-radius: 7px; font-size: 20px; color: #526155; }
.icon-button:hover:not(:disabled) { background: var(--paper); border-color: var(--line); }
.delete-button { color: #9e665a; }
.playlist-footer { padding: 17px 24px; background: #fafbf7; color: var(--muted); font-size: 12px; }
.playlist-footer span { padding-right: 6px; }
.empty-playlist { padding: 80px 20px; text-align: center; }
.empty-playlist h3 { font-size: 20px; font-weight: 500; margin: 18px 0 10px; }
.empty-playlist p { color: var(--muted); font-size: 14px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; background: var(--paper); border-radius: 18px; color: #729250; font-size: 40px; transform: rotate(-6deg); }
.sidebar { display: grid; gap: 20px; }
.panel { padding: 24px; }
.panel h2 { margin-bottom: 20px; }
.stack { display: grid; gap: 18px; }
.stack label { display: block; font-size: 12px; font-weight: 550; }
input:not([type=hidden]):not([type=file]), select { width: 100%; background: #fff; border: 1px solid #d7ded0; padding: 12px; border-radius: 8px; margin-top: 7px; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 0; padding: 12px 18px; border-radius: 8px; font-weight: 550; font-size: 13px; white-space: nowrap; }
.primary { background: var(--forest); color: #fff; justify-content: space-between; }
.primary:hover { background: #395941; }
.secondary { background: #edf1e7; color: var(--forest); }
.secondary:hover { background: #e2ead8; }
.subtle { background: transparent; color: #566151; }
.subtle:hover { background: var(--paper); }
.stack .upload-zone { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 24px 8px; border: 1px dashed #b8c3ac; border-radius: 10px; background: #f9fbf3; position: relative; cursor: pointer; }
.upload-zone > span { font-weight: 400; color: var(--muted); font-size: 11px; }
.upload-zone .upload-icon { background: #e7efda; color: var(--forest); font-size: 25px; height: 42px; width: 42px; border-radius: 12px; margin-bottom: 5px; }
.upload-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-zone:focus-within, .upload-zone.dragging { outline: 3px solid #729941; outline-offset: 3px; }
.upload-zone .file-hint { margin-top: 10px; font-size: 10px; }
.file-summary { font-size: 11px; color: var(--muted); margin-top: -5px; }
.sidebar-note { font-size: 12px; color: var(--muted); padding: 0 8px; line-height: 1.8; }
.message { padding: 14px 18px; border-radius: 9px; margin-bottom: 24px; font-size: 13px; }
.error { background: #fae9e3; color: #8b3e31; }
.success { background: #e3edda; color: #355631; }
.login-wrap { min-height: calc(100vh - 190px); display: flex; justify-content: center; align-items: center; padding: 50px 20px; }
.login-card { width: 470px; padding: 44px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.login-card h1 { font-size: 38px; margin: 16px 0; }
.login-card > .muted { font-size: 13px; margin-bottom: 30px; }
.login-note { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 1px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; padding: 22px 5%; color: #8d9688; font-size: 10px; letter-spacing: 1px; border-top: 1px solid var(--line); }
@media (max-width: 1050px) { .studio-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; } .media-row { gap: 10px; padding: 16px 12px; } .thumbnail { width: 75px; height: 60px; } .item-details p span { display: none; } .panel { padding: 20px; } }
@media (max-width: 800px) { .studio-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr 1fr; } .page-heading { align-items: flex-start; } .workspace { margin-top: 32px; } }
@media (max-width: 560px) { .sidebar { grid-template-columns: 1fr; } .topbar { padding: 16px 5%; } .brand > span:last-child { display: none; } .page-heading { flex-direction: column; gap: 16px; } .panel-heading { padding: 20px 16px; } .item-number { display: none; } .thumbnail { width: 62px; height: 55px; } .item-details h3 { font-size: 12px; } .icon-button { width: 28px; } .item-actions, .move-form { gap: 0; } .login-card { padding: 30px; } .login-card h1 { font-size: 34px; } .subtle { padding: 10px; } }
/* CDS campaign management extends the TT gallery studio layout. */
.brand small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; }
.brand img { flex-shrink: 0; }
.intro { margin: 15px 0 28px; }
.help { margin-top: 20px; }
.login-card { width: min(460px, 100%); margin: 70px auto; padding: 36px; }
.login-card h1 { font-size: 38px; }
.notice { padding: 18px 22px; border-radius: 10px; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice.success { background: #e6efd9; color: #304323; }
.notice.error { background: #f9e6df; color: #753927; }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campaign-card { display: flex; flex-direction: column; align-items: start; gap: 16px; }
.campaign-card h2 { font-size: 24px; margin: 0; overflow-wrap: anywhere; }
.campaign-card .button { margin-top: auto; }
.campaign-card .live-badge { font-size: 11px; }
.hostname { font-size: 13px; overflow-wrap: anywhere; }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-heading h1 { overflow-wrap: anywhere; }
.page-heading > div { min-width: 0; }
.youtube-label { color: #fff; display: grid; place-items: center; height: 100%; font-size: 12px; }
.account-list { display: grid; gap: 20px; }
.account-list .panel h2 { margin-bottom: 6px; }
.panel .muted { font-size: 12px; overflow-wrap: anywhere; }
.pagination { grid-column: 1 / -1; }
.pagination svg { width: 18px; height: 18px; }
.pagination nav { display: block; }
summary { cursor: pointer; font-weight: 600; }
.upload-zone:focus-within { outline: 3px solid #729941; outline-offset: 3px; }
@media(max-width: 1000px) { .topbar { gap: 20px; flex-wrap: wrap; } .topbar nav { flex-wrap: wrap; } .campaign-grid { grid-template-columns: 1fr; } }
@media(max-width: 640px) { .topbar { padding: 16px 5%; } .topbar .button { padding: 9px; font-size: 12px; } .workspace { margin-top: 28px; } .page-heading { flex-wrap: wrap; } .media-row { flex-wrap: wrap; padding: 16px; gap: 10px; } .item-actions { margin-left: auto; } .thumbnail { width: 72px; height: 56px; } .item-details { min-width: 90px; } .login-card { padding: 24px; margin-top: 30px; } }

.filter-bar { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin: 0 0 24px; }
.filter-bar label { flex: 1; min-width: 180px; font-size: 12px; }
.activity-note { margin-bottom: 18px; font-size: 13px; }
.device-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 24px; }
.device-summary strong { display: block; font-size: 32px; font-weight: 600; }
.device-summary span { font-size: 13px; color: var(--muted); }
.device-list { display: grid; gap: 16px; }
.device-card { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; align-items: start; }
.device-card > div { min-width: 0; }
.device-card h2 { margin-bottom: 8px; overflow-wrap: anywhere; }
.device-card .hostname { margin-top: 8px; }
.device-online { background: #e1efd5; color: #355631; }
.device-waiting { background: #fff0d5; color: #775118; }
.device-browser { overflow-wrap: anywhere; }
@media(max-width: 800px) { .device-card { grid-template-columns: 1fr; gap: 20px; } }
@media(max-width: 560px) { .device-summary { grid-template-columns: 1fr; gap: 10px; } .device-summary .panel { display: flex; align-items: center; gap: 18px; } }
