:root {
  color-scheme: dark;
  --bg: #080d18;
  --surface: #0e1524;
  --surface-2: #121c2d;
  --surface-3: #172438;
  --line: rgba(135, 164, 198, .18);
  --text: #edf3fb;
  --muted: #91a1b8;
  --brand-primary: #2bd576;
  --studio-primary: var(--brand-primary);
  --green: var(--studio-primary);
  --green-soft: color-mix(in srgb, var(--studio-primary) 14%, transparent);
  --blue: #58b9ff;
  --blue-soft: rgba(88, 185, 255, .13);
  --amber: #f6bd4f;
  --amber-soft: rgba(246, 189, 79, .13);
  --red: #ff6c6c;
  --red-soft: rgba(255, 108, 108, .13);
  --purple: #ca8cff;
  --purple-soft: rgba(202, 140, 255, .13);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-3: #e4ebf3;
  --line: rgba(28, 55, 83, .16);
  --text: #132238;
  --muted: #5c6f85;
  --brand-primary: #087a43;
  --studio-primary: var(--brand-primary);
  --green: var(--brand-primary);
  --blue: #096da8;
  --blue-soft: rgba(9, 109, 168, .1);
  --amber: #9a6500;
  --amber-soft: rgba(154, 101, 0, .1);
  --red: #bd343d;
  --red-soft: rgba(189, 52, 61, .1);
  --purple: #7045a6;
  --purple-soft: rgba(112, 69, 166, .1);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.branding-pending { visibility: hidden !important; pointer-events: none !important; }
.icon { width: 18px; height: 18px; display: inline-block; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--brand-primary) 8%, transparent), transparent 33%), var(--bg); }
.login-card { width: min(560px, 100%); padding: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.login-screen { position: relative; overflow: hidden; isolation: isolate; }
.login-screen::before { position: absolute; inset: -20%; z-index: -1; content: ''; pointer-events: none; background: radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--brand-primary) 28%, transparent), transparent 34%), radial-gradient(circle at 84% 84%, rgba(112, 83, 255, .24), transparent 38%); filter: blur(34px); opacity: .9; }
.login-card { position: relative; width: min(430px, 100%); padding: 42px 38px 36px; border: 1px solid rgba(255, 255, 255, .22); border-top: 1px solid rgba(255, 255, 255, .28); border-radius: 28px; background: linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .045)); -webkit-backdrop-filter: blur(22px) saturate(135%); backdrop-filter: blur(22px) saturate(135%); box-shadow: 0 28px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .12); }
.login-card::after { position: absolute; inset: 1px; z-index: -1; content: ''; border-radius: 27px; pointer-events: none; background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%); }
.login-card .field { margin: 18px 0; }
.login-card .field label { color: rgba(237, 243, 251, .78); }
.login-card input { border-color: rgba(255, 255, 255, .2); background: rgba(5, 10, 22, .28); }
.login-card input:focus { border-color: color-mix(in srgb, var(--brand-primary) 72%, white); background: rgba(5, 10, 22, .38); }
.login-card .btn-primary { border-color: transparent; border-radius: 12px; background: linear-gradient(105deg, color-mix(in srgb, var(--brand-primary) 92%, #0d1728), color-mix(in srgb, var(--brand-primary) 62%, #7657ff)); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-primary) 20%, transparent); }
.login-social { display: grid; gap: 12px; margin-top: 22px; }
.login-social-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-social-divider::before, .login-social-divider::after { flex: 1; height: 1px; content: ''; background: rgba(237,243,251,.16); }
.social-login-button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 46px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; font-size: 13px; font-weight: 750; cursor: default; }
.social-login-button:hover { transform: none; }
.social-login-icon { width: 20px; height: 20px; flex: 0 0 20px; }
.social-google { color: #1f2937; background: #ffffff; }
.social-apple { color: #ffffff; border-color: #000000; background: #000000; }
.brand-mark { display: flex; align-items: center; gap: 12px; color: var(--green); font-size: 24px; font-weight: 800; letter-spacing: .01em; }
.sidebar-home-button { width: 100%; padding: 0; border: 0; border-radius: 8px; color: inherit; background: transparent; }
.sidebar-home-button:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand-primary) 72%, white); outline-offset: 3px; }
.brand-mark .icon { width: 27px; height: 27px; }
.brand-logo { display: block; width: auto; object-fit: contain; }
.brand-logo[hidden] { display: none; }
.brand-logo-login { width: min(100%, 460px); max-width: 460px; height: 180px; max-height: 180px; object-fit: contain; }
.brand-logo-sidebar { width: min(100%, 260px); max-width: 260px; height: 96px; max-height: 96px; object-fit: contain; }
.studio-login-brand, .studio-sidebar-brand { min-width: 0; }
.studio-login-brand { justify-content: center; width: 100%; min-height: 180px; margin-bottom: 28px; }
.studio-sidebar-brand { justify-content: center; min-height: 96px; padding-inline: 4px !important; }
.studio-login-brand [data-studio-brand-fallback], .studio-sidebar-brand [data-studio-brand-fallback] { display: inline-flex; align-items: center; gap: 12px; }
.studio-login-brand [data-studio-brand-fallback][hidden], .studio-sidebar-brand [data-studio-brand-fallback][hidden] { display: none; }
.login-card h1 { margin: 28px 0 8px; font-size: 28px; }
.login-card p { margin: 0 0 26px; color: var(--muted); }
.field { display: grid; gap: var(--space-3); margin: var(--space-4) 0; }
.field label { color: var(--muted); font-size: 13px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid rgba(88, 185, 255, .28); border-radius: var(--radius); outline: none; color: var(--text); background: #090f1b; padding: 11px 12px; }
textarea { min-height: 92px; resize: vertical; }
input[type="range"] { width: 100%; box-sizing: border-box; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; accent-color: var(--studio-primary); }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(135,164,198,.28); }
input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6px; appearance: none; border: 2px solid var(--surface); border-radius: 50%; background: var(--studio-primary); box-shadow: 0 0 0 1px color-mix(in srgb, var(--studio-primary) 55%, transparent); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(135,164,198,.28); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--studio-primary); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--surface); border-radius: 50%; background: var(--studio-primary); box-shadow: 0 0 0 1px color-mix(in srgb, var(--studio-primary) 55%, transparent); }
input:focus, select:focus, textarea:focus { border-color: var(--studio-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-primary) 16%, transparent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid transparent; border-radius: var(--radius); padding: 9px 14px; color: var(--text); background: var(--surface-3); transition: background .16s, border-color .16s, transform .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { color: #05120b; background: var(--green); border-color: var(--green); font-weight: 800; }
.btn-primary:hover { background: color-mix(in srgb, var(--brand-primary) 82%, white); }
.btn-secondary { color: var(--blue); border-color: rgba(88,185,255,.46); background: var(--blue-soft); }
.btn-danger { color: var(--red); border-color: rgba(255,108,108,.5); background: var(--red-soft); }
.btn-ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.icon-btn { width: 38px; min-width: 38px; padding: 8px; }
.error-text { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); transition: grid-template-columns .32s cubic-bezier(.2,.8,.2,1); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: var(--space-7); min-width: 0; padding: 24px 16px; border-right: 1px solid var(--line); background: #0a111e; transition: padding .32s cubic-bezier(.2,.8,.2,1), border-color .32s ease; }
.sidebar .brand-mark { padding: 0 10px; font-size: 21px; }
.sidebar nav { display: grid; gap: var(--space-2); }
.nav-btn { display: flex; align-items: center; gap: var(--space-3); width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); background: transparent; text-align: left; transition: gap .28s ease, padding .28s ease, color .18s ease, background .18s ease, border-color .18s ease; }
.nav-btn span { max-width: 190px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: max-width .26s ease, opacity .2s ease, transform .26s ease; }
.nav-btn[data-view="custom-app"] span { max-width: none; overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.25; }
.nav-btn:hover, .nav-btn.active { color: var(--text); border-color: color-mix(in srgb, var(--brand-primary) 25%, transparent); background: var(--green-soft); }
.nav-btn.active .icon { color: var(--green); }
.nav-subnav { display: grid; gap: 6px; margin: 12px 0 14px 18px; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--brand-primary) 28%, transparent); }
.nav-subnav-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.nav-subnav-btn:hover, .nav-subnav-btn.active { color: var(--text); border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent); background: color-mix(in srgb, var(--green-soft) 70%, transparent); }
.nav-subnav-btn .icon { width: 15px; height: 15px; }
.section-menu-panel { display: grid; gap: 5px; min-height: 0; max-height: calc(100vh - 160px); overflow-y: auto; padding: 0 0 4px; animation: section-menu-in .24s cubic-bezier(.2,.8,.2,1) both; scrollbar-width: none; -ms-overflow-style: none; }
.section-menu-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }
.section-menu-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 12px 7px; border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent); }
.section-menu-panel-header > div { display: grid; gap: 2px; min-width: 0; }
.section-menu-panel-header strong { font-size: 15px; }
.section-menu-panel-header small { color: var(--muted); font-size: 12px; }
.section-menu-panel-header .icon-btn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 6px; }
.section-menu-panel .nav-subnav { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; border: 0; }
.section-menu-panel .nav-subnav-btn { min-height: 40px; padding: 9px 11px; font-size: 14px; }
.section-menu-panel .nav-subnav-btn.active { box-shadow: inset 3px 0 0 var(--brand-primary); }
.section-menu-panel .nav-subnav-parent { justify-content: flex-start; font-weight: 800; }
.section-menu-panel .nav-subnav-parent-chevron { margin-left: auto; color: var(--muted); font-size: 13px; line-height: 1; }
.section-menu-panel .nav-subnav-children { display: grid; gap: 4px; overflow: hidden; transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease, transform .28s cubic-bezier(.2,.8,.2,1), margin .28s ease; }
.section-menu-panel .nav-subnav-children { max-height: 120px; margin: 0 0 4px 18px; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--brand-primary) 34%, transparent); animation: section-menu-children-in .2s cubic-bezier(.2,.8,.2,1) both; }
.section-menu-panel .nav-subnav-children[data-youtube-children] { max-height: 300px; }
.section-menu-panel .nav-subnav-children.is-collapsed { max-height: 0; margin-top: -4px; margin-bottom: 0; opacity: 0; transform: translateX(-18px); pointer-events: none; }
.section-menu-panel .nav-subnav-child { min-height: 38px; padding-block: 8px; font-size: 13px; }
.section-menu-panel .nav-subnav-child .icon { width: 14px; height: 14px; }
@keyframes section-menu-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes section-menu-children-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .section-menu-panel { animation: none; } }
@media (max-width: 700px) { .section-menu-panel { max-height: calc(100vh - 144px); } .section-menu-panel .nav-subnav-btn { min-height: 38px; padding-block: 8px; } }
.sidebar-footer { margin-top: auto; color: var(--muted); font-size: 12px; line-height: 1.5; padding: 0 10px; }
.main { min-width: 0; transition: padding-left .32s cubic-bezier(.2,.8,.2,1); }
.topbar { display: none; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: rgba(8,13,24,.86); }
.topbar.overview-clean { display: flex; justify-content: flex-start; }
.topbar.overview-clean > div:first-child { display: none; }
.topbar h1 { margin: 0; font-size: 23px; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.user-tools { display: flex; align-items: center; gap: 12px; }
.topbar.overview-clean .user-tools { width: 100%; justify-content: flex-start; }
.topbar.overview-clean .user-label { display: none; }
.topbar.overview-clean .language-picker { order: 1; }
.topbar.overview-clean #themeToggle { order: 2; margin-left: auto; }
.topbar.overview-clean #logoutBtn { order: 3; margin-left: 0; }
.theme-toggle { width: 38px; min-width: 38px; padding: 8px; }
.theme-toggle-symbol { display: block; font-size: 18px; line-height: 1; }
.theme-toggle [data-theme-label] { display: none; }
.language-select { width: 46px; min-width: 46px; padding: 9px 18px 9px 8px; color: var(--text); border-color: var(--line); background: var(--surface-2); }
.language-picker { position: relative; display: inline-flex; align-items: center; gap: 3px; }
.language-select-native { position: absolute; width: 1px !important; min-width: 1px !important; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; opacity: 0; pointer-events: none; }
.language-picker-trigger { display: none !important; }
.language-picker-menu { display: flex !important; align-items: center; gap: 3px; padding: 0; border: 0; background: transparent; }
.language-picker-option { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 20px; padding: 2px; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer; }
.language-picker-option:hover, .language-picker-option:focus-visible { border-color: color-mix(in srgb, var(--studio-primary) 45%, transparent); background: var(--green-soft); outline: none; }
.language-picker-option.is-active { border-color: transparent; background: transparent; }
.language-flag { position: relative; display: block; width: 18px; height: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.flag-pt { background: #009c3b url('https://flagcdn.com/br.svg') center / cover no-repeat; }
.flag-en { background: #3c3b6e url('https://flagcdn.com/us.svg') center / cover no-repeat; }
.flag-es { background: #aa151b url('https://flagcdn.com/es.svg') center / cover no-repeat; }
.flag-pt::after, .flag-en::before { display: none; }
.login-language-tools > label { display: none; }
.login-language-tools { position: relative; top: -8px; display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 700; }
.login-language-tools .language-select { width: 46px; min-width: 46px; }
.user-label { display: grid; text-align: right; }
.user-label strong { font-size: 13px; }
.user-label small { color: var(--muted); }
.content { width: min(1800px, 100%); margin: 0 auto; padding: 40px 36px 64px; }
.view-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.organization-detail-header .organization-back-link { align-self: flex-start; margin-left: auto; }
.detail-title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.back-link { align-self: flex-start; padding: 6px 10px; min-height: 32px; }
.view-header > .back-link, .view-header .top-right-back-button { align-self: flex-start; margin-left: auto; }
.playlist-editor-title { gap: 5px; }
.playlist-editor-actions { align-self: flex-start; flex-wrap: nowrap; gap: 8px; }
.playlist-editor-header-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 142px; min-width: 142px; min-height: 40px; padding: 9px 14px; white-space: nowrap; }
.playlist-editor-header-action .icon { width: 16px; height: 16px; }
.view-header h2 { margin: 0; font-size: 22px; }
.view-header p { margin: 5px 0 0; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs .btn { min-height: 40px; padding: 10px 15px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.dashboard-cards-tenant { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-cards-admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { position: relative; min-height: 126px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card::before { display: none; }
.stat-card.tone-green { border-color: color-mix(in srgb, var(--green) 28%, var(--line)); background: color-mix(in srgb, var(--green) 10%, var(--surface)); }
.stat-card.tone-blue { border-color: color-mix(in srgb, var(--blue) 28%, var(--line)); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); }
.stat-card.tone-purple { border-color: color-mix(in srgb, var(--purple) 28%, var(--line)); background: color-mix(in srgb, var(--purple) 10%, var(--surface)); }
.stat-card.tone-amber { border-color: color-mix(in srgb, var(--amber) 28%, var(--line)); background: color-mix(in srgb, var(--amber) 11%, var(--surface)); }
.stat-card .stat-icon { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.stat-card .stat-value { display: block; margin-top: 17px; font-size: 29px; font-weight: 800; }
.stat-card .stat-label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.panel > .cards { margin: 0; padding: 18px 16px 24px; }
.tone-green .stat-value, .tone-green .stat-icon { color: var(--green); }
.tone-blue .stat-value, .tone-blue .stat-icon { color: var(--blue); }
.tone-amber .stat-value, .tone-amber .stat-icon { color: var(--amber); }
.tone-purple .stat-value, .tone-purple .stat-icon { color: var(--purple); }
.panel { margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 22px 26px; border-bottom: 1px solid var(--line); }
.panel-header h3 { margin: 0; font-size: 16px; }
.panel-header small { color: var(--muted); }
.panel > .split-grid { padding: 24px 26px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 16px 20px; border-bottom: 1px solid rgba(135,164,198,.12); text-align: left; vertical-align: middle; font-size: 13px; line-height: 1.45; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(88,185,255,.035); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.actions .btn { min-height: 32px; padding: 6px 9px; font-size: 12px; }
.table-actions { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
.table-actions .icon-btn { flex: 0 0 38px; }
.organization-actions { width: 100%; justify-content: center; }
.terminal-actions { align-items: center; gap: 12px 16px; min-width: 430px; padding: 2px 0; }
.terminal-actions .btn { flex: 0 0 auto; white-space: nowrap; padding-inline: 11px; }
.terminal-actions.table-actions { min-width: 0; width: 100%; flex-wrap: nowrap; justify-content: center; gap: 8px; padding: 2px 0; }
.terminal-actions.table-actions .icon-btn { padding: 8px; }
.terminal-table th:last-child, .terminal-table td:last-child { text-align: center; }
.terminal-status-summary { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.terminal-status-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0; border: 0; border-radius: 0; color: var(--muted); background: transparent; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; font-weight: 650; line-height: 1.25; cursor: pointer; transition: color .16s ease, opacity .16s ease; }
.terminal-status-filter:hover, .terminal-status-filter.is-selected { color: var(--text); outline: none; }
.terminal-status-filter:focus-visible { outline: 2px solid color-mix(in srgb, var(--brand-primary) 70%, transparent); outline-offset: 5px; border-radius: 4px; }
.terminal-status-filter strong { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding-inline: 6px; border-radius: 999px; color: var(--text); background: var(--surface-3); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; font-weight: 750; line-height: 1; }
.terminal-status-filter.is-all strong { color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 18%, var(--surface-3)); }
.terminal-status-filter.is-online { color: var(--green); }
.terminal-status-filter.is-online strong { color: #05120b; background: var(--green); }
.terminal-status-filter.is-offline { color: var(--red); }
.terminal-status-filter.is-offline strong { color: #fff; background: var(--red); }
.terminal-table { min-width: 1180px; }
.terminal-table-wrap { overflow-x: auto; }
.terminal-preview { display: grid; width: 118px; gap: 5px; }
.terminal-preview-screen { position: relative; display: flex; min-height: 58px; aspect-ratio: 16 / 9; align-items: center; justify-content: center; gap: 7px; overflow: hidden; padding: 8px; border: 1px solid rgba(88,185,255,.25); border-radius: 8px; color: var(--blue); background: #091322; font-size: 10px; font-weight: 700; text-align: center; }
.terminal-preview-screen.has-content { padding: 0; }
.terminal-preview-media, .terminal-preview-screen .media-thumb-video-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.terminal-preview-empty { display: flex; align-items: center; justify-content: center; gap: 7px; }
.terminal-preview-empty .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.terminal-preview-screen .icon { width: 18px; height: 18px; }
.terminal-preview > small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.terminal-ip { color: var(--text); font-size: 12px; white-space: nowrap; }
.terminal-connection-state { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.terminal-connection-state .icon { width: 14px; height: 14px; }
.terminal-connection-state.is-online { color: var(--green); border-color: color-mix(in srgb, var(--brand-primary) 42%, transparent); background: var(--green-soft); }
.terminal-connection-state.is-offline { color: var(--red); border-color: rgba(255,108,108,.42); background: var(--red-soft); }
.terminal-status-cell { text-align: center; }
.terminal-connection-status { display: flex; width: 100%; align-items: center; justify-content: center; }
.status-badges { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: max-content; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(135,164,198,.08); font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-wrap td > strong + br + .badge { margin-top: 8px; }
.badge + .badge { margin-left: 6px; }
.badge-active, .badge-authorized { color: var(--green); border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent); background: var(--green-soft); }
.badge-suspended, .badge-pending { color: var(--amber); border-color: rgba(246,189,79,.35); background: var(--amber-soft); }
.badge-danger, .badge-revoked, .badge-expired { color: var(--red); border-color: rgba(255,108,108,.35); background: var(--red-soft); }
.empty { padding: 42px 18px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 6px; color: var(--text); }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.detail-list { display: grid; gap: 14px; padding: 24px; }
.compact-list { padding: 0; }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.detail-row strong { color: var(--text); text-align: right; }
.organization-access-actions { gap: 10px; padding: 18px 24px 6px; }
.organization-user-edit-button { margin-left: 8px; }
.organization-user-status { display: inline-flex; align-items: center; }
.organization-user-status .badge { min-height: 38px; padding: 9px 14px; border-radius: var(--radius); }
.organization-access-list { gap: 10px; padding: 18px 24px 24px; }
.organization-access-list .detail-row { min-height: 52px; padding: 11px 15px; border: 1px solid rgba(135,164,198,.16); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 58%, transparent); }
.organization-access-list .detail-row > span { color: var(--text); font-weight: 650; }
.organization-access-list .detail-row > strong { display: flex; align-items: center; gap: 10px; }
.organization-access-list .detail-row > strong label { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.organization-access-list input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand-primary); }
.muted-copy { color: var(--muted); }
.mini-list { display: grid; gap: 8px; margin: 12px 0 20px; }
.mini-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid rgba(135,164,198,.13); border-radius: var(--radius); }
.audit-line { margin: 9px 0; color: var(--muted); font-size: 13px; }
.audit-line strong { color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--line); }
.license-filters { align-items: flex-end; }
.filters select { width: min(260px, 100%); }
.license-filters > select { width: min(260px, 100%); min-width: 0; flex: 0 1 260px; }
.license-search-field { display: grid; min-width: min(320px, 100%); flex: 1 1 320px; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.license-search-field input { width: 100%; }
.license-search-empty { margin: 16px 24px 24px; }
.activation-code { letter-spacing: .14em; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 14px clamp(12px, 2.2vw, 36px); background: rgba(2,7,14,.74); }
.modal { width: min(600px, 100%); max-height: min(780px, calc(100dvh - 28px)); overflow: auto; border: 1px solid rgba(88,185,255,.3); border-radius: 10px; background: var(--surface); box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.modal-header { display: flex; align-items: center; justify-content: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--line); }
.modal.media-preview-modal { overflow: hidden; }
.modal.media-preview-modal .modal-body { overflow: hidden; padding: 14px 20px; }
.modal.media-preview-modal.is-zoomable .modal-body { overflow: auto; }
.modal.media-edit-modal { width: min(820px, 100%); max-height: min(840px, calc(100vh - 34px)); background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(18px) saturate(125%); backdrop-filter: blur(18px) saturate(125%); box-shadow: 0 32px 100px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08); }
.modal.playlist-folder-edit-modal { width: min(1320px, 100%); max-height: min(920px, calc(100dvh - 28px)); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(20px) saturate(135%); backdrop-filter: blur(20px) saturate(135%); box-shadow: 0 36px 120px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.1); }
.playlist-folder-edit-intro { margin-bottom: 18px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--blue) 6%, transparent); }
.playlist-folder-edit-intro p { margin: 0; line-height: 1.5; }
.playlist-folder-edit-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, .75fr); gap: 18px; }
.playlist-folder-files-panel, .playlist-folder-settings-panel { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.playlist-folder-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.playlist-folder-panel-heading h4 { margin: 0; font-size: 16px; }
.playlist-folder-panel-heading small { display: block; margin-top: 4px; color: var(--muted); }
.playlist-folder-file-list { display: grid; gap: 9px; max-height: 470px; overflow: auto; padding-right: 4px; }
.playlist-folder-file-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 9px; border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--surface) 68%, transparent); }
.playlist-folder-file-preview { width: 96px; height: 64px; overflow: hidden; border-radius: 8px; background: #07101d; }
.playlist-folder-file-preview .media-preview-trigger, .playlist-folder-file-preview .media-thumb, .playlist-folder-file-preview img, .playlist-folder-file-preview video { width: 100%; height: 64px; object-fit: cover; }
.playlist-folder-file-copy { display: grid; min-width: 0; gap: 4px; }
.playlist-folder-file-copy strong, .playlist-folder-file-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-folder-file-copy small { color: var(--muted); font-size: 11px; }
.playlist-folder-settings-panel { align-content: start; }
.playlist-folder-settings-panel .field { margin-bottom: 18px; }
.playlist-folder-settings-panel select { min-height: 44px; }
.playlist-folder-mute-option { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid color-mix(in srgb, var(--brand-primary) 30%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--brand-primary) 7%, transparent); cursor: pointer; }
.playlist-folder-mute-option input { margin-top: 3px; accent-color: var(--brand-primary); }
.playlist-folder-mute-option span { display: grid; gap: 5px; }
.playlist-folder-mute-option small { color: var(--muted); line-height: 1.4; }
.media-edit-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 20px; padding: 14px; border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.media-edit-preview { display: grid; min-height: 128px; place-items: center; overflow: hidden; border-radius: 10px; background: #08111f; }
.media-edit-preview .media-preview-trigger, .media-edit-preview .media-thumb, .media-edit-preview img, .media-edit-preview video { width: 100%; height: 128px; object-fit: contain; }
.media-edit-summary { display: grid; gap: 7px; min-width: 0; }
.media-edit-summary strong { color: var(--text); font-size: 18px; }
.media-edit-summary span { color: var(--muted); line-height: 1.5; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; max-width: min(420px, calc(100vw - 48px)); padding: 12px 15px; border: 1px solid color-mix(in srgb, var(--brand-primary) 45%, transparent); border-radius: var(--radius); color: var(--text); background: #12251b; box-shadow: 0 12px 35px rgba(0,0,0,.32); }
.toast.error { border-color: rgba(255,108,108,.5); background: #2b171a; }
.code-box { margin: 14px 0; padding: 17px; border: 1px solid rgba(246,189,79,.42); border-radius: var(--radius); background: var(--amber-soft); text-align: center; }
.code-box strong { display: block; color: var(--amber); font-size: 34px; letter-spacing: .16em; }
.code-box small { color: var(--muted); }
.simulator-shell { min-height: 100vh; padding: 28px; background: radial-gradient(circle at 85% 0%, rgba(88,185,255,.08), transparent 30%), var(--bg); }
.simulator-container { width: min(980px, 100%); margin: 0 auto; }
.sim-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.sim-header h1 { margin: 0; color: var(--green); font-size: 29px; }
.sim-header p { margin: 7px 0 0; color: var(--muted); }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.sim-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sim-card h2 { margin: 0 0 16px; font-size: 17px; }
.sim-status { display: grid; gap: 10px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #0a111e; }
.sim-status h3 { margin: 0; font-size: 20px; }
.sim-status p { margin: 0; color: var(--muted); }
.sim-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.sim-meta div { padding: 10px; border: 1px solid rgba(135,164,198,.13); border-radius: var(--radius); }
.sim-meta small { display: block; color: var(--muted); margin-bottom: 5px; }
.sim-meta strong { font-size: 13px; word-break: break-word; }
.status-authorized { border-color: color-mix(in srgb, var(--brand-primary) 45%, transparent); }
.status-suspended, .status-revoked { border-color: rgba(255,108,108,.5); }
.status-pending { border-color: rgba(246,189,79,.45); }

/* White Label: identidade principal, derivados e previews */
.wl-intro { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.wl-logo-card { border-color: color-mix(in srgb, var(--brand-primary) 35%, transparent); background: linear-gradient(145deg, color-mix(in srgb, var(--brand-primary) 8%, transparent), var(--surface) 42%); }
.wl-logo-card .wl-asset-preview { min-height: 170px; }
.wl-generated-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wl-generated-grid .panel { margin: 0; }
.wl-asset-preview { min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; border: 1px solid rgba(135,164,198,.16); border-radius: 10px; color: var(--muted); background: var(--bg); text-align: center; }
.wl-asset-preview strong { color: var(--text); }
.wl-asset-preview small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-asset-preview img { display: block; width: 100%; height: 100%; max-height: 220px; object-fit: contain; border-radius: 8px; }
.wl-asset-preview.is-icon img { width: 100%; height: 100%; }
.wl-asset-preview.is-banner img { width: 100%; height: 100%; }
.wl-asset-preview.is-splash img { width: 100%; height: 100%; }
.wl-preview-error { color: var(--muted); font-size: 12px; }
.wl-loading-line { position: relative; display: block; width: 72%; height: 3px; overflow: hidden; margin: 8px auto 0; border-radius: 99px; background: rgba(255,255,255,.18); }
.wl-loading-line::after { content: ''; position: absolute; inset: 0 auto 0 -45%; width: 45%; border-radius: inherit; background: var(--wl-accent, var(--green)); animation: wl-loading 1.35s ease-in-out infinite; }
@keyframes wl-loading { 0% { transform: translateX(0); } 100% { transform: translateX(320%); } }
.wl-asset-preview.is-icon { width: 150px; min-height: 150px; margin: auto; border-radius: 18px; }
.wl-asset-preview.is-banner { aspect-ratio: 16 / 9; min-height: 0; }
.wl-asset-preview.is-splash { min-height: 190px; width: min(100%, 190px); margin: auto; }
.wl-asset-preview.is-dynamic-composition { overflow: hidden; }
.wl-composite-stage { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 70px; }
.wl-asset-preview.is-banner .wl-composite-stage { height: 100%; }
.wl-asset-preview.is-splash .wl-composite-stage { min-height: 150px; }
.wl-composite-stage img { display: block; width: min(72%, 260px); max-height: 78%; object-fit: contain; }
.wl-asset-preview.is-splash .wl-composite-stage img { width: 78%; max-height: 150px; }
.wl-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.wl-state.derived { color: var(--green); }
.wl-state.processing::before { content: ''; width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.28); border-top-color: var(--blue); border-radius: 50%; animation: wl-spin .8s linear infinite; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-asset-description { min-height: 38px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.wl-logo-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(135,164,198,.14); }
.wl-logo-actions .btn { flex: 0 1 auto; min-width: 136px; }
.wl-advanced { margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.wl-advanced summary { cursor: pointer; padding: 17px 18px; color: var(--text); font-weight: 750; }
.wl-advanced summary::marker { color: var(--green); }
.wl-advanced-body { padding: 0 18px 18px; }
.wl-color-control { display: flex; align-items: center; gap: 10px; }
.wl-color-control input[type=color] { width: 48px; height: 38px; padding: 3px; }
.wl-color-control output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.wl-hex-input { width: 104px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.wl-hex-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 2px rgba(227,27,35,.16); }
.wl-colors-heading { grid-column: 1 / -1; padding-top: 4px; border-top: 1px solid rgba(135,164,198,.14); }
.wl-colors-heading h4 { margin: 0 0 4px; }
.wl-color-save-field { align-self: end; }
.wl-color-save-field .btn { width: 100%; }
.wl-color-save-field .btn:disabled { opacity: .55; cursor: not-allowed; }
.wl-dirty-state { align-self: center; color: var(--amber); font-size: 12px; font-weight: 700; }
.wl-dirty-state.hidden { display: none; }
.wl-save-dirty { box-shadow: 0 0 0 2px rgba(242, 183, 5, .25); }
.wl-lock-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: var(--amber); font-size: 12px; }
.wl-history-size { white-space: nowrap; }
.wl-identity-panel .split-grid { align-items: start; }
.wl-identity-panel .split-grid > .field { align-self: start; }
.studio-branding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.tenant-domain-panel { width: min(1180px, 100%); max-width: none; }
.tenant-domain-grid { align-items: start; }
.tenant-domain-instructions { display: grid; gap: 9px; padding: 16px; border: 1px solid rgba(88,185,255,.18); border-radius: 10px; background: rgba(88,185,255,.05); }
.tenant-domain-instructions p { margin: 0; color: var(--muted); line-height: 1.5; }
.tenant-dns-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; }
.tenant-dns-row span { color: var(--muted); font-size: 12px; font-weight: 700; }
.tenant-dns-row code { min-width: 0; overflow-wrap: anywhere; padding: 9px 11px; border: 1px solid rgba(135,164,198,.18); border-radius: 7px; color: var(--text); background: var(--bg); font-size: 12px; }
.tenant-domain-actions { margin: var(--space-5) 26px 0; }
.tenant-domain-message { margin: var(--space-4) 26px 24px; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.tenant-domain-message.is-success { color: var(--green); }
.tenant-domain-message.is-error { color: var(--red); }
.studio-branding-card { margin: 0; }
.studio-branding-preview { min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 18px; border: 1px solid rgba(135,164,198,.16); border-radius: 10px; background: var(--bg); }
.studio-branding-preview img { display: block; width: 100%; max-width: 100%; height: 170px; object-fit: contain; }
.studio-branding-preview .muted-copy { text-align: center; }
.studio-branding-simulation { margin-top: 16px; padding: 14px; border: 1px solid rgba(135,164,198,.14); border-radius: 10px; background: #0a111e; }
.studio-branding-simulation > strong { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.studio-login-simulation { display: grid; gap: 9px; place-items: center; min-height: 145px; padding: 16px; border: 1px solid rgba(88,185,255,.18); border-radius: 8px; background: var(--surface); }
.studio-login-simulation img { width: min(88%, 280px); height: 64px; object-fit: contain; }
.studio-login-simulation span { display: block; width: min(84%, 220px); height: 10px; border: 1px solid rgba(135,164,198,.16); border-radius: 4px; background: #090f1b; }
.studio-sidebar-simulation { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 14px; border: 1px solid rgba(88,185,255,.18); border-radius: 8px; background: #0a111e; }
.studio-sidebar-simulation img { width: min(78%, 230px); height: 58px; max-height: 58px; object-fit: contain; }
.studio-login-real-preview { min-height: 260px; display: grid; place-items: center; margin-top: var(--space-5); padding: var(--space-6); border: 1px solid rgba(88,185,255,.18); border-radius: 10px; background-color: #0a111e; background-position: center; background-repeat: no-repeat; background-size: cover; }
.studio-login-real-card { display: grid; gap: 10px; width: min(300px, 92%); padding: 24px; border: 1px solid rgba(135,164,198,.22); border-radius: 10px; background: rgba(12, 20, 34, .88); box-shadow: 0 18px 44px rgba(0,0,0,.24); text-align: center; }
.studio-login-real-card img { width: 100%; height: 46px; object-fit: contain; }
.studio-login-real-card > span { display: block; height: 11px; border: 1px solid rgba(135,164,198,.18); border-radius: 4px; background: #090f1b; }
.studio-login-real-card > b { display: block; padding: 9px; border-radius: 6px; color: #06120b; background: var(--green); }
.studio-background-fields { display: none; }
.studio-background-fields.is-visible { display: block; }
.studio-background-fields[hidden] { display: none !important; }
.studio-background-upload { width: fit-content; }
.studio-branding-actions { justify-content: flex-end; gap: var(--space-2) var(--space-3); margin-top: var(--space-5); padding: var(--space-4) 0 var(--space-2); border-top: 1px solid rgba(135,164,198,.14); }
.studio-branding-actions .btn { min-width: 132px; }
.studio-branding-state { min-height: 20px; margin-top: 10px; }
.studio-background-state { min-height: 20px; margin-top: var(--space-4); line-height: 1.45; }
.studio-background-state.is-dirty { color: var(--brand-primary); }
.studio-branding-card > .panel-header { margin-bottom: 0; }
.studio-branding-card > .studio-branding-preview,
.studio-branding-card > .studio-branding-state,
.studio-branding-card > .studio-branding-simulation,
.studio-branding-card > .studio-branding-actions,
.studio-background-card > .field,
.studio-background-card > .studio-background-fields,
.studio-background-card > .studio-login-real-preview,
.studio-background-card > .studio-background-state,
.studio-background-card > .studio-branding-actions { margin-left: var(--space-6); margin-right: var(--space-6); }
.studio-branding-card > .studio-branding-preview { margin-top: var(--space-5); }
.studio-branding-card > .studio-branding-simulation { margin-top: var(--space-5); }
.studio-branding-card > .studio-branding-state { margin-top: var(--space-3); line-height: 1.45; }
.studio-background-card > .field,
.studio-background-card > .studio-background-fields > .field { margin-top: var(--space-5); margin-bottom: var(--space-5); }
.studio-background-card > .studio-background-fields { margin-top: 0; margin-bottom: 0; }
.studio-background-card .split-grid { column-gap: var(--space-6); }
.studio-background-card .muted-copy { display: block; margin-top: var(--space-1); line-height: 1.45; }
.studio-background-card input[type="range"] { width: 100%; margin-inline: 0; }
.studio-background-card > .studio-login-real-preview { margin-top: var(--space-6); }
.studio-background-card > .studio-background-state { margin-top: var(--space-4); }
.studio-background-card > .studio-branding-actions { margin-top: var(--space-5); }
.studio-branding-processing { opacity: .7; }
.wl-build-card { margin-top: 22px; }
.wl-build-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding: 18px; border-bottom: 1px solid var(--line); }
.wl-build-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.wl-build-summary span { color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-build-summary strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: 14px; }
.wl-build-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.wl-build-footer .actions { justify-content: flex-end; }
.wl-build-progress { display: grid; gap: 8px; padding: 16px 18px 0; }
.wl-build-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; font-weight: 700; }
.wl-build-progress-meta strong { color: var(--brand-primary); font-size: 15px; }
.wl-build-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--brand-primary) 16%, var(--panel)); }
.wl-build-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--brand-primary); box-shadow: 0 0 12px color-mix(in srgb, var(--brand-primary) 60%, transparent); transition: width .45s ease; }
.wl-build-hint { color: var(--amber); font-size: 12px; font-weight: 700; }
.wl-build-hint[hidden] { display: none; }
.wl-build-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; min-width: 220px; }
.wl-history-progress { display: block; margin-top: 6px; color: var(--brand-primary); font-size: 11px; font-weight: 700; }
.wl-build-card .table-wrap th:last-child,
.wl-build-card .table-wrap td:last-child,
.wl-build-history-panel .table-wrap th:last-child,
.wl-build-history-panel .table-wrap td:last-child { text-align: center; }
.wl-build-card .table-wrap td:last-child,
.wl-build-history-panel .table-wrap td:last-child { white-space: nowrap; }
.btn-icon-danger { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-width: 32px; height: 32px; padding: 7px; color: var(--red); border: 1px solid rgba(227,27,35,.35); border-radius: 8px; background: transparent; }
.btn-icon-danger:hover { background: rgba(227,27,35,.12); }
.wl-generated-grid > div > h4 { margin: 0 0 9px; text-align: center; }
.wl-asset-preview small { text-align: center; }
@media (max-width: 1100px) { .wl-generated-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .studio-branding-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .wl-generated-grid { grid-template-columns: 1fr; } .wl-build-summary { grid-template-columns: 1fr; } .wl-build-footer { align-items: flex-start; flex-direction: column; } .wl-build-footer .actions { width: 100%; } .wl-build-footer .actions .btn { flex: 1; } .wl-logo-card .wl-asset-preview { min-height: 130px; } .wl-logo-actions { justify-content: stretch; gap: 10px; } .wl-logo-actions .btn { flex: 1 1 150px; min-width: 0; } .studio-branding-actions { justify-content: stretch; } .studio-branding-actions .btn { flex: 1 1 150px; min-width: 0; } .studio-branding-card > .studio-branding-preview, .studio-branding-card > .studio-branding-state, .studio-branding-card > .studio-branding-simulation, .studio-branding-card > .studio-branding-actions, .studio-background-card > .field, .studio-background-card > .studio-background-fields, .studio-background-card > .studio-login-real-preview, .studio-background-card > .studio-background-state, .studio-background-card > .studio-branding-actions { margin-left: var(--space-4); margin-right: var(--space-4); } .brand-logo-login { height: 140px; max-height: 140px; } .brand-logo-sidebar { height: 78px; max-height: 78px; } .studio-login-brand { min-height: 140px; margin-bottom: 22px; } .studio-sidebar-brand { min-height: 78px; } }
@media (max-width: 1050px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
  .terminal-table-wrap { overflow-x: visible; }
  .terminal-table { display: block; min-width: 0; }
  .terminal-table thead { display: none; }
  .terminal-table tbody { display: grid; gap: 12px; padding: 12px 16px 16px; }
  .terminal-table tr { display: block; border: 1px solid var(--line); border-radius: 12px; background: rgba(135,164,198,.035); }
  .terminal-table tr:hover { background: rgba(88,185,255,.06); }
  .terminal-table td { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(135,164,198,.12); }
  .terminal-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .terminal-table td:last-child { border-bottom: 0; }
  .terminal-table .terminal-preview { width: 100%; }
  .terminal-table .terminal-preview-screen { width: min(118px, 100%); }
  .terminal-table .terminal-actions.table-actions { min-width: 0; justify-content: center; }
  .terminal-table .terminal-ip { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sidebar-footer { display: none; }
  .nav-btn { justify-content: center; padding: 9px 5px; font-size: 11px; }
  .nav-btn .icon { display: none; }
  .topbar { padding: 14px 18px; }
  .content { padding: 22px 18px 40px; }
  .user-label { display: none; }
  .split-grid, .sim-grid { grid-template-columns: 1fr; }
  .view-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } .login-card { padding: 25px; } .simulator-shell { padding: 16px; } .sim-header { flex-direction: column; } }

:root[data-theme="light"] .sidebar { background: #eef2f6; }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.92); }
:root[data-theme="light"] input, :root[data-theme="light"] select, :root[data-theme="light"] textarea { color: var(--text); background: #ffffff; }
:root[data-theme="light"] .login-screen { background: radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 33%), var(--bg); }
:root[data-theme="light"] .login-screen::before { opacity: .48; }
:root[data-theme="light"] .login-card { border-color: rgba(28,55,83,.2); background: rgba(255,255,255,.78); box-shadow: 0 24px 70px rgba(28,55,83,.16), inset 0 1px 0 rgba(255,255,255,.72); }
:root[data-theme="light"] .login-card .field label { color: var(--muted); }
:root[data-theme="light"] .login-card input { border-color: rgba(28,55,83,.18); background: rgba(255,255,255,.64); }
:root[data-theme="light"] .login-card input:focus { background: #ffffff; }
:root[data-theme="light"] th, :root[data-theme="light"] td { border-bottom-color: rgba(28,55,83,.1); }
:root[data-theme="light"] tbody tr:hover { background: rgba(9,109,168,.045); }
:root[data-theme="light"] .modal-backdrop { background: rgba(17,30,44,.42); }
:root[data-theme="light"] .toast { background: #e7f6ed; box-shadow: 0 12px 35px rgba(28,55,83,.18); }
:root[data-theme="light"] .toast.error { background: #fff0f1; }
:root[data-theme="light"] .sim-status { background: #ffffff; }
:root[data-theme="light"] .dashboard-chart-card { background: linear-gradient(145deg, #ffffff, #f4f8fc); }
:root[data-theme="light"] .dashboard-map-card { background: #ffffff; }
:root[data-theme="light"] .studio-branding-simulation,
:root[data-theme="light"] .studio-sidebar-simulation,
:root[data-theme="light"] .studio-branding-preview,
:root[data-theme="light"] .studio-login-real-preview { background: #e7edf3; border-color: rgba(28,55,83,.18); }
:root[data-theme="light"] .studio-login-simulation { background: #e7edf3; border-color: rgba(28,55,83,.16); }
:root[data-theme="light"] .studio-login-real-card { border-color: rgba(28,55,83,.2); background: rgba(231,237,243,.94); box-shadow: 0 18px 44px rgba(28,55,83,.16), inset 0 1px 0 rgba(255,255,255,.65); }
:root[data-theme="light"] .studio-login-real-card > span,
:root[data-theme="light"] .studio-login-simulation span { border-color: rgba(28,55,83,.16); background: #f8fafc; }
:root[data-theme="light"] .studio-login-real-card > b { color: #ffffff; }
:root[data-theme="light"] .login-card { background: rgba(231,237,243,.94); }
:root[data-theme="light"] .login-social-divider::before, :root[data-theme="light"] .login-social-divider::after { background: rgba(28,55,83,.18); }
:root[data-theme="light"] .studio-branding-actions .btn,
:root[data-theme="light"] .wl-logo-actions .btn { box-shadow: 0 2px 6px rgba(28,55,83,.1); }
:root[data-theme="light"] .studio-branding-actions .btn-primary,
:root[data-theme="light"] .wl-logo-actions .btn-primary { color: #ffffff; box-shadow: 0 4px 10px rgba(8,122,67,.2); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; margin-top: 18px; }
.dashboard-stack { display: grid; gap: 18px; margin-top: 18px; }
.dashboard-chart-card, .dashboard-map-card { min-width: 0; }
.dashboard-chart-card { overflow: hidden; background: linear-gradient(145deg, rgba(14,21,36,.98), rgba(9,16,28,.9)); }
.dashboard-map-card { overflow: hidden; padding: 0; border-color: rgba(135,164,198,.22); background: #0a111e; box-shadow: 0 18px 44px rgba(0,0,0,.18); }
.dashboard-map-card > .panel-header { background: linear-gradient(120deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dashboard-map-heading { display: grid; gap: 6px; }
.dashboard-map-heading h3 { display: flex; align-items: center; gap: 9px; }
.dashboard-map-heading-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 16%, transparent), 0 0 18px color-mix(in srgb, var(--brand-primary) 55%, transparent); }
.dashboard-map-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; color: rgba(194,211,230,.72); }
.dashboard-map-meta span { position: relative; }
.dashboard-map-meta span + span::before { position: absolute; top: 50%; left: -10px; width: 3px; height: 3px; content: ''; border-radius: 50%; background: rgba(194,211,230,.45); transform: translateY(-50%); }
.dashboard-chart-card canvas { display: block; width: 100% !important; height: 340px !important; min-height: 340px; padding: 12px 18px 20px; }
.terminal-map { position: relative; min-height: 330px; overflow: hidden; border: 1px solid rgba(135,164,198,.16); border-radius: 12px; background: radial-gradient(circle at 45% 35%, rgba(88,185,255,.14), transparent 32%), #0a111e; }
.terminal-map-dashboard { min-height: 680px; border: 0; border-radius: 0; background: #dcecf1; box-shadow: none; }
.terminal-map-dashboard .maplibregl-canvas-container, .terminal-map-dashboard .maplibregl-canvas { width: 100%; height: 100%; }
.terminal-map-dashboard .maplibregl-canvas-container { cursor: grab; }
.terminal-map-dashboard .maplibregl-canvas-container:active { cursor: grabbing; }
.terminal-map .map-loading, .terminal-map .map-empty, .map-fallback { display: grid; min-height: 330px; place-items: center; padding: 20px; color: var(--muted); text-align: center; }
.terminal-map-dashboard .map-loading { position: absolute; inset: 0; z-index: 2; min-height: 0; color: #456275; background: linear-gradient(135deg, #dcecf1, #f4faf9); transition: opacity .2s ease; }
.map-empty-overlay { position: absolute; z-index: 3; right: 22px; bottom: 22px; display: grid; max-width: min(360px, calc(100% - 44px)); gap: 5px; padding: 14px 17px; border: 1px solid rgba(255,255,255,.34); border-radius: 14px; background: rgba(8,24,38,.62); -webkit-backdrop-filter: blur(14px) saturate(125%); backdrop-filter: blur(14px) saturate(125%); box-shadow: 0 12px 32px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.12); color: #fff; pointer-events: none; }
.map-empty-overlay strong { font-size: 13px; }
.map-empty-overlay span { color: #c8d9e7; font-size: 12px; line-height: 1.4; }
.terminal-map-dashboard .maplibregl-ctrl-group { overflow: hidden; border: 0; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.terminal-map-dashboard .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.terminal-map-dashboard .maplibregl-ctrl-attrib { border-radius: 8px 0 0; }
.map-fallback { min-height: 560px; gap: 8px; align-content: center; background: linear-gradient(135deg, #dcecf1, #f4faf9); color: #456275; }
.map-fallback strong { color: #183c52; font-size: 18px; }
.map-fallback span { max-width: 420px; line-height: 1.5; }
.map-pin-list { display: grid; gap: 8px; max-height: 330px; overflow: auto; padding: 16px; }
.map-pin-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(135,164,198,.14); border-radius: 9px; background: rgba(17,30,48,.86); }
.map-pin-row > div { display: grid; min-width: 0; flex: 1; gap: 3px; }
.map-pin-row strong, .map-pin-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-pin-row small { color: var(--muted); }
.map-pin-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 99px; background: var(--brand-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.playlist-search-row { display: flex; margin: 0 0 22px; }
.playlist-search-field { display: grid; gap: 8px; width: min(400px, 100%); }
.playlist-search-field > span { color: var(--text); font-size: 13px; font-weight: 700; }
.playlist-search-field input { min-height: 44px; }
.playlist-list-panel { overflow: hidden; }
.playlist-card-list { display: grid; gap: 16px; padding: 24px; }
.playlist-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 116px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 62%, var(--surface)); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.playlist-card:hover { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); background: color-mix(in srgb, var(--blue) 5%, var(--surface-2)); transform: translateY(-1px); }
.playlist-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.playlist-card-content { display: flex; align-items: center; gap: 22px; min-width: 0; flex: 1; }
.playlist-card-preview { position: relative; width: 270px; height: 82px; flex: 0 0 270px; overflow: hidden; border: 1px solid rgba(88,185,255,.22); border-radius: 10px; background: #091322; }
.playlist-card-carousel-track { position: relative; width: 100%; height: 100%; }
.playlist-carousel-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; opacity: 0; transform: scale(1.02); transition: opacity .35s ease, transform .35s ease; }
.playlist-carousel-slide.is-active { opacity: 1; transform: scale(1); }
.playlist-carousel-slide img, .playlist-carousel-slide video, .playlist-carousel-slide .media-thumb-video-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.playlist-card-preview-empty { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.playlist-card-preview-empty .icon { width: 18px; height: 18px; color: var(--blue); }
.playlist-carousel-counter { position: absolute; right: 8px; bottom: 7px; padding: 3px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #f4f8ff; background: rgba(5,10,18,.72); font-size: 10px; font-weight: 750; line-height: 1; }
.playlist-card-info { display: grid; min-width: 0; gap: 6px; }
.playlist-card-info h3 { margin: 0; overflow: hidden; color: var(--text); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.playlist-card-info p { margin: 0; color: var(--muted); font-size: 13px; }
.playlist-card-owner { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.playlist-card-actions { flex: 0 0 auto; flex-wrap: nowrap; gap: 8px; margin-left: auto; }
.playlist-card-actions .icon-btn { width: 40px; min-width: 40px; min-height: 40px; padding: 9px; }
.playlist-search-empty { padding-top: 20px; }
.playlist-editor { padding: var(--space-6); overflow: visible; }
.playlist-editor { min-height: calc(100dvh - 200px); }
.view-header:has(+ .playlist-editor) { align-items: flex-start; }
.view-header:has(+ .playlist-editor) .detail-title { min-width: 0; flex: 1 1 auto; }
.view-header:has(+ .playlist-editor) .playlist-editor-actions { flex: 0 0 auto; margin-left: auto; }
.playlist-editor-view-header { align-items: flex-start; }
.playlist-editor-view-header .detail-title { min-width: 0; flex: 1 1 auto; }
.playlist-editor-view-header .playlist-editor-actions { flex: 0 0 auto; margin-left: auto; }
.playlist-layout { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.48fr); gap: var(--space-6); align-items: start; min-height: calc(100dvh - 280px); }
.playlist-library-column, .playlist-canvas-column { min-width: 0; min-height: 0; }
.playlist-canvas-column { position: sticky; top: 20px; display: flex; flex-direction: column; align-self: start; max-height: none; overflow: visible; }
.playlist-library-search { display: grid; gap: 8px; margin-bottom: 14px; }
.playlist-library-search > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.playlist-library-search input { min-height: 40px; }
.playlist-library-search-empty { padding: 20px 12px; text-align: center; }
.playlist-library-column > .playlist-section-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(150px, 1.1fr); align-items: start; gap: 12px; }
.playlist-library-column > .playlist-section-heading h3 { font-size: 18px; }
.playlist-library-column > .playlist-section-heading small { font-size: 11px; }
.playlist-library-column > .playlist-section-heading .playlist-library-search { margin: 0; gap: var(--space-3); }
.playlist-library-column > .playlist-section-heading .playlist-library-search > span { font-size: 12px; }
.playlist-library-column > .playlist-section-heading .playlist-library-search input { min-height: 38px; }
.playlist-library-filters { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: end; gap: 8px; margin: -2px 0 10px; }
.playlist-library-type-filters { display: flex; gap: 5px; min-width: 0; }
.playlist-library-type-filter { min-height: 34px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; cursor: pointer; }
.playlist-library-type-filter:hover, .playlist-library-type-filter.active, .playlist-library-type-filter:focus-visible { border-color: color-mix(in srgb, var(--brand-primary) 62%, var(--border)); color: var(--text); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface)); }
.playlist-library-sort { display: grid; gap: 4px; min-width: 0; }
.playlist-library-sort span { color: var(--muted); font-size: 11px; font-weight: 700; }
.playlist-library-sort select { min-height: 34px; padding-block: 5px; font-size: 11px; }
.playlist-library-column [data-playlist-library-asset][hidden] { display: none; }
.playlist-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.playlist-section-heading h3 { margin: 0; line-height: 1.25; }
.playlist-section-heading small { color: var(--muted); }
.playlist-items-heading { align-items: center; }
.playlist-mode-toggle { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.playlist-mode-toggle .icon { width: 15px; height: 15px; }
.playlist-items-heading-actions { flex-wrap: nowrap; gap: 8px; }
.playlist-items-heading-actions .playlist-mode-toggle { min-width: 112px; }
.playlist-remove-selected { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; font-size: 12px; }
.playlist-remove-selected .icon { width: 15px; height: 15px; }
.playlist-upload-button { display: none !important; }
.playlist-name-field { margin-top: 0; }
.playlist-name-search-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .85fr); align-items: end; gap: 12px; }
.playlist-name-search-row > .field, .playlist-item-search-field { margin: 0; }
.playlist-item-search-field { display: grid; gap: var(--space-3); min-width: 0; }
.playlist-item-search-field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.playlist-item-search-field input { min-height: 40px; }
.playlist-library-column > .playlist-section-heading .playlist-library-search input,
.playlist-name-search-row .playlist-name-field input,
.playlist-name-search-row .playlist-item-search-field input { height: 48px; min-height: 48px; }
.playlist-item-search-empty { margin-top: 12px; padding: 18px 12px; text-align: center; }
.playlist-items > [data-playlist-item][hidden], .playlist-items > [data-playlist-folder-item][hidden], .playlist-items > [data-playlist-module-resource][hidden] { display: none; }
.playlist-items-heading { margin-top: var(--space-6); }
.playlist-items.playlist-dropzone { display: grid; position: relative; align-content: start; place-items: stretch; flex: 0 0 auto; gap: 8px; min-height: 176px; max-height: none; margin-top: 0; padding: var(--space-3); overflow-x: hidden; overflow-y: visible; overscroll-behavior: auto; border: 1px dashed rgba(88,185,255,.55); border-radius: 12px; background: rgba(88,185,255,.06); text-align: left; cursor: default; }
.playlist-items.playlist-dropzone .playlist-items-empty { min-height: 126px; }
.playlist-drop-indicator { position: absolute; z-index: 4; right: 8px; left: 8px; height: 3px; margin: 0; border-radius: 999px; background: #58b9ff; box-shadow: 0 0 0 1px rgba(88,185,255,.3), 0 0 14px rgba(88,185,255,.8); pointer-events: none; }
.playlist-library-column .media-library { flex: 0 0 auto; height: auto; max-height: none; min-height: 0; overflow: visible; overscroll-behavior: auto; }
.playlist-context-source { display: grid; gap: 18px; min-height: 360px; padding: 2px; }
.playlist-editor[data-playlist-library-source="news"] .playlist-layout { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .85fr); }
.playlist-editor[data-playlist-library-source]:not([data-playlist-library-source="files"]) .playlist-layout { grid-template-columns: minmax(360px, 1fr) minmax(430px, 1.15fr); }
.playlist-editor[data-playlist-library-source="drive"] .playlist-layout { grid-template-columns: minmax(360px, .82fr) minmax(0, 1.48fr); }
.playlist-editor[data-playlist-library-source="news"] .playlist-library-column { min-width: 0; }
.playlist-editor[data-playlist-library-source="news"] .playlist-library-column { animation: news-library-enter .42s cubic-bezier(.2,.8,.2,1) both; }
.playlist-editor[data-playlist-library-source="news"] .playlist-canvas-column { min-width: 0; animation: news-playlist-enter .42s cubic-bezier(.2,.8,.2,1) .04s both; }
.playlist-editor[data-playlist-library-source="news"] .playlist-context-source { position: relative; isolation: isolate; }
.playlist-editor[data-playlist-library-source="news"] .playlist-context-source::before { position: absolute; z-index: 0; inset: -14px -20px; background: linear-gradient(105deg, transparent 34%, color-mix(in srgb, var(--brand-primary) 16%, transparent) 48%, color-mix(in srgb, var(--blue) 14%, transparent) 52%, transparent 66%); content: ''; pointer-events: none; transform: translateX(-70%); animation: news-tech-scan .9s cubic-bezier(.2,.8,.2,1) .08s both; }
.playlist-editor[data-playlist-library-source="news"] .playlist-context-source > * { position: relative; z-index: 1; }
.playlist-source-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.playlist-source-heading h3 { margin: 0; line-height: 1.25; }
.playlist-source-heading small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.playlist-source-status { flex: 0 0 auto; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--blue) 36%, var(--line)); border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); font-size: 11px; font-weight: 700; }
.playlist-source-empty { display: grid; place-items: center; gap: 9px; min-height: 260px; padding: 24px 18px; border: 1px dashed color-mix(in srgb, var(--blue) 48%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--blue) 5%, var(--surface)); color: var(--muted); text-align: center; }
.playlist-source-empty strong { color: var(--text); font-size: 14px; }
.playlist-source-empty span { max-width: 250px; line-height: 1.5; }
.playlist-source-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid color-mix(in srgb, var(--blue) 46%, var(--line)); border-radius: 12px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); }
.playlist-source-empty-icon .icon { width: 20px; height: 20px; }
.media-library-row { cursor: grab; }
.media-library-row.is-dragging { opacity: .55; border-color: var(--brand-primary); }
.media-preview-trigger { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.media-preview-trigger:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
.media-preview-dialog { display: grid; place-items: center; max-width: 100%; overflow: auto; }
.media-preview-image, .media-preview-video { display: block; width: 100%; max-height: min(64vh, calc(100dvh - 210px)); object-fit: contain; border-radius: 8px; background: #0a111e; }
.media-preview-zoomable { transform-origin: center center; }
.media-preview-video { height: auto; }
@media (max-width: 900px) { .playlist-layout { grid-template-columns: 1fr; } .playlist-library-column { order: 0; } .playlist-canvas-column { position: static; order: 1; max-height: none; overflow: visible; } .playlist-library-column .media-library { height: auto; max-height: none; min-height: 0; } .playlist-items.playlist-dropzone { min-height: 260px; max-height: none; overflow-y: visible; } .playlist-items.playlist-dropzone .playlist-items-empty { min-height: 210px; } }
@media (max-width: 650px) { .playlist-section-heading { align-items: stretch; flex-direction: column; } .playlist-upload-button { width: 100%; } .view-actions, .content-section-tabs { width: 100%; } .view-actions > * { flex: 1 1 auto; } .media-library-grid { grid-template-columns: 1fr; padding-inline: var(--space-4); } .media-folder-bar, .media-library-toolbar { padding-inline: var(--space-4); } .media-library-card-actions { grid-template-columns: 1fr; } .media-library-toolbar { align-items: stretch; flex-direction: column; } .media-library-panel-tools { flex-wrap: wrap; } .media-library-panel-tools .media-library-organization { flex: 1 1 180px; min-width: 0; } .media-view-modes { justify-content: space-between; } .media-view-mode { flex: 1; } .media-library-grid.media-view-list .media-library-card { grid-template-columns: 120px minmax(0, 1fr); } .media-library-grid.media-view-list .media-library-card-preview { height: 88px; } .media-library-grid.media-view-list .media-library-card-body { display: grid; grid-template-columns: 1fr; } .media-library-grid.media-view-list .media-library-card-actions { grid-column: 1; grid-row: auto; } .view-header > .back-link, .view-header .top-right-back-button, .organization-detail-header .organization-back-link { align-self: flex-end; } }
@media (max-width: 650px) { .playlist-library-column > .playlist-section-heading { grid-template-columns: 1fr; } .playlist-library-filters { grid-template-columns: 1fr; } }

.location-picker-map { width: 100%; min-height: 260px; margin: 0 0 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #0d1721; }
.location-picker-map .maplibregl-canvas { outline: none; }
.map-picker-fallback { min-height: 260px; display: grid; place-items: center; padding: 24px; color: var(--muted); text-align: center; }
.modal-current-value { display: block; margin-top: 6px; color: var(--text); }
.playlist-dropzone { display: grid; gap: 7px; min-height: 150px; place-items: center; margin-top: 14px; padding: 26px; border: 1px dashed rgba(88,185,255,.55); border-radius: 12px; background: rgba(88,185,255,.06); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.playlist-dropzone strong { color: var(--text); font-size: 13px; letter-spacing: .03em; }
.playlist-dropzone.is-dragging { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.media-library { display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.media-library-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px; border: 1px solid rgba(135,164,198,.14); border-radius: 9px; background: rgba(17,30,48,.66); }
.media-library-row > span:nth-child(2) { display: grid; min-width: 0; flex: 1; gap: 3px; }
.media-library-row-copy { display: grid; min-width: 0; flex: 1; gap: 3px; }
.media-library-row-actions { display: inline-flex; align-items: center; flex: 0 0 auto; }
.media-library-row-delete { width: 30px; min-width: 30px; min-height: 30px; padding: 6px; }
.media-library-row-delete .icon { width: 15px; height: 15px; }
.media-library-row strong, .media-library-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-library-row small { color: var(--muted); }
:root[data-theme="light"] .google-drive-panel .panel-header,
:root[data-theme="light"] .google-drive-source,
:root[data-theme="light"] .google-drive-file { background: var(--surface-2); }
.google-drive-page { display: grid; gap: var(--space-5); }
.google-drive-panel { overflow: hidden; }
.google-drive-server-badge { color: var(--green); border-color: color-mix(in srgb, var(--green) 42%, var(--line)); background: color-mix(in srgb, var(--green) 9%, transparent); }
.google-drive-search-field { display: grid; gap: 8px; margin: 0 var(--space-4) var(--space-1); }
.google-drive-search-field > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.google-drive-search-field input { min-height: 40px; }
.google-drive-source-list { display: grid; gap: 12px; padding: var(--space-4); }
.google-drive-source-list > [data-google-drive-source][hidden] { display: none; }
.google-drive-search-empty { margin: 0; text-align: center; }
.google-drive-source { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 78%, transparent); }
.google-drive-source > summary { display: flex; align-items: center; gap: 11px; min-height: 62px; padding: 10px 12px; cursor: grab; list-style: none; }
.google-drive-source > summary:active { cursor: grabbing; }
.google-drive-source.is-dragging { opacity: .58; }
.google-drive-source > summary::-webkit-details-marker { display: none; }
.google-drive-source > summary:hover { background: color-mix(in srgb, var(--brand-primary) 7%, transparent); }
.google-drive-source-summary-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--brand-primary) 42%, var(--line)); border-radius: 9px; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 9%, transparent); }
.google-drive-source-summary-icon .icon { width: 17px; height: 17px; }
.google-drive-source-summary-main { display: grid; min-width: 0; flex: 1; gap: 4px; }
.google-drive-source-summary-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.google-drive-source-summary-main small { color: var(--muted); }
.google-drive-source-summary-actions { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 5px; }
.google-drive-source-summary-actions .icon-btn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 7px; }
.google-drive-source-summary-actions .icon { width: 15px; height: 15px; }
.google-drive-source-summary-actions .google-drive-order-icon { color: var(--amber); }
.google-drive-source-chevron { width: 20px; flex: 0 0 auto; color: var(--muted); font-size: 20px; line-height: 1; text-align: center; transition: transform .18s ease; }
.google-drive-source[open] .google-drive-source-chevron { transform: rotate(180deg); }
.google-drive-source-body { padding: 0 12px 14px; border-top: 1px solid var(--line); }
.google-drive-source-playback { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand-primary) 6%, transparent); }
.google-drive-source-playback > div { display: grid; min-width: 0; gap: 3px; }
.google-drive-source-playback strong { font-size: 12px; }
.google-drive-source-playback small { color: var(--muted); font-size: 11px; }
.google-drive-source-playback select { min-width: 190px; padding: 8px 30px 8px 10px; border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--line)); background-color: var(--surface); color: var(--text); font-size: 12px; font-weight: 700; }
.google-drive-file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.google-drive-file { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--line) 86%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--surface) 82%, transparent); cursor: default; transition: border-color .18s ease, opacity .18s ease, transform .18s ease; }
.google-drive-file:hover { border-color: color-mix(in srgb, var(--brand-primary) 54%, var(--line)); transform: translateY(-1px); }
.google-drive-file.is-dragging { opacity: .52; border-color: var(--brand-primary); }
.google-drive-file-preview { width: 88px; height: 66px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0a111e; }
.google-drive-file-preview .media-preview-trigger, .google-drive-file-preview .media-thumb { display: grid; width: 100%; height: 100%; }
.google-drive-file-preview img, .google-drive-file-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-thumb img { display: block; }
.media-thumb-fallback { display: grid; width: 100%; height: 100%; place-items: center; padding: 5px; box-sizing: border-box; color: var(--muted); font-size: 9px; line-height: 1.2; text-align: center; }
.google-drive-file-preview .media-thumb-fallback { min-height: 52px; }
.google-drive-source-summary-actions [data-action="google-drive-copy-link"] { color: var(--blue); }
.google-drive-copy-action { display: inline-flex; align-items: center; gap: 5px; }
.google-drive-source-summary-actions [data-action="google-drive-copy-link"].is-copied { color: var(--brand-primary); }
.google-drive-copy-feedback { display: inline-block; max-width: 0; overflow: hidden; color: var(--brand-primary); font-size: 11px; font-weight: 800; line-height: 1; opacity: 0; transform: translateX(-3px); transition: max-width .18s ease, opacity .18s ease, transform .18s ease; white-space: nowrap; }
.google-drive-copy-feedback.is-visible { max-width: 52px; opacity: 1; transform: translateX(0); }
.google-drive-file-preview .media-thumb-play { width: 22px; height: 22px; }
.google-drive-file-copy { display: grid; min-width: 0; gap: 5px; }
.google-drive-file-copy strong { display: -webkit-box; overflow: hidden; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; line-height: 1.3; }
.google-drive-file-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.google-drive-file-meta { display: grid; gap: 2px; min-width: 0; overflow: visible; }
.google-drive-file-meta span { min-width: 0; overflow-wrap: anywhere; }
.google-drive-file-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 10px; margin-top: 2px; }
.google-drive-file-date { display: grid; gap: 1px; min-width: 0; }
.google-drive-file-date b { color: var(--text); font-size: 12px; font-weight: 700; }
.google-drive-file-date time { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.playlist-editor[data-playlist-library-source="drive"] .playlist-library-column { min-width: 0; animation: news-library-enter .42s cubic-bezier(.2,.8,.2,1) both; }
.playlist-editor[data-playlist-library-source="drive"] .playlist-canvas-column { min-width: 0; animation: news-playlist-enter .42s cubic-bezier(.2,.8,.2,1) .04s both; }
.playlist-editor[data-playlist-library-source="drive"] .playlist-context-source { position: relative; isolation: isolate; }
.playlist-editor[data-playlist-library-source="drive"] .playlist-context-source::before { position: absolute; z-index: 0; inset: -14px -20px; background: linear-gradient(105deg, transparent 34%, color-mix(in srgb, var(--brand-primary) 16%, transparent) 48%, color-mix(in srgb, var(--blue) 14%, transparent) 52%, transparent 66%); content: ''; pointer-events: none; transform: translateX(-70%); animation: news-tech-scan .9s cubic-bezier(.2,.8,.2,1) .08s both; }
.playlist-editor[data-playlist-library-source="drive"] .playlist-context-source > * { position: relative; z-index: 1; }
.google-drive-playlist-source [data-google-drive-context-body] { min-height: 300px; max-height: none; overflow: visible; }
.google-drive-playlist-source .google-drive-source-list { padding: 0; }
.google-drive-playlist-source .google-drive-search-field { margin-inline: 0; }
.google-drive-playlist-source .google-drive-panel { border: 0; background: transparent; }
.google-drive-playlist-source .google-drive-panel > .panel-header { padding: 0 0 12px; border: 0; background: transparent; }
.google-drive-playlist-source .google-drive-source { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
@media (max-width: 700px) { .google-drive-source > summary { align-items: flex-start; } .google-drive-source-summary-actions { gap: 3px; } .google-drive-source-summary-actions .icon-btn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; padding: 6px; } .google-drive-source-chevron { display: none; } .google-drive-source-playback { align-items: stretch; flex-direction: column; } .google-drive-source-playback select { width: 100%; } .google-drive-file-grid { grid-template-columns: 1fr; } }
:root[data-theme="light"] .playlist-library-column .media-library-row { border-color: var(--line); background: var(--surface-2); }
:root[data-theme="light"] .playlist-library-column .media-library-row .btn-ghost { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 48%, var(--line)); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); font-weight: 700; }
:root[data-theme="light"] .playlist-library-column .media-library-row .btn-ghost:hover, :root[data-theme="light"] .playlist-library-column .media-library-row .btn-ghost:focus-visible { color: color-mix(in srgb, var(--blue) 82%, #000); border-color: var(--blue); background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }
.content-section-tabs, .view-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.media-library-panel { overflow: hidden; }
.media-library-panel[data-media-library-dropzone] { transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.media-library-panel[data-media-library-dropzone].is-drag-over { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 4%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 14%, transparent); }
.media-library-panel > .panel-header { padding: 14px var(--space-6); }
.media-library-panel-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-left: auto; }
.media-library-panel-tools .media-view-modes { margin-left: 2px; }
.media-library-panel-tools > .btn { min-height: 34px; padding: 6px 10px; }
.media-new-folder-button { width: 34px; min-width: 34px; height: 34px; padding: 7px; }
.media-clear-files-button { white-space: nowrap; }
.media-new-folder-button .icon { width: 16px; height: 16px; }
.media-folder-bar { display: flex; flex-wrap: nowrap; gap: 7px; max-width: 100%; overflow-x: auto; padding: 8px var(--space-6) 9px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); scrollbar-width: thin; }
.media-folder-bar:empty { display: none; }
.folder-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; }
.folder-chip:hover, .folder-chip.active { border-color: var(--brand-primary); color: var(--text); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface)); }
.media-folder-clear { min-height: 32px; padding: 5px 9px; white-space: nowrap; }
.media-folder-clear .icon { width: 15px; height: 15px; }
.folder-chip small { color: var(--muted); }
.media-folder-entry { display: inline-flex; align-items: center; gap: 3px; min-height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); }
.media-folder-entry:hover, .media-folder-entry.active { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface)); color: var(--text); }
.folder-chip-main { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 7px; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; white-space: nowrap; }
.folder-chip-main:hover, .folder-chip-main:focus-visible { background: color-mix(in srgb, var(--brand-primary) 12%, transparent); color: var(--text); }
.folder-chip-main .icon { width: 16px; height: 16px; }
.folder-chip-main small { color: var(--muted); }
.media-folder-owner { padding-left: 3px; font-size: 11px; }
.media-folder-actions { display: inline-flex; align-items: center; gap: 2px; padding-left: 3px; border-left: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
.folder-action-button { display: inline-flex; align-items: center; justify-content: center; width: 27px; min-width: 27px; height: 27px; padding: 5px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.folder-action-button:hover, .folder-action-button:focus-visible { background: color-mix(in srgb, var(--brand-primary) 15%, transparent); color: var(--text); }
.folder-action-button .icon { width: 14px; height: 14px; }
.folder-delete-button:hover, .folder-delete-button:focus-visible { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.media-library-organization { min-height: 38px; max-width: 220px; }
.media-library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0 var(--space-6) var(--space-6); }
.media-library-card { display: flex; min-width: 0; min-height: 352px; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.media-library-card-preview { display: flex; flex: 0 0 170px; height: 170px; min-height: 170px; padding: 10px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.media-library-card-preview .media-preview-trigger, .media-library-card-preview .media-thumb { width: 100%; height: 100%; min-height: 0; }
.media-library-card-preview .media-thumb img, .media-library-card-preview .media-thumb-video, .media-library-card-preview .media-thumb-video-image { object-fit: contain; }
.media-library-card-body { display: flex; min-height: 182px; flex-direction: column; gap: 6px; padding: 13px; }
.media-library-card-body > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-library-card-body > small { color: var(--muted); }
.media-library-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 32px; margin-top: auto; }
.media-library-card-actions .icon-btn { width: 32px; min-width: 32px; min-height: 32px; padding: 6px; border-radius: 8px; }
.media-library-card-actions .icon-btn { flex: 0 0 32px; }
.media-library-card-actions select { min-width: 0; }
.media-add-button, .media-delete-button { display: inline-flex; align-items: center; justify-content: center; gap: 0; }
.media-add-button .icon, .media-delete-button .icon { width: 15px; height: 15px; }
.media-library-filter-bar { display: flex; align-items: flex-end; justify-content: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px var(--space-6) 12px; }
.media-library-search { display: grid; flex: 1 1 280px; gap: 8px; max-width: 480px; }
.media-library-search > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.media-library-search input { min-height: 40px; }
.media-library-type-filters { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.media-library-type-filter { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; }
.media-library-type-filter:hover, .media-library-type-filter.active { background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface)); color: var(--text); }
.media-library-filter-empty { grid-column: 1 / -1; min-height: 180px; }
.media-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px var(--space-6) var(--space-5); }
.media-view-modes { display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); }
.media-view-mode { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.media-view-mode:hover, .media-view-mode.active { background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface)); color: var(--text); }
@media (max-width: 650px) { .media-library-filter-bar { align-items: stretch; flex-direction: column; padding-inline: var(--space-4); } .media-library-search { max-width: none; } .media-library-type-filters { width: 100%; } .media-library-type-filter { flex: 1; } }

.news-view, .external-content-view { display: grid; gap: 18px; }
.news-template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; padding: var(--space-6); }
.news-template-card { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.news-template-card-preview { padding: 14px; background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface)); }
.news-template-card-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 16px; }
.news-template-card-body h3, .news-template-card-body p { margin: 0; }
.news-template-card-body p { max-width: 360px; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.news-template-preview, .news-composer-preview { position: relative; width: 100%; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 10px; background: #0b1320; color: var(--news-text, #fff); }
.news-template-art { position: absolute; inset: 0; overflow: hidden; padding: 24px 28px 18px 62px; background: linear-gradient(160deg, #29384a 0%, #152133 48%, #070c15 100%); }
.news-template-art::before { position: absolute; inset: 34% 0 0; background: linear-gradient(0deg, #020509 0%, transparent 100%); content: ''; }
.news-template-bar { position: absolute; inset: 0 auto 0 0; width: 9%; background: #70b300; }
.news-template-rail { position: absolute; z-index: 1; inset: 0 auto 0 0; display: flex; align-items: center; width: 9%; padding: 10% 0 5%; background: var(--news-accent, #70b300); }
.news-template-globe { position: relative; width: 58%; aspect-ratio: 1; margin: 0 auto; border: 2px solid #f6fff7; border-radius: 50%; }
.news-template-globe i { position: absolute; inset: 23% -2px; border-top: 1px solid #f6fff7; border-bottom: 1px solid #f6fff7; }
.news-template-globe b { position: absolute; inset: -2px 29%; border-right: 1px solid #f6fff7; border-left: 1px solid #f6fff7; border-radius: 50%; }
.news-template-date { display: grid; gap: 1px; margin-top: auto; color: #f6fff7; font-size: clamp(7px, 1vw, 13px); font-weight: 800; line-height: 1; text-align: center; }
.news-template-date b { font-weight: 800; }
.news-template-qr { position: absolute; left: 11%; bottom: 4%; z-index: 3; display: grid; gap: 2px; width: 11%; max-width: 78px; padding: 2px; background: #fff; }
.news-template-qr em { padding: 2px 1px; background: var(--news-accent, #70b300); color: #07100a; font-size: clamp(4px, .65vw, 8px); font-style: normal; font-weight: 800; text-align: center; }
.news-template-qr i { display: block; aspect-ratio: 1; background: repeating-conic-gradient(#111827 0 25%, #fff 0 50%) 0 0 / 7px 7px; }
.news-template-logo { position: absolute; top: 8%; right: 6%; display: grid; width: clamp(30px, 15%, 78px); height: auto; aspect-ratio: 1; place-items: center; padding: 3px; overflow: hidden; border: 0; border-radius: 50%; color: #fff; background: transparent; font-size: 8px; font-weight: 800; }
.news-template-source { position: absolute; right: 4%; bottom: 27%; max-width: 62%; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.34); color: rgba(255,255,255,.74); font-size: clamp(6px, .78vw, 10px); font-weight: 600; text-align: right; }
.news-template-art strong { position: absolute; right: 4%; bottom: 15%; left: 29%; font-size: clamp(12px, 2vw, 24px); line-height: 1.08; }
.news-template-art small { position: absolute; bottom: 13px; left: 62px; color: rgba(255,255,255,.72); font-size: 9px; }
.news-card-list { display: grid; gap: 12px; padding: var(--space-6); }
.news-card { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); align-items: start; gap: 18px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.news-card[draggable="true"] { cursor: grab; }
.news-card.is-dragging { opacity: .58; border-color: var(--brand-primary); }
.news-card-preview { display: flex; align-items: center; justify-content: center; align-self: start; min-width: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: #0b1320; }
.news-card-preview img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.news-card-preview.news-card-preview-vertical { width: 72px; flex: 0 0 72px; aspect-ratio: 9 / 16; justify-self: center; }
.news-card-preview.news-card-preview-vertical img { object-fit: contain; object-position: center; background: #0b1320; }
.news-card-preview-rendered { position: relative; overflow: hidden; }
.news-card-preview-rendered .news-composer-preview { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; }
.news-card-preview-missing { display: grid; width: 100%; height: 100%; place-items: center; padding: 10px; color: var(--muted); font-size: 11px; text-align: center; }
.news-card-preview-trigger { width: 100%; padding: 0; border: 0; color: inherit; cursor: zoom-in; text-align: left; }
.news-card-preview-trigger:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }
.news-card-main { display: grid; align-content: start; gap: 8px; min-width: 0; align-self: start; }
.news-card-main h3, .news-card-main p { margin: 0; }
.news-card-main h3 { display: -webkit-box; max-height: 2.5em; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-card-main p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.news-card-main p { display: -webkit-box; max-height: 1.4em; overflow: hidden; text-overflow: ellipsis; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.news-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.news-card-meta-row small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-card-actions { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.news-card-actions .icon-btn.active { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); background: color-mix(in srgb, var(--amber) 12%, transparent); }
.playlist-source-heading .btn { flex: 0 0 auto; }
.news-context-actions { display: flex; align-self: flex-end; align-items: flex-end; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
[data-news-playlist-source] .playlist-source-heading { flex-direction: column; align-items: stretch; }
[data-news-playlist-source] .news-context-actions { align-self: stretch; justify-content: flex-start; }
.news-context-actions .news-search-form label { min-width: 220px; }
.news-source-body { display: grid; gap: 12px; }
.news-source-library-hint { color: var(--muted); font-size: 12px; line-height: 1.4; }
.news-context-create { flex: 0 0 auto; }
.news-source-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-source-toolbar strong, .news-source-toolbar small { display: block; }
.news-source-toolbar small { margin-top: 4px; color: var(--muted); }
.news-view-actions { align-items: end; flex-wrap: wrap; }
.news-search-form { display: flex; align-items: end; gap: 8px; }
.news-search-form label { display: grid; gap: 5px; min-width: min(310px, 34vw); }
.news-search-form label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.news-search-form input { min-height: 38px; }
.news-search-form .btn { min-height: 38px; }
.news-playlist-card-list { padding: 0; margin-top: 14px; }
.news-playlist-card-list .news-card { grid-template-columns: 150px minmax(0, 1fr); padding: 10px; }
.news-playlist-card-list .news-card-main { min-width: 0; }
.news-playlist-card-list .news-card-main { gap: 6px; }
.news-playlist-card-list .news-card-main p { margin-top: 3px; }
.news-builder { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); align-items: start; gap: 12px 18px; }
.news-wizard-modal .news-builder { padding-top: 6px; }
.news-builder-fields { display: grid; gap: 8px; min-width: 0; }
.news-auto-content-note { display: grid; gap: 4px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--brand-primary) 34%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface-2)); }
.news-auto-content-note strong { color: var(--text); font-size: 13px; }
.news-auto-content-note span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.news-logo-picker { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 9px; }
.news-logo-actions { display: inline-flex; align-items: center; gap: 6px; }
.news-logo-file-button { position: relative; overflow: hidden; justify-content: center; white-space: nowrap; }
.news-logo-file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.news-logo-clear { min-width: 72px; }
.news-logo-upload-status { min-height: 17px; }
.news-builder-right { display: grid; grid-template-columns: 1fr; align-content: start; gap: 8px; min-width: 0; }
.news-builder-preview { display: grid; align-content: start; gap: 7px; min-width: 0; }
.news-builder-settings { display: grid; gap: 2px; min-width: 0; }
.news-builder-settings .field { margin: 8px 0; }
.news-builder-settings .news-form-row { gap: 10px; }
.news-builder-settings .news-form-row:not(.news-color-row) { grid-template-columns: minmax(116px, 1.35fr) minmax(98px, 1fr) minmax(108px, 1fr) minmax(98px, .95fr) minmax(74px, .68fr) minmax(106px, 1fr); gap: 6px; }
.news-builder-settings .news-form-row > .field { min-width: 0; }
.news-builder-settings .news-form-row > .field > label { font-size: 12px; }
.news-builder-settings .news-form-row > .field > input, .news-builder-settings .news-form-row > .field > select { min-width: 0; min-height: 36px; padding: 8px 9px; }
.news-pixel-size-control { position: relative; display: block; min-width: 0; }
.news-pixel-size-control select, .news-pixel-size-control input { width: 100%; min-width: 0; padding-right: 58px; }
.news-pixel-size-control output { position: absolute; top: 50%; right: 25px; min-width: 0; padding: 0 2px; transform: translateY(-50%); color: var(--muted); background: #090f1b; font-size: 11px; font-weight: 800; line-height: 1; text-align: right; white-space: nowrap; pointer-events: none; }
.news-text-size-control output { right: 26px; left: 9px; color: var(--text); text-align: left; }
.news-text-size-control select { color: transparent; text-shadow: none; }
.news-text-size-control select:focus { color: var(--text); }
.news-text-size-control select:focus + output { opacity: 0; }
.news-text-size-control select option { color: var(--text); background: #090f1b; }
:root[data-theme="light"] .news-pixel-size-control output { background: #ffffff; }
.news-builder-settings .news-duration-field input { padding-inline: 8px; }
.news-builder-settings .news-color-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.news-builder-settings .field small { font-size: 11px; }
.news-preview-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.news-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-form-row:not(.news-color-row) { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.news-color-row { align-items: start; }
.news-color-control { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 9px; background: color-mix(in srgb, var(--surface) 84%, var(--surface-2)); }
.news-color-input { flex: 0 0 42px; width: 42px; height: 32px; padding: 3px; border: 1px solid color-mix(in srgb, var(--text) 20%, var(--border)); border-radius: 7px; background: var(--surface-2); cursor: pointer; }
.news-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.news-color-input::-webkit-color-swatch { border: 0; border-radius: 4px; }
.news-color-input::-moz-color-swatch { border: 0; border-radius: 4px; }
.news-color-value { color: var(--text); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.news-color-control + small { display: block; margin-top: 6px; }
.news-favorite-field { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.news-favorite-field input { width: 16px; height: 16px; accent-color: var(--brand-primary); }
.news-builder-fields .news-favorite-field { min-height: 38px; margin-top: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 72%, transparent); }
.news-element-tools { position: relative; z-index: 8; }
.news-element-tools > .btn { width: 100%; justify-content: center; }
.news-elements-panel { position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 0; display: grid; gap: 9px; width: min(290px, calc(100vw - 48px)); padding: 12px; border: 1px solid color-mix(in srgb, var(--brand-primary) 55%, var(--border)); border-radius: 10px; background: var(--surface-2); box-shadow: 0 16px 34px rgba(0,0,0,.42); }
.news-elements-panel strong { font-size: 13px; }
.news-element-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.news-element-actions .btn { min-width: 0; padding-inline: 6px; font-size: 12px; }
.news-element-text-label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.news-elements-panel input, .news-elements-panel select { min-width: 0; min-height: 34px; padding: 7px 9px; }
.news-elements-panel > .btn { justify-content: center; }
.news-composer-preview { min-height: 180px; container-type: inline-size; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-family: var(--news-font, Arial, sans-serif); }
.news-composer-preview.compact { min-height: 0; }
.news-preview-background, .news-preview-shade, .news-preview-accent { position: absolute; inset: 0; }
.news-preview-background { background: linear-gradient(145deg, #2d4055 0%, #132235 55%, #07101c 100%); }
.news-preview-background img { width: 100%; height: 100%; object-fit: cover; opacity: .94; filter: saturate(1.08) contrast(1.04); }
.news-preview-shade { background: linear-gradient(0deg, rgba(2,5,9,.78), rgba(2,5,9,.12) 68%, rgba(2,5,9,.04)); }
.news-alignment-guides { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.news-alignment-guide { position: absolute; display: block; opacity: 0; background: color-mix(in srgb, var(--blue) 88%, white); box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 26%, transparent), 0 0 10px color-mix(in srgb, var(--blue) 42%, transparent); transition: opacity .12s ease; }
.news-alignment-guide.is-visible { opacity: .95; }
.news-alignment-guide-vertical { top: 0; bottom: 0; width: 1px; }
.news-alignment-guide-horizontal { right: 0; left: 0; height: 1px; }
.news-preview-accent { right: auto; width: 7%; background: var(--news-accent); }
.news-preview-rail { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 8%; background: var(--news-accent); pointer-events: none; }
.news-preview-globe { position: absolute; top: 4%; left: 2%; z-index: 3; width: 4.16%; aspect-ratio: 1; margin: 0; border: 2px solid #f6fff7; border-radius: 50%; opacity: .96; cursor: move; touch-action: none; }
.news-preview-globe span { position: absolute; inset: 23% -2px; border-top: 1px solid #f6fff7; border-bottom: 1px solid #f6fff7; }
.news-preview-globe i { position: absolute; inset: -2px 29%; border-right: 1px solid #f6fff7; border-left: 1px solid #f6fff7; border-radius: 50%; }
.news-preview-globe b { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #f6fff7; }
.news-preview-date { position: absolute; left: 0; bottom: 5%; z-index: 3; display: grid; justify-items: center; gap: 1px; width: 6.4%; color: #f6fff7; line-height: 1; white-space: nowrap; cursor: move; touch-action: none; }
.news-preview-date-month { font-size: clamp(7px, calc(1.05vw * var(--news-date-scale, 1)), 14px); font-weight: 800; }
.news-preview-date-day { font-size: clamp(11px, calc(1.7vw * var(--news-date-scale, 1)), 23px); }
.news-preview-qr { position: absolute; right: auto; bottom: 4%; left: 10%; z-index: 3; display: grid; gap: 2px; width: clamp(64px, var(--news-qr-size, 10.78%), 240px); padding: 2px; color: #07100a; background: #fff; text-align: center; cursor: move; touch-action: none; }
.news-preview-qr span { display: block; padding: clamp(1px, calc(var(--news-qr-label-size, .9375cqw) * .2), 4px) 1px; overflow: hidden; background: var(--news-accent); font-size: clamp(4px, var(--news-qr-label-size, .9375cqw), 16px); font-weight: 800; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.news-preview-qr img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.news-preview-logo { position: absolute; top: 3%; right: 2%; z-index: 2; display: grid; width: clamp(32px, var(--news-logo-size, 10%), 112px); height: clamp(32px, var(--news-logo-size, 10%), 112px); place-items: center; padding: 3px; overflow: visible; border-radius: 4px; color: #fff; background: transparent; font-size: 8px; font-weight: 800; filter: drop-shadow(0 5px 12px rgba(0,0,0,.34)); cursor: move; touch-action: none; }
.news-preview-logo img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; object-fit: contain; background: transparent; }
.news-preview-element { position: absolute; z-index: 3; display: grid; min-width: 24px; min-height: 24px; place-items: center; overflow: hidden; border: 2px solid color-mix(in srgb, var(--news-accent) 72%, white); border-radius: 9px; color: #fff; background: color-mix(in srgb, var(--news-accent) 62%, #101827); font-size: clamp(15px, 2.4cqw, 34px); line-height: 1; cursor: move; touch-action: none; }
.news-preview-text-box { position: absolute; z-index: 4; width: 38%; min-height: 1.2em; overflow-wrap: anywhere; color: var(--news-title-color, #fff); font-size: clamp(10px, calc(1.55cqw * var(--news-element-scale, 1)), 56px); font-weight: 700; line-height: 1.12; text-shadow: 0 1px 3px rgba(0,0,0,.9); cursor: move; touch-action: none; pointer-events: auto; }
.news-preview-copy { position: absolute; z-index: 2; inset: 0; min-width: 0; pointer-events: none; }
.news-preview-copy strong { display: block; max-width: none; max-height: none; overflow: visible; color: var(--news-title-color, var(--news-text)); font-size: clamp(12px, calc(var(--news-title-size, 2.96875cqw) * var(--news-title-fit-scale, 1) * var(--news-element-scale, 1)), 96px); line-height: 1.08; overflow-wrap: anywhere; text-shadow: 0 1px 3px rgba(0,0,0,.72); }
.news-preview-copy small { color: color-mix(in srgb, var(--news-text) 78%, transparent); font-size: clamp(9px, 1.1vw, 14px); }
.news-preview-title { position: absolute; left: 23%; right: auto; bottom: 4%; width: max-content; max-width: calc(99% - var(--news-position-x, 23%)); pointer-events: auto; cursor: move; touch-action: none; }
.news-preview-source { position: absolute; right: 3%; bottom: 27%; left: auto; width: max-content; max-width: calc(99% - var(--news-position-x, 0%)); padding: 0; border-radius: 0; background: transparent; color: var(--news-source-color, var(--news-text)); font-family: inherit; font-size: clamp(6px, calc(var(--news-source-size, 1.171875cqw) * var(--news-source-fit-scale, 1) * var(--news-element-scale, 1)), 56px); font-weight: 700; line-height: 1; text-align: right; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.72); pointer-events: auto; cursor: move; touch-action: none; }
.news-preview-movable.is-dragging, .news-preview-movable.is-selected { outline: 2px dashed color-mix(in srgb, var(--brand-primary) 82%, white); outline-offset: 3px; }
.news-selection-overlay { position: absolute; z-index: 9; box-sizing: border-box; border: 1px dashed color-mix(in srgb, var(--brand-primary) 92%, white); pointer-events: none; }
.news-selection-delete { position: absolute; top: -33px; left: auto; right: auto; display: grid; place-items: center; width: 27px; height: 27px; padding: 5px; border: 1px solid #ff9b9b; border-radius: 6px; color: #fff; background: #e05252; opacity: 1; box-shadow: 0 3px 10px rgba(0,0,0,.45); pointer-events: auto; cursor: pointer; }
.news-selection-delete:hover { background: #c93636; }
.news-selection-delete .icon { width: 15px; height: 15px; }
.news-selection-resize { position: absolute; z-index: 1; display: grid; place-items: center; width: 11px; height: 11px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: var(--brand-primary); font-size: 8px; line-height: 1; pointer-events: auto; }
.news-selection-resize::after { content: '↘'; transform: translate(-.5px, -.5px); }
.news-selection-resize-nw { top: -6px; left: -6px; cursor: nwse-resize; }
.news-selection-resize-nw::after { content: '↖'; }
.news-selection-resize-ne { top: -6px; right: -6px; cursor: nesw-resize; }
.news-selection-resize-ne::after { content: '↗'; }
.news-selection-resize-sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.news-selection-resize-sw::after { content: '↙'; }
.news-selection-resize-se { right: -6px; bottom: -6px; cursor: nwse-resize; }
.news-selection-overlay:not(.is-resizable) .news-selection-resize { display: none; }
.news-layout-restore { margin-top: 4px; }
.news-preview-move-hint { display: block; }
.news-rss-preview-modal { width: min(1160px, calc(100vw - 28px)); max-height: min(900px, calc(100dvh - 20px)); overflow: hidden; }
.news-rss-preview-modal .modal-header { align-items: center; justify-content: space-between; }
.news-rss-preview-modal .modal-header > div { min-width: 0; }
.news-rss-preview-modal .modal-header small { display: block; margin-top: 4px; }
.news-rss-preview-modal .modal-body { display: grid; gap: 12px; overflow: auto; padding: 16px 20px 20px; }
.news-rss-preview-loading { display: grid; min-height: 360px; place-content: center; justify-items: center; gap: 8px; color: var(--muted); text-align: center; }
.news-rss-preview-loading strong { color: var(--text); }
.news-rss-preview-rotation { display: grid; gap: 10px; min-width: 0; }
.news-rss-preview-stage { width: min(1040px, 100%); margin: 0 auto; }
.news-rss-preview-stage .news-composer-preview { min-height: 0; box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.14); }
.news-rss-preview-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; color: var(--muted); font-size: 12px; }
.news-rss-preview-status strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.news-rss-preview-status span { overflow: hidden; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.external-folder-grid { display: grid; gap: 12px; padding: var(--space-6); }
.external-folder-card { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.external-folder-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.external-folder-card-heading h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.external-folder-card-heading h3 .icon { width: 17px; height: 17px; color: var(--brand-primary); }
.external-folder-card-heading small { display: block; margin-top: 5px; color: var(--muted); }
.external-reference-card { min-width: 0; }
.external-reference-link { display: grid; gap: 5px; margin-top: 14px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.external-reference-link span { color: var(--muted); font-size: 12px; font-weight: 700; }
.external-reference-link a { overflow-wrap: anywhere; color: var(--brand-primary); font-size: 13px; }
.external-rss-preview-modal { width: min(1440px, calc(100vw - 24px)); max-height: min(960px, calc(100dvh - 16px)); overflow: auto; }
.external-rss-preview-loading, .external-rss-preview-empty { display: grid; justify-items: center; gap: 9px; min-height: 180px; place-content: center; color: var(--muted); text-align: center; }
.external-rss-preview-loading strong, .external-rss-preview-empty strong { color: var(--text); }
.external-rss-preview-intro { display: grid; gap: 4px; margin-bottom: 14px; }
.external-rss-preview-intro strong { font-size: 17px; }
.external-rss-preview-intro span { color: var(--muted); font-size: 13px; }
.external-rss-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; max-height: none; overflow: visible; padding-right: 0; }
.external-rss-preview-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.external-rss-preview-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.external-rss-preview-card figcaption { display: grid; gap: 5px; min-height: 70px; padding: 8px 9px 10px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.external-rss-preview-card figcaption strong { font: inherit; }
.external-rss-preview-date { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.25; }
.external-rss-preview-channel-date { color: var(--muted); font-size: 11px; }
.external-source-list { display: grid; gap: 8px; margin-top: 14px; }
.external-source-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.external-source-row strong, .external-source-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.external-source-row small { max-width: 620px; margin-top: 4px; color: var(--muted); font-size: 12px; }
.news-wizard-modal { position: relative; display: flex; flex-direction: column; width: min(1360px, 100%); max-height: min(920px, calc(100dvh - 20px)); overflow: hidden; border-color: color-mix(in srgb, var(--blue) 54%, var(--line)); box-shadow: 0 30px 100px rgba(0,0,0,.62), 0 0 0 1px color-mix(in srgb, var(--brand-primary) 10%, transparent), 0 0 42px color-mix(in srgb, var(--blue) 12%, transparent); animation: news-wizard-open .34s cubic-bezier(.2,.8,.2,1) both; }
.news-wizard-modal::before { display: block; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-primary), var(--blue), transparent); content: ''; }
.news-wizard-modal .modal-header { background: linear-gradient(120deg, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 60%); }
.news-wizard-modal .modal-header, .news-wizard-modal .modal-footer { flex: 0 0 auto; }
.news-wizard-modal .modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 18px; }
.news-wizard-modal .modal-footer { position: sticky; bottom: 0; z-index: 4; background: color-mix(in srgb, var(--surface-2) 92%, transparent); }
@media (min-width: 801px) and (min-height: 700px) {
  .news-wizard-modal .modal-body { overflow: hidden; }
  .news-wizard-modal .news-builder { gap: 10px 18px; }
  .news-wizard-modal .news-builder-fields { gap: 6px; }
  .news-wizard-modal .news-auto-content-note { padding: 8px 10px; }
  .news-wizard-modal .news-auto-content-note span { font-size: 11px; line-height: 1.3; }
  .news-wizard-modal .news-auto-content-note small { font-size: 11px; }
  .news-wizard-modal .news-builder-preview > small:not(.news-preview-move-hint) { display: none; }
  .news-wizard-modal .news-builder-settings .field { margin: 2px 0; }
  .news-wizard-modal .news-builder-settings .news-form-row { gap: 8px; }
  .news-wizard-modal .news-builder-preview .news-composer-preview { aspect-ratio: auto; height: clamp(260px, calc(100dvh - 450px), 460px); }
  .news-wizard-modal .news-builder-settings .field > small { display: none; }
  .news-wizard-modal .news-builder-settings .news-color-row { margin-top: 2px; }
  .news-wizard-modal .news-builder-settings .news-color-control { min-height: 36px; }
  .news-wizard-modal .news-builder-settings .news-color-input { height: 28px; }
}
@media (max-width: 760px), (max-height: 760px) {
  .news-wizard-modal { max-height: calc(100dvh - 20px); overflow: hidden; }
}
@media (max-width: 980px) { .news-builder-settings .news-form-row:not(.news-color-row) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .news-builder-settings .news-form-row:not(.news-color-row), .news-builder-settings .news-color-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.news-template-picker { display: grid; gap: 14px; }
.news-wizard-intro { margin: 0; color: var(--muted); }
.news-template-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-template-option { position: relative; display: grid; grid-template-columns: minmax(150px, .95fr) minmax(0, 1fr); align-items: center; gap: 15px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.news-template-option:hover, .news-template-option:focus-visible { border-color: color-mix(in srgb, var(--blue) 72%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--surface-2)); transform: translateY(-1px); }
.news-template-option.is-selected { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 18%, transparent), 0 0 22px color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.news-template-option-preview { display: block; min-width: 0; }
.news-template-option-copy { display: grid; align-content: center; gap: 6px; min-width: 0; padding-right: 20px; }
.news-template-option-copy strong { font-size: 15px; }
.news-template-option-copy small { color: var(--muted); line-height: 1.45; }
.news-template-option-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #07100a; background: var(--brand-primary); opacity: 0; transform: scale(.72); transition: opacity .18s ease, transform .18s ease; }
.news-template-option-check .icon { width: 14px; height: 14px; }
.news-template-option.is-selected .news-template-option-check { opacity: 1; transform: scale(1); }
.news-template-preview[data-news-template-key="breaking"] .news-template-art { background: linear-gradient(160deg, #52303a 0%, #281b2b 48%, #090b13 100%); }
.news-template-preview[data-news-template-key="clean"] .news-template-art { background: linear-gradient(160deg, #254b63 0%, #152d43 48%, #07101b 100%); }
.news-template-preview[data-news-template-key="amber"] .news-template-art { background: linear-gradient(160deg, #55462a 0%, #302817 48%, #0c0b08 100%); }
.news-template-bar { background: var(--news-accent, #70b300); }
@keyframes news-wizard-open { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes news-library-enter { from { opacity: .4; transform: translateX(-12px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes news-playlist-enter { from { opacity: .72; transform: translateX(-14px) scale(.985); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes news-tech-scan { from { opacity: 0; transform: translateX(-70%); } 35% { opacity: 1; } to { opacity: 0; transform: translateX(70%); } }
@media (prefers-reduced-motion: reduce) { .playlist-editor[data-playlist-library-source="news"] .playlist-library-column, .playlist-editor[data-playlist-library-source="news"] .playlist-canvas-column, .playlist-editor[data-playlist-library-source="news"] .playlist-context-source::before { animation: none; } }
@media (max-width: 800px) { .news-builder { grid-template-columns: 1fr; } .news-builder-right { grid-template-columns: 1fr; order: -1; } .news-card { grid-template-columns: 1fr; } .news-card-preview { max-width: 340px; } .news-card-main { align-items: flex-start; flex-direction: column; } .news-playlist-card-list .news-card { grid-template-columns: 1fr; } .news-playlist-card-list .news-card-preview { max-width: none; } }
@media (max-width: 900px) { .playlist-editor[data-playlist-library-source="news"] .playlist-layout { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .playlist-editor[data-playlist-library-source="drive"] .playlist-layout, .playlist-editor[data-playlist-library-source]:not([data-playlist-library-source="files"]) .playlist-layout { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .playlist-name-search-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .news-template-grid, .news-card-list, .external-folder-grid { padding: var(--space-4); } .news-template-card-body { align-items: stretch; flex-direction: column; } .news-template-card-body .btn { width: 100%; } .news-form-row, .news-form-row:not(.news-color-row) { grid-template-columns: 1fr; } .news-logo-picker { grid-template-columns: 1fr; } .news-logo-file-name { grid-column: 1; grid-row: 2; } .news-source-toolbar { align-items: stretch; flex-direction: column; } .news-source-toolbar .btn { width: 100%; } .news-search-form { align-items: stretch; flex-direction: column; } .news-search-form label { min-width: 0; } .news-search-form .btn { width: 100%; } }
@media (max-width: 700px) { .news-template-picker-grid { grid-template-columns: 1fr; } .news-template-option { grid-template-columns: minmax(130px, .8fr) minmax(0, 1fr); } }
.folder-chip-drop { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.folder-chip-drop.is-drag-over { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 22%, var(--surface)); color: var(--text); transform: translateY(-1px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
.media-library-card[draggable="true"] { cursor: grab; }
.media-library-card[draggable="true"]:active, .media-library-card.is-dragging { cursor: grabbing; }
.media-library-card.is-dragging { opacity: .58; border-color: var(--brand-primary); }
.media-file-meta { display: flex; align-items: baseline; gap: 3px; min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.media-meta-label { color: var(--text); font-weight: 700; }
.media-library-grid.media-view-small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.media-library-grid.media-view-small .media-library-card { min-height: 300px; }
.media-library-grid.media-view-small .media-library-card-preview { flex-basis: 140px; height: 140px; min-height: 140px; padding: 8px; }
.media-library-grid.media-view-small .media-library-card-preview .media-thumb { min-height: 0; }
.media-library-grid.media-view-small .media-library-card-body { min-height: 160px; gap: 5px; padding: 10px; }
.media-library-grid.media-view-small .media-file-meta { font-size: 11px; }
.media-library-grid.media-view-small .media-library-card-actions { display: flex; }
.media-library-grid.media-view-small .media-library-card-actions .btn { width: 32px; }
.media-library-grid.media-view-list { grid-template-columns: 1fr; }
.media-library-grid.media-view-list .media-library-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.media-library-grid.media-view-list .media-library-card { min-height: 0; }
.media-library-grid.media-view-list .media-library-card-preview { flex-basis: auto; aspect-ratio: auto; height: 118px; min-height: 118px; }
.media-library-grid.media-view-list .media-library-card-body { display: grid; min-height: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
.media-library-grid.media-view-list .media-library-card-body > strong, .media-library-grid.media-view-list .media-file-meta { grid-column: 1; }
.media-library-grid.media-view-list .media-library-card-actions { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
.flight-module-panel { overflow: hidden; }
.flight-module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 24px 24px; }
.flight-board-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 70%, var(--surface)); }
.flight-board-card-header { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.flight-board-card-header .icon { width: 20px; height: 20px; color: var(--blue); }
.flight-board-card-departures .flight-board-card-header .icon { color: var(--green); }
.flight-board-card-header h3 { margin: 0; font-size: 15px; }
.flight-board-card-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.flight-board-card .empty { min-height: 150px; padding: 34px 20px; }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.report-filters label { display: grid; gap: 5px; min-width: 145px; color: var(--muted); font-size: 12px; }
.report-filters select { min-width: 190px; }
.report-filter-field { flex: 0 1 190px; }
.report-filter-field.report-file-filter { flex: 1 1 280px; min-width: 240px; }
.report-filter-field.report-format-filter { flex: 0 1 145px; min-width: 145px; }
.report-filter-field select, .report-filter-field input { width: 100%; min-width: 0; box-sizing: border-box; }
.report-filters > button { flex: 0 0 auto; white-space: nowrap; }
.report-action-buttons { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.report-action-buttons .btn { min-width: 0; }
.report-filters > button[data-action="reports-generate"], .report-filters > button[data-action="reports-export"], .report-action-buttons .btn { min-height: 34px; padding: 8px 12px; font-size: 12px; }
.report-filters > button[data-action="reports-generate"], .report-action-buttons .btn[data-action="reports-generate"] { color: var(--text); border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line)); background: color-mix(in srgb, var(--brand-primary) 14%, var(--surface)); font-weight: 700; }
.report-filters > button[data-action="reports-generate"]:hover, .report-action-buttons .btn[data-action="reports-generate"]:hover { background: color-mix(in srgb, var(--brand-primary) 22%, var(--surface)); }
.report-filters > button[data-action="reports-generate"] .icon, .report-action-buttons .btn[data-action="reports-generate"] .icon { width: 15px; height: 15px; }
.report-metrics { padding: var(--space-5) var(--space-6); }
.reports-panel { overflow: hidden; }
.media-thumb { position: relative; display: inline-flex; width: 64px; height: 42px; flex: 0 0 auto; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(135,164,198,.18); border-radius: 8px; background: #0a111e; color: var(--muted); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb-video, .media-thumb-video-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, rgba(4,10,18,.08), rgba(4,10,18,.48)); pointer-events: none; }
.media-thumb-play .icon { width: 17px; height: 17px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.playlist-items { display: grid; gap: 8px; }
.playlist-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-width: 0; min-height: 64px; padding: 10px; border: 1px solid rgba(135,164,198,.17); border-radius: 10px; background: var(--surface); cursor: grab; }
.playlist-item .media-preview-trigger { width: 64px; height: 42px; flex: 0 0 64px; }
.playlist-item .media-thumb { width: 64px; height: 42px; }
.playlist-item.is-dragging { opacity: .5; border-color: var(--brand-primary); }
.playlist-item.is-selected, .playlist-folder-item.is-selected { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 24%, transparent); }
.playlist-item-main { display: grid; min-width: 0; flex: 1; gap: 3px; }
.playlist-item-main strong, .playlist-item-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playlist-item-main small, .drag-handle, .playlist-duration { color: var(--muted); font-size: 12px; }
.playlist-item-meta { display: block; }
.playlist-order { width: 22px; color: var(--muted); font-weight: 800; text-align: center; }
.drag-handle { cursor: grab; font-size: 18px; letter-spacing: -4px; }
.playlist-duration { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.playlist-duration input { width: 28px; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: right; }
.playlist-duration input::-webkit-inner-spin-button, .playlist-duration input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.playlist-duration input:focus { border: 0; box-shadow: 0 1px 0 var(--brand-primary); }
.playlist-duration-natural input { color: var(--muted); background: transparent; pointer-events: none; }
.playlist-item-actions { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.playlist-item-actions .icon-btn { width: 32px; min-width: 32px; min-height: 32px; padding: 6px; }
.playlist-item-actions .icon { width: 15px; height: 15px; }
.playlist-folder-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-width: 0; min-height: 64px; padding: 10px; border: 1px solid color-mix(in srgb, var(--brand-primary) 42%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface)); cursor: grab; }
.playlist-folder-item.is-dragging { opacity: .5; border-color: var(--brand-primary); }
.playlist-folder-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid color-mix(in srgb, var(--brand-primary) 42%, var(--line)); border-radius: 10px; color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.playlist-folder-icon .icon { width: 20px; height: 20px; }
.playlist-hidden-drive-item { display: none !important; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } .dashboard-chart-card canvas { height: 280px !important; min-height: 280px; padding-inline: 10px; } .terminal-map-dashboard, .terminal-map-dashboard .map-loading, .map-fallback { min-height: 480px; } }
@media (max-width: 650px) { .playlist-item { align-items: flex-start; flex-wrap: wrap; } .playlist-item-main { flex-basis: calc(100% - 100px); } .playlist-duration { margin-left: 32px; } }
@media (max-width: 650px) { .media-edit-layout { grid-template-columns: 1fr; } .media-edit-preview { min-height: 150px; } .media-edit-preview .media-preview-trigger, .media-edit-preview .media-thumb, .media-edit-preview img, .media-edit-preview video { height: 150px; } .playlist-folder-item { align-items: flex-start; flex-wrap: wrap; } .playlist-folder-item .playlist-item-main { flex-basis: calc(100% - 100px); } .playlist-folder-item .playlist-item-actions { margin-left: auto; } }
@media (max-width: 760px) { .playlist-folder-edit-layout { grid-template-columns: 1fr; } .playlist-folder-file-list { max-height: 330px; } }
@media (max-width: 650px) { .playlist-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 16px; } .playlist-card-content { width: 100%; align-items: flex-start; flex-direction: column; gap: 14px; } .playlist-card-preview { width: 100%; height: 120px; flex-basis: 120px; } .playlist-card-info { width: 100%; } .playlist-card-actions { width: 100%; justify-content: flex-end; } .playlist-card-list { padding: 16px; } }
@media (max-width: 650px) { .playlist-editor-actions { width: 100%; } .playlist-editor-header-action { flex: 1 1 0; width: auto; min-width: 0; } }
@media (max-width: 650px) { .flight-module-grid { grid-template-columns: 1fr; padding-inline: var(--space-4); } }

/* Catálogo de módulos do TechPlay: recursos locais da organização atual. */
.techplay-module-page { display: grid; gap: 20px; }
.techplay-module-page > .view-header { margin-bottom: 0; }
.techplay-module-panel { overflow: hidden; }
.techplay-module-context { display: grid; gap: 14px; min-height: 360px; }
.techplay-module-context .playlist-source-heading { padding: 2px 0 0; }
.techplay-module-context .playlist-source-heading h3 { display: flex; align-items: center; gap: 8px; }
.techplay-module-context .playlist-source-heading h3 .icon { width: 17px; height: 17px; color: var(--brand-primary); }
.techplay-module-context [data-techplay-module-body] { min-width: 0; }
.techplay-module-context .techplay-module-panel { border-color: color-mix(in srgb, var(--brand-primary) 20%, var(--line)); }
.techplay-module-filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 24px 0; }
.techplay-module-filter { min-height: 32px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface-2) 76%, transparent); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.techplay-module-filter:hover, .techplay-module-filter.is-active { border-color: color-mix(in srgb, var(--brand-primary) 54%, var(--line)); background: color-mix(in srgb, var(--brand-primary) 14%, var(--surface)); color: var(--text); }
.techplay-module-resource-list { display: grid; gap: 10px; padding: 18px 24px 24px; }
.techplay-module-resource-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface-2) 68%, var(--surface)); transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease; }
.techplay-module-resource-card[draggable="true"] { cursor: grab; }
.techplay-module-resource-card[draggable="true"]:active, .techplay-module-resource-card.is-dragging { cursor: grabbing; }
.techplay-module-resource-card:hover, .techplay-module-resource-card.is-attached { border-color: color-mix(in srgb, var(--brand-primary) 46%, var(--line)); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-2)); }
.techplay-module-resource-card.is-dragging { opacity: .56; transform: translateY(-1px); }
.techplay-module-resource-icon, .playlist-module-item-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid color-mix(in srgb, var(--brand-primary) 34%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface)); color: var(--brand-primary); }
.techplay-module-resource-icon .icon, .playlist-module-item-icon .icon { width: 19px; height: 19px; }
.techplay-module-resource-copy { display: grid; min-width: 0; gap: 3px; }
.techplay-module-resource-copy strong, .techplay-module-resource-copy span, .techplay-module-resource-copy small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techplay-module-resource-copy strong { color: var(--text); }
.techplay-module-resource-copy span, .techplay-module-resource-copy small { color: var(--muted); font-size: 12px; }
.techplay-module-resource-link { width: fit-content; max-width: 100%; overflow: hidden; color: var(--blue); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.techplay-module-resource-actions { justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
.techplay-module-resource-actions .icon-btn { width: 32px; min-width: 32px; min-height: 32px; padding: 7px; }
.techplay-module-resource-actions .icon { width: 15px; height: 15px; }
.techplay-module-empty-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border: 1px solid color-mix(in srgb, var(--brand-primary) 35%, var(--line)); border-radius: 13px; background: color-mix(in srgb, var(--brand-primary) 9%, var(--surface)); color: var(--brand-primary); }
.techplay-module-empty-icon .icon { width: 21px; height: 21px; }
.techplay-module-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 180px; }
.loading-spinner { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--brand-primary) 25%, transparent); border-top-color: var(--brand-primary); border-radius: 50%; animation: techplay-module-spin .7s linear infinite; }
@keyframes techplay-module-spin { to { transform: rotate(360deg); } }
.techplay-tiktok-heading { align-items: flex-start; }
.techplay-tiktok-title { display: flex; align-items: center; gap: 8px; }
.techplay-tiktok-heading .techplay-tiktok-title .icon { width: 19px; height: 19px; color: var(--brand-primary); }
.techplay-tiktok-heading.playlist-source-heading .techplay-tiktok-title .icon { width: 17px; height: 17px; }
.techplay-tiktok-quick-actions { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.techplay-tiktok-quick-button { width: 40px; min-width: 40px; height: 40px; padding: 9px; border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line)); color: var(--muted); }
.techplay-tiktok-quick-button:first-child { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 54%, var(--line)); }
.techplay-tiktok-quick-button:last-child { color: #b69cff; border-color: color-mix(in srgb, #8b5cf6 54%, var(--line)); }
.techplay-tiktok-quick-button.is-active { background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface-2)); color: var(--text); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-primary) 16%, transparent); }
.techplay-tiktok-mode-panels { min-width: 0; }
.techplay-tiktok-mode-panel[hidden] { display: none; }
.techplay-tiktok-mode-panel > .panel-header { padding-bottom: 18px; }
.techplay-tiktok-mode-panel > .panel-header small { display: block; margin-top: 4px; }
.techplay-tiktok-mode-panel > .panel-header .icon-btn { width: 36px; min-width: 36px; height: 36px; padding: 8px; }
.techplay-tiktok-resource-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.techplay-tiktok-resource-meta { display: flex; flex-wrap: wrap; gap: 5px 14px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.techplay-tiktok-resource-meta strong { color: var(--brand-primary); }
.techplay-tiktok-resource-identifier, .techplay-tiktok-resource-muted { color: var(--muted); font-size: 11px; }
.techplay-tiktok-resource-card .techplay-module-resource-link { display: block; }
.techplay-tiktok-empty-state { min-height: 210px; }
.techplay-tiktok-copy-action { display: inline-flex; align-items: center; gap: 5px; }
.techplay-tiktok-copy-feedback { display: inline-block; max-width: 0; overflow: hidden; color: var(--brand-primary); font-size: 11px; font-weight: 800; line-height: 1; opacity: 0; transform: translateX(-3px); transition: max-width .18s ease, opacity .18s ease, transform .18s ease; white-space: nowrap; }
.techplay-tiktok-copy-feedback.is-visible { max-width: 52px; opacity: 1; transform: translateX(0); }
.techplay-tiktok-modal { width: min(1320px, 100%); max-height: min(920px, calc(100dvh - 28px)); border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--line)); box-shadow: 0 30px 100px rgba(0,0,0,.62), 0 0 0 1px color-mix(in srgb, var(--brand-primary) 9%, transparent), 0 0 42px color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.techplay-tiktok-modal .modal-header { align-items: center; justify-content: space-between; padding: 20px 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 64%); }
.techplay-tiktok-modal .modal-header h3 { color: var(--brand-primary); font-size: 22px; }
.techplay-tiktok-modal-close { margin-left: auto; color: var(--muted); }
.techplay-tiktok-modal .modal-body { display: grid; gap: 18px; padding: 22px 24px 26px; }
.techplay-tiktok-modal-tabs { display: flex; gap: 8px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.techplay-tiktok-modal-tab { min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 8px 8px 0 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.techplay-tiktok-modal-tab:hover, .techplay-tiktok-modal-tab.is-active { border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line)); border-bottom-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-2)); color: var(--text); }
.techplay-tiktok-modal-panel { display: grid; gap: 14px; min-width: 0; }
.techplay-tiktok-modal-panel[hidden] { display: none; }
.techplay-tiktok-modal-section-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 2px 4px; }
.techplay-tiktok-modal-section-header h4 { margin: 0; font-size: 17px; }
.techplay-tiktok-modal-section-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.techplay-tiktok-modal-section-header .icon-btn { width: 36px; min-width: 36px; height: 36px; padding: 8px; color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 54%, var(--line)); }
.techplay-tiktok-modal-search { display: flex; align-items: center; gap: 8px; }
.techplay-tiktok-modal-search input { flex: 1 1 auto; min-width: 0; }
.techplay-tiktok-modal-search .icon-btn { width: 36px; min-width: 36px; height: 36px; padding: 8px; color: var(--blue); }
.techplay-tiktok-search-result { color: var(--muted); font-size: 11px; }
.techplay-tiktok-modal-list { display: grid; gap: 10px; min-width: 0; max-height: min(640px, calc(100dvh - 270px)); overflow: auto; padding-right: 4px; }
.techplay-tiktok-modal-list .techplay-module-resource-list { padding: 0; }
.techplay-tiktok-modal-list .techplay-tiktok-resource-card { padding: 14px; }
.techplay-tiktok-public-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-width: 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 72%, var(--surface)); }
.techplay-tiktok-public-card:hover { border-color: color-mix(in srgb, var(--brand-primary) 42%, var(--line)); background: color-mix(in srgb, var(--brand-primary) 7%, var(--surface-2)); }
.techplay-tiktok-public-card-copy { min-width: 0; display: grid; gap: 5px; }
.techplay-tiktok-public-card-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.techplay-tiktok-public-card .techplay-module-resource-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techplay-tiktok-public-card .techplay-module-resource-actions { flex-wrap: nowrap; }
.techplay-tiktok-public-card [data-tiktok-action="copy"] { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.techplay-tiktok-public-card [data-tiktok-action="techplay-tiktok-open-playlist"], .techplay-tiktok-public-card [data-tiktok-action="techplay-module-edit"] { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 45%, var(--line)); }
.techplay-tiktok-public-card [data-tiktok-action="techplay-module-delete"] { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.techplay-tiktok-playlist-editor { display: grid; gap: 16px; min-width: 0; }
.techplay-tiktok-editor-heading { display: flex; align-items: center; gap: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.techplay-tiktok-editor-heading > div { min-width: 0; }
.techplay-tiktok-editor-heading h4 { margin: 0; font-size: 18px; }
.techplay-tiktok-editor-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.techplay-tiktok-link-manager { display: grid; gap: 8px; padding: 14px; border: 1px solid color-mix(in srgb, var(--brand-primary) 20%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 72%, var(--surface)); }
.techplay-tiktok-link-manager small { color: var(--muted); font-size: 12px; }
.techplay-tiktok-link-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.techplay-tiktok-link-row input { min-width: 0; flex: 1 1 auto; }
.techplay-tiktok-video-summary { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.techplay-tiktok-video-summary strong { color: var(--text); }
.techplay-tiktok-video-form { display: flex; align-items: center; gap: 8px; min-width: 0; }
.techplay-tiktok-video-form input { min-width: 0; flex: 1 1 auto; }
.techplay-tiktok-video-list { display: grid; gap: 10px; max-height: 360px; overflow: auto; padding-right: 4px; }
.techplay-tiktok-video-card { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 68%, var(--surface)); }
.techplay-tiktok-video-card > div { min-width: 0; }
.techplay-tiktok-video-main { display: contents; }
.techplay-tiktok-video-content { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.techplay-tiktok-video-copy { display: grid; gap: 3px; min-width: 0; }
.techplay-tiktok-video-copy strong, .techplay-tiktok-video-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techplay-tiktok-video-url { color: var(--muted); font-size: 11px; }
.techplay-tiktok-video-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--brand-primary); font-size: 12px; font-weight: 700; }
.techplay-tiktok-video-thumbnail { display: grid; place-items: center; width: 44px; height: 60px; flex: 0 0 44px; object-fit: cover; overflow: hidden; border: 1px solid color-mix(in srgb, var(--brand-primary) 26%, var(--line)); border-radius: 7px; background: var(--surface); color: var(--brand-primary); }
.techplay-tiktok-video-thumbnail-placeholder .icon { width: 20px; height: 20px; }
.techplay-tiktok-video-index { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: color-mix(in srgb, var(--brand-primary) 12%, var(--surface)); color: var(--brand-primary); font-weight: 800; }
.techplay-tiktok-video-actions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.techplay-tiktok-video-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-width: 34px; min-height: 34px; padding: 7px; color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--line)); }
.techplay-tiktok-video-toggle .icon { width: 14px; height: 14px; }
.techplay-tiktok-video-card.is-inactive { opacity: .68; }
.techplay-tiktok-video-card.is-inactive .techplay-tiktok-video-thumbnail { filter: grayscale(.45); }
.techplay-tiktok-video-card .techplay-module-resource-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techplay-tiktok-video-empty { min-height: 150px; }
.techplay-tiktok-editor-footer { display: flex; justify-content: flex-start; }
.techplay-tiktok-modal-footer-actions { display: flex; gap: 8px; padding-top: 2px; }
.techplay-tiktok-modal-message { min-height: 18px; color: var(--brand-primary); font-size: 12px; font-weight: 700; }
.techplay-tiktok-preview-backdrop { background: rgba(2, 7, 14, .92); }
.techplay-tiktok-modal-backdrop.is-preview-hidden { display: none; }
.techplay-tiktok-preview-modal { width: min(92vw, 520px); max-width: 520px; max-height: 90vh; padding: 32px 36px; box-sizing: border-box; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
.techplay-tiktok-preview-modal .modal-header { align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0; border-bottom: 0; background: transparent; }
.techplay-tiktok-preview-modal .modal-header h3 { color: var(--brand-primary); font-size: 22px; }
.techplay-tiktok-preview-modal .modal-header .icon-btn { flex: 0 0 40px; width: 40px; min-width: 40px; height: 40px; padding: 2px 6px; border-color: transparent; background: transparent; color: var(--muted); }
.techplay-tiktok-preview-player { position: relative; width: 100%; display: grid; place-items: center; background: #000; }
.techplay-tiktok-preview-player iframe { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; max-height: 68vh; border: 0; background: #000; }
.techplay-tiktok-preview-empty { min-height: 220px; margin: 0; }
.techplay-tiktok-launcher { min-height: 360px; display: grid; place-items: center; }
.techplay-tiktok-launcher-content { display: grid; justify-items: center; gap: 10px; max-width: 560px; padding: 42px 24px; text-align: center; }
.techplay-tiktok-launcher-content .techplay-module-empty-icon { width: 58px; height: 58px; margin: 0 0 4px; }
.techplay-tiktok-launcher-content .techplay-module-empty-icon .icon { width: 27px; height: 27px; }
.techplay-tiktok-launcher-content h3 { margin: 0; font-size: 18px; }
.techplay-tiktok-launcher-content p { margin: 0; color: var(--muted); }
.techplay-tiktok-launcher-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.techplay-tiktok-launch-button { min-height: 44px; padding: 10px 16px; }
.techplay-tiktok-launch-button .icon { width: 18px; height: 18px; }
@media (max-width: 650px) { .techplay-tiktok-heading { align-items: flex-start; flex-wrap: wrap; } .techplay-tiktok-quick-actions { width: 100%; } .techplay-tiktok-resource-card { grid-template-columns: auto minmax(0, 1fr); } .techplay-tiktok-resource-card .techplay-module-resource-actions { grid-column: 2; justify-content: flex-start; } }
.playlist-module-item { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-width: 0; min-height: 64px; padding: 10px; border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--brand-primary) 5%, var(--surface)); }
.playlist-module-item .playlist-order { flex: 0 0 22px; }
.playlist-module-item .playlist-module-item-icon { width: 36px; height: 36px; flex-basis: 36px; }
.playlist-module-item .playlist-duration { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 650px) { .techplay-module-resource-card { grid-template-columns: auto minmax(0, 1fr); } .techplay-module-resource-actions { grid-column: 2; justify-content: flex-start; } .playlist-module-item { align-items: flex-start; flex-wrap: wrap; } .playlist-module-item .playlist-item-main { flex-basis: calc(100% - 100px); } .playlist-module-item .playlist-item-actions { margin-left: auto; } }

/* Camada visual dos módulos reaproveitados do Tech Hits no Tech Player. */
.techplay-reference-heading { align-items: flex-start; gap: 18px; }
.techplay-reference-heading > div:first-child { min-width: 0; }
.techplay-reference-quick-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.techplay-reference-action { width: 40px; min-width: 40px; height: 40px; padding: 9px; color: var(--blue); border-color: color-mix(in srgb, var(--blue) 48%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.techplay-reference-action:hover { color: var(--brand-primary); border-color: color-mix(in srgb, var(--brand-primary) 58%, var(--line)); transform: translateY(-1px); }
.techplay-reference-modal-backdrop { z-index: 100; }
.techplay-reference-modal { width: min(1280px, calc(100vw - 48px)); max-height: min(920px, calc(100dvh - 28px)); overflow: hidden; border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: 0 28px 90px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--blue) 10%, transparent); }
.techplay-reference-modal .modal-header { align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 28px; background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 10%, transparent), transparent 68%); }
.techplay-reference-modal .modal-header > div { min-width: 0; }
.techplay-reference-modal .modal-header h3 { margin: 0; color: var(--brand-primary); font-size: 22px; }
.techplay-reference-modal .modal-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.techplay-reference-modal-body { display: grid; gap: 16px; max-height: min(790px, calc(100dvh - 142px)); overflow: auto; padding: 22px 28px 28px; }
.techplay-reference-storage { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)); color: var(--muted); font-size: 12px; }
.techplay-reference-storage strong { color: var(--text); }
.techplay-reference-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.techplay-reference-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 3px 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; }
.techplay-reference-choice > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line)); border-radius: 9px; color: var(--blue); }
.techplay-reference-choice > strong { font-size: 14px; }
.techplay-reference-choice > small { color: var(--muted); font-size: 11px; }
.techplay-reference-choice:hover, .techplay-reference-choice.is-active { border-color: color-mix(in srgb, var(--brand-primary) 55%, var(--line)); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface-2)); }
.techplay-reference-tool-panel { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--surface-2) 65%, var(--surface)); }
.techplay-reference-tool-panel > h4, .techplay-reference-section-heading h4 { margin: 0; font-size: 16px; }
.techplay-reference-tool-panel > p, .techplay-reference-section-heading small { margin: 0; color: var(--muted); font-size: 12px; }
.techplay-reference-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.techplay-reference-search-row, .techplay-reference-inline-form, .techplay-reference-radio-search { display: flex; align-items: center; gap: 8px; min-width: 0; }
.techplay-reference-search-row input, .techplay-reference-inline-form input, .techplay-reference-radio-search input { flex: 1 1 auto; min-width: 0; }
.techplay-reference-search-row .icon-btn { width: 38px; min-width: 38px; height: 38px; color: var(--blue); }
.techplay-reference-count { color: var(--muted); font-size: 11px; }
.techplay-reference-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.techplay-reference-create-form { display: grid; gap: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--blue) 35%, var(--line)); border-radius: 9px; }
.techplay-reference-create-form > .btn { justify-self: end; }
.techplay-reference-resource-list { display: grid; gap: 9px; }
.techplay-reference-resource { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.techplay-reference-resource-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); border-radius: 9px; color: var(--blue); }
.techplay-reference-resource-copy { display: grid; gap: 3px; min-width: 0; }
.techplay-reference-resource-copy strong, .techplay-reference-resource-copy span, .techplay-reference-resource-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.techplay-reference-resource-copy span, .techplay-reference-resource-copy small { color: var(--muted); font-size: 11px; }
.techplay-reference-resource .actions { display: flex; align-items: center; gap: 6px; }
.techplay-reference-empty, .techplay-reference-status-panel { min-height: 160px; }
.techplay-reference-status-panel { display: grid; place-items: center; align-content: center; gap: 8px; color: var(--muted); text-align: center; }
.techplay-reference-status-panel strong { color: var(--text); }
.techplay-reference-status-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--blue) 38%, var(--line)); border-radius: 12px; color: var(--blue); }
.techplay-reference-note { padding: 10px 12px; border-left: 3px solid var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 8%, var(--surface)); color: var(--muted); font-size: 12px; }
.techplay-reference-file-field { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); cursor: pointer; font-size: 12px; }
.techplay-reference-radio-search { align-items: stretch; flex-wrap: wrap; }
.techplay-reference-radio-search select { min-width: 150px; }
.techplay-reference-radio-results { display: grid; gap: 8px; }
.techplay-reference-radio-result { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.techplay-reference-radio-result > div { display: grid; gap: 3px; }
.techplay-reference-radio-result small { color: var(--muted); }
.techplay-reference-radio-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--brand-primary) 16%, var(--surface)); color: var(--brand-primary); font-size: 18px; }
.techplay-reference-tool-message, .techplay-reference-modal-message { min-height: 18px; color: var(--brand-primary); font-size: 12px; font-weight: 700; }
.techplay-youtube-live-panel { gap: 16px; }
.techplay-youtube-live-create-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 14px; border: 1px dashed color-mix(in srgb, var(--blue) 42%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--blue) 5%, var(--surface)); }
.techplay-youtube-live-url-field { display: grid; gap: 6px; min-width: 0; }
.techplay-youtube-live-url-field > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.techplay-youtube-live-url-field input { width: 100%; }
.techplay-youtube-live-message { min-height: 18px; color: var(--brand-primary); font-size: 12px; font-weight: 700; }
.techplay-youtube-live-message.is-error { color: var(--danger); }
.techplay-youtube-live-list { display: grid; gap: 10px; }
.techplay-youtube-live-card { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.techplay-youtube-live-card-header, .techplay-youtube-live-card-title, .techplay-youtube-live-meta, .techplay-youtube-live-link > div, .techplay-youtube-live-actions { display: flex; align-items: center; }
.techplay-youtube-live-card-header { justify-content: space-between; gap: 12px; }
.techplay-youtube-live-card-title { gap: 10px; min-width: 0; }
.techplay-youtube-live-card-title > div:last-child { display: grid; gap: 3px; min-width: 0; }
.techplay-youtube-live-card-title strong { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.techplay-youtube-live-card-title span, .techplay-youtube-live-meta, .techplay-youtube-live-link label { color: var(--muted); font-size: 11px; }
.techplay-youtube-live-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid color-mix(in srgb, var(--blue) 38%, var(--line)); border-radius: 9px; color: var(--blue); }
.techplay-youtube-live-icon .icon { width: 18px; height: 18px; }
.techplay-youtube-live-status { padding: 4px 8px; border: 1px solid color-mix(in srgb, var(--brand-primary) 45%, var(--line)); border-radius: 999px; color: var(--brand-primary); font-size: 11px; font-weight: 700; white-space: nowrap; }
.techplay-youtube-live-status.is-muted { border-color: var(--line); color: var(--muted); }
.techplay-youtube-live-meta { flex-wrap: wrap; gap: 6px 18px; }
.techplay-youtube-live-link { display: grid; gap: 6px; }
.techplay-youtube-live-link > div { gap: 8px; min-width: 0; }
.techplay-youtube-live-link input { min-width: 0; flex: 1 1 auto; }
.techplay-youtube-live-copy { position: relative; display: inline-flex; align-items: center; }
.techplay-youtube-live-copy-feedback { position: absolute; left: calc(100% + 6px); color: var(--brand-primary); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; white-space: nowrap; }
.techplay-youtube-live-copy-feedback.is-visible { opacity: 1; transform: translateX(0); }
.techplay-youtube-live-actions { justify-content: flex-end; gap: 6px; }
.techplay-youtube-live-empty { min-height: 140px; }
.techplay-reference-preview-card { display: grid; gap: 8px; }
.techplay-reference-preview-card span { color: var(--muted); font-size: 12px; }
.techplay-reference-preview-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--blue); }
@media (max-width: 760px) { .techplay-reference-heading { flex-wrap: wrap; } .techplay-reference-quick-actions { width: 100%; justify-content: flex-start; margin-left: 0; } .techplay-reference-form-grid { grid-template-columns: 1fr; } .techplay-reference-choice-grid { grid-template-columns: 1fr; } .techplay-reference-radio-search { display: grid; grid-template-columns: 1fr; } .techplay-reference-radio-search select { width: 100%; } .techplay-reference-resource { grid-template-columns: auto minmax(0, 1fr); } .techplay-reference-resource .actions { grid-column: 2; justify-content: flex-start; } .techplay-youtube-live-create-form { grid-template-columns: 1fr; } .techplay-youtube-live-create-form > .btn { justify-self: start; } }

.license-management-form { display: grid; gap: 16px; }
.license-management-note { padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 9px; background: color-mix(in srgb, var(--blue) 7%, var(--surface)); color: var(--muted); font-size: 12px; line-height: 1.45; }
.license-management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.license-management-summary { margin-top: 18px; }
@media (max-width: 620px) { .license-management-grid { grid-template-columns: 1fr; } }

.weather-view-heading { align-items: center; }
.weather-view-actions { display: flex; align-items: end; gap: 10px; margin-left: auto; }
.weather-search-form { display: flex; align-items: end; gap: 8px; }
.weather-search-form label { display: grid; gap: 5px; min-width: 220px; }
.weather-search-form label span, .weather-editor-preview-label { color: var(--muted); font-size: 11px; font-weight: 700; }
.weather-resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; }
.weather-resource-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface-2) 72%, var(--surface)); }
.weather-resource-card.is-attached { border-color: color-mix(in srgb, var(--brand-primary) 54%, var(--line)); }
.weather-resource-preview-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; text-align: left; }
.weather-resource-copy { display: grid; gap: 3px; min-width: 0; }
.weather-resource-copy strong, .weather-resource-copy span, .weather-resource-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-resource-copy span, .weather-resource-copy small { color: var(--muted); font-size: 11px; }
.weather-resource-actions { display: flex; justify-content: flex-end; gap: 6px; }
.weather-preview { position: relative; min-height: 252px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--weather-accent, var(--blue)) 42%, var(--line)); border-radius: 10px; background: radial-gradient(circle at 20% 12%, color-mix(in srgb, var(--weather-accent, var(--blue)) 35%, transparent), transparent 42%), linear-gradient(135deg, #1c5da7, #07182e 72%); color: var(--weather-text, #fff); font-family: Arial, sans-serif; }
.weather-preview-heading, .weather-day-grid { position: absolute; box-sizing: border-box; }
.weather-preview-heading { display: grid; gap: 3px; padding: 9px 11px; border-left: 4px solid var(--weather-accent, var(--brand-primary)); background: rgba(4, 17, 37, .7); }
.weather-preview-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(13px, calc(var(--weather-size, 34px) * .55), 30px); }
.weather-preview-heading span { color: rgba(255,255,255,.74); font-size: 10px; }
.weather-day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.weather-day-card { display: grid; gap: 4px; min-width: 0; padding: 9px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: rgba(5, 22, 46, .72); box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.weather-day-name, .weather-day-condition { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.weather-day-name { font-weight: 800; }
.weather-day-icon { color: var(--weather-accent, #ffd34e); font-size: 22px; line-height: 1; }
.weather-day-condition { color: rgba(255,255,255,.74); }
.weather-day-temperatures { display: grid; gap: 2px; font-size: 11px; }
.weather-day-temperatures strong { color: #ffb26e; }
.weather-day-temperatures span { color: #8bd5ff; }
.weather-preview-source { position: absolute; right: 10px; bottom: 7px; color: rgba(255,255,255,.7); font-size: 9px; }
.weather-preview-empty { display: grid; place-items: center; min-height: 80px; grid-column: 1 / -1; color: rgba(255,255,255,.75); font-size: 11px; }
.weather-editor-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 18px; }
.weather-editor-fields { display: grid; align-content: start; gap: 12px; }
.weather-location-grid, .weather-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.weather-geocode-button { justify-self: start; }
.weather-location-status { min-height: 18px; }
.weather-editor-preview-column { display: grid; align-content: start; gap: 8px; min-width: 0; }
.weather-layout-stage { position: relative; min-height: 330px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--weather-accent) 42%, transparent), transparent 42%), linear-gradient(135deg, #1d6dcc, #07182e 72%); color: var(--weather-text); font-family: Arial, sans-serif; }
.weather-layout-stage.is-dragging { cursor: grabbing; }
.weather-layout-layer { position: absolute; box-sizing: border-box; cursor: grab; user-select: none; }
.weather-layout-layer:active { cursor: grabbing; }
.weather-layout-heading { display: grid; gap: 3px; padding: 10px 12px; border-left: 4px solid var(--weather-accent); background: rgba(4, 17, 37, .76); }
.weather-layout-heading strong { font-size: clamp(16px, calc(var(--weather-size, 34px) * .62), 34px); }
.weather-layout-heading span { color: rgba(255,255,255,.75); font-size: 11px; }
.weather-layout-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.weather-layout-day { display: grid; gap: 3px; padding: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: rgba(5, 22, 46, .72); }
.weather-layout-day strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.weather-layout-day span { color: var(--weather-accent); font-size: 20px; }
.weather-layout-day b { color: #ffb26e; font-size: 12px; }
.weather-layout-day small { color: #8bd5ff; font-size: 10px; }
.weather-editor-modal { display: flex; width: min(1360px, calc(100vw - 24px)); max-height: min(920px, calc(100dvh - 20px)); overflow: hidden; flex-direction: column; }
.weather-editor-modal .modal-body { min-height: 0; overflow: auto; flex: 1 1 auto; }
.weather-editor-modal .modal-footer { flex: 0 0 auto; }
.weather-editor-grid { grid-template-columns: minmax(360px, .88fr) minmax(520px, 1.12fr); align-items: start; }
.weather-editor-preview-column { min-width: 0; }
.weather-layout-stage { min-height: 0; aspect-ratio: 16 / 9; }
.weather-preview-modal { width: min(960px, calc(100vw - 32px)); }
.weather-preview-modal .weather-preview { min-height: min(520px, 58vh); }
@media (max-width: 1100px) { .weather-editor-grid { grid-template-columns: minmax(320px, .85fr) minmax(460px, 1.15fr); } }
@media (max-width: 900px) { .weather-view-actions { width: 100%; margin-left: 0; flex-wrap: wrap; } .weather-view-heading { align-items: flex-start; flex-wrap: wrap; } .weather-editor-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .weather-location-grid, .weather-form-row { grid-template-columns: 1fr; } .weather-search-form { width: 100%; } .weather-search-form label { flex: 1 1 auto; min-width: 0; } .weather-resource-list { grid-template-columns: 1fr; } .weather-day-grid { gap: 4px; } .weather-day-card { padding: 6px; } }
.weather-template-picker { display: grid; gap: 16px; }
.weather-wizard-intro { margin: 0; color: var(--muted); }
.weather-template-picker-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.weather-template-option { position: relative; display: grid; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.weather-template-option:hover, .weather-template-option:focus-visible { border-color: color-mix(in srgb, var(--blue) 72%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--surface-2)); transform: translateY(-1px); }
.weather-template-option.is-selected { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface-2)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-primary) 18%, transparent), 0 0 22px color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.weather-template-option-preview { display: block; min-width: 0; pointer-events: none; }
.weather-template-option-preview .weather-preview { min-height: 170px; aspect-ratio: 16 / 9; border-radius: 8px; }
.weather-template-option-copy { display: grid; gap: 4px; padding: 0 20px 4px 2px; }
.weather-template-option-copy strong { font-size: 15px; }
.weather-template-option-copy small { color: var(--muted); line-height: 1.4; }
.weather-template-option-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; color: #07100a; background: var(--brand-primary); opacity: 0; transform: scale(.72); transition: opacity .18s ease, transform .18s ease; }
.weather-template-option-check .icon { width: 14px; height: 14px; }
.weather-template-option.is-selected .weather-template-option-check { opacity: 1; transform: scale(1); }
.weather-weekly-heading, .weather-clima-heading { position: absolute; box-sizing: border-box; }
.weather-weekly-heading { display: grid; gap: 3px; padding: 9px 11px; border-left: 4px solid var(--weather-accent); background: rgba(4, 17, 37, .7); }
.weather-weekly-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(13px, calc(var(--weather-size, 34px) * .55), 30px); }
.weather-weekly-heading span { color: rgba(255,255,255,.74); font-size: 10px; }
.weather-weekly-board { display: grid; grid-template-columns: minmax(92px, .44fr) minmax(0, 1.56fr); gap: 8px; align-items: stretch; }
.weather-weekly-current { display: grid; place-items: center; min-width: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(11, 33, 58, .78); }
.weather-current-day { display: grid; justify-items: center; gap: 2px; min-width: 0; padding: 8px; text-align: center; }
.weather-current-day small { overflow: hidden; max-width: 100%; color: rgba(255,255,255,.8); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.weather-current-day strong { font-size: clamp(25px, calc(var(--weather-size, 34px) * .9), 52px); line-height: 1; }
.weather-current-day span { color: #8bd5ff; font-size: 11px; }
.weather-current-day i { color: var(--weather-accent); font-size: 28px; font-style: normal; line-height: 1; }
.weather-weekly-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.weather-weekly-days .weather-day-card { min-width: 0; }
.weather-template-clima { background: radial-gradient(circle at 75% 18%, rgba(38, 143, 159, .42), transparent 28%), radial-gradient(circle at 15% 90%, rgba(10, 75, 93, .65), transparent 34%), linear-gradient(145deg, #061e2e 0%, #062d3d 52%, #02131e 100%); }
.weather-clima-heading { display: grid; justify-items: center; gap: 2px; text-align: center; }
.weather-clima-heading strong { letter-spacing: .12em; font-size: clamp(12px, calc(var(--weather-size, 34px) * .35), 22px); }
.weather-clima-heading span { color: rgba(255,255,255,.75); font-size: 10px; text-transform: uppercase; }
.weather-clima-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(112px, .55fr); gap: 8px; align-items: stretch; }
.weather-clima-now { position: relative; display: grid; align-content: center; gap: 3px; min-width: 0; padding: 12px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(103, 194, 193, .22); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.weather-clima-now small { font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.weather-clima-now strong { font-size: clamp(30px, calc(var(--weather-size, 34px) * 1.28), 68px); line-height: 1; }
.weather-clima-now i { position: absolute; right: 12px; bottom: 10px; color: var(--weather-accent); font-size: 34px; font-style: normal; }
.weather-clima-days { display: grid; gap: 6px; min-width: 0; }
.weather-compact-day { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 5px; align-content: center; padding: 7px 9px; border-radius: 7px; background: rgba(12, 133, 95, .68); }
.weather-compact-day span { overflow: hidden; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.weather-compact-day b { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 12px; }
.weather-compact-day small { color: rgba(255,255,255,.75); font-size: 9px; }
.weather-template-weekly .weather-layout-days, .weather-template-clima .weather-layout-days { display: grid; }
.weather-template-weekly .weather-weekly-board, .weather-template-clima .weather-clima-board { position: absolute; box-sizing: border-box; }
@media (max-width: 900px) { .weather-template-picker-grid { grid-template-columns: 1fr; } .weather-template-option { grid-template-columns: minmax(180px, .75fr) minmax(0, 1fr); align-items: center; } }

/* Modelos de previsão baseados nas referências enviadas: painel azul e painel glass. */
.weather-template-picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weather-template-blue-horizontal, .weather-template-blue-vertical { background: radial-gradient(circle at 50% 42%, rgba(49, 184, 236, .84), transparent 34%), linear-gradient(145deg, #13a4d5 0%, #176bc0 49%, #0d286e 100%); }
.weather-blue-heading { position: absolute; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; box-sizing: border-box; padding: 7px 10px; color: var(--weather-text); }
.weather-blue-heading > div { display: grid; gap: 3px; min-width: 0; }
.weather-blue-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(15px, calc(var(--weather-size, 34px) * .62), 34px); }
.weather-blue-heading span { font-size: clamp(10px, calc(var(--weather-size, 34px) * .34), 17px); }
.weather-blue-heading > b { flex: 0 0 auto; font-size: clamp(22px, calc(var(--weather-size, 34px) * 1.18), 58px); font-weight: 400; line-height: .95; white-space: nowrap; }
.weather-blue-details { position: absolute; left: 5%; top: 26%; display: grid; gap: 7px; max-width: 31%; color: rgba(255,255,255,.86); font-size: clamp(9px, calc(var(--weather-size, 34px) * .27), 14px); }
.weather-blue-details span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-blue-hero-icon { position: absolute; left: 47%; top: 12%; color: #fff1a6; font-size: clamp(42px, calc(var(--weather-size, 34px) * 2.35), 118px); line-height: 1; filter: drop-shadow(0 6px 10px rgba(255, 214, 46, .4)); }
.weather-blue-days { position: absolute; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; box-sizing: border-box; }
.weather-sky-day { display: grid; justify-items: center; gap: 4px; min-width: 0; padding: 7px 3px; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; background: rgba(30, 80, 157, .66); box-shadow: 0 7px 15px rgba(0, 21, 81, .15); text-align: center; }
.weather-sky-day i { color: #ffe15a; font-size: clamp(19px, calc(var(--weather-size, 34px) * .7), 36px); font-style: normal; line-height: 1; }
.weather-sky-day span { color: rgba(255,255,255,.86); font-size: clamp(9px, calc(var(--weather-size, 34px) * .28), 14px); letter-spacing: .08em; }
.weather-sky-day b { font-size: clamp(10px, calc(var(--weather-size, 34px) * .35), 18px); font-weight: 500; white-space: nowrap; }
.weather-template-blue-vertical { aspect-ratio: 9 / 16 !important; min-height: 340px !important; }
.weather-template-blue-vertical .weather-blue-heading { left: 5% !important; top: 4% !important; width: 90% !important; display: grid; gap: 5px; }
.weather-template-blue-vertical .weather-blue-heading { justify-items: center; text-align: center; }
.weather-template-blue-vertical .weather-blue-heading > div { justify-items: center; width: 100%; }
.weather-template-blue-vertical .weather-blue-heading > b { justify-self: center; }
.weather-template-blue-vertical .weather-blue-details { left: 8%; top: 24%; max-width: 84%; }
.weather-template-blue-vertical .weather-blue-details { justify-items: center; width: 84%; text-align: center; }
.weather-template-blue-vertical .weather-blue-hero-icon { left: 50%; top: 33%; transform: translateX(-50%); }
.weather-template-blue-vertical .weather-blue-days { left: 7% !important; top: 53% !important; width: 86% !important; grid-template-columns: 1fr; gap: 4px; }
.weather-template-blue-vertical .weather-sky-day { grid-template-columns: 34px minmax(0, 1fr) auto; justify-items: center; align-items: center; padding: 5px 8px; text-align: center; }
.weather-template-blue-vertical .weather-sky-day i { grid-row: 1 / span 2; }
.weather-template-blue-vertical .weather-sky-day span { letter-spacing: .04em; }
.weather-template-blue-vertical .weather-sky-day b { justify-self: end; }
.weather-template-glass-horizontal, .weather-template-glass-vertical { background: radial-gradient(circle at 50% 42%, rgba(250, 211, 202, .28), transparent 45%), linear-gradient(145deg, #adb0d0 0%, #b9c0dd 48%, #d5b6a6 100%); }
.weather-glass-heading { position: absolute; display: flex; align-items: baseline; gap: 18px; box-sizing: border-box; padding: 8px 14px; color: #f7fbff; }
.weather-glass-heading strong { font-size: clamp(13px, calc(var(--weather-size, 34px) * .43), 23px); letter-spacing: .03em; }
.weather-glass-heading span { font-size: clamp(10px, calc(var(--weather-size, 34px) * .32), 16px); }
.weather-glass-board { position: absolute; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; box-sizing: border-box; padding: 13px 8px 10px; border: 1px solid rgba(168, 232, 255, .6); border-radius: 17px; background: linear-gradient(135deg, rgba(67, 152, 197, .68), rgba(71, 120, 172, .58)); box-shadow: inset 0 1px 16px rgba(255,255,255,.18), 0 12px 28px rgba(51, 74, 129, .22); backdrop-filter: blur(10px); }
.weather-glass-day { display: grid; grid-template-rows: auto auto minmax(24px, 1fr) auto auto; justify-items: center; gap: 4px; min-width: 0; padding: 3px 5px; border-right: 1px solid rgba(225, 246, 255, .22); text-align: center; }
.weather-glass-day:last-child { border-right: 0; }
.weather-glass-day strong { font-size: clamp(9px, calc(var(--weather-size, 34px) * .3), 15px); }
.weather-glass-day small { color: rgba(255,255,255,.8); font-size: clamp(8px, calc(var(--weather-size, 34px) * .23), 12px); }
.weather-glass-day i { align-self: center; color: #ffe01c; font-size: clamp(22px, calc(var(--weather-size, 34px) * .86), 45px); font-style: normal; line-height: 1; }
.weather-glass-day em { overflow: hidden; max-width: 100%; color: rgba(255,255,255,.82); font-size: clamp(7px, calc(var(--weather-size, 34px) * .2), 11px); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.weather-glass-day b { font-size: clamp(16px, calc(var(--weather-size, 34px) * .66), 32px); line-height: 1; }
.weather-glass-day span { color: rgba(235,248,255,.78); font-size: clamp(10px, calc(var(--weather-size, 34px) * .34), 17px); }
.weather-template-glass-vertical { aspect-ratio: 9 / 16 !important; min-height: 340px !important; }
.weather-template-glass-vertical .weather-glass-heading { left: 6% !important; top: 4% !important; width: 88% !important; display: grid; gap: 4px; }
.weather-template-glass-vertical .weather-glass-board { left: 6% !important; top: 22% !important; width: 88% !important; height: 70%; grid-template-columns: 1fr; grid-template-rows: repeat(7, minmax(0, 1fr)); padding: 8px 10px; }
.weather-template-glass-vertical .weather-glass-day { grid-template-columns: 42px 52px minmax(32px, 1fr) minmax(0, 1fr) auto auto; grid-template-rows: 1fr; justify-items: start; align-items: center; border-right: 0; border-bottom: 1px solid rgba(225, 246, 255, .22); text-align: left; }
.weather-template-glass-vertical .weather-glass-day:last-child { border-bottom: 0; }
.weather-template-glass-vertical .weather-glass-day i { justify-self: center; }
.weather-template-glass-vertical .weather-glass-day em { justify-self: start; }
.weather-template-glass-vertical .weather-glass-day b, .weather-template-glass-vertical .weather-glass-day span { justify-self: end; }
.weather-editor-stage { position: relative; overflow: hidden; }
.weather-editor-live-preview { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.weather-editor-live-preview > .weather-preview { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; aspect-ratio: auto !important; }
.weather-editor-stage-vertical, .weather-editor-stage-blue-vertical, .weather-editor-stage-glass-vertical { width: min(100%, 420px); aspect-ratio: 9 / 16 !important; min-height: 0; margin-inline: auto; }
.weather-editor-stage-blue-vertical .weather-editor-live-preview > .weather-preview, .weather-editor-stage-glass-vertical .weather-editor-live-preview > .weather-preview { width: 100%; height: 100%; }
.weather-editor-drag-layer { position: absolute; z-index: 3; box-sizing: border-box; min-height: 20px; border: 1px dashed transparent; cursor: grab; touch-action: none; }
.weather-editor-drag-layer:hover, .weather-editor-stage.is-dragging .weather-editor-drag-layer { border-color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.weather-editor-drag-layer:active { cursor: grabbing; }
.weather-editor-drag-heading { height: 22%; }
.weather-editor-drag-forecast { height: 34%; }
.weather-template-option-preview .weather-template-blue-vertical, .weather-template-option-preview .weather-template-glass-vertical { max-height: 360px; }
@media (max-width: 900px) { .weather-template-picker-grid { grid-template-columns: 1fr; } }

.weather-blue-heading strong, .weather-glass-heading strong { color: var(--weather-title-color, var(--weather-text)); }
.weather-blue-heading span, .weather-glass-heading span, .weather-preview-source { color: var(--weather-source-color, var(--weather-text)); }
.weather-blue-heading > b { color: var(--weather-title-color, var(--weather-text)); }
.weather-location-picker { display: grid; gap: 8px; }
.weather-location-search-row { display: flex; align-items: stretch; gap: 8px; }
.weather-location-search-row input { min-width: 0; flex: 1 1 220px; }
.weather-location-search-row .btn { flex: 0 0 auto; white-space: nowrap; }
.weather-location-results { display: grid; gap: 6px; max-height: 190px; overflow: auto; }
.weather-location-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 82%, var(--blue)); color: var(--text); text-align: left; cursor: pointer; }
.weather-location-option:hover, .weather-location-option:focus-visible { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 10%, var(--surface-2)); }
.weather-location-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-location-option span { justify-self: end; color: var(--brand-primary); font-size: 11px; font-weight: 800; }
.weather-location-option small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.weather-color-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: start; }
.weather-color-control { width: 100%; box-sizing: border-box; }
@media (max-width: 720px) { .weather-location-search-row { display: grid; grid-template-columns: 1fr 1fr; } .weather-location-search-row input { grid-column: 1 / -1; } .weather-location-search-row .btn { min-width: 0; } .weather-color-row { grid-template-columns: 1fr; } }

.news-template-preview-vertical { width: min(100%, 170px); max-height: 300px; margin-inline: auto; aspect-ratio: 9 / 16; }
.news-template-preview-vertical .news-template-art { padding: 28px 12px 12px 37px; }
.news-template-preview-vertical .news-template-bar, .news-template-preview-vertical .news-template-rail { width: 14%; }
.news-template-preview-vertical .news-template-rail { display: grid; align-content: start; padding: 12% 0 7%; }
.news-template-preview-vertical .news-template-globe { width: 58%; }
.news-template-preview-vertical .news-template-date { margin-top: auto; }
.news-template-preview-vertical .news-template-logo { top: 4%; right: 6%; width: 24%; }
.news-template-preview-vertical .news-template-source { right: 6%; bottom: 24%; max-width: 76%; font-size: clamp(6px, 1.7vw, 10px); }
.news-template-preview-vertical .news-template-art strong { right: 6%; bottom: 8%; left: 22%; font-size: clamp(12px, 4.5vw, 24px); }
.news-template-preview-vertical .news-template-art small { bottom: 3%; left: 22%; font-size: 7px; }
.news-template-preview-vertical .news-template-qr { top: 16%; right: 6%; bottom: auto; left: auto; width: 26%; }
.news-template-preview[data-news-template-key="breaking-vertical"] .news-template-art { background: linear-gradient(160deg, #52303a 0%, #281b2b 48%, #090b13 100%); }
.news-template-preview[data-news-template-key="clean-vertical"] .news-template-art { background: linear-gradient(160deg, #254b63 0%, #152d43 48%, #07101b 100%); }
.news-template-preview[data-news-template-key="amber-vertical"] .news-template-art { background: linear-gradient(160deg, #55462a 0%, #302817 48%, #0c0b08 100%); }

.news-composer-preview-vertical { aspect-ratio: 9 / 16; }
.news-composer-preview-vertical .news-preview-accent, .news-composer-preview-vertical .news-preview-rail { width: 13.3%; }
.news-composer-preview-vertical .news-preview-globe { top: 3%; left: 3.6%; width: 7.8%; }
.news-composer-preview-vertical .news-preview-date { bottom: 4%; width: 13.3%; }
.news-composer-preview-vertical .news-preview-date-month { font-size: clamp(8px, 1.45cqw, 18px); }
.news-composer-preview-vertical .news-preview-date-day { font-size: clamp(13px, 2.35cqw, 30px); }
.news-composer-preview-vertical .news-preview-qr { top: 8%; right: 4%; bottom: auto; left: auto; }
.news-composer-preview-vertical .news-preview-logo { top: 2%; right: 4%; }
.news-composer-preview-vertical .news-preview-source { right: 4%; bottom: 24%; max-width: 86%; }
.news-composer-preview-vertical .news-preview-title { right: 4%; bottom: 4%; left: 21%; width: auto; max-width: none; }
.news-composer-preview-vertical .news-preview-background { background: #0b1320; }
.news-composer-preview-vertical .news-preview-background img { height: 42%; object-fit: cover; object-position: center top; background: #0b1320; }
.news-composer-preview-vertical .news-preview-shade { top: 42%; background: linear-gradient(180deg, transparent, rgba(4, 8, 15, .82) 13%, rgba(4, 8, 15, .97)); }
.news-composer-preview-vertical .news-preview-accent { top: 42%; right: 0; bottom: auto; left: 0; z-index: 3; width: 100%; height: 8%; }
.news-composer-preview-vertical .news-preview-rail { display: none; }
.news-composer-preview-vertical .news-preview-copy { z-index: 4; }
.news-composer-preview-vertical .news-preview-source, .news-composer-preview-vertical .news-preview-title { z-index: 5; }
.news-composer-preview-vertical .news-preview-globe { left: 3%; }
.news-composer-preview-vertical .news-preview-date { left: 3%; width: 12%; }
.news-composer-preview-vertical .news-preview-source { right: 8%; bottom: 31%; text-align: center; }
.news-composer-preview-vertical .news-preview-title { right: 8%; bottom: 8%; left: 18%; width: auto; max-width: none; font-size: clamp(16px, 5cqw, 32px); line-height: 1.14; text-align: center; }
.news-live-preview-vertical { display: grid; justify-content: center; }
.news-wizard-modal .news-builder-preview .news-live-preview-vertical { display: block; width: 100% !important; min-width: 0; }
.news-live-preview-vertical .news-composer-preview { width: min(100%, 292px); height: auto !important; aspect-ratio: 9 / 16 !important; }
.news-wizard-modal .news-builder-preview .news-live-preview-vertical .news-composer-preview { display: block; width: auto !important; max-width: 100% !important; height: min(48vh, 460px) !important; aspect-ratio: 9 / 16 !important; margin-inline: auto; }
.news-rss-preview-stage .news-composer-preview-vertical { width: min(100%, 620px); margin-inline: auto; }
.news-rss-preview-stage .news-composer-preview-vertical { width: min(100%, 420px); max-height: min(72vh, 720px); margin-inline: auto; }
@media (max-width: 700px) { .news-live-preview-vertical .news-composer-preview { width: min(100%, 250px); } .news-rss-preview-stage .news-composer-preview-vertical { width: min(100%, 420px); } }

.news-template-family-auto-sport .news-template-art { background: linear-gradient(145deg, #36552f 0%, #152319 54%, #080b0a 100%); }
.news-template-family-auto-sport .news-template-art::before { inset: 64% 0 0; background: rgba(3, 6, 7, .86); }
.news-template-family-auto-sport .news-template-bar { width: 3%; background: #FFE34F; }
.news-template-family-auto-sport .news-template-rail, .news-template-family-auto-sport .news-template-globe, .news-template-family-auto-sport .news-template-date { display: none; }
.news-template-family-auto-sport .news-template-logo { top: auto; right: 5%; bottom: 7%; width: 18%; border-radius: 50%; background: #6F8FBF; color: #18243A; }
.news-template-family-auto-sport .news-template-source { right: auto; bottom: 30%; left: 7%; padding: 0; background: transparent; color: #fff; font-size: clamp(7px, 1.1vw, 12px); text-align: left; }
.news-template-family-auto-sport .news-template-art strong { right: 7%; bottom: 11%; left: 7%; font-size: clamp(13px, 2.2vw, 27px); }
.news-template-family-auto-sport .news-template-art small { display: none; }
.news-template-family-auto-sport .news-template-qr { top: 6%; right: 6%; bottom: auto; left: auto; width: 17%; }
.news-template-family-veja .news-template-art { background: linear-gradient(145deg, #21162d 0%, #070609 60%, #000 100%); }
.news-template-family-veja .news-template-art::before { inset: 61% 0 0; background: #030303; }
.news-template-family-veja .news-template-bar { left: 1%; top: auto; bottom: 4%; width: 98%; height: 2%; background: #E96FBE; }
.news-template-family-veja .news-template-rail, .news-template-family-veja .news-template-globe, .news-template-family-veja .news-template-date { display: none; }
.news-template-family-veja .news-template-logo { top: auto; right: 6%; bottom: 10%; width: 17%; border-radius: 50%; background: #EE302B; color: #fff; font-family: Georgia, serif; font-size: 11px; }
.news-template-family-veja .news-template-source { right: auto; bottom: 5%; left: 7%; padding: 0; background: transparent; color: rgba(255,255,255,.8); font-size: clamp(6px, .8vw, 9px); text-align: left; }
.news-template-family-veja .news-template-art strong { right: 7%; bottom: 18%; left: 7%; font-size: clamp(13px, 2.1vw, 25px); }
.news-template-family-veja .news-template-art small { display: none; }
.news-template-family-veja .news-template-qr { top: 6%; right: 6%; bottom: auto; left: auto; width: 17%; }

.news-template-family-auto-sport .news-special-band, .news-template-family-veja .news-special-band { position: absolute; right: 0; bottom: 0; left: 0; height: 30%; background: rgba(3, 6, 7, .84); pointer-events: none; }
.news-template-family-auto-sport .news-special-accent { position: absolute; bottom: 0; left: 0; width: 2.5%; height: 30%; background: var(--news-accent, #FFE34F); pointer-events: none; }
.news-template-family-veja .news-special-band-veja { height: 36%; background: rgba(0, 0, 0, .94); }
.news-template-family-veja .news-special-pink-line { position: absolute; right: 1%; bottom: 2%; left: 1%; height: 1%; background: var(--news-accent, #E96FBE); pointer-events: none; }
.news-template-family-auto-sport .news-preview-rail, .news-template-family-auto-sport .news-preview-globe, .news-template-family-auto-sport .news-preview-date, .news-template-family-veja .news-preview-rail, .news-template-family-veja .news-preview-globe, .news-template-family-veja .news-preview-date { display: none; }
.news-template-family-auto-sport .news-preview-qr, .news-template-family-veja .news-preview-qr { top: 3%; right: 4%; bottom: auto; left: auto; }
.news-template-family-auto-sport .news-preview-title { right: 5%; bottom: 5%; left: 4%; width: auto; max-width: none; }
.news-template-family-auto-sport .news-special-category { right: auto; bottom: 27%; left: 4%; padding: 0; color: var(--news-source-color, #fff); font-size: clamp(10px, 1.3cqw, 20px); text-align: left; }
.news-template-family-auto-sport .news-preview-logo, .news-template-family-auto-sport .news-special-brand { top: auto; right: 3%; bottom: 4%; width: clamp(58px, 12%, 118px); height: auto; aspect-ratio: 1; }
.news-template-family-auto-sport .news-preview-logo { border-radius: 50%; background: rgba(111, 143, 191, .96); }
.news-special-brand { position: absolute; z-index: 3; display: grid; place-content: center; justify-items: center; overflow: hidden; border-radius: 50%; text-align: center; pointer-events: none; }
.news-special-brand-auto { color: #18243A; background: #6F8FBF; box-shadow: inset 0 0 0 2px rgba(201, 216, 241, .72); font-family: Arial, sans-serif; line-height: .86; }
.news-special-brand-auto strong { font-size: 23%; }
.news-special-brand-auto span { color: #E9F0FF; font-size: 16%; font-weight: 900; }
.news-template-family-veja .news-preview-title { right: 5%; bottom: 12%; left: 4%; width: auto; max-width: none; }
.news-template-family-veja .news-special-published { position: absolute; right: auto; bottom: 5%; left: 4%; color: var(--news-source-color, #fff); font-size: clamp(8px, 1cqw, 14px); }
.news-template-family-veja .news-preview-logo, .news-template-family-veja .news-special-brand { top: auto; right: 4%; bottom: 8%; width: clamp(58px, 12%, 118px); height: auto; aspect-ratio: 1; }
.news-template-family-veja .news-preview-logo { border-radius: 50%; background: #EE302B; }
.news-special-brand-veja { color: #fff; background: #EE302B; font-family: Georgia, serif; font-size: clamp(21px, 4cqw, 44px); }
.news-template-family-auto-sport .news-preview-title, .news-template-family-veja .news-preview-title { text-shadow: 0 2px 5px rgba(0,0,0,.78); }
.news-template-family-auto-sport.news-composer-preview-vertical .news-special-band, .news-template-family-veja.news-composer-preview-vertical .news-special-band { height: 37%; }
.news-template-family-auto-sport.news-composer-preview-vertical .news-special-accent { height: 37%; width: 4%; }
.news-template-family-auto-sport.news-composer-preview-vertical .news-preview-title { right: 7%; bottom: 6%; left: 8%; }
.news-template-family-auto-sport.news-composer-preview-vertical .news-special-category { bottom: 34%; left: 8%; }
.news-template-family-auto-sport.news-composer-preview-vertical .news-preview-logo, .news-template-family-auto-sport.news-composer-preview-vertical .news-special-brand { right: 7%; bottom: 6%; width: 23%; }
.news-template-family-veja.news-composer-preview-vertical .news-special-band { height: 39%; }
.news-template-family-veja.news-composer-preview-vertical .news-special-pink-line { right: 4%; bottom: 3%; left: 4%; height: 1.2%; }
.news-template-family-veja.news-composer-preview-vertical .news-preview-title { right: 7%; bottom: 13%; left: 7%; }
.news-template-family-veja.news-composer-preview-vertical .news-special-published { bottom: 6%; left: 7%; }
.news-template-family-veja.news-composer-preview-vertical .news-preview-logo, .news-template-family-veja.news-composer-preview-vertical .news-special-brand { right: 7%; bottom: 8%; width: 23%; }
