@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/Roboto-Regular.ttf') format('truetype'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/Roboto-Medium.ttf') format('truetype'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/Roboto-SemiBold.ttf') format('truetype'); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/Roboto-Bold.ttf') format('truetype'); }

:root {
  --canvas: #f4f7fb; --panel: #ffffff; --ink: #172235; --muted: #718096; --line: #e4eaf2; --line-strong: #d7e0eb; --navy: #111c2e; --accent: #2a6df4; --accent-dark: #1d55c7; --green: #1b9b73; --red: #c44555; --shadow-soft: 0 8px 24px rgba(24, 45, 78, .055); --shadow-lifted: 0 18px 48px rgba(24, 45, 78, .12); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: 0 0 auto; }

.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, .88fr); }
.login-brand { background: linear-gradient(145deg, #111c2e 0%, #1c2e4b 100%); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 7vw 42px; }
.login-brand h1 { max-width: 540px; margin: 8px 0 0; font: 700 clamp(2.2rem, 4.1vw, 4.8rem)/1.03 "Space Grotesk", Inter, sans-serif; letter-spacing: 0; }
.login-brand p { max-width: 480px; color: rgba(255,255,255,.72); line-height: 1.7; font-size: 16px; }
.login-panel { background: var(--panel); display: flex; align-items: center; justify-content: center; padding: 34px; }
.login-card { width: min(430px, 100%); }.login-card h2 { margin: 7px 0 10px; font: 700 32px/1.15 "Space Grotesk", Inter, sans-serif; }.login-card > p { color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.login-foot { color: rgba(255,255,255,.68); font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }.remember-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0 24px; }.remember-row label { display: inline-flex; align-items: center; gap: 7px; }.login-help { color: #9aa6b5; font-size: 11px; line-height: 1.5; text-align: center; margin-top: 18px; }

.app-shell { min-height: 100vh; }.sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 5; padding: 24px 15px 16px; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--navy) 0%, #0f1929 100%); color: #d7e2f2; box-shadow: 10px 0 30px rgba(10, 22, 40, .08); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; }.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; background: #2a6df4; color: #fff; box-shadow: 0 8px 18px rgba(42,109,244,.24); }.brand-copy { min-width: 0; display: grid; gap: 3px; }.brand-copy strong { color: #fff; font: 700 15px/1.1 "Space Grotesk", Inter, sans-serif; letter-spacing: .01em; }.brand-copy small { color: #8798b0; font-size: 10px; }
.sidebar-context { margin: 0 6px 18px; padding: 9px 10px; display: flex; align-items: center; gap: 8px; color: #a8b8ce; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; font-size: 11px; }.context-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #3dc997; box-shadow: 0 0 0 4px rgba(61,201,151,.12); }
.nav-list { overflow: auto; padding-right: 2px; }.nav-group + .nav-group { margin-top: 15px; }.nav-label { margin: 0 10px 7px; color: #6f819a; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }.nav-link { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 11px; position: relative; padding: 0 11px; border: 0; border-radius: 8px; background: transparent; color: #aab9cd; text-align: left; font-size: 12px; transition: .16s ease; }.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.09); }.nav-link.active { box-shadow: inset 3px 0 0 #80a8ff; }.nav-link .icon { color: #7f91aa; }.nav-link.active .icon, .nav-link:hover .icon { color: #a9c6ff; }.nav-active-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #80a8ff; }
.sidebar-footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.09); }.profile-chip { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 4px; }.profile-text { min-width: 0; display: grid; gap: 3px; }.profile-text strong, .profile-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.profile-text strong { color: #fff; font-size: 12px; }.profile-text small { color: #8597ad; font-size: 10px; }
.main-shell { min-height: 100vh; margin-left: 264px; }.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 42px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--line); }.topbar-heading { display: flex; align-items: center; gap: 12px; }.breadcrumb { color: #8b98a9; font-size: 11px; margin-bottom: 6px; }.breadcrumb span { padding: 0 7px; color: #c1cbd7; }.topbar h1 { margin: 0; font: 700 22px/1.1 "Space Grotesk", Inter, sans-serif; }.topbar-actions, .topbar-user, .button-row { display: flex; align-items: center; gap: 10px; }.topbar-user { color: #5f6f83; font-size: 12px; padding-left: 4px; }.system-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #dfe9e7; border-radius: 999px; background: #f5fbf8; color: #278164; font-size: 10px; font-weight: 700; }.page-content { max-width: 1640px; padding: 34px 42px 64px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 24px; }.page-head h2 { margin: 0 0 7px; font: 700 28px/1.1 "Space Grotesk", Inter, sans-serif; }.page-head p { margin: 0; max-width: 720px; color: var(--muted); line-height: 1.55; font-size: 13px; }.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }.hero-eyebrow { color: #80a8ff; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 0; border-radius: 8px; background: #edf3ff; color: var(--accent-dark); font-size: 12px; font-weight: 750; white-space: nowrap; transition: .16s ease; }.btn:hover { transform: translateY(-1px); filter: brightness(.98); }.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(42,109,244,.17); }.btn.primary:hover { background: var(--accent-dark); }.btn.secondary { background: #fff; border: 1px solid var(--line-strong); color: #52667f; }.btn.danger { background: #fff0f1; color: var(--red); }.btn.small { min-height: 36px; padding: 8px 11px; font-size: 11px; }.btn.wide { width: 100%; }.icon-button { width: 36px; height: 36px; min-width: 36px; display: inline-grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #6d8098; transition: .16s ease; }.icon-button:hover { background: #f1f6ff; color: var(--accent); transform: translateY(-1px); }.icon-button.danger:hover { background: #fff0f1; color: var(--red); }.icon-button.subtle { color: #92a5bd; }.mobile-menu { display: none; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }.metric, .panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-soft); }.metric { padding: 19px 20px; }.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }.metric-icon.blue { color: #356dde; background: #edf3ff; }.metric-icon.green { color: #188a67; background: #e8f8f1; }.metric-icon.amber { color: #ad7410; background: #fff4dd; }.metric-icon.pink { color: #b14578; background: #fff0f6; }.metric-value { margin-top: 17px; color: var(--ink); font: 700 28px/1 "Space Grotesk", Inter, sans-serif; }.metric-note { margin-top: 8px; color: #8a98aa; font-size: 11px; }.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }.panel { overflow: hidden; }.panel-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #eef2f6; }.panel-head h3 { margin: 0; font: 700 15px/1.25 "Space Grotesk", Inter, sans-serif; }.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.panel-body { padding: 22px; }
.table-wrap { overflow: auto; }.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }.data-table th { height: 44px; padding: 12px 22px; background: #f8fafc; color: #8795a8; border-bottom: 1px solid var(--line); font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .09em; white-space: nowrap; }.data-table td { min-height: 64px; padding: 14px 22px; border-bottom: 1px solid #eef2f6; color: #526176; font-size: 12px; vertical-align: middle; }.data-table tbody tr { transition: background .14s ease; }.data-table tbody tr:hover { background: #fbfdff; }.data-table tbody tr:last-child td { border-bottom: 0; }.data-table td strong { display: block; color: var(--ink); font-size: 12px; line-height: 1.35; }.data-table td small { display: block; margin-top: 4px; color: #9aa6b5; font-size: 10px; line-height: 1.35; }.cell-title { min-width: 180px; display: flex; align-items: center; gap: 9px; }.cell-title > span:last-child { min-width: 0; }.table-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 8px; }.table-icon.blue { color: #356dde; background: #edf3ff; }.table-actions { white-space: nowrap; }.table-actions .icon-button { display: inline-grid; }.client-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.status-badge { min-height: 25px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; white-space: nowrap; }.status-badge.ok { color: #18825f; background: #e8f8f1; }.status-badge.warn { color: #a36b11; background: #fff4dd; }.status-badge.bad { color: #ad3c4c; background: #fff0f1; }.status-badge .status-dot { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }.capacity-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border-radius: 999px; background: #eaf8f1; color: #18825f; font-size: 10px; font-weight: 700; white-space: nowrap; }.capacity-pill.full { background: #fff1dc; color: #a96608; }.tag { display: inline-flex; padding: 4px 7px; margin: 2px; border: 1px solid #dbe5f1; border-radius: 5px; color: #647a96; background: #f8fafc; font-size: 10px; }.token-preview, .technical-id, .code-block code { color: #375274; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }.technical-id { color: #8e9caf !important; font-size: 10px !important; }
.empty-state { min-height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8997a8; text-align: center; }.empty-state strong { color: #728197; font-size: 12px; font-weight: 600; }.empty-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #8aa0bc; background: #f1f5fa; }.notice { padding: 12px 14px; border: 1px solid #dce8fb; border-radius: 9px; color: #577097; background: #f5f8ff; font-size: 11px; line-height: 1.55; }.notice strong { color: #2d5cae; }.notice-stack { margin-bottom: 20px; }
.readout { min-height: 43px; display: grid; align-content: center; gap: 3px; padding: 9px 12px; border: 1px solid #e1e8f1; border-radius: 8px; background: #f8fafc; color: #718096; font-size: 10px; }.readout strong { color: var(--ink); font-size: 12px; }.readout small { color: #9aa6b5; font-size: 10px; font-weight: 500; }.readout.full { grid-column: 1 / -1; }
.help-search { min-width: min(320px, 100%); }.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }.help-card, .announcement-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-soft); }.help-card-top, .announcement-top, .announcement-meta, .help-card-footer, .card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.help-card h3, .announcement-card h3 { margin: 16px 0 8px; font: 700 16px/1.25 "Space Grotesk", Inter, sans-serif; }.help-card p, .announcement-card p { min-height: 54px; margin: 0; color: #66778e; font-size: 12px; line-height: 1.65; }.help-card-footer { margin-top: 18px; padding-top: 15px; border-top: 1px solid #eef2f6; }.help-card-footer small, .announcement-meta { color: #8a98aa; font-size: 10px; }.announcement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.announcement-card { position: relative; }.announcement-card.pinned { border-color: #bdd3fb; box-shadow: 0 10px 28px rgba(42,109,244,.09); }.announcement-card p { min-height: 0; white-space: pre-wrap; }.announcement-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eef2f6; }.card-actions { justify-content: flex-end; margin-top: 12px; }.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #8a98aa; font-size: 11px; }.article-summary { margin: 0 0 20px; color: #53657b; font-size: 13px; line-height: 1.65; }.article-content { padding: 18px; border: 1px solid #e8edf4; border-radius: 9px; color: #53657b; background: #f8fafc; white-space: pre-wrap; font-size: 13px; line-height: 1.75; }.article-editor { min-height: 240px; }.ticket-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #eef2f6; }.ticket-header h3 { margin: 2px 0 5px; font: 700 19px/1.25 "Space Grotesk", Inter, sans-serif; }.ticket-header p { margin: 0; color: var(--muted); font-size: 11px; }.ticket-header > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }.ticket-priority { color: #8a98aa; font-size: 10px; }.ticket-settings { display: flex; align-items: flex-end; gap: 12px; padding: 18px 0; border-bottom: 1px solid #eef2f6; }.ticket-settings .field { min-width: 150px; }.ticket-thread { display: grid; gap: 12px; max-height: 360px; margin: 20px 0; overflow: auto; }.ticket-message { padding: 14px 16px; border: 1px solid #e3eaf2; border-radius: 9px; background: #fff; }.ticket-message.internal { border-color: #f0d69d; background: #fffaf0; }.ticket-message-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8290a3; font-size: 10px; }.ticket-message-head strong { color: var(--ink); font-size: 11px; }.ticket-message p { margin: 9px 0 0; color: #53657b; white-space: pre-wrap; font-size: 12px; line-height: 1.6; }.ticket-reply { padding-top: 18px; border-top: 1px solid #eef2f6; }.ticket-reply .form-footer { padding-right: 0; padding-bottom: 0; }.ticket-modal-body .empty-state { min-height: 120px; }
.hero-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; padding: 24px 28px; border-radius: 11px; color: #fff; background: linear-gradient(115deg, #13213a 0%, #1e3c6f 100%); box-shadow: 0 12px 30px rgba(16,34,62,.12); }.hero-panel h2 { margin: 0; font: 700 25px/1.15 "Space Grotesk", Inter, sans-serif; }.hero-panel p { margin: 8px 0 0; color: rgba(255,255,255,.67); font-size: 12px; }.hero-action { min-width: 180px; display: grid; gap: 5px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.07); }.hero-action span { color: #a8b9d5; font-size: 10px; }.hero-action strong { font-size: 13px; }
.progress-track { height: 8px; overflow: hidden; margin-bottom: 7px; border-radius: 999px; background: #edf1f6; }.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #23a477); transition: width .3s ease; }.filter-panel { margin-bottom: 20px; }.filter-row { display: flex; align-items: center; gap: 12px; }.search-bar { width: min(360px, 100%); display: flex; align-items: center; gap: 8px; color: #8da0b8; }.search-bar .input { flex: 1; }.compact { max-width: 200px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 19px; }.field { min-width: 0; display: grid; gap: 7px; color: #53657b; font-size: 11px; font-weight: 650; }.field.full { grid-column: 1 / -1; }.field-optional { color: #9aa6b5; font-size: 10px; font-weight: 500; }.field-help { color: #8a98aa; font-size: 10px; font-weight: 500; line-height: 1.45; }.input, .select, .textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; color: var(--ink); background: #fff; }.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,109,244,.12); }.input::placeholder, .textarea::placeholder { color: #a2adba; }.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 20px 22px 22px; }.panel-body + .form-footer { border-top: 1px solid #eef2f6; }.narrow-panel { max-width: 620px; }.color-input { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; align-items: center; }.color-input input[type=color] { width: 46px; height: 43px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }.health-list { display: grid; gap: 15px; }.health-list > div { display: grid; grid-template-columns: 10px 1fr auto; gap: 9px; align-items: center; color: #607189; font-size: 12px; }.health-list strong { color: #1b9b73; font-size: 11px; }.field-spaced { margin-top: 17px; }.code-block { max-width: 100%; margin-top: 15px; padding: 14px; overflow: auto; border-radius: 9px; color: #536c8c; background: #f5f8fc; white-space: pre-wrap; line-height: 1.6; }
.image-upload-field { gap: 10px; }.image-upload-label { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }.image-upload-label > span { color: #53657b; font-size: 11px; font-weight: 650; }.image-upload-label > small { color: #8a98aa; font-size: 10px; font-weight: 500; line-height: 1.45; text-align: right; }.image-upload-control { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; gap: 16px; }.image-preview { width: 260px; height: 146px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #cbd8e8; border-radius: 9px; color: #899bb2; background: #f8fafc; }.image-preview.has-image { border-style: solid; border-color: #dbe5f1; background: #fff; }.image-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }.image-placeholder { display: grid; justify-items: center; gap: 8px; padding: 14px; color: #91a1b5; text-align: center; }.image-placeholder span { color: #8997a8; font-size: 10px; font-weight: 550; }.image-upload-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }.file-button { position: relative; overflow: hidden; }.file-button .image-file-input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }.image-upload-actions [hidden] { display: none; }
.system-health-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #edf1f6; }.system-health-row strong { color: #34445a; font-size: 12px; font-weight: 600; }.system-health-list { display: grid; gap: 10px; padding-top: 16px; color: #8290a2; font-size: 11px; }.system-health-list span { display: flex; justify-content: space-between; gap: 16px; }.system-health-list b { color: #43546b; font-weight: 650; text-align: right; }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }.doc-nav-list { display: grid; gap: 4px; padding: 13px; }.doc-nav-list a { padding: 10px; border-radius: 7px; color: #617188; font-size: 11px; }.doc-nav-list a:hover { color: var(--accent); background: #f3f7fd; }.api-documentation .panel-body { padding: 28px; }.doc-section { position: relative; padding: 0 0 28px 44px; margin-bottom: 28px; border-bottom: 1px solid #eef2f6; }.doc-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }.doc-section h3 { margin: 0 0 8px; font: 700 15px/1.3 "Space Grotesk", Inter, sans-serif; }.doc-section p { margin: 0; color: #66778e; font-size: 12px; line-height: 1.65; }.doc-kicker, .section-index { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #dbe5f1; border-radius: 8px; color: var(--accent); background: #f6f9ff; font-size: 10px; font-weight: 800; }.doc-kicker { position: absolute; top: 0; left: 0; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; overflow: auto; background: rgba(10,22,39,.58); backdrop-filter: blur(3px); }.modal-card { width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; border: 1px solid rgba(218,226,237,.9); border-radius: 12px; background: #fff; box-shadow: var(--shadow-lifted); }.modal-card.modal-wide { width: min(820px, 100%); }.modal-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #eef2f6; }.modal-head h3 { margin: 0; font: 700 17px/1.25 "Space Grotesk", Inter, sans-serif; }.modal-close { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: #53657b; background: #fff; font-size: 21px; line-height: 1; }.modal-close:hover { color: var(--ink); background: #f1f6ff; }.modal-body { padding: 22px; }.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid #eef2f6; }.form-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }.form-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 16px; }.form-section-head h4 { margin: 0 0 5px; font: 700 13px/1.3 "Space Grotesk", Inter, sans-serif; }.form-section-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.notice-section { margin-top: 18px; }.client-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(110deg,#fff 0%,#f7faff 100%); }.client-summary-main { display: flex; align-items: center; gap: 13px; min-width: 0; }.client-summary-main h3 { margin: 0 0 4px; font: 700 19px/1.2 "Space Grotesk", Inter, sans-serif; }.client-summary-main p, .client-summary-status small { margin: 0; color: var(--muted); font-size: 11px; }.client-summary-status { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }.client-avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; color: var(--accent); background: #eaf1ff; font: 700 19px/1 "Space Grotesk", sans-serif; }.client-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 22px; }.detail-actions { padding-left: 0; padding-right: 0; }
.loading-state { min-height: 280px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #8190a4; font-size: 12px; }.spinner { width: 16px; height: 16px; border: 2px solid #dbe5f1; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 13px 16px; border-radius: 8px; color: #fff; background: #20324c; box-shadow: var(--shadow-lifted); font-size: 12px; }.toast.error { background: var(--red); }.check-cell { display: inline-flex; align-items: center; gap: 8px; }.check-cell input { accent-color: var(--accent); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; color: #3a66b7; background: #e9f0ff; font-size: 10px; font-weight: 800; }.avatar.small { width: 27px; height: 27px; flex-basis: 27px; }
@media (max-width: 1100px) { .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }.main-shell { margin-left: 264px; }.grid-2, .help-grid, .announcement-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .login-wrap { grid-template-columns: 1fr; }.login-brand { min-height: 310px; padding: 28px; }.login-brand h1 { font-size: 37px; }.sidebar { transform: translateX(-100%); transition: transform .2s ease; }.sidebar-is-open .sidebar { transform: translateX(0); }.mobile-backdrop { display: none; position: fixed; inset: 0; z-index: 4; background: rgba(10,22,39,.35); }.sidebar-is-open .mobile-backdrop { display: block; }.main-shell { margin-left: 0; }.topbar { min-height: 74px; padding: 0 17px; }.mobile-menu { display: inline-grid; }.topbar-actions { gap: 5px; }.topbar-user > span:last-child { display: none; }.page-content { padding: 24px 16px 44px; }.page-head { flex-direction: column; gap: 15px; }.page-head > *, .page-head .button-row, .page-head > .btn { width: 100%; }.button-row { flex-wrap: wrap; }.button-row .btn { flex: 1 1 150px; }.help-search { order: 3; }.hero-panel { align-items: flex-start; flex-direction: column; padding: 21px; }.hero-action { width: 100%; }.metrics, .client-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }.metric { padding: 15px; }.metric-value { font-size: 24px; }.panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }.filter-row, .form-grid { grid-template-columns: 1fr; display: grid; }.search-bar, .compact { width: 100%; max-width: none; }.doc-grid { grid-template-columns: 1fr; }.doc-nav { order: 2; }.doc-section { padding-left: 0; }.doc-kicker { position: static; margin-bottom: 10px; }.modal { padding: 12px; }.modal-card { max-height: calc(100vh - 24px); }.modal-head, .modal-body { padding: 17px 16px; }.form-footer { flex-wrap: wrap; padding: 17px 16px; }.form-footer .btn { flex: 1 1 145px; }.client-summary { align-items: flex-start; flex-direction: column; padding: 17px; }.client-summary-status { align-items: flex-start; flex-direction: row; }.ticket-header, .ticket-settings { align-items: stretch; flex-direction: column; }.ticket-header > div:last-child { align-items: flex-start; }.ticket-settings .btn { width: 100%; }.data-table { min-width: 720px; } }
@media (max-width: 430px) { .topbar h1 { font-size: 19px; }.system-pill { display: none; }.metrics { gap: 8px; }.metric { padding: 13px; }.metric-top { font-size: 10px; }.metric-value { font-size: 21px; }.form-footer .btn { flex-basis: 100%; width: 100%; } }

/* XCloud branding editor */
.xcloud-editor-body { overflow: hidden; background: #fafafa; }
.xcloud-editor-app { min-height: 100vh; display: flex; color: #171717; background: #fafafa; font-family: Roboto, "Roboto Fallback", Arial, Helvetica, sans-serif; }
.xcloud-editor-sidebar { width: 256px; flex: 0 0 256px; display: flex; flex-direction: column; padding: 16px 16px 10px; border-right: 1px solid #eeeeee; background: #fff; }
.xcloud-brand-lockup { width: 70px; display: grid; justify-items: start; gap: 0; cursor: pointer; }
.xcloud-brand-lockup img { width: 70px; height: 60px; object-fit: contain; object-position: left top; }
.xcloud-account-name { margin: 10px 0 28px; color: #777; font-size: 12px; }
.xcloud-nav-label { margin: 0 9px 10px; color: #929292; font-size: 11px; }
.xcloud-nav-label.support-label { margin-top: 30px; }
.xcloud-nav { display: grid; gap: 2px; }
.xcloud-nav button { min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 9px; border: 0; border-radius: 7px; color: #5f5f5f; background: transparent; font-size: 13px; text-align: left; }
.xcloud-nav button:hover, .xcloud-nav button.active { color: #2e2e2e; background: #ededed; }
.xcloud-nav button .icon { color: #707070; }
.xcloud-nav button em { padding: 3px 6px; border-radius: 999px; color: #fff; background: #08bd83; font-size: 10px; font-style: normal; font-weight: 700; }
.xcloud-nav button span { flex: 1; }
.xcloud-nav.support-nav button { color: #5375a0; }
.xcloud-nav.support-nav button .icon { color: #2b88ef; }
.xcloud-sidebar-version { margin-top: auto; color: #777; font-size: 11px; }
.xcloud-editor-main { min-width: 0; min-height: calc(100vh - 16px); flex: 1; margin: 8px 8px 8px 0; overflow: auto; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.17), 0 1px 2px -1px rgba(0,0,0,.17); }
.xcloud-topbar { min-height: 48px; display: flex; align-items: center; gap: 15px; padding: 0 16px; border-bottom: 1px solid #e9e9e9; }
.xcloud-icon-button { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #333; background: transparent; font-size: 19px; }
.xcloud-icon-button:hover { background: #f1f1f1; }
.xcloud-icon-button.disabled, .xcloud-icon-button:disabled { color: #999; cursor: default; opacity: .7; }
.xcloud-separator { width: 1px; height: 26px; background: #e7e7e7; }
.xcloud-usage { display: inline-flex; align-items: center; gap: 10px; padding: 7px 9px; border: 0; color: #111; background: transparent; font-size: 13px; }
.xcloud-usage span { margin-left: 2px; color: #777; font-size: 13px; }
.xcloud-topbar-spacer { flex: 1; }
.xcloud-flag { font-size: 23px; line-height: 1; }
.xcloud-user { display: flex; align-items: center; gap: 8px; min-width: 175px; padding-left: 7px; }
.xcloud-user-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #111; background: #f0f0f0; font-size: 12px; }
.xcloud-user b, .xcloud-user small { display: block; white-space: nowrap; }
.xcloud-user b { color: #111; font-size: 12px; }
.xcloud-user small { margin-top: 2px; color: #111; font-size: 11px; }
.xcloud-editor-content { padding: 16px; }
.xcloud-title-row h1 { min-height: 32px; margin: 0 0 16px; color: #171717; font-size: 24px; line-height: 32px; font-weight: 400; }
.xcloud-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 16px 0; }
.xcloud-tabs { display: flex; align-items: center; gap: 1px; padding: 3px; border-radius: 8px; background: #ededed; }
.xcloud-tabs button { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 0; border-radius: 6px; color: #222; background: transparent; font-size: 12px; }
.xcloud-tabs button.active { border: 1px solid #d6d6d6; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.11); }
.xcloud-tabs button em { padding: 2px 5px; border-radius: 999px; color: #fff; background: #08bd83; font-size: 9px; font-style: normal; font-weight: 700; }
.xcloud-actions { display: flex; align-items: center; gap: 9px; }
.xcloud-reset, .xcloud-save { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 6px; font-size: 13px; font-weight: 700; }
.xcloud-reset { color: #fff; background: #cf3219; }
.xcloud-reset:hover { background: #ba2b16; }
.xcloud-save { color: #fff; background: #a8ebcf; }
.xcloud-save:not(:disabled) { background: #20bf87; }
.xcloud-save:disabled { cursor: default; }
.xcloud-upload-group { padding: 0 0 16px; border-bottom: 1px solid #f0f0f0; }
.xcloud-subheading { margin: 0 0 12px; color: #353535; font-size: 14px; font-weight: 600; }
.xcloud-upload-row { display: grid; grid-template-columns: 89px minmax(0, 1fr); gap: 15px; align-items: stretch; }
.xcloud-upload-row.xcloud-background-upload { display: block; }
.xcloud-upload-row.xcloud-background-upload .xcloud-upload-tile { width: 100%; min-height: 78px; }
.xcloud-upload-tile { min-height: 88px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed #d6d6d6; border-radius: 8px; color: #3c3c3c; background: #fff; cursor: pointer; text-align: center; }
.xcloud-upload-tile:hover { border-color: #999; background: #fafafa; }
.xcloud-upload-tile input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.xcloud-upload-tile small { font-size: 12px; line-height: 1.2; }
.xcloud-logo-tile { min-height: 88px; display: grid; place-items: center; overflow: hidden; border: 1px solid #d8d8d8; border-radius: 8px; background: #fff; }
.xcloud-logo-tile img { max-width: 92%; object-fit: contain; }
.xcloud-size-field { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: #333; font-size: 13px; }
.xcloud-number-input { width: 100px !important; }
.xcloud-input { min-height: 36px; width: 100%; padding: 8px 9px; border: 1px solid #e5e5e5; border-radius: 6px; outline: 0; color: #252525; background: #fff; font-size: 13px; }
.xcloud-input:focus { border-color: #28605d; box-shadow: 0 0 0 2px rgba(40,96,93,.12); }
.xcloud-field-card { display: grid; gap: 12px; margin-bottom: 15px; padding: 13px; border: 1px solid #f0f0f0; border-radius: 8px; background: #fff; }
.xcloud-field-card .xcloud-field { margin: 0; }
.xcloud-field-card .xcloud-field > span { color: #252525; font-size: 14px; font-weight: 600; }
.xcloud-select-field { position: relative; display: grid; gap: 8px; }
.xcloud-select-field > span { color: #252525; font-size: 14px; font-weight: 600; }
.xcloud-select-trigger { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 11px; border: 1px solid #e5e5e5; border-radius: 6px; color: #252525; background: #fff; font-size: 13px; text-align: left; }
.xcloud-select-trigger:hover, .xcloud-select-trigger[aria-expanded="true"] { border-color: #28605d; }
.xcloud-select-chevron { width: 16px; height: 16px; flex: 0 0 16px; color: #777; }
.xcloud-select-menu { position: absolute; top: calc(100% + 5px); right: 0; left: 0; z-index: 25; display: grid; gap: 2px; padding: 4px; border: 1px solid #dedede; border-radius: 7px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.xcloud-select-menu[hidden] { display: none; }
.xcloud-select-option { min-height: 32px; padding: 0 9px; border: 0; border-radius: 4px; color: #333; background: #fff; font-size: 13px; text-align: left; }
.xcloud-select-option:hover, .xcloud-select-option.selected { color: #111; background: #f0f8f6; }
.xcloud-background-preview { height: 90px; display: flex; align-items: flex-start; padding: 9px; margin-top: 14px; overflow: hidden; border: 2px solid #14bd80; border-radius: 8px; background-position: center; background-size: cover; }
.xcloud-background-preview span { padding: 5px 7px; border-radius: 4px; color: #111; background: #fff; font-size: 11px; }
.xcloud-background-picker { display: grid; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.xcloud-background-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xcloud-background-card { min-width: 0; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.xcloud-background-card:hover { border-color: #20bf87; transform: translateY(-1px); }
.xcloud-background-card.active { border-color: #14bd80; box-shadow: 0 0 0 2px rgba(20,189,128,.14); }
.xcloud-background-card img { width: 100%; height: 60px; display: block; object-fit: cover; }
.xcloud-field { display: grid; gap: 7px; margin-bottom: 14px; color: #444; font-size: 12px; }
.xcloud-collection-field { display: grid; gap: 12px; }
.xcloud-collection-list { display: grid; gap: 14px; }
.xcloud-collection-card { min-height: 78px; display: grid; place-items: center; padding: 16px; border: 1px solid #dedede; border-radius: 12px; color: #222; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.xcloud-collection-card:hover { border-color: #20bf87; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.xcloud-collection-card.active { border: 1px solid #183e4b; background: #dfe9ed; box-shadow: none; }
.xcloud-collection-icons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.xcloud-collection-icons svg { width: 25px; height: 25px; color: #282828; }
.xcloud-theme-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.xcloud-theme-card { min-width: 0; display: grid; gap: 8px; padding: 12px; border: 2px solid #e2e2e2; border-radius: 8px; color: #222; background: transparent; text-align: left; }
.xcloud-theme-card:hover { border-color: #20bf87; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.xcloud-theme-card.active { border-color: #20bf87; box-shadow: 0 4px 12px rgba(32,191,135,.14); }
.xcloud-theme-sample { height: 64px; display: flex; overflow: hidden; padding: 0; border-radius: 6px; }
.xcloud-theme-sample-rail { width: 24px; flex: 0 0 24px; }
.xcloud-theme-sample-content { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 6px; }
.xcloud-theme-sample-content > i { display: block; width: 80%; height: 8px; border-radius: 2px; }
.xcloud-theme-sample-content > i:nth-child(2) { width: 60%; height: 6px; }
.xcloud-theme-sample-content > i:nth-child(3) { width: 80%; height: 6px; }
.xcloud-theme-sample-panel { width: 100%; height: 16px; display: block; margin-top: auto; border-radius: 2px; }
.xcloud-theme-sample-panel b { width: 8px; height: 8px; display: block; margin: 4px; border-radius: 50%; }.xcloud-theme-name { font-size: 14px; font-weight: 600; }
.xcloud-theme-card small { color: #444; font-size: 11px; }
.xcloud-panel-theme-area { padding-top: 0; }
.xcloud-help-widget { position: fixed; right: 19px; bottom: 16px; width: 62px; height: 62px; display: grid; place-items: center; border: 6px solid #17a9af; border-radius: 50%; color: #fff; background: #0750a5; box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.xcloud-loading { min-height: 100vh; display: grid; place-items: center; gap: 10px; color: #666; background: #fff; font-family: Arial, sans-serif; }
.xcloud-editor-app.sidebar-collapsed .xcloud-editor-sidebar { width: 74px; flex-basis: 74px; padding-right: 9px; padding-left: 9px; }
.xcloud-editor-app.sidebar-collapsed .xcloud-sidebar-version, .xcloud-editor-app.sidebar-collapsed .xcloud-account-name, .xcloud-editor-app.sidebar-collapsed .xcloud-nav-label, .xcloud-editor-app.sidebar-collapsed .xcloud-nav button span, .xcloud-editor-app.sidebar-collapsed .xcloud-nav button em { display: none; }
.xcloud-editor-app.sidebar-collapsed .xcloud-nav button { justify-content: center; padding: 0; }
@media (max-width: 980px) { .xcloud-editor-sidebar { width: 210px; flex-basis: 210px; }.xcloud-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .xcloud-editor-sidebar { display: none; }.xcloud-editor-main { min-height: 100vh; margin: 0; border-radius: 0; }.xcloud-topbar { padding: 0 10px; }.xcloud-user { min-width: 0; }.xcloud-user small { display: none; }.xcloud-editor-content { padding: 14px 10px 24px; }.xcloud-toolbar { align-items: stretch; flex-direction: column; }.xcloud-actions { justify-content: flex-end; }.xcloud-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.xcloud-collection-icons { gap: 12px; } }

/* Current XCloud editor geometry at the reference 1440px viewport. */
.xcloud-topbar { gap: 8px; padding: 0 24px; }
.xcloud-topbar-left, .xcloud-topbar-right { display: flex; align-items: center; gap: 8px; height: 36px; }
.xcloud-topbar-left .xcloud-icon-button { width: 28px; height: 28px; margin-left: -4px; font-size: 14px; }
.xcloud-topbar-left .xcloud-icon-button .icon { width: 16px; height: 16px; }
.xcloud-separator { height: 16px; margin: 0 8px; background: #e7e7e7; }
.xcloud-usage { height: 36px; padding: 8px 12px; gap: 8px; color: #111; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-usage .icon { width: 16px; height: 16px; }
.xcloud-usage span { display: inline-flex; align-items: center; margin-left: 4px; color: #777; }
.xcloud-usage span .icon { width: 12px; height: 12px; transform: rotate(90deg); }
.xcloud-topbar-right { gap: 8px; padding: 0 8px; }
.xcloud-theme-toggle { width: 36px; height: 36px; font-size: 18px; }
.xcloud-flag { width: 40px; height: 36px; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.xcloud-user { min-width: 181px; height: 36px; padding-left: 0; gap: 8px; }
.xcloud-user-avatar { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
.xcloud-user b, .xcloud-user small { font: 500 12px/15px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-user b { font-weight: 600; }
.xcloud-user small { margin-top: 0; }

.xcloud-toolbar { width: calc(100% + 32px); height: 61px; min-height: 61px; position: sticky; top: 0; z-index: 20; margin: 16px -16px; padding: 12px 16px; gap: 8px; border-bottom: 1px solid #e9e9e9; background: #fff; }
.xcloud-media-info-banner { width: 100%; height: 64px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid #d7e1e4; border-radius: 8px; color: #23343a; background: transparent; text-align: left; }
.xcloud-media-info-banner > span { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
.xcloud-media-info-banner strong { font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-media-info-banner em { padding: 2px 8px; border-radius: 999px; color: #fff; background: #20bf87; font: 700 10px/12px Roboto, "Roboto Fallback", Arial, sans-serif; font-style: normal; }
.xcloud-media-info-banner small { flex-basis: 100%; color: #66777d; font: 400 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-media-info-banner .xcloud-select-chevron { width: 16px; height: 16px; margin-left: auto; color: #718189; transform: rotate(-90deg); }
.xcloud-tabs { width: 297.375px; height: 36px; gap: 0; }
.xcloud-tabs button { height: 29.28125px; min-height: 0; box-sizing: border-box; padding: 4px 8px; gap: 6px; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; white-space: nowrap; }
.xcloud-tabs button:nth-child(1) { width: 80.78125px; }
.xcloud-tabs button:nth-child(2) { width: 104px; }
.xcloud-tabs button:nth-child(3) { width: 106.59375px; }
.xcloud-tabs button .icon { width: 16px; height: 16px; }
.xcloud-tabs button em { padding: 2px 5px; font-size: 10px; }
.xcloud-actions { gap: 8px; }
.xcloud-actions .xcloud-icon-button { width: 36px; height: 36px; }
.xcloud-reset, .xcloud-save { min-height: 36px; padding: 8px 12px; border-radius: 6px; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-reset { color: #111; border: 1px solid #dedede; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.xcloud-reset:hover { color: #111; background: #f7f7f7; }
.xcloud-save { color: #fff; background: #a9ebcf; }
.xcloud-save:not(:disabled) { background: #20bf87; }
.xcloud-save:disabled { color: #fff; background: #8da2a9; opacity: 1; }

.xcloud-editor-sections { width: 100%; display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; align-items: start; }
.xcloud-live-editor-grid { grid-column: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 602px; gap: 24px; align-items: start; }
.xcloud-section-nav { width: 80px; min-width: 80px; display: flex; flex-direction: column; align-items: stretch; gap: 5px; padding: 3px; border-radius: 8px; background: #ededed; }
.xcloud-section-nav button { width: 100%; min-width: 0; height: 33px; display: inline-flex; align-items: center; justify-content: flex-start; padding: 6px 12px; border: 1px solid transparent; border-radius: 6px; color: #222; background: transparent; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; text-align: left; }
.xcloud-section-nav button.active { border-color: #d6d6d6; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.11); }
.xcloud-form-column { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.xcloud-form-heading { display: flex; flex-direction: column; gap: 4px; }
.xcloud-form-heading h2 { margin: 0; color: #171717; font: 600 20px/28px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-form-heading p { margin: 0; color: #666; font: 400 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-form-body { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.xcloud-live-preview { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 76px; }
.xcloud-live-editor-grid.mobile-grid, .xcloud-editor-app:has([data-xcloud-tab="mobile"].active) .xcloud-live-editor-grid { grid-template-columns: minmax(0, 1fr) 604px; }
.xcloud-live-preview-head { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xcloud-live-preview-head > strong { color: #1f1f1f; font: 600 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-actions [data-xcloud-undo] { display: inline-grid; }

.xcloud-logo-tile img { width: auto; max-width: 70px !important; max-height: 70px !important; }

.xcloud-color-card { display: flex; flex-direction: column; gap: 12px; }
.xcloud-color-card .xcloud-color-control-group + .xcloud-color-control-group { margin-top: 4px; }
.xcloud-color-control-group { display: flex; flex-direction: column; gap: 8px; }
.xcloud-color-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.xcloud-color-heading > div:first-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xcloud-color-heading > div:first-child > span { color: #111; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-color-heading > div:first-child > small { max-width: 215px; color: #777; font: 400 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-color-controls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.xcloud-color-selected { padding: 2px 8px; border-radius: 999px; color: #fff; background: #2d706f; font: 600 10px/15px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-hex-field { width: 98px; height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border: 1px solid #ededed; border-radius: 6px; color: #777; background: #fff; }
.xcloud-hex-field b { font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-hex-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #222; background: transparent; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-color-controls > input[type="color"] { width: 48px; height: 36px; padding: 3px; border: 1px solid #dedede; border-radius: 5px; background: #fff; }
.xcloud-color-controls-compact > input[type="color"] { width: 48px; height: 28px; padding: 0; border: 1px solid #dedede; border-radius: 4px; background: #fff; }
.xcloud-color-help { width: max-content; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; color: #20bf87; background: transparent; font: 500 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-color-help .icon { width: 14px; height: 14px; }
.xcloud-color-card .xcloud-subheading { margin: 0; color: #353535; font: 600 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; }
.xcloud-background-upload + .xcloud-background-preview { margin-top: 4px; }
.xcloud-upload-group:has(.xcloud-background-upload) { position: relative; top: -3px; }
.xcloud-background-picker { position: relative; top: -10px; gap: 9px; margin-bottom: -11px; }

.xcloud-section-label, .xcloud-section-head h3 { margin: 0; color: #353535; font: 600 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; letter-spacing: .055em; text-transform: uppercase; }
.xcloud-upload-group, .xcloud-background-picker, .xcloud-collection-field { padding: 0; border: 0; }
.xcloud-upload-group { display: flex; flex-direction: column; gap: 12px; }
.xcloud-upload-row { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 16px; align-items: start; }
.xcloud-upload-row.xcloud-background-upload { display: block; }
.xcloud-upload-tile { min-height: 165px; padding: 20px; gap: 8px; border: 2px dashed #dedede; border-radius: 8px; color: #111; }
.xcloud-upload-row.xcloud-background-upload .xcloud-upload-tile { box-sizing: border-box; height: 116px; min-height: 116px; padding: 12px; }
.xcloud-upload-tile span .icon { width: 24px; height: 24px; }
.xcloud-upload-tile small { color: #111; font: 400 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-upload-tile em { max-width: 180px; color: #111; font: 400 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; font-style: normal; text-align: center; }
.xcloud-current-image { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.xcloud-current-image > span { color: #666; font: 400 12px/16px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-logo-tile { width: 100%; height: 96px; min-height: 0; justify-items: start; padding: 12px; background-position: center; background-size: cover; }
.xcloud-logo-tile img { max-width: 70px; }
.xcloud-size-field { gap: 8px; margin-top: -8px; color: #111; font: 400 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-number-input { width: 100px !important; min-height: 36px; padding: 8px 9px; }
.xcloud-background-preview { height: 100px; margin-top: 16px; border: 2px solid #14bd80; border-radius: 8px; background-position: center; background-size: cover; }
.xcloud-background-picker { display: flex; flex-direction: column; gap: 12px; }
.xcloud-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.xcloud-preset-actions { display: flex; align-items: center; gap: 4px; }
.xcloud-small-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid #dedede; border-radius: 6px; color: #222; background: #fff; }
.xcloud-small-button:last-child .icon { transform: rotate(0deg); }
.xcloud-small-button:first-child .icon { transform: rotate(180deg); }
.xcloud-small-button:disabled { color: #bbb; background: #fafafa; }
.xcloud-background-grid { display: flex; gap: 12px; overflow: hidden; }
.xcloud-background-card { width: 100px; height: 60px; flex: 0 0 100px; border: 2px solid transparent; border-radius: 8px; box-shadow: none; }
.xcloud-background-card img { width: 100%; height: 60px; border-radius: 8px; }
.xcloud-background-card.active { border-color: #14bd80; box-shadow: 0 0 0 1px rgba(20,189,128,.18); }
.xcloud-field-card { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.xcloud-field-card .xcloud-subheading { margin: 0 0 12px; color: #353535; font-size: 12px; letter-spacing: .055em; text-transform: uppercase; }
.xcloud-select-field { gap: 8px; }
.xcloud-select-field > span { color: #111; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-select-trigger { min-height: 36px; }
.xcloud-collection-field { display: flex; flex-direction: column; gap: 12px; }
.xcloud-collection-list { display: grid; gap: 16px; }
.xcloud-collection-card { min-height: 54px; padding: 14px 16px; border: 1px solid #dedede; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.xcloud-collection-card.active { border: 1px solid #183e4b; background: #dfe9ed; box-shadow: none; }
.xcloud-collection-icons { gap: 22px; }
.xcloud-collection-icons svg { width: 22px; height: 22px; }

.xcloud-panel-theme-area { width: 100%; }
.xcloud-theme-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.xcloud-theme-card { height: 132.5px; display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 2px solid #dedede; border-radius: 8px; }
.xcloud-theme-sample { width: 100%; height: 64px; flex: 0 0 64px; }
.xcloud-theme-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xcloud-theme-name { overflow: hidden; font: 600 14px/17px Roboto, "Roboto Fallback", Arial, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.xcloud-theme-card small { color: #333; font: 400 11px/13px Roboto, "Roboto Fallback", Arial, sans-serif; }

@media (max-width: 1200px) { .xcloud-live-editor-grid { grid-template-columns: max-content minmax(0, 1fr); }.xcloud-live-preview { grid-column: 1 / -1; position: static; max-width: 720px; }.xcloud-theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .xcloud-toolbar { position: static; width: 100%; margin: 16px 0; padding: 12px 0; }.xcloud-editor-sections { display: flex; flex-direction: column; gap: 24px; }.xcloud-live-editor-grid { grid-column: auto; grid-template-columns: 1fr; }.xcloud-section-nav { width: max-content; min-width: max-content; flex-direction: row; overflow-x: auto; }.xcloud-section-nav button { width: auto; min-width: max-content; justify-content: center; text-align: center; }.xcloud-live-preview { grid-column: auto; }.xcloud-topbar { padding: 0 12px; }.xcloud-topbar-right { padding: 0; }.xcloud-user { min-width: 0; }.xcloud-user small { display: none; }.xcloud-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.xcloud-actions .xcloud-icon-button { width: 40px; height: 36px; }
.xcloud-theme-card { position: relative; }
.xcloud-theme-card.active::after { content: '✓'; position: absolute; top: 7px; right: 7px; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #20bf87; border-radius: 50%; color: #20bf87; background: #fff; font-size: 11px; font-weight: 800; }

/* Final controls and navigation details mirrored from the live XCloud shell. */
.xcloud-nav.support-nav a { min-height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 9px; border-radius: 7px; color: #5375a0; text-decoration: none; font-size: 13px; }
.xcloud-nav.support-nav a:hover { background: #f5f7fa; }
.xcloud-nav.support-nav a span { flex: 1; }
.xcloud-support-icon { flex: 0 0 16px; width: 16px; height: 16px; }
.xcloud-support-icon-telegram { color: #2b88ef; }
.xcloud-support-icon-whatsapp { color: #18c66b; }
.xcloud-support-icon-support { color: #eba900; }
.xcloud-flag img { width: 24px; height: 16px; display: block; object-fit: cover; }
.xcloud-help-widget { right: 20px; bottom: 24px; width: 64px; height: 64px; border: 0; background: radial-gradient(circle at 30% 30%, #23afa5, #1e40af); box-shadow: 0 18px 40px -12px rgba(35,175,165,.533), 0 0 0 6px rgba(35,175,165,.08); overflow: hidden; }
.xcloud-help-widget img { width: 36px; height: 36px; display: block; object-fit: contain; border-radius: 50%; }
/* Branding editor controls. */
.xcloud-select-field > span { letter-spacing: .055em; text-transform: uppercase; }
.xcloud-discard { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 0; border: 0; color: #111; background: transparent; font: 500 14px/20px Roboto, "Roboto Fallback", Arial, sans-serif; }
.xcloud-discard .icon { width: 16px; height: 16px; }
.xcloud-discard.is-hidden { display: none; }

/* These controls stay compact in the live XCloud form, even when the form
   column has room to grow. */
.xcloud-select-field,
.xcloud-select-trigger {
  width: 200px;
  max-width: 200px;
}
/* Theme variables mirrored from the live XCloud branding shell. */
.xcloud-editor-body { background: var(--xcloud-background, #fafafa); color: var(--xcloud-foreground, #171717); }
.xcloud-editor-app { color: var(--xcloud-foreground, #171717); background: var(--xcloud-background, #fafafa); }
.xcloud-editor-sidebar { color: var(--xcloud-sidebar-foreground, #5f5f5f); border-right-color: var(--xcloud-sidebar-border, #eeeeee); background: var(--xcloud-sidebar, #fff); }
.xcloud-account-name, .xcloud-nav-label, .xcloud-sidebar-version { color: var(--xcloud-sidebar-foreground, #777); }
.xcloud-nav button { color: var(--xcloud-sidebar-foreground, #5f5f5f); }
.xcloud-nav button:hover, .xcloud-nav button.active { color: var(--xcloud-sidebar-accent-foreground, #2e2e2e); background: var(--xcloud-sidebar-accent, #ededed); }
.xcloud-nav button .icon { color: var(--xcloud-sidebar-foreground, #707070); }
.xcloud-nav button em { color: #fff; background: #08bd83; }
.xcloud-nav.support-nav a, .xcloud-nav.support-nav button { color: var(--xcloud-sidebar-foreground, #5375a0); }
.xcloud-nav.support-nav a:hover, .xcloud-nav.support-nav button:hover { background: var(--xcloud-sidebar-accent, #f5f7fa); }
.xcloud-editor-main { color: var(--xcloud-foreground, #171717); background: var(--xcloud-background, #fff); border-color: var(--xcloud-border, transparent); box-shadow: 0 1px 3px color-mix(in srgb, var(--xcloud-foreground, #000) 17%, transparent), 0 1px 2px -1px color-mix(in srgb, var(--xcloud-foreground, #000) 17%, transparent); }
.xcloud-topbar { border-bottom-color: var(--xcloud-border, #e9e9e9); }
.xcloud-icon-button, .xcloud-usage, .xcloud-user b, .xcloud-user small { color: var(--xcloud-foreground, #111); }
.xcloud-icon-button:hover { background: var(--xcloud-accent, #f1f1f1); }
.xcloud-separator { background: var(--xcloud-border, #e7e7e7); }
.xcloud-user-avatar { color: var(--xcloud-foreground, #111); background: var(--xcloud-secondary, #f0f0f0); }
.xcloud-title-row h1, .xcloud-form-heading h2, .xcloud-live-preview-head > strong { color: var(--xcloud-foreground, #171717); }
.xcloud-form-heading p { color: var(--xcloud-muted-foreground, #666); }
.xcloud-tabs button em { color: #fff; background: #08bd83; }
.xcloud-tabs, .xcloud-section-nav { color: var(--xcloud-muted-foreground, #222); background: var(--xcloud-muted, #ededed); }
.xcloud-tabs button, .xcloud-section-nav button { color: var(--xcloud-foreground, #222); }
.xcloud-tabs button.active, .xcloud-section-nav button.active { color: var(--xcloud-foreground, #222); border-color: var(--xcloud-border, #d6d6d6); background: var(--xcloud-card, #fff); box-shadow: 0 1px 3px color-mix(in srgb, var(--xcloud-foreground, #000) 11%, transparent); }
.xcloud-reset { color: var(--xcloud-foreground, #111); border-color: var(--xcloud-border, #dedede); background: var(--xcloud-card, #fff); }
.xcloud-reset:hover { color: var(--xcloud-foreground, #111); background: var(--xcloud-accent, #f7f7f7); }
.xcloud-save { color: var(--xcloud-primary-foreground, #fff); background: color-mix(in srgb, var(--xcloud-primary, #20bf87) 45%, transparent); }
.xcloud-save:not(:disabled) { color: var(--xcloud-primary-foreground, #fff); background: var(--xcloud-primary, #20bf87); }
.xcloud-discard { color: var(--xcloud-foreground, #111); }
.xcloud-field-card { color: var(--xcloud-foreground, #252525); border: 0; background: transparent; }
.xcloud-upload-tile, .xcloud-logo-tile, .xcloud-select-trigger, .xcloud-select-menu, .xcloud-select-option { color: var(--xcloud-foreground, #252525); border-color: var(--xcloud-border, #dedede); background: var(--xcloud-card, #fff); }
.xcloud-select-trigger:hover, .xcloud-select-trigger[aria-expanded=true], .xcloud-select-option:hover, .xcloud-select-option.selected { border-color: var(--xcloud-primary, #28605d); background: var(--xcloud-accent, #f0f8f6); }
.xcloud-upload-group { border-color: var(--xcloud-border, #ececec); }
.xcloud-subheading, .xcloud-select-field > span { color: var(--xcloud-foreground, #353535); }
.xcloud-theme-card { color: var(--xcloud-foreground, #222); border-color: var(--xcloud-border, #dedede); background: var(--xcloud-card, transparent); }
.xcloud-theme-card:hover { border-color: color-mix(in srgb, var(--xcloud-primary, #20bf87) 60%, var(--xcloud-border, #dedede)); box-shadow: 0 4px 12px color-mix(in srgb, var(--xcloud-primary, #20bf87) 14%, transparent); }
.xcloud-theme-card.active { border-color: var(--xcloud-primary, #20bf87); box-shadow: 0 1px 3px color-mix(in srgb, var(--xcloud-foreground, #000) 8%, transparent), 0 2px 4px -1px color-mix(in srgb, var(--xcloud-foreground, #000) 8%, transparent); }
.xcloud-theme-card small { color: var(--xcloud-foreground, #333); }
.xcloud-theme-card.active::after { border-color: var(--xcloud-primary, #20bf87); color: var(--xcloud-primary, #20bf87); background: var(--xcloud-card, #fff); }

/* The TV and Mobile branding tabs use the same dark teal rail as XCloud. */
.xcloud-editor-body:not(.xcloud-panel-mode) { background: #183e4b; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-editor-app { background: #183e4b; color: #202426; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-editor-sidebar {
  border-right: 0;
  color: #e9f7f8;
  background: #183e4b;
}
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-account-name,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav-label,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-sidebar-version { color: #e4f3f4; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav-label { color: #9bc5cb; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav button { color: #f0fbfc; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav button.active { color: #fff; background: #0f2d37; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav button .icon,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav button.active .icon { color: #d9f0f1; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav.support-nav a,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav.support-nav button { color: #f0fbfc; }
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav.support-nav a:hover,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-nav.support-nav button:hover { color: #fff; background: rgba(255,255,255,.07); }
.xcloud-editor-body .xcloud-editor-main {
  margin: 8px 8px 8px 0;
  min-height: calc(100vh - 16px);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.17), 0 1px 2px -1px rgba(0,0,0,.17);
}
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-editor-main,
.xcloud-editor-body:not(.xcloud-panel-mode) .xcloud-editor-content { background: #f6fafb; }
.xcloud-editor-body .xcloud-topbar {
  background: #fff;
  border-bottom-color: #dce7e9;
}
.xcloud-panel-mode .xcloud-editor-app,
.xcloud-panel-mode .xcloud-editor-main,
.xcloud-panel-mode .xcloud-editor-content { background: var(--xcloud-background, #fafafa); }
.xcloud-panel-mode .xcloud-editor-sidebar { background: var(--xcloud-sidebar, #fff); }

/* TV General preview states mirrored from the XCloud branding editor. */
.xcloud-preview-mode-tabs { height: 24px; display: inline-flex; align-items: stretch; gap: 2px; margin-right: 2px; padding: 0; border-radius: 6px; background: #edf2f3; overflow: hidden; }
.xcloud-preview-mode-tabs button { min-width: 0; height: 24px; display: flex; align-items: center; justify-content: center; padding: 0 8px; border: 0; border-radius: 6px; color: #1f2b30; background: transparent; font: 500 12px/16px Roboto, "Roboto Fallback"; }
.xcloud-preview-mode-tabs button:nth-child(1) { width: 50.203125px; }
.xcloud-preview-mode-tabs button:nth-child(2) { width: 41.78125px; }
.xcloud-preview-mode-tabs button:nth-child(3) { width: 55.03125px; }
.xcloud-preview-mode-tabs button.active { color: #fff; background: #183e4b; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.xc-tv-preview-stage { container-type: inline-size; position: relative; box-sizing: border-box; width: 800px; max-width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 4px solid #2a2a30; border-radius: 4px; color: #fff; background-color: #050607; background-position: center; background-size: cover; user-select: none; }
[data-xcloud-preview-stage][data-asset-state="loading"] { position: relative; }
[data-xcloud-preview-stage][data-asset-state="loading"]::after { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; color: rgba(255,255,255,.78); background: rgba(7,9,10,.72); content: 'Carregando preview...'; font: 500 12px/1 Roboto, "Roboto Fallback", Arial, sans-serif; letter-spacing: .02em; pointer-events: none; }
.xcloud-live-editor-grid[data-asset-state="loading"]::after { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; color: #31505f; background: rgba(246,250,251,.72); content: 'Carregando imagens...'; font: 500 13px/1 Roboto, "Roboto Fallback", Arial, sans-serif; pointer-events: none; }
.xc-rating { display: inline-flex; align-items: center; gap: 2px; color: #ffc107; line-height: 1; }
.xc-rating-star { display: block; width: 1.24cqw; height: 1.24cqw; min-width: 7px; min-height: 7px; }
.xc-vod-preview { display: flex; background-color: #18181b; }
.xc-vod-background { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.xc-vod-overlay { position: absolute; inset: 0; z-index: 0; background: rgba(0, 0, 0, .7); pointer-events: none; }
.xc-vod-shell { position: relative; z-index: 1; display: flex; width: 100%; height: 100%; min-width: 0; }
.xc-vod-sidebar { display: flex; width: 22.54cqw; flex: 0 0 22.54cqw; flex-direction: column; gap: 1.24cqw; padding: 3.10cqw 1.24cqw; box-sizing: border-box; background: rgba(11, 11, 11, .55); backdrop-filter: blur(2px); }
.xc-vod-side-item { display: flex; width: 100%; height: 4.38cqw; min-height: 4.38cqw; flex: 0 0 4.38cqw; box-sizing: border-box; align-items: center; gap: .84cqw; overflow: hidden; padding: 0 1.24cqw; border: 2px solid transparent; border-radius: .825cqw; color: #f5f5f5; background: rgba(29, 29, 29, .55); font: 400 1.515cqw/1.5 Roboto, "Roboto Fallback", Arial, sans-serif; }
.xc-vod-side-item .icon { width: 1.95cqw; height: 1.95cqw; min-width: 10px; min-height: 10px; opacity: .9; }
.xc-vod-side-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xc-vod-side-item.active { background: var(--xc-primary, #28605d); }
.xc-vod-catalog { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; padding: 2.475cqw 1.65cqw; }
.xc-vod-catalog-head { display: flex; height: 4.69cqw; flex: 0 0 4.69cqw; box-sizing: border-box; align-items: center; justify-content: space-between; padding: 0 1.65cqw; border-radius: .825cqw; color: #f5f5f5; background: rgba(11, 11, 11, .55); font: 400 1.515cqw/1.5 Roboto, "Roboto Fallback", Arial, sans-serif; backdrop-filter: blur(2px); }
.xc-vod-catalog-head strong { font-weight: 700; }
.xc-vod-filter { display: flex; align-items: center; gap: 2.06cqw; color: #f5f5f5; }
.xc-vod-filter span { display: inline-flex; align-items: center; gap: .67cqw; white-space: nowrap; }
.xc-vod-filter i { display: inline-block; width: .83cqw; height: .83cqw; min-width: 5px; min-height: 5px; border-radius: 50%; background: #3a8ff0; }
.xc-vod-filter span:nth-child(2) i { background: #f4bb33; }
.xc-vod-filter span:nth-child(3) i { background: #58bb67; }
.xc-vod-filter span:nth-child(4) i { background: #eb6570; }
.xc-vod-grid { display: grid; min-height: 0; flex: 1 1 auto; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.24cqw 1.65cqw; margin-top: 1.24cqw; overflow: visible; }
.xc-vod-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; box-sizing: border-box; border: 2px solid transparent; border-radius: 6px; background: transparent; transition: transform .2s ease; }
.xc-vod-card.is-selected { z-index: 2; transform: scale(1.05); }
.xc-vod-card-image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.xc-vod-card-rating { position: absolute; top: 1.00cqw; left: 1.00cqw; z-index: 2; display: flex; align-items: center; }
.xc-vod-card-title { position: absolute; right: 0; bottom: 0; left: 0; min-height: 0; padding: 2.02cqw .67cqw .67cqw; background: linear-gradient(to top, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); }
.xc-vod-card-title span { display: -webkit-box; overflow: hidden; color: #fff; font: 600 1.35cqw/2.02cqw Roboto, "Roboto Fallback", Arial, sans-serif; text-overflow: ellipsis; text-transform: uppercase; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.xc-vod-card.is-selected { border-color: var(--xc-secondary, #fff); }
.xc-details-preview { display: flex; align-items: stretch; justify-content: stretch; background: #18181b; }
.xc-details-backdrop, .xc-details-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.xc-details-backdrop { object-fit: cover; opacity: 1; filter: none; transform: none; }
.xc-details-shade { background: linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .70) 50%, rgba(0, 0, 0, 0) 100%); }
.xc-details-copy { position: relative; z-index: 1; display: flex; width: 100%; min-height: 0; box-sizing: border-box; flex-direction: column; justify-content: flex-end; gap: 1.24cqw; padding: 3.61cqw 4.13cqw; color: #f5f5f5; }
.xc-details-copy h2 { margin: 0; color: #fff; font: 700 3.30cqw/4.95cqw Roboto, "Roboto Fallback", Arial, sans-serif; }
.xc-details-meta { display: flex; align-items: center; gap: 1.24cqw; color: #f5f5f5; font: 400 1.515cqw/1.5 Roboto, "Roboto Fallback", Arial, sans-serif; }
.xc-details-meta > span { white-space: nowrap; }
.xc-details-meta .xc-details-rating { flex: 0 0 auto; }
.xc-details-genre { max-width: 18cqw; overflow: hidden; text-overflow: ellipsis; }
.xc-details-copy p { width: 45.4cqw; max-width: 45.4cqw; margin: 0; overflow: hidden; color: #d4d4d8; font: 400 1.35cqw/2.02cqw Roboto, "Roboto Fallback", Arial, sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.xc-details-actions { display: flex; align-items: center; gap: 1.24cqw; }
.xc-details-actions button { display: inline-flex; height: 3.71cqw; min-height: 22px; box-sizing: border-box; align-items: center; gap: .84cqw; padding: 0 2.06cqw; border: 2px solid transparent; border-radius: 3px; color: #fff; font: 600 1.68cqw/2.52cqw Roboto, "Roboto Fallback", Arial, sans-serif; }
.xc-details-actions .xc-details-play { background: var(--xc-primary, #28605d); }
.xc-details-actions .xc-details-trailer { border-color: var(--xc-secondary, #fff); background: rgba(255, 255, 255, .14); }
.xc-details-actions .icon { width: 1.68cqw; height: 1.68cqw; min-width: 8px; min-height: 8px; }
