:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #394755;
  background: #fff;
  font-synthesis: none;
  --ink: #394755;
  --muted: #657585;
  --paper: #fff;
  --line: #dfe5eb;
  --pine: #176aaa;
  --pine-soft: #115485;
  --coral: #b34335;
  --gold: #e9b34a;
  --mint: #168067;
  --accent: #176aaa;
}

.gallery-configuration { flex-wrap: wrap; }
.gallery-appearance-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 18px; width: 100%; padding: 20px; border: 1px solid #d5e0e8; border-radius: 12px; }
.gallery-appearance-fields label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gallery-appearance-fields label.check { flex-direction: row; align-items: center; }
.gallery-appearance-fields input[type=color] { height: 42px; width: 100%; padding: 3px; }
.gallery-asset { min-width: 0; display: grid; gap: 10px; border: 1px solid #d5e0e8; border-radius: 8px; }
.gallery-asset input[type=file] { max-width: 100%; }
.gallery-css { grid-column: 1/-1; }
.gallery-css textarea { width: 100%; font-family: monospace; }
.gallery-preview-panel { margin: 24px 0; padding: 16px; background: #f2f5f8; border-radius: 12px; }
.gallery-preview-panel iframe { display: block; width: 100%; max-width: 100%; height: 720px; margin: 16px auto; border: 1px solid #b8c6d2; border-radius: 10px; background: #111022; }

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; min-height: 100vh; background: #fff; font-size: 14px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot-message { padding: 3rem; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -4rem; background: white; padding: .75rem 1rem; color: var(--ink); }
.skip-link:focus { top: 1rem; }
.app-shell { min-height: 100vh; min-width: 0; }
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.top-navigation { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 2rem; min-height: 65px; padding: 0 max(15px, calc((100vw - 1536px) / 2)); color: #fff; background: #267fbd; box-shadow: 1px 1px 4px rgb(0 0 0 / 10%); }
.dashboard-wordmark { display: block; border: 0; padding: 12px 0; background: none; color: white; font-size: 23px; font-weight: 800; letter-spacing: -1px; line-height: .83; text-align: left; }
.dashboard-wordmark > span { display: block; }
.dashboard-wordmark > img { display: block; width: 48px; height: 48px; object-fit: contain; }
.top-navigation > nav { display: flex; align-self: stretch; align-items: stretch; gap: 6px; }
.top-navigation > nav button { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; color: white; background: transparent; font-size: 14px; }
.top-navigation > nav button:hover, .top-navigation > nav button[aria-current="true"] { border-bottom-color: #fff; background: rgb(0 0 0 / 12%); }
.account-navigation { position: relative; margin-left: auto; }
.account-navigation summary { display: flex; align-items: center; gap: 9px; min-height: 48px; cursor: pointer; list-style: none; }
.account-navigation summary::-webkit-details-marker { display: none; }
.account-navigation nav { position: absolute; right: 0; top: calc(100% + 10px); width: 235px; padding: 8px 0; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgb(32 57 77 / 16%); background: white; }
.account-navigation nav button, .account-navigation nav a { display: block; width: 100%; min-height: 42px; padding: 10px 16px; border: 0; color: var(--ink); background: white; text-align: left; text-decoration: none; }
.account-navigation nav button:hover, .account-navigation nav a:hover, .account-navigation nav [aria-current="true"] { background: #edf5fb; color: #125688; }
.header-user-tools { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.mobile-account-shortcuts, .primary-navigation-toggle { display: none; }
.primary-navigation-toggle .menu-close-icon { display: none; }
.primary-navigation-toggle[aria-expanded="true"] .menu-open-icon { display: none; }
.primary-navigation-toggle[aria-expanded="true"] .menu-close-icon { display: inline; }
.operator-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operator-avatar { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; overflow: hidden; border-radius: 50%; background: #dbe4ee; color: #8295a8; }
.operator-avatar img { width: 100%; height: 100%; object-fit: cover; }
.operator-avatar .ui-icon { width: 30px; height: 30px; }
.account-navigation nav { min-width: 270px; background: #287aba; padding: 0; }
.account-navigation nav button { display: flex; gap: 14px; align-items: center; padding: 17px 20px; background: transparent; color: white; border-bottom: 1px solid #ffffff55; }
.account-navigation nav button:last-child { border-bottom: 0; }
.account-navigation nav button:hover { background: #1c649c; color: white; }
.notification-navigation { position: relative; }
.notification-navigation > summary { position: relative; display: grid; place-items: center; min-width: 44px; min-height: 48px; list-style: none; cursor: pointer; }
.notification-navigation > summary::-webkit-details-marker { display: none; }
.notification-navigation > summary .ui-icon { width: 26px; height: 26px; }
.notification-count { position: absolute; top: 0; right: -4px; border-radius: 50%; min-width: 22px; padding: 3px; background: #cb3946; color: #fff; font-size: 12px; text-align: center; }
.notification-panel { position: absolute; right: -70px; top: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); max-height: min(600px, 75vh); overflow: auto; background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 8px 24px #20394d29; border-radius: 4px; }
.notification-panel .editor-tabs { padding: 6px 14px 0; margin: 0; background: #287aba; }
.notification-panel .editor-tabs button { color: white; }
.notification-panel .editor-tabs button[aria-pressed="true"] { border-color: white; }
.notification-content { padding: 20px; min-height: 240px; }
.notification-operational { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.notification-operational summary { cursor: pointer; }
.notification-panel p, .notification-panel small { line-height: 1.5; }
.notification-panel .button { display: flex; margin-top: 18px; }
.notification-panel ul { list-style: none; margin: 0 0 14px; padding: 0; }
.notification-panel li { display: flex; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notification-panel li > .ui-icon { color: #a66110; }
.notification-panel li span, .notification-panel li small { display: block; margin-top: 5px; }
.profile-columns { display: grid; grid-template-columns: minmax(200px, .27fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-photo { text-align: center; padding: 32px 22px; }
.operator-avatar--large { width: min(100%, 220px); height: auto; aspect-ratio: 1; margin-bottom: 24px; }
.operator-avatar--large .ui-icon { width: 70%; height: 70%; }
.profile-photo form { display: grid; gap: 14px; margin-top: 28px; text-align: left; }
.profile-photo input { margin-top: 8px; }
.profile-photo small { color: var(--muted); line-height: 1.5; }
.profile-photo .text-button { margin-top: 18px; }
.profile-details { padding: 36px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.profile-heading h2 { flex-shrink: 0; font-size: 15px; font-weight: 600; text-transform: uppercase; }
.profile-heading .editor-tabs { margin: 0; border: 0; }
.profile-heading .editor-tabs button { padding-left: 10px; padding-right: 10px; }
.profile-details form > label { display: grid; gap: 12px; margin-top: 30px; }
.profile-details input:not([type="checkbox"]), .profile-details select { border-width: 0 0 2px; border-radius: 0; padding-left: 0; min-height: 44px; }
.profile-details small { display: block; color: var(--muted); margin-top: 8px; }
.profile-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; }
.profile-access { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.profile-access dd { overflow-wrap: anywhere; }
.white-label-section { margin: 32px 0 44px; padding: 12px 0 30px; border-bottom: 1px solid var(--line); }
.white-label-section h2, .white-label-section > summary { margin-bottom: 22px; font-size: 20px; color: var(--ink); }
.white-label-section > summary { cursor: pointer; }
.white-label-fields { display: flex; align-items: end; gap: 14px; }
.white-label-fields label { display: grid; gap: 10px; width: min(100%, 400px); }
.white-label-section .create-grid { max-width: 860px; margin-bottom: 18px; }
.white-label-section table { width: 100%; min-width: 640px; border: 1px solid var(--line); }
.white-label-section table caption { text-align: left; font-weight: 600; padding: 24px 0 15px; }
.white-label-section td, .white-label-section th { border: 1px solid var(--line); padding: 18px; }
.white-label-section tbody tr:nth-child(odd) { background: #f8fafc; }
.white-label-section .inline-actions { flex-wrap: nowrap; }
.white-label-section details { margin-top: 20px; scroll-margin-top: 100px; }
.white-label-section code { overflow-wrap: anywhere; }
@media (max-width: 620px) { .white-label-fields { flex-direction: column; align-items: start; } }
.account-setting-links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
@media (max-width: 1150px) { .profile-heading { display: block; } .profile-columns { grid-template-columns: 220px minmax(0, 1fr); } .header-user-tools { gap: 8px; } .operator-name { max-width: 85px; } }
@media (max-width: 700px) { .profile-columns { grid-template-columns: 1fr; } .profile-photo { padding: 24px; } .operator-avatar--large { width: 130px; } .profile-photo form { margin-top: 18px; } .profile-details { padding: 22px; } .profile-heading .editor-tabs { overflow-x: auto; } .notification-panel { right: -140px; } .account-navigation nav { min-width: 245px; } }
.product-mark { display: flex; align-items: center; gap: .8rem; margin: 0 .5rem 2.2rem; }
.product-mark > span { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .8rem; color: var(--pine); background: var(--gold); font-weight: 900; letter-spacing: -.08em; }
.product-mark strong { font-size: 1.05rem; letter-spacing: -.02em; }
.product-mark em { color: var(--gold); font-style: normal; }
.connection-dot { display: inline-block; width: .5rem; height: .5rem; margin-right: .5rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 .2rem rgb(82 182 154 / 15%); }
.workspace { width: min(1568px, 100%); min-width: 0; margin: 0 auto; padding: 0 24px 60px; }
.workspace > .page-header { position: relative; min-height: 108px; padding: 20px 0; margin-bottom: 28px; background: #f4f6f8; box-shadow: 0 0 0 100vmax #f4f6f8; clip-path: inset(0 -100vmax); }
.workspace > .page-header > div:first-child { flex: 1; }
.workspace > .page-header p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.page-header, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .3rem; color: #3e5366; font-size: 26px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
h2 { margin-bottom: .4rem; color: #26668f; font-size: 18px; font-weight: 500; letter-spacing: 0; }
h3 { font-size: 15px; font-weight: 600; }
.eyebrow { margin-bottom: .35rem; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; border: 1px solid var(--pine); border-radius: 4px; padding: 8px 15px; color: white; background: var(--pine); font-weight: 500; }
.button:hover { background: var(--pine-soft); color: white; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button--quiet { color: var(--pine); background: transparent; }
.button--danger { color: #a4342a; border-color: #efb7b0; background: #fff4f1; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 24px 0 20px; }
.tabs { display: inline-flex; gap: 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.tabs button { min-height: 42px; border: 0; border-bottom: 2px solid transparent; padding: 10px 22px; color: var(--muted); background: transparent; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { color: var(--pine); border-bottom-color: var(--pine); }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #c9d3de; border-radius: 4px; padding: 9px 11px; color: var(--ink); background: white; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--pine); }
textarea { min-height: 5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid #237dc4; outline-offset: 3px; }
.top-navigation :focus-visible { outline-color: #fff; }
.toolbar input { min-width: min(22rem, 45vw); }
.panel { min-width: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: 5px; padding: 20px; background: var(--paper); box-shadow: none; }
.create-panel { display: grid; grid-template-columns: minmax(12rem, .5fr) minmax(24rem, 1.5fr); gap: 2rem; border-top: 4px solid var(--gold); }
.create-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.create-grid label { display: grid; gap: .35rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.create-grid label:last-of-type { grid-column: 1 / -1; }
.table-panel { padding: 0; overflow: hidden; }
.table-panel .panel-heading { padding: 1.2rem 1.25rem; border-bottom: 1px solid var(--line); }
.table-panel .panel-heading span { color: var(--muted); font-size: .85rem; }
.upload-progress { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1rem; margin-top: 1rem; color: var(--muted); }
.upload-progress progress { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .95rem 1.25rem; border-bottom: 1px solid #e7ebe5; text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f5f7f2; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td small { display: block; margin-top: .2rem; color: var(--muted); }
.empty { color: var(--muted); }
.status { display: inline-flex; align-items: center; border-radius: 999px; padding: .28rem .58rem; color: #53605d; background: #e8ede8; font-size: .7rem; font-weight: 850; letter-spacing: .05em; }
.status--ready, .status--live, .status--online, .status--published { color: #17634f; background: #daf2e8; }
.status--warning { color: #7b5710; background: #fff0c9; }
.status--blocked, .status--offline { color: #96362c; background: #ffe0dc; }
.back-link { min-height: 40px; margin-bottom: 0; border: 0; color: var(--pine); background: transparent; }
.event-heading p { color: var(--muted); }
.action-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.animation-capture-settings .animation-settings-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: end; gap: 16px; margin: 20px 0; }
.animation-capture-settings label { display: grid; gap: 8px; min-width: 0; }
.animation-capture-settings input { width: 100%; min-width: 0; min-height: 44px; }
.animation-capture-settings button { min-height: 44px; }
.animation-capture-settings form p { grid-column: 1 / -1; margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin: 2rem 0 1rem; }
.metric { min-width: 0; min-height: 6rem; border: 1px solid var(--line); border-radius: 4px; padding: 1rem; background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.metric > span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.guest-workspace .guest-metrics, .guest-workspace .toolbar { margin-right: 1.25rem; margin-left: 1.25rem; }
.guest-workspace .guest-metrics { margin-top: 1.25rem; }
.delivery-workspace .delivery-metrics, .delivery-workspace .delivery-filters { margin-right: 1.25rem; margin-left: 1.25rem; }
.delivery-workspace .delivery-metrics { margin-top: 1.25rem; }
.gallery-workspace .gallery-configuration, .gallery-workspace > form:not(.gallery-configuration), .gallery-workspace .gallery-metrics, .gallery-workspace .gallery-publication { margin-right: 1.25rem; margin-left: 1.25rem; }
.gallery-workspace .gallery-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1.25rem; }
.gallery-workspace .gallery-configuration { align-items: end; justify-content: flex-start; flex-wrap: wrap; }
.gallery-workspace .gallery-configuration label, .gallery-workspace > form:not(.gallery-configuration) label { display: grid; gap: .35rem; color: var(--muted); font-size: .75rem; font-weight: 750; }
.gallery-workspace .gallery-configuration .check { grid-template-columns: auto 1fr; align-items: center; }
.gallery-workspace .gallery-configuration .check input { width: auto; }
.gallery-publication { display: grid; grid-template-columns: auto auto minmax(12rem, 1fr); gap: .5rem 1rem; align-items: center; border: 1px solid var(--line); border-radius: .7rem; padding: .75rem; background: #f5f7f2; }
.gallery-publication span { color: var(--muted); font-size: .75rem; }
.gallery-publication code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delivery-filters { align-items: end; justify-content: flex-start; flex-wrap: wrap; }
.delivery-filters label { display: grid; gap: .35rem; color: var(--muted); font-size: .75rem; font-weight: 750; }
.delivery-filters input { min-width: min(22rem, 45vw); }
.delivery-error { display: inline-flex; border-radius: .4rem; padding: .25rem .45rem; color: #96362c; background: #fff0ed; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.delivery-timeline { min-width: 9rem; }
.delivery-timeline summary { color: var(--pine); cursor: pointer; font-size: .76rem; font-weight: 800; }
.delivery-timeline ol { min-width: 20rem; margin: .6rem 0 0; padding-left: 1.2rem; }
.delivery-timeline li { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; margin-bottom: .55rem; }
.delivery-timeline li > span:first-child { color: var(--muted); font-size: .7rem; }
.delivery-timeline li small { grid-column: 1 / -1; }
.guest-fields { display: grid; gap: .35rem; margin: 0; }
.guest-fields div { display: grid; grid-template-columns: minmax(7rem, auto) 1fr; gap: .5rem; }
.guest-fields dt { color: var(--muted); font-size: .72rem; font-weight: 750; }
.guest-fields dd { margin: 0; overflow-wrap: anywhere; }
.preflight-panel { border-top: 4px solid var(--mint); }
.check-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; justify-content: space-between; padding: .75rem 0; border-top: 1px solid var(--line); text-transform: capitalize; }
.code-panel { display: block; }
.code-panel > div:first-child { margin-bottom: 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.code-panel form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: start; }
.code-panel label, .toolbar label { display: grid; gap: 6px; color: #516474; font-size: 13px; }
.code-panel .check { display: flex; gap: 8px; align-items: center; min-height: 40px; }
.code-panel fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 4px; display: grid; gap: 12px; }
.code-panel legend { padding: 0 6px; color: var(--pine); font-weight: 500; }
.code-panel form > button, .code-panel form > p, .code-panel form > .inline-actions { grid-column: 1 / -1; justify-self: start; }
.code-panel p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.one-time-secret { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; border-radius: .8rem; padding: 1rem; background: #fff3d8; }
.one-time-secret strong { font-size: 1.5rem; letter-spacing: .18em; }
.one-time-secret button { margin-left: auto; border: 0; background: transparent; text-decoration: underline; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.library-card { min-width: 0; min-height: 12rem; border: 1px solid var(--line); border-radius: 5px; padding: 20px; background: var(--paper); }
.library-card > p:not(.eyebrow) { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.library-card p span { color: var(--muted); font-size: .78rem; }
.template-library { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.template-card { min-width: 0; display: grid; grid-template-rows: minmax(160px, 1fr) auto auto; gap: 12px; min-height: 300px; border: 1px solid var(--line); border-radius: 4px; padding: 10px; background: var(--paper); }
.template-card__preview { display: grid; place-items: center; overflow: hidden; border-radius: 3px; color: #52728a; background: #eaf0f6; }
.template-card__preview span { border: 1px solid rgb(255 255 255 / 24%); border-radius: 999px; padding: .35rem .7rem; font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.template-card small { display: block; overflow: hidden; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.template-empty { grid-column: 1 / -1; border: 1px dashed #bfc9c1; border-radius: 1rem; padding: 4rem 1rem; text-align: center; }
.designer-workspace { min-width: 0; background: #edf1f5; }
.designer-toolbar { min-height: 6rem; border-bottom: 1px solid #cfd6cf; padding: .75rem 1rem; background: var(--paper); display: grid; grid-template-columns: auto minmax(12rem, 1fr) auto auto; align-items: center; gap: 1rem; }
.designer-toolbar .back-link { margin: 0; }
.designer-toolbar h1 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
.save-state { border-radius: 999px; padding: .35rem .65rem; color: #765512; background: #fff0c9; font-size: .72rem; font-weight: 800; }
.designer-grid { min-height: calc(100vh - 6rem); display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(25rem, 1fr) minmax(17rem, 22rem); }
.designer-panel { min-width: 0; padding: 1rem; background: var(--paper); }
.layers-panel { border-right: 1px solid #cfd6cf; }
.properties-panel { border-left: 1px solid #cfd6cf; overflow-y: auto; }
.designer-panel__heading { display: flex; align-items: center; justify-content: space-between; }
.designer-panel__heading span { border-radius: 999px; padding: .25rem .5rem; color: var(--muted); background: #eef1eb; font-size: .75rem; }
.layer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; margin: 1rem 0; }
.layer-actions button, .arrange-actions button { border: 1px solid #ccd4cd; border-radius: .5rem; padding: .55rem; color: var(--pine); background: white; font-size: .72rem; font-weight: 700; }
.layer-actions button:disabled { color: #99a29e; background: #f2f4f0; cursor: not-allowed; }
.add-content { border-top: 1px solid var(--line); padding: .7rem 0; }
.add-content summary { cursor: pointer; color: var(--pine); font-size: .76rem; font-weight: 800; }
.layer-list { display: grid; gap: .4rem; }
.layer-row { width: 100%; border: 1px solid transparent; border-radius: .6rem; padding: .65rem; color: var(--ink); background: #f2f5f0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; text-align: left; }
.layer-row[aria-pressed="true"] { border-color: var(--mint); background: #e2f3ec; box-shadow: 0 0 0 2px rgb(82 182 154 / 12%); }
.layer-row span, .layer-row small { color: var(--muted); font-size: .65rem; }
.layer-row strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.arrange-actions { display: grid; gap: .4rem; margin-top: 1rem; }
.canvas-stage { min-width: 0; padding: 1rem; background-color: #d9ded8; background-image: linear-gradient(45deg, rgb(255 255 255 / 28%) 25%, transparent 25%), linear-gradient(-45deg, rgb(255 255 255 / 28%) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgb(255 255 255 / 28%) 75%), linear-gradient(-45deg, transparent 75%, rgb(255 255 255 / 28%) 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; display: grid; grid-template-rows: auto minmax(0, 1fr); place-items: center; }
.canvas-rulers { width: 100%; color: #5e6a67; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 750; }
.template-canvas { position: relative; width: auto; max-width: 90%; height: min(70vh, 54rem); max-height: calc(100vh - 10rem); overflow: hidden; box-shadow: 0 1.2rem 4rem rgb(26 42 38 / 22%); }
.canvas-layer { position: absolute; overflow: hidden; border: 1px dashed rgb(23 35 33 / 30%); display: grid; place-items: center; transform-origin: center; }
.canvas-layer span { max-width: 90%; overflow: hidden; border-radius: .25rem; padding: .2rem .35rem; color: #1c3832; background: rgb(255 255 255 / 72%); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.canvas-layer--capture { background: linear-gradient(135deg, rgb(82 182 154 / 28%), rgb(19 37 34 / 15%)); }
.canvas-layer.is-selected { outline: 3px solid var(--coral); outline-offset: -2px; }
.properties-panel details { border-bottom: 1px solid var(--line); padding: .8rem 0; }
.properties-panel summary { cursor: pointer; font-weight: 850; }
.properties-form { display: grid; gap: .7rem; padding-top: .8rem; }
.properties-form label { display: grid; gap: .3rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.properties-form fieldset { margin: 0; border: 1px solid var(--line); border-radius: .6rem; padding: .7rem; }
.properties-form legend { color: var(--muted); font-size: .7rem; font-weight: 800; }
.properties-form .check { grid-template-columns: auto 1fr; align-items: center; }
.properties-form .check input { width: auto; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.frame-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: .5rem; align-items: end; border-top: 1px solid var(--line); padding: .7rem 0; }
.frame-row strong { align-self: center; font-size: .75rem; }
.frame-row label { display: grid; gap: .25rem; color: var(--muted); font-size: .68rem; font-weight: 700; }
.frame-row button { grid-column: 2 / -1; }
.survey-builder { width: min(1100px, 100%); }
.survey-toolbar { position: sticky; z-index: 5; top: 0; margin: -2.5rem calc(-1 * clamp(1.2rem, 4vw, 4rem)) 1rem; }
.survey-metadata { border-top: 4px solid var(--gold); }
.survey-metadata fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.survey-section-list { display: grid; gap: 1rem; }
.survey-section { border-top: 3px solid var(--mint); }
.survey-section-drag-handle { display: inline-block; margin-bottom: .35rem; color: var(--muted); font-size: .68rem; font-weight: 800; cursor: grab; }
.survey-section-drag-handle:active { cursor: grabbing; }
.survey-section-drop-zone { min-height: .4rem; border: 1px dashed transparent; border-radius: .5rem; color: transparent; font-size: .68rem; text-align: center; }
.survey-section-drop-zone:hover { min-height: 2.4rem; border-color: var(--coral); color: var(--muted); padding: .5rem; }
.survey-section-form { grid-template-columns: 1fr 1fr auto; align-items: end; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.survey-fields { display: grid; gap: .35rem; padding: .8rem 0; }
.survey-field { border: 1px solid var(--line); border-radius: .8rem; padding: .85rem; background: white; box-shadow: 0 .2rem .7rem rgb(31 54 48 / 5%); }
.survey-field[draggable="true"] { cursor: grab; }
.survey-field:active { cursor: grabbing; }
.survey-field__heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; }
.survey-field__heading > span { border-radius: 999px; padding: .25rem .5rem; color: #17634f; background: #daf2e8; font-size: .66rem; font-weight: 850; }
.survey-field__heading .inline-actions, .survey-section .inline-actions { display: flex; gap: .35rem; }
.survey-field__heading button, .survey-section .inline-actions button { border: 1px solid var(--line); border-radius: .45rem; padding: .35rem .55rem; color: var(--pine); background: white; }
.survey-field__heading button:disabled, .survey-section .inline-actions button:disabled { color: #9aa39f; cursor: not-allowed; }
.survey-drop-zone { min-height: .6rem; border: 1px dashed transparent; border-radius: .4rem; color: transparent; font-size: .65rem; text-align: center; transition: min-height .15s ease, border-color .15s ease; }
.survey-drop-zone:hover { min-height: 2rem; border-color: var(--mint); color: var(--muted); padding: .35rem; }
.survey-add-field { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; align-items: end; gap: .7rem; }
.survey-add-field label, .survey-add-section label { display: grid; gap: .3rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.survey-add-section { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .8rem; }
.survey-card p:not(.eyebrow) { color: var(--muted); }
.microsite-builder { min-width: 0; }
.microsite-toolbar { position: sticky; z-index: 12; top: 0; }
.microsite-template-strip { padding: .7rem 1rem; border-bottom: 1px solid #cfd6cf; background: #eef3ee; display: grid; grid-template-columns: minmax(20rem, 1fr) auto minmax(12rem, .8fr); align-items: end; gap: .7rem; }
.microsite-template-strip form { display: grid; grid-template-columns: minmax(14rem, 1fr) auto; align-items: end; gap: .5rem; }
.microsite-template-strip label { color: var(--muted); font-size: .7rem; font-weight: 750; }
.microsite-template-strip p { margin: 0; color: var(--muted); font-size: .68rem; }
.microsite-builder-grid { min-height: calc(100vh - 6rem); display: grid; grid-template-columns: minmax(15rem, 18rem) minmax(12rem, 15rem) minmax(24rem, 1fr) minmax(18rem, 23rem); }
.microsite-pages, .microsite-components { border-right: 1px solid #cfd6cf; overflow-y: auto; }
.microsite-properties { border-left: 1px solid #cfd6cf; overflow-y: auto; }
.microsite-page-list { display: grid; gap: .45rem; margin: 1rem 0; }
.microsite-page-list article { border: 1px solid var(--line); border-radius: .65rem; padding: .45rem; background: #f5f7f2; display: grid; grid-template-columns: 1fr auto; gap: .35rem; }
.microsite-page-list article[aria-current="true"] { border-color: var(--mint); background: #e2f3ec; }
.microsite-page-select { min-width: 0; border: 0; padding: .25rem; color: var(--ink); background: transparent; text-align: left; }
.microsite-page-select small { display: block; overflow: hidden; margin-top: .2rem; color: var(--muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.microsite-page-list .inline-actions { display: flex; gap: .2rem; }
.microsite-page-list .inline-actions button, .microsite-block-actions button { border: 1px solid var(--line); border-radius: .35rem; color: var(--pine); background: white; }
.microsite-component-palette { display: grid; gap: .45rem; margin-top: 1rem; }
.microsite-component-palette button { border: 1px solid var(--line); border-radius: .65rem; padding: .6rem; color: var(--ink); background: #f7f9f5; display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; text-align: left; }
.microsite-component-palette button:hover { border-color: var(--mint); background: #e7f4ef; }
.microsite-component-palette button span { grid-row: 1 / 3; align-self: center; color: var(--mint); font-size: 1.1rem; }
.microsite-component-palette button small { color: var(--muted); font-size: .62rem; }
.microsite-canvas-stage { min-width: 0; padding: 1rem; overflow: hidden; background-color: #d9ded8; background-image: linear-gradient(45deg, rgb(255 255 255 / 28%) 25%, transparent 25%), linear-gradient(-45deg, rgb(255 255 255 / 28%) 25%, transparent 25%); background-size: 16px 16px; }
.microsite-preview-controls { display: grid; grid-template-columns: minmax(8rem, 1fr) repeat(3, minmax(5rem, .6fr)) auto; align-items: end; gap: .5rem; margin-bottom: 1rem; border: 1px solid #cbd4cd; border-radius: .75rem; padding: .7rem; background: rgb(255 255 255 / 86%); }
.microsite-preview-controls label { color: var(--muted); font-size: .68rem; font-weight: 750; }
.microsite-device-shortcuts { display: flex; justify-content: center; gap: .75rem; margin-bottom: .75rem; }
.microsite-device-shortcuts form { margin: 0; }
.microsite-device-shortcuts button { display: grid; justify-items: center; gap: .25rem; min-width: 3.5rem; min-height: 3.5rem; padding: .4rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #64748b; cursor: pointer; }
.microsite-device-shortcuts .ui-icon { width: 1.8rem; height: 1.8rem; }
.microsite-device-shortcuts button[aria-pressed="true"] { color: #17212b; border-bottom-color: var(--primary, #287fb8); }
.microsite-device-shortcuts button:focus-visible { outline: 2px solid var(--primary, #287fb8); outline-offset: 3px; }
.microsite-preview-advanced { margin-bottom: .75rem; }
.microsite-viewport-shell { width: 100%; height: calc(100vh - 11rem); overflow: auto; display: grid; place-items: start center; }
.microsite-viewport { max-width: none; flex: none; overflow: auto; box-shadow: 0 1.2rem 4rem rgb(26 42 38 / 24%); }
.microsite-viewport > header { position: sticky; z-index: 2; top: 0; padding: .8rem 1rem; color: white; background: var(--pine); display: flex; justify-content: space-between; }
.microsite-canvas-block { position: relative; }
.microsite-block-actions { position: absolute; z-index: 3; top: .3rem; right: .3rem; display: flex; gap: .2rem; opacity: .25; }
.microsite-canvas-block:hover .microsite-block-actions { opacity: 1; }
.microsite-preview-block { position: relative; width: min(var(--block-width), 100%); margin-inline: auto; box-sizing: border-box; padding: var(--block-padding); gap: var(--block-gap); color: var(--block-color); background: var(--block-background); text-align: var(--block-align); display: grid; }
.microsite-preview-block[data-variant="EMPHASIZED"] { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 32%, transparent); }
.microsite-properties [hidden] { display: none; }
.image-resource-choice { display: grid; gap: .5rem; align-content: start; }
.image-resource-choice img { display: block; width: 100%; height: 10rem; object-fit: contain; background: #f3f5f7; }
.microsite-preview-block[aria-selected="true"] { outline: 3px solid var(--coral); outline-offset: -3px; }
.microsite-preview-block nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.microsite-preview-block input { max-width: 18rem; }
.microsite-block-select { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border: 1px dotted #267b55; border-radius: 0; padding: 0; background: transparent; cursor: pointer; }
.microsite-block-select:hover, .microsite-block-select:focus-visible { outline: 2px solid #267b55; outline-offset: -2px; }
.microsite-canvas-block:focus-within .microsite-block-actions { opacity: 1; }
.microsite-block-kind { position: absolute; top: .25rem; left: .25rem; border: 0; border-radius: 999px; padding: .15rem .4rem; color: white; background: rgb(19 37 34 / 72%); font-size: .55rem; font-weight: 850; letter-spacing: .06em; }
.microsite-preview-button { display: inline-block; border-radius: .5rem; padding: .65rem 1rem; color: white; background: var(--pine); font-weight: 800; }
.microsite-property-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: 1rem 0 0; }
.microsite-property-tabs button { border: 1px solid var(--line); border-radius: .45rem; padding: .5rem; color: var(--pine); background: white; font-size: .68rem; font-weight: 800; }
.microsite-property-tabs button[aria-selected="true"] { color: white; background: var(--pine-soft); }
.microsite-properties textarea[name="contentJson"] { min-height: 15rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.email-template-workspace { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); overflow: hidden; }
.email-template-workspace > .panel-heading { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.email-authoring-workspace > .page-header { margin-bottom: 0; }
.email-authoring-workspace .email-template-workspace { margin-top: 0; }
.email-action-dialog, .dashboard-name-dialog { width: min(30rem, calc(100vw - 3rem)); box-sizing: border-box; padding: 1.5rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
.email-action-dialog::backdrop, .dashboard-name-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.email-action-dialog form, .dashboard-name-dialog form { display: grid; gap: 1rem; }
.image-resource-dialog { width: min(44rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); box-sizing: border-box; overflow: auto; padding: 1.5rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
.image-resource-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.image-resource-dialog form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.image-resource-dialog form label { flex: 1; min-width: 12rem; }
.image-resource-dialog [data-image-choices] { display: grid; gap: .5rem; margin-bottom: 1rem; }
.image-resource-dialog [data-image-choice] { text-align: left; min-height: 44px; }
.email-template-grid { min-height: 32rem; height: min(900px, calc(100dvh - 140px)); display: grid; grid-template-columns: minmax(19rem, 29rem) minmax(28rem, 1fr); }
.email-template-controls { padding: 1rem; border-right: 1px solid var(--line); background: #f8faf7; overflow-y: auto; }
.email-template-controls h3 { margin: .25rem 0 .5rem; color: var(--pine); font-size: .9rem; }
.email-template-controls > .properties-form { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .75rem; padding: .8rem; background: white; }
.email-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.email-brand-grid h3, .email-brand-grid button { grid-column: 1 / -1; }
.email-block-list { display: grid; gap: .75rem; margin: 1rem 0; }
.email-block-card { border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; background: white; box-shadow: 0 .2rem .7rem rgb(31 54 48 / 5%); }
.email-block-card > header { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; align-items: center; }
.email-block-card > header span { grid-column: 1; color: var(--muted); font-size: .62rem; overflow-wrap: anywhere; }
.email-block-card > header .inline-actions { grid-column: 2; grid-row: 1 / 3; display: flex; gap: .25rem; }
.email-block-card > header button { border: 1px solid var(--line); border-radius: .4rem; color: var(--pine); background: white; }
.email-preview-stage { min-width: 0; min-height: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; padding: 1rem; background: #d9ded8; overflow: hidden; }
.email-preview-controls { display: flex; align-items: end; gap: .6rem; margin-bottom: 1rem; border: 1px solid #cbd4cd; border-radius: .75rem; padding: .7rem; background: rgb(255 255 255 / 90%); }
.email-preview-controls label { flex: 1; color: var(--muted); font-size: .72rem; font-weight: 750; }
.email-preview-scroll { flex: 1; min-height: 0; overflow: auto; display: grid; place-items: start center; }
.email-preview-device { flex: none; padding: 2.5rem 1rem; transform-origin: top center; box-shadow: 0 1.2rem 4rem rgb(26 42 38 / 24%); box-sizing: border-box; }
.email-preview-envelope { margin: 0 auto; overflow: hidden; border-radius: .6rem; box-shadow: 0 .4rem 1.4rem rgb(19 37 34 / 14%); }
.email-preview-envelope > header { padding: 1.4rem; color: white; display: grid; gap: .3rem; }
.email-preview-envelope > header small, .email-preview-envelope > header span { opacity: .82; }
.email-preview-block { box-sizing: border-box; }
.email-preview-block h2, .email-preview-block p { margin: 0; white-space: pre-wrap; }
.email-preview-block hr { border: 0; border-top: 1px solid currentcolor; opacity: .25; }
.email-preview-button { display: inline-block; border-radius: .5rem; padding: .7rem 1rem; color: var(--email-button-text-color, white); background: var(--email-button-color, var(--pine)); font-weight: 800; }
.email-preview-block > small { display: block; margin-top: .35rem; color: var(--email-muted-color, var(--muted)); font-size: .58rem; }
.email-resource-placeholder, .email-media-placeholder { min-height: 8rem; border: 2px dashed currentcolor; border-radius: .5rem; opacity: .7; display: grid; place-items: center; align-content: center; gap: .3rem; }
.email-resource-placeholder small { overflow-wrap: anywhere; }
.email-preview-spacer { outline: 1px dashed rgb(19 37 34 / 20%); }
.ai-touchup-test { position: fixed; z-index: 30; inset: 2rem; width: min(52rem, calc(100vw - 2rem)); max-height: calc(100vh - 4rem); margin: auto; border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; color: var(--ink); background: var(--paper); box-shadow: 0 2rem 6rem rgb(0 0 0 / 32%); overflow: auto; }
.ai-touchup-test::backdrop { background: rgb(19 37 34 / 55%); }
.ai-touchup-test > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.ai-touchup-test > header button { border: 0; padding: .25rem .6rem; color: var(--muted); background: transparent; font-size: 1.5rem; }
.ai-touchup-comparison { margin-top: 1rem; }
.ai-touchup-comparison__viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: .8rem; background: var(--pine); }
.ai-touchup-comparison__viewport img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ai-touchup-comparison__after { position: absolute; inset: 0; }
.ai-touchup-comparison__label { position: absolute; bottom: .75rem; border-radius: 999px; padding: .3rem .6rem; color: white; background: rgb(19 37 34 / 78%); font-size: .72rem; font-weight: 800; }
.ai-touchup-comparison__label--before { left: .75rem; }
.ai-touchup-comparison__label--after { right: .75rem; }
.error-banner { position: fixed; right: 1rem; bottom: 1rem; max-width: 30rem; border-radius: .7rem; padding: 1rem; color: white; background: #9b352c; box-shadow: 0 .5rem 2rem rgb(0 0 0 / 20%); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 3rem 1.25rem; background: var(--pine-soft); }
.auth-layout { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 470px) minmax(0, 1fr); align-items: center; gap: 6rem; }
.auth-card { min-width: 0; border-radius: 1rem; padding: 2rem; background: var(--paper); }
.auth-heading { margin: 2rem 0; }
.auth-heading h1 { font-size: 1.85rem; line-height: 1.2; text-wrap: balance; }
.auth-heading p { color: #526272; }
.auth-card input, .auth-card select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
.auth-card button:focus-visible, .auth-card input:focus-visible, .auth-card select:focus-visible { outline: 3px solid #176aaa; outline-offset: 3px; }
.auth-card [data-auth-error] { color: #a22d29; min-height: 1.5em; }
.auth-intro { color: white; }
.auth-intro h2 { color: white; font-size: 3rem; line-height: 1.15; letter-spacing: -.025em; margin: 1.75rem 0; text-wrap: balance; }
.auth-intro p { max-width: 35ch; font-size: 1rem; }
@media (max-width: 820px) { .auth-layout { grid-template-columns: minmax(0, 470px); justify-content: center; gap: 2rem; } .auth-intro { display: none; } .auth-card { padding: 1.5rem; } }
.product-mark--auth { margin-left: 0; }
.product-mark--auth > img { display: block; width: 80px; height: 80px; object-fit: contain; }
.auth-public-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.auth-card form { display: grid; gap: 1rem; }
.auth-card label { display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; font-weight: 700; }

.events-workspace { width: 100%; padding-right: 15px; padding-left: 15px; }
.events-workspace > .page-header { min-height: 83px; margin-bottom: 0; padding: 20px 12px; text-align: center; }
.events-workspace > .page-header > div { padding-left: 115px; }
.event-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 15px; }
.event-card { min-width: 0; background: white; }
.event-card__cover { position: relative; width: 100%; min-height: 205px; overflow: hidden; display: block; padding: 0; border: 0; border-radius: 4px; background: #31566f; color: white; text-align: left; box-shadow: 0 3px 9px 4px rgb(128 128 128 / 5%); }
.event-card__cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 18%, rgb(255 255 255 / 18%), transparent 34%), linear-gradient(140deg, rgb(15 70 108 / 25%), rgb(9 33 50 / 60%)); }
.event-card__cover--tone-1 { background: #355f79; }
.event-card__cover--tone-2 { background: #2f526d; }
.event-card__cover--tone-3 { background: #3e6277; }
.event-card__cover:hover .event-card__image { transform: scale(1.025); }
.event-card__cover:hover::before { background-color: rgb(0 0 0 / 10%); }
.event-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.event-card__scrim { position: absolute; z-index: 1; inset: 0; border-radius: 4px; background: rgb(40 39 39 / 60%); }
.event-card__content { position: relative; z-index: 2; display: block; min-height: 205px; padding: 5px 10px 42px; }
.event-card__name { min-height: 66px; overflow: hidden; margin: 0; padding: 20px 0; color: white; font-size: 24px; font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.event-card__content time { display: grid; gap: 5px; }
.event-card__content time strong { color: white; font-size: 15px; font-weight: 300; line-height: 1.1; }
.event-card__content time span, .event-card__location { display: block; overflow: hidden; color: white; font-size: 13px; font-weight: 300; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.event-card__location { margin-top: 5px; }
.event-card__arrow { position: absolute; z-index: 3; right: 0; bottom: 0; width: 42px; height: 42px; display: grid; place-items: end; padding: 0 5px 5px 0; color: #2f7bc7; background: white; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.event-card__arrow .ui-icon { width: 16px; height: 16px; }
.event-card footer { padding-top: 5px; }
.event-card__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.event-card__actions button { min-width: 0; min-height: 44px; border: 1px solid #2f7bc7; border-radius: 6px; background: white; color: #2f7bc7; font-size: 13px; font-weight: 500; }
.event-card__actions button:hover { background: #edf5fb; }
.events-workspace > .toolbar { display: block; margin: 40px 5px 20px; }
.events-workspace .tabs { width: 100%; display: flex; gap: 0; padding: 15px 0; }
.events-workspace .tabs button { flex: 0 1 16.6667%; min-width: 130px; min-height: 40px; padding: 10px 15px; color: #2f7bc7; }
.events-workspace .tabs button[aria-pressed="true"] { border: 1px solid #d8dee5; border-bottom: 3px solid #2f7bc7; color: #2f7bc7; background: white; font-weight: 700; box-shadow: 0 1px 3px rgb(0 0 0 / 10%); }
.events-workspace > .page-header .button { width: 130px; min-height: 44px; background: white; }
.event-template-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.event-template-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; color: var(--ink); overflow-wrap: anywhere; }
.event-template-choice:hover { border-color: var(--pine); background: #edf5fb; }
.event-template-choice > .ui-icon { width: 32px; height: 32px; color: var(--pine); }
.event-template-choice > span { font-size: 12px; color: var(--muted); }
.event-template-choices > .empty { grid-column: 1 / -1; }
.catalog-empty { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed var(--line); text-align: center; color: var(--muted); }
.catalog-empty > svg { width: 38px; height: 38px; margin-bottom: 20px; }
.create-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 4px; color: var(--ink); background: white; box-shadow: 0 12px 45px rgb(0 0 0 / 28%); }
.create-dialog::backdrop { background: rgb(17 35 49 / 48%); }
.create-dialog > header { display: flex; justify-content: space-between; align-items: flex-start; margin: 0; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.create-dialog > header h2 { margin: 0 0 4px; color: var(--ink); font-size: 22px; }
.create-dialog > header p { margin: 0; color: var(--muted); }
.create-dialog > [data-create-stage="source"] { padding: 0 28px 28px; }
.create-dialog .create-grid { margin-top: 25px; gap: 20px; }
.dialog-close { width: 40px; height: 40px; border: 0; color: var(--muted); background: transparent; font-size: 28px; }
.create-from-scratch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.create-from-scratch > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); background: #f5f6fa; font-size: 12px; font-weight: 700; }
.create-from-scratch h3, .create-from-scratch p { margin: 0; }
.create-from-scratch p { color: var(--muted); font-size: 13px; }
.dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 10px; }
.event-workspace { position: relative; }
.event-workspace > .event-heading { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px; margin: 0 -24px 48px; padding: 22px 24px; box-shadow: none; clip-path: none; z-index: 3; }
.event-heading > div { text-align: center; min-width: 0; }
.event-heading > .event-heading__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; text-align: left; }
.event-heading h1 { font-size: 24px; overflow-wrap: anywhere; }
.event-heading > .button { min-width: 120px; justify-self: start; }
.event-actions { position: relative; justify-self: end; }
.event-actions > summary { min-width: 135px; list-style: none; justify-content: space-between; }
.event-actions > summary::-webkit-details-marker { display: none; }
.event-actions > nav { position: absolute; top: calc(100% + 6px); right: 0; width: 250px; border: 1px solid var(--line); border-radius: 4px; padding: 6px 0; background: white; }
.event-actions nav button { width: 100%; min-height: 42px; display: block; padding: 10px 18px; border: 0; color: var(--ink); background: white; text-align: left; }
.event-actions nav button:hover { background: #edf5fb; color: var(--pine); }
.event-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.event-navigation { align-self: start; padding: 12px 15px; border: 1px solid var(--line); border-radius: 4px; }
.event-navigation section { margin: 0; padding: 20px 0; border-top: 1px solid #edf0f3; }
.event-navigation h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; color: var(--ink); font-size: 15px; font-weight: 500; }
.event-navigation h2 .ui-icon { width: 18px; height: 18px; }
.event-navigation button { display: block; width: 100%; min-height: 32px; border: 0; border-radius: 3px; padding: 5px 7px 5px 27px; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }
.event-navigation button:hover, .event-navigation button[aria-current] { color: #105e96; background: #edf5fb; }
.event-navigation .event-navigation-home { display: flex; gap: 9px; align-items: center; min-height: 52px; padding: 8px 0; margin-bottom: 12px; color: var(--pine); font-size: 17px; font-weight: 600; }
.event-navigation > details { border-top: 1px solid var(--line); }
.event-navigation > details > summary { padding: 16px 0 6px; cursor: pointer; color: var(--muted); font-size: 12px; }
.event-navigation > details section { padding: 12px 0; border: 0; }
.event-navigation > details h2 { font-size: 13px; }
.event-navigation .event-navigation-toggle { display: none; }
.event-section-heading, .event-summary, .event-content > .back-link { scroll-margin-top: 100px; }
.event-content { min-width: 0; }
.event-section-heading { margin: 0 0 20px; color: #2c6d98; font-size: 24px; }
.event-dashboard-tools { display: grid; grid-template-columns: minmax(0, 3fr) minmax(190px, 1fr); gap: 24px; max-width: 870px; }
.event-dashboard-tools > section > h3 { color: var(--pine); font-weight: 500; margin: 0 0 12px; }
.event-downloads, .event-gallery-shortcut { border: 1px solid var(--line); border-radius: 4px; min-height: 178px; display: flex; align-items: center; flex-direction: column; justify-content: space-between; padding: 20px; gap: 20px; }
.event-downloads dl { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; text-align: center; }
.event-downloads dl > div + div { border-left: 1px solid var(--line); }
.event-downloads dt { font-size: 13px; }
.event-downloads dd { margin: 8px 0 0; color: var(--pine); font-size: 19px; font-weight: 600; }
.event-gallery-shortcut { padding-top: 0; }
.event-gallery-shortcut h4 { align-self: stretch; margin: 0 -20px; padding: 10px; border-bottom: 1px solid var(--line); text-align: center; }
.event-gallery-shortcut > .ui-icon { width: 32px; height: 32px; }
.event-overview-group { margin-top: 36px; }
.event-overview-group > h2 { margin: 0 0 18px; font-size: 24px; }
.event-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.event-summary { min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.event-summary--wide { grid-column: 1 / -1; }
.event-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 14px; border-bottom: 1px solid #edf0f3; }
.event-summary h3 { margin: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.event-summary header button { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 4px; border: 0; color: var(--pine); background: transparent; font-size: 13px; }
.event-summary header .ui-icon { width: 15px; height: 15px; }
.event-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; }
.event-summary dl > div { padding: 16px 18px; font-size: 13px; border-bottom: 1px solid #f0f3f5; }
.event-summary dl > div:nth-child(even) { border-left: 1px solid #f0f3f5; }
.event-summary--wide dl { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.event-summary dt { color: var(--muted); }
.event-summary dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.event-summary:focus { outline: 2px solid var(--pine); outline-offset: 4px; }
.sharing-channel-settings { border: 1px solid var(--line); border-radius: 4px; }
.sharing-channel-settings > header { display: flex; gap: 14px; align-items: start; padding: 22px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.sharing-channel-settings > header > .ui-icon { width: 30px; height: 30px; color: var(--pine); }
.sharing-channel-settings h3 { margin: 0 0 5px; font-size: 18px; color: var(--pine); font-weight: 500; }
.sharing-channel-settings p { margin: 0; max-width: 70ch; }
.sharing-channel-settings form { padding: 4px 24px 22px; }
.channel-setting-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr); align-items: start; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.channel-setting-row > span { color: var(--muted); }
.sharing-channel-settings footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 24px; }
.sharing-channel-settings > .back-link { margin: 0 24px 20px; }
.text-message-reference-editor { display: grid; gap: 0; padding-top: 0 !important; }
.text-message-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 18px; border-bottom: 1px solid var(--line); }
.text-message-editor-heading h3 { margin: 2px 0 0; color: var(--ink); font-size: 22px; font-weight: 500; }
.text-message-status { padding: 6px 10px; border-radius: 3px; color: #176aaa; background: #eaf4fb; font-size: 12px; font-weight: 600; }
.text-message-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .48fr); gap: 0 28px; padding: 24px 0; }
.text-message-field { display: grid; grid-column: 1; gap: 8px; color: var(--ink); font-weight: 600; }
.text-message-field input { min-height: 48px; }
.text-message-count { grid-column: 1; justify-self: end; margin-top: 7px !important; color: var(--muted); font-size: 12px; }
.text-message-count output { font-variant-numeric: tabular-nums; }
.text-message-destination { display: grid; grid-column: 2; grid-row: 1 / 3; align-content: center; gap: 4px; padding: 15px 18px; border: 1px solid var(--line); background: #f8fafc; }
.text-message-destination > span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.text-message-destination > small { color: var(--muted); }
.text-message-important { display: flex; align-items: center; gap: 16px; margin: 0 -24px; padding: 15px 24px; border-block: 1px solid #e9cc83; color: #704c08; background: #fff5d9; }
.text-message-important strong { flex: 0 0 auto; letter-spacing: .05em; }
.text-message-guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px 0; }
.text-message-guidance { min-height: 188px; padding: 20px 22px; border-left: 4px solid; background: #f8fafc; }
.text-message-guidance h4, .text-message-forbidden-content h4 { margin: 0 0 12px; color: var(--ink); font-size: 17px; }
.text-message-guidance ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.text-message-guidance--approved { border-left-color: var(--mint); background: #edf8f4; }
.text-message-guidance--approved h4 { color: #126d59; }
.text-message-guidance--forbidden { border-left-color: var(--coral); background: #fbefed; }
.text-message-guidance--forbidden h4 { color: #9b372d; }
.text-message-forbidden-content { padding: 20px 22px; border: 1px solid var(--line); background: #fff; }
.text-message-forbidden-content p, .text-message-publish-note { color: var(--muted); }
.text-message-publish-note { padding-top: 18px; }
.event-content .panel:first-child { margin-top: 0; }
.event-content .metric-grid { margin-top: 20px; }
.event-content .code-panel > form { width: 100%; }
.participant-sharing fieldset { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.participant-sharing fieldset p { grid-column: 1 / -1; margin-bottom: 0; }
.participant-sharing .check { min-height: 82px; flex-direction: column; justify-content: center; text-align: center; padding: 12px 6px; border: 1px solid var(--line); border-radius: 4px; }
.participant-sharing .check:has(input:checked) { border-color: #87b8db; color: #135d91; background: #eef6fc; }
.print-station-calibration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.smart-sharing-readiness { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fb; overflow: hidden; }
.smart-sharing-readiness > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px; }
.smart-sharing-readiness > header h3 { margin: 2px 0 0; }
.smart-sharing-readiness > header > span { color: var(--muted); font-weight: 700; white-space: nowrap; }
.smart-sharing-readiness details { border-top: 1px solid var(--line); }
.smart-sharing-readiness summary { padding: 14px 18px; cursor: pointer; font-weight: 700; }
.smart-sharing-readiness ul { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); }
.smart-sharing-readiness li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 18px; background: var(--paper); }
.smart-sharing-readiness li p { margin: 3px 0 0; color: var(--muted); }
.smart-sharing-readiness__indicator { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; background: #f9e8e5; color: var(--coral); }
.smart-sharing-readiness [data-readiness="ready"] .smart-sharing-readiness__indicator { background: #e3f4ee; color: var(--mint); }
.smart-sharing-readiness__status { color: var(--muted); font-size: .82rem; font-weight: 700; }
.smart-sharing-readiness__note { margin: 0; padding: 14px 18px; color: var(--muted); }
@media (max-width: 760px) {
  .smart-sharing-readiness li { grid-template-columns: 28px minmax(0, 1fr); }
  .smart-sharing-readiness__status, .smart-sharing-readiness li .button { grid-column: 2; justify-self: start; }
}
.gallery-configuration { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-workspace .gallery-configuration > .gallery-appearance-fields { grid-column: 1 / -1; min-width: 0; margin: 0; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.gallery-workspace .gallery-configuration input { min-width: 0px; }
.gallery-workspace .gallery-configuration label { min-width: 0; }
.gallery-workspace .gallery-configuration .check { display: flex; justify-content: flex-start; gap: 10px; min-height: 44px; }
.gallery-workspace .gallery-configuration .check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; }
.gallery-configuration > button[type=submit] { grid-column: 1 / -1; justify-self: end; min-width: 180px; }
.gallery-asset input[type=file] { width: 100%; overflow: hidden; }
.gallery-asset span { overflow-wrap: anywhere; }
.gallery-media-card__preview { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #eef3f7; color: var(--muted); text-align: center; }
.gallery-media-thumbnail { width: 100%; height: 100%; min-width: 0; display: block; padding: 0; border: 0; background: #eef3f7; cursor: zoom-in; }
.gallery-media-thumbnail img { width: 100%; height: 100%; max-height: 260px; display: block; object-fit: contain; }
.gallery-media-hover { position: fixed; z-index: 40; width: min(360px, calc(100vw - 24px)); height: min(460px, calc(100dvh - 24px)); padding: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 40px #0005; pointer-events: none; }
.gallery-media-hover img { width: 100%; height: 100%; object-fit: contain; }
.gallery-media-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); padding: 16px; border: 0; border-radius: 12px; }
.gallery-media-dialog::backdrop { background: #0009; }
.gallery-media-dialog img { display: block; max-width: min(900px, calc(100vw - 64px)); max-height: calc(100dvh - 120px); object-fit: contain; }
.gallery-media-dialog button { display: block; margin: 0 0 12px auto; min-height: 44px; }
@media (hover: none) { .gallery-media-hover { display: none; } }
.panel code, .panel p { overflow-wrap: anywhere; }
.designer-grid, .microsite-builder-grid, .email-template-grid { min-width: 0; }
.designer-toolbar { min-height: 80px; }
.designer-toolbar, .microsite-toolbar { background: #f4f6f8; border-color: var(--line); }
.designer-panel { background: #fff; }
.canvas-stage, .microsite-canvas-stage, .email-preview-stage { background-color: #edf1f5; }
.email-template-workspace, .email-template-controls > .properties-form, .email-block-card { border-radius: 4px; box-shadow: none; }
.email-template-controls { background: #f8fafc; }
.properties-form, .properties-form label { font-size: 13px; }
.properties-panel details, .add-content { border-color: var(--line); }
.designer-grid:has(> .layers-panel) { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.designer-grid > .layers-panel { grid-column: 1; grid-row: 1; }
.designer-grid > .properties-panel { grid-column: 1; grid-row: 2; border-left: 0; border-right: 1px solid var(--line); }
.designer-grid:has(> .layers-panel) > .canvas-stage { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 0; min-height: calc(100vh - 152px); }
.designer-grid:has(> [data-region="ai-video-definition"]) { grid-template-columns: minmax(340px, 1fr) minmax(0, 1.3fr); }
.designer-grid > [data-region="ai-video-preview"] { align-self: start; position: sticky; top: 0; min-height: calc(100vh - 152px); }
.microsite-builder-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.microsite-pages { grid-column: 1; grid-row: 1; }
.microsite-components { grid-column: 1; grid-row: 2; border-top: 1px solid var(--line); }
.microsite-properties { grid-column: 1; grid-row: 3; border-left: 0; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.microsite-canvas-stage { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 0; width: 100%; }
.microsite-preview-controls { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, .7fr)) auto; }
.email-template-grid { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.email-preview-stage { grid-column: 2; grid-row: 1; }
.email-template-controls { grid-column: 1; grid-row: 1; height: 100%; min-height: 0; box-sizing: border-box; border-right: 1px solid var(--line); border-left: 0; }
.email-preview-instructions { padding: 1rem; border-bottom: 1px solid var(--line); }
[data-email-preview-block] { outline: 1px dotted var(--pine); outline-offset: -1px; cursor: pointer; }
[data-email-preview-block]:focus-visible, [data-email-preview-block][aria-pressed="true"], .email-block-card.is-selected { outline: 2px solid var(--pine); outline-offset: -2px; }
.email-borders-hidden [data-email-preview-block]:not(:focus-visible):not([aria-pressed="true"]) { outline: none; }
.designer-workspace .template-library { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.editor-tabs { display: flex; justify-content: center; gap: 40px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--line); }
.editor-tabs button { min-height: 54px; border: 0; border-bottom: 3px solid transparent; padding: 12px 24px; color: var(--muted); background: transparent; }
.editor-tabs button[aria-pressed="true"] { border-bottom-color: var(--pine); color: var(--pine); }
.video-fx-grid { display: block; min-height: calc(100vh - 210px); width: min(1568px, 100%); margin: auto; padding: 24px; }
.video-fx-grid > .designer-panel { border: 1px solid var(--line); border-radius: 4px; padding: 24px; }
.video-fx-grid [data-region="master-settings"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.video-fx-grid .designer-panel__heading { grid-column: 1 / -1; }
.video-fx-grid [data-form="video-fx-experience-family"] { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 16px; align-items: end; }
.video-fx-grid [data-form="video-fx-experience-family"] label { min-width: 220px; }
.video-fx-grid [data-form="video-fx-master-settings"] { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; }
.video-fx-grid [data-form="video-fx-master-settings"] > fieldset:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.video-fx-grid [data-form="video-fx-master-settings"] > fieldset:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.video-fx-grid [data-form="video-fx-master-settings"] > fieldset:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.video-fx-grid [data-form="video-fx-master-settings"] > button { grid-column: 1 / -1; justify-self: start; }
.video-fx-grid details { padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.video-fx-grid summary { cursor: pointer; color: var(--pine); font-weight: 500; }
.video-fx-grid [data-region="recordings"], .video-fx-grid [data-region="effects"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.video-recording-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 3px 6px #23384d14; }
.video-recording-card > header { padding: 20px; border-bottom: 1px solid var(--line); }
.video-recording-card h3 { margin: 0; font-size: 18px; font-weight: 500; }
.video-recording-card header p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.video-recording-card > form { padding: 20px; }
.ai-video-source-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; margin: 12px 0 20px; }
.properties-form .ai-video-source-choices > label { display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer; }
.ai-video-source-choices input[type="radio"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--pine); }
.ai-video-source-choices strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.ai-video-source-choices strong + span { display: block; font-size: 14px; font-weight: 400; }
.ai-video-source-choices > label:has(input:checked) { border-color: var(--pine); background: #edf5fb; }
.ai-video-source-choices > label:hover { border-color: var(--pine); }
.ai-video-source-choices > label:has(input:focus-visible) { outline: 2px solid var(--pine); outline-offset: 3px; }
.video-fx-grid .timeline-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 20px; align-items: start; }
.video-fx-grid .template-canvas { display: grid; place-items: center; height: 280px; margin: 20px 0; color: #657585; font-size: 12px; }
.gallery-media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 20px; }
.gallery-media-card { min-width: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.gallery-media-card__placeholder { min-height: 150px; display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; background: #eef3f7; color: #60788b; text-align: center; }
.gallery-media-card__placeholder .ui-icon { width: 32px; height: 32px; }
.gallery-media-card__placeholder small { font-size: 11px; }
.gallery-media-card > .gallery-media-card__body { padding: 12px; }
.gallery-media-card__body > label { display: flex; align-items: center; gap: 8px; }
.gallery-media-card__body strong, .gallery-media-card__body small { overflow-wrap: anywhere; font-size: 12px; }
.gallery-media-card__body > small { display: block; color: var(--muted); margin-top: 5px; }
.gallery-media-card__body .inline-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gallery-media-card__body .button { padding: 6px 8px; font-size: 12px; }
.gallery-settings { border-bottom: 1px solid var(--line); }
.gallery-settings > summary { color: var(--pine); padding: 15px 20px; cursor: pointer; }
.gallery-workspace .gallery-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-workspace .gallery-metrics .metric { min-height: 70px; }
.analytics-workspace > .panel-heading { flex-wrap: wrap; align-items: start; margin-bottom: 20px; }
.analytics-workspace .inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.analytics-workspace > .editor-tabs { justify-content: start; gap: 6px; overflow-x: auto; padding: 0; }
.analytics-workspace > .editor-tabs button { padding: 12px 16px; flex-shrink: 0; }
.analytics-workspace .table-scroll { margin-top: 24px; border: 1px solid var(--line); }
.analytics-workspace caption { padding: 14px; text-align: left; color: var(--pine); font-size: 16px; }
.analytics-chart { border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-top: 24px; }
.analytics-chart h3 { margin: 0 0 20px; color: var(--pine); }
.analytics-chart-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 50px; gap: 15px; align-items: center; margin: 14px 0; }
.analytics-chart-track { height: 14px; background: #edf2f6; }
.analytics-chart-track > span { display: block; height: 100%; background: #348ac6; }

@media (max-width: 1200px) {
  .top-navigation { gap: 20px; }
  .top-navigation > nav button { padding: 0 8px; }
  .top-navigation > nav .ui-icon { display: none; }
  .event-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .event-summary-grid { gap: 16px; }
  .participant-sharing fieldset { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .template-library { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .microsite-builder-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .microsite-preview-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .top-navigation { gap: 0 12px; padding: 10px 16px; min-height: 76px; }
  .top-navigation > nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0 16px 20px; background: #267fbd; max-height: calc(100dvh - 76px); overflow-y: auto; box-shadow: 0 5px 10px #20394d22; }
  .top-navigation--expanded > nav { display: flex; flex-direction: column; gap: 0; }
  .top-navigation > nav button { flex: 0 0 auto; width: 100%; min-height: 52px; padding: 12px 15px; background: white; color: #19679e; border: 0; border-bottom: 1px solid #b6cce0; text-align: left; }
  .top-navigation > nav button:hover, .top-navigation > nav button[aria-current="true"] { background: #edf5fb; color: #125688; border-bottom-color: #b6cce0; }
  .top-navigation > nav :focus-visible { outline-color: #125688; outline-offset: -4px; }
  .header-user-tools { gap: 0; }
  .header-user-tools > .account-navigation { display: none; }
  .mobile-account-shortcuts { display: flex; }
  .mobile-account-shortcuts button, .primary-navigation-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px; border: 0; color: white; background: transparent; }
  .primary-navigation-toggle { font-size: 28px; line-height: 1; }
  .notification-navigation { position: static; }
  .notification-panel { right: 16px; top: 100%; }
}
@media (max-width: 360px) {
  .top-navigation { padding-inline: 8px; column-gap: 4px; }
  .notification-panel { width: calc(100% - 16px); right: 8px; }
}
@media (max-width: 900px) {
  .event-section-heading, .event-summary, .event-content > .back-link { scroll-margin-top: 92px; }
  .profile-columns { grid-template-columns: 1fr; }
  .profile-heading .editor-tabs { flex-direction: column; overflow: visible; }
  .profile-heading .editor-tabs button { width: 100%; min-height: 52px; }
  .dashboard-wordmark { padding: 0; }
  .event-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .events-workspace > .toolbar { grid-template-columns: 1fr; }
  .events-workspace [data-form="search-events"] { justify-self: end; }
  .event-summary-grid { grid-template-columns: 1fr; }
  .event-summary--wide dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-dashboard-tools { grid-template-columns: 1fr; }
  .event-gallery-shortcut { flex-direction: row; min-height: 90px; padding: 18px; }
  .event-gallery-shortcut h4 { margin: 0; padding: 0; border: 0; align-self: center; }
  .code-panel form { grid-template-columns: 1fr; }
  .video-fx-grid [data-region="master-settings"], .video-fx-grid [data-form="video-fx-master-settings"], .video-fx-grid [data-region="recordings"], .video-fx-grid [data-region="effects"], .video-fx-grid .timeline-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-fx-grid [data-form="video-fx-master-settings"] > fieldset:nth-of-type(n) { grid-column: auto; grid-row: auto; }
  .gallery-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-workspace .gallery-metrics { grid-template-columns: repeat(2, 1fr); }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-panel { grid-template-columns: 1fr; }
  .designer-toolbar { grid-template-columns: auto 1fr; }
  .designer-toolbar .save-state, .designer-toolbar .action-row { grid-column: 1 / -1; }
  .designer-grid { grid-template-columns: minmax(13rem, 16rem) minmax(22rem, 1fr); }
  .microsite-builder-grid { grid-template-columns: 270px minmax(0, 1fr); }
  .email-template-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .properties-panel { grid-column: 1 / -1; border-top: 1px solid #cfd6cf; border-left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .designer-grid:has(> .layers-panel) { grid-template-columns: 270px minmax(0, 1fr); }
  .designer-grid > .properties-panel { display: block; }
  .designer-grid:has(> [data-region="ai-video-definition"]) { grid-template-columns: 300px minmax(0, 1fr); }
  .survey-section-form { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .workspace { padding: 0 16px 40px; }
  .workspace > .page-header { min-height: 120px; gap: 16px; margin-bottom: 20px; }
  .events-workspace > .page-header > div { padding-left: 0; text-align: left; }
  .event-workspace > .event-heading { grid-template-columns: 1fr 1fr; margin: 0 -16px 24px; padding: 20px 16px; }
  .event-heading > div { grid-column: 1 / -1; grid-row: 1; }
  .event-heading > .event-heading__actions { grid-column: 2; grid-row: 2; }
  .event-heading > .button { grid-column: 1; grid-row: 2; }
  .event-actions { grid-column: 2; grid-row: 2; }
  .event-catalog { grid-template-columns: 1fr; }
  .events-workspace .tabs button { font-size: 12px; }
  .event-template-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-layout { grid-template-columns: 1fr; gap: 20px; }
  .event-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 12px; }
  .event-navigation .event-navigation-toggle { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; padding: 8px; }
  .event-navigation:not(.event-navigation--expanded) > section, .event-navigation:not(.event-navigation--expanded) > details { display: none; }
  .event-navigation .event-navigation-home { margin: 0; padding: 8px; }
  .event-navigation > .event-navigation-home, .event-navigation > details { grid-column: 1 / -1; }
  .event-navigation section { padding: 12px 0; }
  .event-navigation button { min-height: 44px; }
  .event-summary dl > div { padding: 14px; }
  .event-downloads { padding: 16px 8px; }
  .event-downloads dd { font-size: 16px; }
  .channel-setting-row { grid-template-columns: 1fr; gap: 10px; }
  .sharing-channel-settings footer { flex-wrap: wrap; }
  .text-message-editor-heading, .text-message-important { align-items: flex-start; flex-direction: column; }
  .text-message-compose, .text-message-guidance-grid { grid-template-columns: 1fr; }
  .text-message-destination { grid-column: 1; grid-row: auto; }
  .participant-sharing fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-dialog { padding: 20px; }
  .create-grid, .create-dialog .create-grid { grid-template-columns: 1fr; }
  .template-library, .designer-workspace .template-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-card { min-height: 240px; }
  .microsite-canvas-stage { grid-column: auto; grid-row: auto; }
  .gallery-configuration { grid-template-columns: 1fr; }
  .editor-tabs { justify-content: start; gap: 4px; overflow-x: auto; padding: 0 12px; }
  .editor-tabs button { flex: 0 0 auto; padding: 12px; }
  .video-fx-grid { padding: 16px; }
  .video-fx-grid [data-region="master-settings"], .video-fx-grid [data-form="video-fx-master-settings"], .video-fx-grid [data-region="recordings"], .video-fx-grid [data-region="effects"], .video-fx-grid .timeline-list { grid-template-columns: 1fr; }
  .video-fx-grid [data-form="video-fx-master-settings"] { grid-row: auto; }
  .video-fx-grid [data-form="video-fx-experience-family"] { grid-row: auto; flex-direction: column; align-items: stretch; }
  .gallery-media-grid { padding: 12px; grid-template-columns: 1fr; }
  .page-header, .toolbar, .panel-heading { align-items: flex-start; flex-direction: column; }
  .toolbar input { min-width: 0; }
  .create-grid, .metric-grid, .library-grid { grid-template-columns: 1fr; }
  .gallery-workspace .gallery-metrics, .gallery-publication { grid-template-columns: 1fr; }
  .template-library, .designer-grid, .properties-panel { grid-template-columns: 1fr; }
  .microsite-builder-grid, .microsite-preview-controls { grid-template-columns: 1fr; }
  .microsite-template-strip, .microsite-template-strip form { grid-template-columns: 1fr; }
  .email-template-grid, .email-brand-grid { grid-template-columns: 1fr; }
  .email-template-grid { height: auto; }
  .email-template-controls { height: auto; max-height: 60dvh; }
  .email-preview-stage { height: 70dvh; min-height: 24rem; }
  .email-brand-grid h3, .email-brand-grid button { grid-column: auto; }
  .email-template-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .email-template-controls, .email-preview-stage, .microsite-pages, .microsite-components, .microsite-properties { grid-column: 1; grid-row: auto; }
  .designer-grid:has(> .layers-panel), .designer-grid:has(> [data-region="ai-video-definition"]) { grid-template-columns: 1fr; }
  .designer-grid > .layers-panel, .designer-grid > .properties-panel, .designer-grid:has(> .layers-panel) > .canvas-stage { grid-column: 1; grid-row: auto; position: static; }
  .microsite-canvas-stage, .designer-grid > [data-region="ai-video-preview"] { position: static; }
  .microsite-pages, .microsite-components, .microsite-properties { border: 0; border-bottom: 1px solid #cfd6cf; }
  .microsite-viewport-shell { min-height: 38rem; height: 70vh; }
  .designer-toolbar { grid-template-columns: 1fr; }
  .designer-toolbar .save-state, .designer-toolbar .action-row { grid-column: auto; }
  .layers-panel { border-right: 0; border-bottom: 1px solid #cfd6cf; }
  .canvas-stage { min-height: 34rem; }
  .template-canvas { width: min(75vw, 22rem); height: auto; }
  .code-panel { grid-template-columns: 1fr; }
  .survey-toolbar { position: static; margin: 0 0 1rem; }
  .survey-metadata fieldset, .survey-field__heading, .survey-add-field, .survey-add-section { grid-template-columns: 1fr; }
  .survey-field__heading .inline-actions, .survey-section .inline-actions { flex-wrap: wrap; }
  .one-time-secret { flex-wrap: wrap; }
  .one-time-secret button { margin-left: 0; }
}

.account-overview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 28px; }
.account-workspace > .page-header, .profile-workspace > .page-header { display: grid; grid-template-columns: 1fr minmax(240px, 1fr) 1fr; align-items: start; }
.account-workspace > .page-header > div:first-child, .profile-workspace > .page-header > div:first-child { grid-column: 2; text-align: center; }
.account-workspace > .page-header > .action-row, .profile-workspace > .page-header > button { justify-self: end; }
.account-workspace:has(.account-overview-grid) { background: #f5f6fa; box-shadow: 0 0 0 100vmax #f5f6fa; clip-path: inset(0 -100vmax); padding-bottom: 48px; }
.account-overview-grid > .panel, .account-settings-grid > .panel { padding: 28px; border: 1px solid #eceef2; border-radius: 16px; background: white; box-shadow: 0 1px 3px #26394d08; }
.account-overview-grid .panel-heading, .account-settings-grid .panel-heading { align-items: start; padding-bottom: 22px; border-bottom: 1px solid #f0f1f4; margin-bottom: 24px; }
.account-overview-grid .panel-heading h2, .account-settings-grid .panel-heading h2 { color: #182131; font-weight: 600; }
.account-overview-grid .panel-heading .button, .account-settings-grid .panel-heading .button { flex-shrink: 0; border-radius: 12px; color: #455164; border-color: #cbd1dc; }
.account-settings-grid .panel-heading p { margin: 6px 0 0; color: var(--muted); }
.account-addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.account-addon-grid > button { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 100px; padding: 20px; text-align: left; border: 1px solid #eceef2; border-radius: 14px; color: var(--ink); background: white; }
.account-addon-grid > button:hover { border-color: #87b4d7; background: #f7fbfe; }
.account-addon-grid > button > .ui-icon { flex-shrink: 0; color: var(--accent); }
.account-addon-grid > button > .ui-icon:last-child { margin-left: auto; width: 16px; }
.account-addon-grid strong { display: block; font-weight: 500; }
.account-addon-grid small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.account-administration { margin-top: 28px; padding: 24px; }
.account-administration > summary { cursor: pointer; color: var(--accent); }
.event-info-editor fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; border: 0; padding: 0; margin: 0; min-width: 0; }
.event-info-editor .event-info-name, .event-info-timezone, .event-info-clock, .event-info-editor .action-row { grid-column: 1 / -1; }
.event-info-editor label { display: grid; gap: 10px; min-width: 0; }
.event-info-editor input, .event-info-editor select { width: 100%; min-width: 0; }
.event-info-editor small, .event-info-clock p { color: var(--muted); line-height: 1.5; }
.event-info-clock { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-info-clock label { margin-top: 16px; }
.event-info-editor [role="status"] { color: var(--accent); }
.account-settings-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.account-workspace .panel, .resources-workspace .panel { min-width: 0; }
.account-workspace .panel h2, .resource-guide h2 { margin-top: 0; }
.account-workspace .text-button { border: 0; background: transparent; padding: 8px 0; color: var(--accent); text-align: left; }
.account-workspace .text-button:hover { text-decoration: underline; }
.account-workspace .panel > p, .account-caption { color: var(--muted); line-height: 1.6; }
.account-workspace .table-panel { margin-bottom: 24px; }
.account-workspace td { overflow-wrap: anywhere; }
.licence-allocations table { min-width: 68rem; }
.licence-allocations td:last-child { min-width: 16rem; }
.account-plan-list { list-style: none; padding: 0; margin: 0; }
.account-dialog { width: min(1520px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); padding: 28px 32px; border: 1px solid var(--line); border-top: 8px solid var(--accent); border-radius: 16px; color: var(--ink); background: white; }
.account-dialog::backdrop { background: rgb(15 25 38 / 52%); }
.account-dialog > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.account-dialog > header h2 { flex: 1; text-align: center; font-size: 28px; font-weight: 500; }
.billing-table-controls, .billing-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 22px 0; }
.billing-table-controls label { display: flex; align-items: center; gap: 8px; }
.billing-table-controls select { width: 86px; min-height: 44px; }
.billing-history-dialog table { width: 100%; min-width: 740px; border: 1px solid var(--line); border-collapse: collapse; }
.billing-history-dialog th, .billing-history-dialog td { border: 1px solid var(--line); padding: 14px 16px; vertical-align: top; }
.billing-history-dialog tbody tr:nth-child(odd) { background: #f8f9fb; }
.billing-history-dialog td small { display: block; }
.billing-receipt { max-width: 260px; overflow-wrap: anywhere; }
.billing-receipt summary { color: var(--accent); cursor: pointer; min-height: 32px; }
.billing-pagination nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.billing-pagination [aria-current] { padding: 12px 18px; background: #e4eff9; color: #214f7b; }
.account-subscription-status { display: inline-block; color: #235272; border: 1px solid #cbdfea; padding: 3px 12px; border-radius: 16px; margin: 16px 0 8px; }
.account-subscription-status ~ small { display: block; margin-bottom: 6px; }
.subscription-items { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.subscription-items th, .subscription-items td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.subscription-items th { background: #f6f7fa; }
.account-subscription-details summary { color: var(--accent); cursor: pointer; padding: 12px 0; }
.account-subscription-details p { overflow-wrap: anywhere; font-size: 13px; }
.account-purchase-steps { display: flex; list-style: none; padding: 0; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 10px 0 32px; }
.account-purchase-steps li { padding: 14px 0; }
.account-purchase-steps [aria-current] { color: var(--accent); border-bottom: 3px solid var(--accent); font-weight: 600; }
.account-purchase-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.account-purchase-form legend { font-size: 20px; margin-bottom: 12px; }
.account-manage-row { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: 16px; margin: 28px 0; }
.account-manage-row > label { border: 1px solid var(--line); padding: 22px; border-radius: 5px; }
.account-manage-row small { display: block; color: var(--muted); }
.account-manage-row > input, .account-manage-row > select { width: 100%; min-height: 48px; }
.account-manage-actions { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0; }
.account-billing-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.account-billing-fields label, .account-billing-fields input, .account-billing-fields select { display: block; width: 100%; }
.account-order-review { max-width: 1000px; margin: 0 auto; }
.account-order-review dl > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-order-review dd { margin: 0; overflow-wrap: anywhere; }
.account-contract-note { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); }
.account-contract-note h2 { font-size: 17px; }
@media (max-width: 800px) {
  .account-manage-row, .account-billing-fields { grid-template-columns: 1fr; gap: 10px; }
  .account-manage-row > label { border: 0; padding: 0; }
  .account-order-review dl > div { grid-template-columns: 1fr; gap: 6px; }
  .account-purchase-steps { gap: 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .account-dialog { width: calc(100vw - 20px); padding: 18px 16px; max-height: calc(100dvh - 24px); }
  .account-dialog > header h2 { font-size: 23px; }
  .billing-pagination nav { width: 100%; }
  .billing-pagination .button { padding: 10px; }
}
.account-plan-list li { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-plan-list small, .account-caption { font-size: 13px; }
.account-included-features { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.account-included-features > summary { padding: 16px; cursor: pointer; color: var(--accent); font-weight: 600; }
.account-included-features > summary span { margin-left: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.account-included-features > ul { margin: 0; padding: 0 16px 16px; list-style: none; max-height: 320px; overflow: auto; }
.account-included-features > ul > li { display: block; padding: 10px 0; font-size: 14px; }
.account-included-features > p { padding: 0 16px 16px; }
.notification-panel .editor-tabs button[aria-pressed="true"] { color: white; border-color: white; }
.notification-panel .text-button { margin-top: 12px; min-height: 44px; padding: 8px 12px; border: 1px solid #88b3d0; border-radius: 4px; color: var(--accent); background: white; }
.notification-panel .text-button:hover { background: #edf5fb; }
.account-wallet, .account-license-counts { margin: 0; }
.account-wallet > div, .account-license-counts > div { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.account-wallet dt { display: flex; align-items: center; gap: 12px; }
.account-wallet dd, .account-license-counts dd { margin: 0; font-weight: 600; text-align: end; }
.account-setting-links { display: grid; }
.account-setting-links button, .preset-destinations button { display: flex; align-items: center; gap: 16px; padding: 16px 0; min-height: 48px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--accent); text-align: left; }
.account-setting-links button > .ui-icon:last-child, .preset-destinations button > .ui-icon:last-child { margin-left: auto; flex-shrink: 0; }
.account-load-error { padding: 16px; background: #fff5de; border-left: 3px solid #bb7b10; color: #684506; line-height: 1.6; }
.reference-catalog { background: #f7f9fb; min-height: calc(100dvh - 72px); }
.reference-catalog > .page-header, .reference-catalog > .resource-tool-grid, .reference-catalog > .preset-collection-grid, .reference-catalog > .preset-destinations { max-width: 1536px; margin-inline: auto; }
.reference-catalog > .page-header { text-align: left; align-items: start; padding-block: 36px 0; min-height: 0; background: transparent; box-shadow: none; clip-path: none; margin-bottom: 30px; }
.reference-catalog > .page-header h1 { font-size: 36px; font-weight: 700; color: #252525; }
.reference-catalog > .page-header p { font-size: 16px; color: var(--ink); }
.reference-catalog .resource-tool h2, .reference-catalog .preset-collection-card h2 { color: #252525; }
.resource-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.resource-tool { display: flex; flex-direction: column; min-width: 0; gap: 22px; padding: 24px 26px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.resource-tool h2 { margin: 0 0 10px; font-size: 18px; font-weight: 650; }
.resource-tool p { margin: 0; color: var(--muted); line-height: 1.6; }
.resource-tool-icon, .preset-collection-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e8f2fa; color: var(--accent); }
.resource-tool-icon .ui-icon, .preset-collection-mark .ui-icon { width: 24px; height: 24px; }
.resource-tool > button { margin-top: auto; align-self: end; }
.resource-tool-action, .preset-catalog-action { display: inline-flex; align-items: center; justify-content: end; gap: 8px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--accent); font-weight: 600; }
.resource-tool-action .ui-icon, .preset-catalog-action .ui-icon { width: 16px; height: 16px; }
.resource-tool:focus-within, .preset-collection-card:focus-within { border-color: var(--accent); }
.resource-tool-action:hover, .preset-catalog-action:hover { text-decoration: underline; }
.resource-tool-action:focus-visible, .preset-catalog-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.resource-guide { margin-bottom: 24px; }
.resource-guide ol { padding-left: 24px; max-width: 85ch; }
.resource-guide li, .resource-guide p { line-height: 1.7; margin-bottom: 16px; }
.resource-guide .action-row { margin-top: 24px; }
.attract-background-editor { padding: 28px; }
.attract-background-editor h2 { margin-top: 0; }
.attract-library-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-block: 16px 28px; }
.attract-background-editor form { display: grid; gap: 20px; max-width: 760px; }
.attract-background-editor form > label { display: grid; gap: 8px; }
.attract-background-editor select { width: 100%; min-width: 0; min-height: 44px; }
.attract-background-editor fieldset { display: flex; flex-wrap: wrap; gap: 16px 28px; border: 1px solid var(--line); padding: 16px; }
.attract-background-editor footer { display: flex; justify-content: end; }
.attract-advanced { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.attract-advanced > summary { min-height: 44px; cursor: pointer; color: var(--accent); }
.attract-advanced form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .attract-background-editor { padding: 20px; } .attract-advanced form { grid-template-columns: 1fr; } }
.event-workspace:has([data-event-panel="app"]:not([hidden])) { max-width: none; padding: 0; }
.event-workspace:has([data-event-panel="app"]:not([hidden])) > .event-heading,
.event-workspace:has([data-event-panel="app"]:not([hidden])) .event-navigation,
.event-workspace:has([data-event-panel="app"]:not([hidden])) .event-section-heading,
.event-workspace:has([data-event-panel="app"]:not([hidden])) [data-event-overview-back] { display: none; }
.event-workspace:has([data-event-panel="app"]:not([hidden])) .event-layout { display: block; }
.app-experience-editor { background: #fff; color: #222; font-family: Arial, sans-serif; font-size: 13px; }
.app-experience-heading { text-align: center; padding: 27px 20px; background: #f5f6fa; }
.app-experience-heading h2 { margin: 0; font-size: 24px; line-height: 28px; font-weight: 400; color: #333; }
.app-experience-heading h2 span { color: var(--pine); font-size: 14px; }
.app-experience-tabs { display: flex; padding: 0; margin: 50px auto 0; width: 93.2%; gap: 0; border-bottom: 1px solid #eee; }
.app-experience-tabs button { position: relative; flex: 1; min-height: 36px; padding: 10px 4px; border: 0; background: #fff; color: #111; font-size: 13px; font-weight: 400; }
.app-experience-tabs button[aria-pressed="true"] { font-weight: 700; background: #fff; color: #111; }
.app-experience-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -5px; height: 4px; width: 40%; left: 30%; background: var(--pine); }
.app-important { margin-left: 12px; padding: 4px; color: white; background: #269db3; border-radius: 2px; font-weight: 400; }
.app-experience-surface { width: 93.2%; margin: 0 auto; padding: 60px 0 0; }
.app-experience-help { text-align: center; color: #444; line-height: 1.5; margin: -20px auto 24px; }
.app-experience-editor .button { min-height: 40px; border-radius: 4px; font-family: inherit; font-size: 13px; font-weight: 400; box-shadow: none; text-transform: none; letter-spacing: 0; }
.app-media-layout { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 15px; align-items: start; }
.app-media-tools { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.app-library-buttons, .app-preview-tools { display: flex; gap: 30px; }
.app-library-buttons > .button, .app-preview-tools > .button { flex: 1; }
.app-upload-list { display: grid; gap: 15px; }
.app-upload-list[hidden] { display: none; }
.app-upload-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 7px 23px; border: 1px solid #dce4e8; border-radius: 4px; gap: 14px; }
.app-upload-button { position: relative; width: 34%; min-width: 110px; overflow: hidden; cursor: pointer; }
.app-upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; }
.app-upload-button:focus-within { outline: 2px solid var(--pine); outline-offset: 2px; }
.app-experience-toggle { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 54px; margin: -15px 15px 30px; padding: 8px 22px; border: 1px solid #dce4e8; border-radius: 4px; }
.app-experience-editor input[type="checkbox"] { width: 29px; height: 29px; accent-color: var(--pine); margin: 0; flex-shrink: 0; }
.app-experience-preview { grid-column: 2; padding: 14px 0; background: #fff; min-width: 0; }
.app-experience-devices { display: flex; align-items: flex-start; justify-content: space-around; gap: 24px; }
.app-experience-device { position: relative; flex-shrink: 0; padding: 9px 16px; border: 2px solid #333; border-radius: 10px; background: #080808; }
.app-experience-device::before { content: ""; position: absolute; width: 5px; height: 5px; border: 1px solid #444; border-radius: 50%; left: 5px; top: 49%; }
.app-experience-device--landscape { width: 200px; height: 140px; }
.app-experience-device--portrait { width: 140px; height: 200px; padding: 17px 9px; }
.app-experience-device--portrait::before { top: auto; bottom: 5px; left: 49%; }
.app-experience-device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid #111; background: #000; display: flex; justify-content: center; align-items: center; text-align: center; color: #fff; }
.app-media-layer { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; font-size: 10px; color: #fff; }
.app-media-layer > img, .app-media-layer > video { width: 100%; height: 100%; display: block; }
.app-media-layer--overlay { z-index: 1; pointer-events: none; }
.app-default-brand { color: #fff; font-weight: 700; font-size: 22px; line-height: .8; letter-spacing: -1px; }
.app-preview-buttons { position: absolute; bottom: 5%; left: 5%; right: 5%; display: flex; justify-content: space-around; z-index: 2; gap: 2%; }
.app-preview-buttons button { position: relative; display: grid; justify-items: center; padding: 0; border: 0; background: transparent; color: #fff; flex: 1; font-family: inherit; min-width: 0; }
.app-preview-buttons button > span { font-size: 13px; line-height: 1; }
.app-preview-buttons .ui-icon { width: 13px; height: 13px; }
.app-preview-buttons small { font-size: 4px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.app-preview-buttons .app-media-layer { bottom: 15%; }
.app-saved-summary { display: flex; flex-wrap: wrap; gap: 24px; padding: 20px; align-items: flex-start; }
.app-saved-summary h4 { margin: 0 0 12px; }
.app-summary-artwork { display: flex; flex-wrap: wrap; gap: 10px; }
.app-summary-artwork figure { margin: 0; max-width: 84px; text-align: center; }
.app-summary-thumbnail { position: relative; width: 84px; height: 84px; background: #edf2f6; overflow: hidden; border-radius: 4px; }
.app-saved-summary dl { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 12px; }

/* Compact event overview only; editor and public gallery styles remain independent. */
.event-overview .event-overview-group { margin-top: 30px; }
.event-overview .event-overview-group > h2 { color: #1767a5; font-size: 22px; margin-bottom: 16px; }
.event-overview .event-summary-grid { gap: 18px; }
.event-overview .event-summary { border-color: #e4e8ec; transition: border-color .15s, box-shadow .15s; }
.event-overview .event-summary:hover,
.event-overview .event-summary:focus-within { border-color: #2679cf; box-shadow: 0 5px 14px #16365312; }
.event-overview .event-summary > header { padding: 2px 14px; }
.event-overview .event-summary h3 { font-size: 14px; font-weight: 700; }
.event-overview .event-summary header button { color: #1767a5; }
.event-overview .event-summary dl > div { padding: 12px 16px; border: 0; border-right: 1px solid #edf0f3; }
.event-overview .event-summary dt { font-size: 12px; }
.event-overview .event-summary dd { font-size: 13px; color: #172b42; }
.event-overview .event-summary .overview-state--on { color: #1767a5; font-weight: 600; }
.event-overview .event-summary .overview-state--off { color: #657181; }
.event-overview #event-overview-info dl,
.event-overview #event-overview-features dl,
.event-overview #event-overview-branding dl,
.event-overview #event-overview-sms dl,
.event-overview #event-overview-printing dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-overview .overview-preview-row { display: flex; align-items: stretch; min-width: 0; }
.event-overview .overview-preview { flex: 0 0 24%; padding: 14px; border-right: 1px solid #edf0f3; min-width: 0; }
.event-overview .overview-preview-row dl { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.event-overview #event-overview-gallery dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.event-overview .overview-view-links { display: flex; align-items: center; padding: 16px; flex: 0 0 22%; }
.event-overview .overview-gallery-thumbnail { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 100px; padding: 12px; background: #f4f6f9; border: 1px solid #e4e8ec; text-align: center; overflow-wrap: anywhere; }
.event-overview .overview-gallery-thumbnail img { max-width: 100%; max-height: 70px; object-fit: contain; }
.event-overview .overview-email-preview { position: relative; height: 180px; overflow: hidden; border: 1px solid #e4e8ec; background: #f4f6f9; }
.event-overview .overview-email-composition { position: absolute; transform-origin: top left; visibility: hidden; font-size: 16px; }
.event-overview .overview-email-composition h2 { font-size: 24px; }
.event-overview .overview-email-preview [data-overview-email-resource] img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.event-overview .overview-template-groups { display: grid; gap: 18px; }
.event-overview .overview-template-content { padding: 12px 16px; min-height: 115px; }
.event-overview .overview-template-content > p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.event-overview .overview-template-previews { display: flex; flex-wrap: wrap; gap: 14px; }
.event-overview .overview-template-previews figure { margin: 0; max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }
.event-overview .overview-template-preview { height: 88px; width: max-content; max-width: 100%; display: flex; align-items: center; justify-content: center; background: #f6f8fa; padding: 6px; }
.event-overview .overview-template-canvas { position: relative; height: auto; width: calc(76px * var(--template-preview-ratio, 1)); max-width: 100%; overflow: hidden; flex: none; }
.event-overview .overview-template-layer { position: absolute; overflow: hidden; font-size: 5px; }
.event-overview .overview-template-layer--capture { border: 1px solid #ccd4de; background: #edf1f5; }
.event-overview .overview-template-layer img { width: 100%; height: 100%; object-fit: cover; }
.event-overview .overview-template-preview video { height: 76px; width: auto; max-width: 100%; object-fit: contain; }
.event-overview [data-overview-gallery-media] { display: flex; gap: 3px; }
.event-overview [data-overview-gallery-media] img { width: 32%; height: 48px; object-fit: cover; }
.event-overview .app-saved-summary { display: grid; grid-template-columns: minmax(260px, 2.5fr) repeat(3, minmax(85px, 1fr)) minmax(90px, 1fr); gap: 0; padding: 0; }
.event-overview .app-summary-artwork { flex-wrap: nowrap; gap: 6px; }
.event-overview .app-summary-artwork .app-summary-thumbnail { width: 40px; height: 52px; }
.event-overview .app-summary-artwork figcaption { font-size: 10px; }
.event-overview .overview-template-previews button { padding: 3px 0; border: 0; background: transparent; color: #1767a5; font-size: 12px; }
.event-overview .overview-template-canvas > small { color: white; display: block; font-size: 9px; text-align: center; padding: 28px 4px; }
.event-overview .app-saved-summary > div, .event-overview .app-saved-summary > dl { padding: 14px; border-right: 1px solid #edf0f3; }
.event-overview .app-saved-summary h4 { font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.event-overview .app-saved-summary > dl { display: flex; flex-direction: column; gap: 10px; }
.event-overview .app-saved-summary dl > div { padding: 0; border: 0; }
.event-overview .app-summary-thumbnail { width: 64px; height: 72px; display: grid; place-items: center; }
.event-overview .app-summary-thumbnail > .ui-icon { width: 28px; height: 28px; color: #617589; }
@media (max-width: 1200px) {
  .event-overview .app-saved-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-overview .overview-preview-row { flex-wrap: wrap; }
}
@media (max-width: 650px) {
  .event-overview .event-summary dl, .event-overview #event-overview-info dl,
  .event-overview #event-overview-features dl, .event-overview #event-overview-branding dl,
  .event-overview #event-overview-sms dl, .event-overview #event-overview-printing dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-overview .overview-preview { flex-basis: 45%; }
  .event-overview .overview-preview-row dl { flex-basis: 100%; }
  .event-overview .app-saved-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-overview .app-saved-summary > div:first-child { grid-column: 1 / -1; }
  .event-overview .app-summary-artwork { flex-wrap: wrap; }
}
.app-gallery-preview { position: absolute; inset: 5% 4% 24%; display: grid; grid-template-columns: repeat(3,1fr); gap: 3%; color: #333; background: #000; }
.app-gallery-preview span { display: grid; place-items: center; background: #e4e4e4; }
.app-bottom-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.app-settings-labels, .app-settings-row { display: grid; grid-template-columns: 1fr 115px 115px; gap: 25px; align-items: center; padding: 0 22px; }
.app-settings-labels { min-height: 48px; text-align: center; padding-bottom: 10px; }
.app-settings-row { min-height: 55px; padding-block: 8px; border: 1px solid #dce4e8; border-radius: 4px; }
.app-settings-row select { width: 100%; padding: 7px 12px; min-height: 34px; font: inherit; color: #555; font-weight: 400; }
.app-hide-settings .app-settings-labels, .app-hide-settings .app-settings-row { grid-template-columns: 1.5fr repeat(4,1fr); gap: 15px; }
.app-hide-settings label { display: flex; justify-content: center; }
.app-standby-layout { display: grid; grid-template-columns: 42% 48%; gap: 2%; }
.app-standby-layout .app-experience-preview { grid-column: 1; padding: 0; }
.app-standby-layout .app-experience-device--portrait { width: 296px; height: 420px; padding: 33px 16px; border-radius: 17px; }
.app-standby-layout .app-experience-device__screen strong { padding: 15px; font-size: 19px; line-height: 1.5; font-weight: 400; }
.app-standby-fields { padding-top: 30px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.app-message-row { display: flex; gap: 8px; margin-bottom: 12px; }
.app-message-row input { width: 100%; min-height: 35px; padding: 8px 5px; font: inherit; background: #f5f5f5; border: 1px solid #ccc; border-radius: 4px; }
.app-standby-fields > .button { align-self: end; min-width: 130px; }
.app-standby-toggle { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; margin: 0 0 55px; }
.app-standby-fields [data-app-messages] { margin-bottom: -12px; }
.app-experience-footer { display: flex; justify-content: space-between; width: 93.2%; margin: 52px auto 0; padding-bottom: 98px; }
.app-experience-footer .button { min-width: 130px; min-height: 44px; }
.app-experience-footer [data-app-cancel] { color: #c36666; border-color: #cfa6a6; }
.app-editor-status:empty, .app-experience-editor [data-app-error][hidden] { display: none; }
.app-editor-status, .app-experience-editor [data-app-error] { width: 93.2%; margin: 12px auto; }
.app-media-dialog { width: min(1150px,95vw); max-height: 94vh; border: 1px solid #ddd; border-radius: 5px; padding: 26px; color: #222; font: 14px Arial, sans-serif; }
.app-media-dialog::backdrop { background: rgb(25 42 55 / 50%); }
.app-media-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.app-media-dialog h2 { font-size: 24px; font-weight: 400; margin: 0; }
.app-media-dialog table { width: 100%; border-collapse: collapse; }
.app-media-dialog th, .app-media-dialog td { text-align: left; padding: 14px; border-bottom: 1px solid #ddd; }
.app-sizes-dialog { width: min(590px,94vw); border-top: 9px solid var(--pine); border-radius: 16px; padding: 38px 32px 30px; }
.app-sizes-dialog header { justify-content: center; }
.app-sizes-dialog table { margin-bottom: 34px; font-size: 12px; }
.app-sizes-dialog caption { font-weight: 700; text-align: left; margin-bottom: 8px; }
.app-sizes-dialog th, .app-sizes-dialog td { border: 0; padding: 2px 3px; white-space: nowrap; }
.app-sizes-dialog th { background: #fff; color: #444; text-transform: none; letter-spacing: 0; font-size: 12px; }
.app-sizes-dialog h2 { color: #333; }
.app-sizes-dialog td, .app-sizes-dialog thead th { text-align: center; }
.app-sizes-dialog footer { display: flex; justify-content: end; padding-top: 16px; }
.app-sizes-dialog footer button { min-width: 120px; }
.app-sizes-illustration { position: relative; width: 120px; height: 150px; margin: 36px auto; color: var(--pine); }
.app-sizes-illustration > .ui-icon:first-child { width: 120px; height: 130px; }
.app-sizes-illustration > .ui-icon:last-child { position: absolute; width: 42px; height: 42px; left: 39px; top: 39px; }
.app-media-dialog form { display: flex; gap: 20px; }
.app-media-dialog form label { flex: 1; }
.app-media-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 20px 0; }
.app-media-choice { padding: 0; border: 1px solid #ddd; background: #fff; color: #222; border-radius: 5px; overflow: hidden; }
.app-media-choice [data-app-media] { display: block; position: relative; height: 160px; background: #222; }
.app-media-choice img, .app-media-choice video { width: 100%; height: 100%; object-fit: contain; }
.app-media-choice strong { display: block; padding: 10px; }
.app-button-customizer { width: 100vw; max-width: none; height: 100vh; max-height: none; border-radius: 0; border: 0; }
.app-button-customizer > header { justify-content: center; text-align: center; }
.app-button-customizer > header > button { position: absolute; top: 40px; right: 30px; }
.app-button-customizer p { text-align: center; }
.app-button-customizer nav { display: flex; margin: 70px 0 30px; border-bottom: 1px solid #eee; }
.app-button-customizer nav button { flex: 1; border: 0; background: white; padding: 16px; }
.app-button-customizer nav button[aria-pressed="true"] { font-weight: 700; border-bottom: 4px solid var(--pine); }
.app-button-customizer .app-experience-device--landscape { width: 720px; height: 510px; padding: 30px 62px; border-radius: 30px; }
.app-button-customizer .app-experience-device--portrait { width: 370px; height: 520px; padding: 40px 25px; border-radius: 25px; }
.app-button-customizer .app-preview-buttons button > span { font-size: 42px; }
.app-button-customizer .app-preview-buttons .ui-icon { width: 42px; height: 42px; }
.app-button-customizer .app-preview-buttons small { font-size: 10px; }
.app-button-customizer .app-default-brand { font-size: 65px; }
.app-button-customizer [data-button-tools] { display: flex; justify-content: center; align-items: center; gap: 20px; }
@media (min-width: 1600px) { .app-experience-tabs, .app-experience-surface, .app-experience-footer { width: 80%; max-width: 1600px; } }
@media (max-width: 1050px) { .app-settings-labels, .app-settings-row { gap: 12px; grid-template-columns: 1fr 85px 85px; padding-inline: 10px; } .app-hide-settings .app-settings-labels, .app-hide-settings .app-settings-row { gap: 8px; } .app-experience-devices { gap: 10px; } .app-experience-device--landscape { width: 160px; height: 115px; } .app-experience-device--portrait { width: 115px; height: 160px; } .app-library-buttons, .app-preview-tools { gap: 10px; } }
@media (max-width: 760px) { .app-important { display: block; margin: 4px auto 0; width: fit-content; } .app-experience-tabs { margin-top: 24px; } .app-experience-tabs button { font-size: 11px; } .app-experience-surface { padding-top: 30px; } .app-media-layout, .app-media-tools, .app-bottom-settings, .app-standby-layout { grid-template-columns: 1fr; } .app-media-tools { gap: 12px; } .app-experience-preview { grid-column: 1; } .app-upload-list[hidden] + .app-experience-preview { grid-column: 1; } .app-experience-toggle { margin-inline: 0; } .app-experience-footer { padding-bottom: 40px; } .app-standby-layout .app-experience-device--portrait { width: 240px; height: 340px; } .app-media-grid { grid-template-columns: repeat(2,1fr); } .app-button-customizer .app-experience-device--landscape { width: 90vw; height: 65vw; padding: 4vw 8vw; } }
.preset-destinations { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 28px; }
.preset-collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 28px; }
.preset-collection-card { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.preset-collection-card h2 { font-size: 18px; font-weight: 650; margin: 22px 0 10px; }
.preset-collection-card p { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
.preset-collection-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.preset-collection-card footer span { color: var(--muted); font-size: 13px; }
.preset-workspace > .page-header .action-row { flex-wrap: wrap; }
.preset-library-filter { margin: 0 0 24px; }
.preset-library-filter input { min-width: 0; }
.preset-workspace .table-panel { margin-bottom: 28px; }
.preset-destinations button { flex: 1 1 230px; }
@media (max-width: 900px) {
  .account-workspace > .page-header, .profile-workspace > .page-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .account-workspace > .page-header .action-row { justify-content: center; }
  .preset-collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-overview-grid, .account-settings-grid { grid-template-columns: 1fr; gap: 20px; }
  .resource-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .account-overview-grid, .account-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .account-addon-grid { grid-template-columns: 1fr; }
  .account-overview-grid > .panel, .account-settings-grid > .panel { padding: 22px; }
  .preset-collection-grid { grid-template-columns: 1fr; }
  .event-info-editor fieldset { grid-template-columns: 1fr; }
  .resource-tool-grid { grid-template-columns: 1fr; }
  .reference-catalog > .page-header h1 { font-size: 30px; }
  .account-workspace > .page-header .action-row { flex-wrap: wrap; }
}

.event-features-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.event-template-assignments fieldset { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.event-assigned-templates { padding-left: 24px; }
.event-assigned-templates li { padding: 20px 0; border-bottom: 1px solid #d5dee7; }
.event-assigned-templates li[draggable="true"] { cursor: grab; }
.event-assigned-templates li > div, .event-assigned-templates form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.event-template-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; margin: 24px 0; }
.event-template-library article { padding: 20px; border: 1px solid #d5dee7; min-width: 0; overflow-wrap: anywhere; }
.event-template-library h3 { margin-top: 0; }
.event-template-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #d5dee7; background: white; color: #41677d; }
.event-template-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.event-template-dialog header, .event-template-dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.event-template-dialog .event-template-library { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
.event-template-dialog fieldset { border: 0; padding: 0; min-width: 0; }
.event-option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 20px; margin: 24px 0 36px; }
.event-option-tile { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; gap: 12px; text-align: center; border: 1px solid #d5dee7; }
.event-option-tile > .ui-icon { width: 40px; height: 40px; color: #287cba; }
.event-option-tile h3, .event-option-tile p { margin: 0; }
.event-option-tile .button { margin-top: auto; }
.event-options-editor > header { padding: 24px 28px 8px; }
.event-options-editor > header h2, .event-options-editor > header p { margin: 0 0 8px; }
.event-options-editor form { padding: 24px 28px 32px; }
.event-options-editor fieldset { border: 0; margin: 0; padding: 0; }
.event-option-switch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.event-option-toggle { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 50px; margin: 0; padding: 10px 14px; background: #fff; }
.event-option-toggle input { order: 2; width: 38px; height: 21px; margin: 0; accent-color: var(--pine); }
.event-option-toggle span { font-weight: 600; }
.event-options-group { display: grid; gap: 14px; margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.event-options-group h3, .event-options-group p { margin: 0; }
.event-options-fields, .event-options-pin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.event-option-inline { display: flex; flex-wrap: wrap; gap: 8px; }
.event-option-inline .event-option-toggle { min-width: 145px; border: 1px solid var(--line); border-radius: 6px; }
.event-options-editor footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; }
.event-feature-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; max-width: 920px; margin: 32px auto 40px; }
.event-feature-choice { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; cursor: pointer; }
.event-feature-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.event-feature-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 168px; border-radius: 6px; background: #3d7ec0; color: white; }
.event-feature-face > .ui-icon { width: 40px; height: 40px; }
.event-feature-face strong { font-weight: 500; font-size: 16px; }
.event-feature-check { position: absolute; right: -6px; top: -10px; display: none; width: 32px; height: 32px; border: 4px solid white; border-radius: 4px; background: #30699f; line-height: 24px; }
.event-feature-choice:has(input:checked) .event-feature-check { display: block; }
.event-feature-choice:focus-within .event-feature-face { outline: 3px solid #174771; outline-offset: 4px; }
.event-feature-description { font-size: 14px; line-height: 1.5; color: #333; padding: 0 8px; }
.event-feature-choice:has(input:disabled) { cursor: default; opacity: .65; }
@media (max-width: 620px) {
  .event-feature-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .event-feature-face { min-height: 140px; }
}
.event-features-editor footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.event-feature-addons { margin-top: 40px; }
.event-feature-addons h3 { text-align: center; font-weight: 500; margin-bottom: 24px; }
.event-feature-addon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 24%); gap: 16px; margin-bottom: 16px; }
.event-feature-addon > div { display: flex; align-items: center; gap: 16px; border: 1px solid #d5dee7; border-radius: 4px; padding: 16px; }
.event-feature-addon .ui-icon { flex: 0 0 24px; width: 24px; height: 24px; }
.event-feature-addon strong, .event-feature-addon small { display: block; }
.event-feature-addon small { margin-top: 6px; color: #526678; line-height: 1.4; }
.event-feature-addon > button { white-space: normal; }
@media (max-width: 620px) {
  .event-feature-addon { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .event-feature-addon > button { min-height: 44px; }
}

.photo-template-designer .designer-grid {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(280px, 320px);
  align-items: start;
}
.photo-template-designer .designer-grid > .layers-panel { grid-column: 1; grid-row: 1; }
.photo-template-designer .designer-grid > .canvas-stage { grid-column: 2; grid-row: 1; background: #f0f3f7; }
.photo-template-designer .designer-grid > .properties-panel { grid-column: 3; grid-row: 1; border-left: 1px solid var(--line); border-right: 0; display: block; }
.photo-template-designer .designer-panel { max-height: calc(100dvh - 11rem); overflow-y: auto; }
.photo-template-designer [data-template-pane-body][hidden] { display: none; }
.photo-template-designer .designer-grid:has([data-template-pane-body="content"][hidden]) { grid-template-columns: 0 minmax(0, 1fr) minmax(280px, 320px); }
.photo-template-designer .designer-grid:has([data-template-pane-body="properties"][hidden]) { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) 0; }
.photo-template-designer .designer-grid:has([data-template-pane-body="content"][hidden]):has([data-template-pane-body="properties"][hidden]) { grid-template-columns: 0 minmax(0, 1fr) 0; }
.photo-template-designer .canvas-layer { border-radius: 0; padding: 0; min-height: 0; background-color: transparent; cursor: pointer; }
.photo-template-designer .canvas-layer:focus-visible { outline: 3px solid #176aab; outline-offset: -3px; }
.photo-template-designer .properties-panel summary { min-height: 44px; align-content: center; font-weight: 600; }
@media (max-width: 1100px) {
  .photo-template-designer .designer-grid { grid-template-columns: 270px minmax(0, 1fr); }
  .photo-template-designer .designer-grid > .properties-panel { grid-column: 1; grid-row: 2; border-left: 0; }
  .photo-template-designer .designer-grid > .canvas-stage { grid-column: 2; grid-row: 1 / 3; }
  .photo-template-designer .designer-grid:has([data-template-pane-body][hidden]) { grid-template-columns: 270px minmax(0, 1fr); }
  .photo-template-designer .designer-grid:has([data-template-pane-body="content"][hidden]):has([data-template-pane-body="properties"][hidden]) { grid-template-columns: 0 minmax(0, 1fr); }
  .photo-template-designer .designer-panel { max-height: 55dvh; }
}
@media (max-width: 760px) {
  .photo-template-designer .designer-grid { grid-template-columns: minmax(0, 1fr); }
  .photo-template-designer .designer-grid:has([data-template-pane-body][hidden]),
  .photo-template-designer .designer-grid:has([data-template-pane-body="content"][hidden]):has([data-template-pane-body="properties"][hidden]) { grid-template-columns: minmax(0, 1fr); }
  .photo-template-designer .designer-grid > .canvas-stage { grid-column: 1; grid-row: 1; position: static; min-height: 22rem; }
  .photo-template-designer .designer-grid > .layers-panel { grid-column: 1; grid-row: 2; }
  .photo-template-designer .designer-grid > .properties-panel { grid-column: 1; grid-row: 3; }
  .photo-template-designer .designer-panel { max-height: none; }
  .photo-template-designer .template-canvas { height: 50dvh; max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.photo-template-designer .canvas-layer > img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-template-designer .canvas-layer.has-image-preview > span { visibility: hidden; }
.layer-property-tabs { display: flex; border-bottom: 1px solid var(--line); gap: 0; margin-bottom: 1rem; }
.layer-property-tabs > button { flex: 1; min-height: 44px; border: 0; border-radius: 0; background: transparent; border-bottom: 3px solid transparent; }
.layer-property-tabs > button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); background: var(--paper); }
.template-content-tabs { margin: 0 12px 16px; }
.template-content-tabs > button { font-size: 12px; padding: 8px 4px; line-height: 1.3; min-width: 0; }
.photo-template-designer [role="tabpanel"][hidden] { display: none; }
.photo-template-designer [role="tabpanel"] h3 { font-size: .875rem; margin: 0 0 .75rem; }
.layer-alignment-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .375rem; }
.layer-alignment-actions > button { min-height: 44px; padding: .375rem; font-size: .75rem; }
.photo-template-designer .canvas-stage { grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px; }
.template-canvas-viewport { width: 100%; height: min(70dvh, 54rem); min-height: 220px; overflow: auto; display: flex; padding: 16px; }
.photo-template-designer .template-canvas-viewport > .template-canvas { flex: none; margin: auto; max-width: none; max-height: none; isolation: isolate; }
.template-zoom-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.template-zoom-controls button { min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid #d5dee7; border-radius: 6px; background: white; color: #41677d; }
.template-zoom-controls output { min-width: 4ch; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .template-canvas-viewport { height: 50dvh; } }
.event-runtime-flow { max-width: 920px; margin: 48px auto 8px; padding-top: 32px; border-top: 1px solid #d5dee7; }
.event-runtime-flow > div { max-width: 720px; margin-bottom: 24px; }
.event-runtime-flow > div h3 { margin: 4px 0 8px; font-size: 22px; }
.event-runtime-flow > div p:last-child, .event-runtime-flow fieldset > p { color: #526678; line-height: 1.5; }
.event-runtime-flow fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.event-runtime-flow label.check { min-height: 44px; align-items: center; font-weight: 600; }
.event-runtime-flow label.check + p { margin: 0 0 16px 30px; }
.event-runtime-flow fieldset > label:not(.check) { display: grid; gap: 8px; max-width: 440px; margin-top: 8px; font-weight: 600; }
.event-runtime-flow .field-with-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #aebfce; border-radius: 4px; background: white; overflow: hidden; }
.event-runtime-flow .field-with-suffix input { width: 100%; min-width: 0; border: 0; box-shadow: none; }
.event-runtime-flow .field-with-suffix span { padding: 0 14px; color: #526678; font-weight: 400; }
.event-runtime-flow footer { justify-content: flex-end; }

/* Event downloads: isolated native dialog, desktop first without inherited form grids. */
.event-archive-dialog { box-sizing: border-box; width: min(1120px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #cddce7; border-radius: 12px; color: #344b5e; background: white; }
.event-archive-dialog::backdrop { background: rgb(16 30 44 / 55%); }
.event-archive-dialog *, .event-archive-dialog *::before, .event-archive-dialog *::after { box-sizing: border-box; }
.event-archive-dialog form, .event-archive-dialog fieldset { display: block; min-width: 0; }
.event-archive-dialog fieldset { padding: 20px; border: 1px solid #d5dee7; border-radius: 8px; }
.event-archive-dialog .archive-options { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin: 12px 0; }
.event-archive-dialog .archive-check { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.event-archive-dialog .archive-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 20px; }
.event-archive-dialog .archive-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.event-archive-dialog .archive-fields label { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.event-archive-dialog .archive-fields input { width: 100%; min-width: 0; min-height: 44px; }
.event-archive-dialog p { line-height: 1.5; }
.event-archive-dialog .archive-history-scroll { overflow-x: auto; margin: 16px 0; }
.event-archive-dialog .archive-history-table { width: 100%; min-width: 860px; border-collapse: collapse; text-align: left; }
.event-archive-dialog .archive-history-table th, .event-archive-dialog .archive-history-table td { border: 1px solid #d5dee7; padding: 16px; vertical-align: top; overflow-wrap: anywhere; }
.event-archive-dialog .archive-history-table th { background: #f2f7fb; }
.event-archive-dialog .archive-download-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.event-archive-dialog .archive-request ul { list-style: none; padding: 0; }
.event-archive-dialog .archive-request li { padding: 12px 0; border-top: 1px solid #e5edf2; }
.event-archive-dialog button { min-height: 44px; }
@media (max-width: 640px) { .event-archive-dialog { padding: 16px; } .event-archive-dialog .archive-fields { grid-template-columns: minmax(0, 1fr); } }

/* Event-bound layout creator. Existing advanced editors keep their own layout. */
.template-design-selection { max-width: 1280px; margin: 0 auto; }
.template-design-selection > h1 { text-align: center; font-size: 1.45rem; margin: 1.5rem 0 3rem; }
.template-design-body { display: flex; gap: 28px; padding: 24px; min-width: 0; min-height: 310px; border: 1px solid #bdd3e2; border-radius: 6px; background: white; }
.template-design-entry { display: flex; flex-direction: column; gap: 18px; flex: 0 0 170px; }
.template-design-entry .button { display: flex; flex-direction: column; min-height: 116px; justify-content: center; white-space: normal; }
.template-design-entry span { font-size: 2.2rem; }
.template-design-cards { display: flex; flex-wrap: wrap; gap: 24px; min-width: 0; }
.template-design-card { position: relative; width: max-content; min-width: 195px; max-width: 100%; padding: 16px 10px; text-align: center; }
.template-design-card h3 { font-size: .9rem; overflow-wrap: anywhere; margin: 10px 0 4px; }
.template-design-card .overview-template-preview { height: 150px; display: grid; place-items: center; }
.template-design-card .overview-template-canvas { position: relative; width: calc(145px * var(--template-preview-ratio, 1)); height: auto; max-width: 100%; overflow: hidden; }
.template-design-card .overview-template-layer { position: absolute; overflow: hidden; }
.template-design-card .overview-template-layer img { width: 100%; height: 100%; }
.template-design-card .overview-template-layer--capture { border: 1px solid #ccd4de; background: #edf1f5; }
.template-design-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; }
.template-design-card-actions .button { padding: 6px; font-size: .75rem; white-space: normal; }
.template-design-remove { position: absolute; top: 0; left: 0; width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 1px solid #c83535; color: #b52626; background: white; }
.template-design-footer { display: flex; justify-content: space-between; gap: 20px; margin: 40px 0 24px; }
.template-type-dialog { width: min(540px, calc(100vw - 32px)); }
.template-preview-dialog header { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.template-preview-dialog header h2 { margin: 0; }
.template-preview-dialog fieldset { display: grid; gap: 16px; min-width: 0; padding: 24px 0 0; border: 0; }
.template-preview-dialog label { display: grid; gap: 8px; min-width: 0; }
.template-preview-dialog input { width: 100%; min-width: 0; }
.template-preview-dialog p { margin: 0; }
.template-preview-dialog button[type="submit"] { justify-self: end; }
.template-type-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0; }
.template-type-choices .button { min-height: 120px; white-space: normal; }
.template-layout-workspace { background: white; }
.template-layout-workspace h1 { font-size: 1.35rem; }
.template-layout-workspace .designer-toolbar { position: sticky; top: 0; z-index: 10; background: white; justify-content: space-between; }
.template-layout-workspace fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.template-layout-grid { display: grid; grid-template-columns: minmax(260px, 355px) minmax(0, 1fr); gap: 32px; padding: 24px; }
.template-layout-sidebar { display: flex; flex-direction: column; gap: 12px; }
.template-layout-panel { padding: 16px; border: 1px solid #bdd3e2; border-top: 5px solid #2b83b9; border-radius: 5px; }
.template-layout-panel header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.template-layout-panel h2 { font-size: .95rem; margin: 0 0 16px; font-weight: 500; }
.template-layout-panel header h2 { margin: 0; }
.template-layout-panel label { display: grid; gap: 6px; min-width: 0; font-size: .8rem; }
.template-layout-panel input, .template-layout-panel select { width: 100%; min-width: 0; }
.template-layout-panel .property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.template-layout-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.template-layout-actions .button { font-size: .75rem; padding: 8px; white-space: normal; text-align: center; }
.template-layout-panel [data-layout-selected-frame] { margin-top: 8px; }
.template-upload { position: relative; overflow: hidden; cursor: pointer; }
.template-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.template-upload:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.template-layout-workspace .canvas-stage { align-self: start; position: sticky; top: 100px; min-width: 0; padding: 0; background: white; }
.template-layout-workspace .template-canvas { border: 1px solid #2b83b9; box-shadow: none; touch-action: none; }
.template-layout-workspace .canvas-layer--capture { background: #d5dadf; border: 1px solid #526c7d; cursor: move; }
.template-layout-workspace .canvas-layer--capture span { font-size: 1.2rem; color: #284353; }
.template-layout-workspace .canvas-layer--overlay, .template-layout-workspace .canvas-layer--image { pointer-events: none; }
.template-layout-workspace .canvas-layer--overlay { filter: opacity(var(--layout-overlay-opacity, 1)); }
.template-layout-empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; text-align: center; padding: 18px; color: #2278b1; pointer-events: none; }
.template-layout-draft { position: absolute; display: grid; place-items: center; border: 2px solid #2278b1; background: rgb(34 120 177 / 35%); color: #123a54; font-size: 1.2rem; pointer-events: none; z-index: 10000; }
[data-layout-canvas]:has([data-layout-draft]) .template-layout-empty { visibility: hidden; }
.template-layout-resize { position: absolute; right: 0; bottom: 0; width: 16px; height: 16px; background: #2278b1; border: 2px solid white; cursor: nwse-resize; }
.template-layout-remove { position: absolute; z-index: 10001; width: 26px; height: 26px; padding: 0; border: 1px solid white; border-radius: 50%; background: #ba3232; color: white; cursor: pointer; }
.template-layout-workspace .template-zoom-controls { flex-wrap: wrap; }
[data-layout-preview="true"] .canvas-layer { pointer-events: none; outline: none; border: 0; }
[data-layout-preview="true"] .template-layout-resize, [data-layout-preview="true"] .template-layout-remove { display: none; }
@media (max-width: 1000px) { .template-layout-grid { gap: 16px; padding: 16px; grid-template-columns: 275px minmax(0, 1fr); } }
@media (max-width: 700px) {
  .template-layout-grid { grid-template-columns: minmax(0, 1fr); }
  .template-layout-workspace .canvas-stage { position: static; grid-row: 1; }
  .template-layout-workspace .designer-toolbar { position: static; }
  .template-design-body { flex-direction: column; }
  .template-design-entry { flex-direction: row; flex-basis: auto; }
  .template-design-entry > * { flex: 1; }
}

.template-animation-dialog { width: min(640px, calc(100vw - 32px)); }
.template-animation-dialog fieldset { border: 0; display: grid; gap: 16px; padding: 0; }
.template-animation-dialog label:not(.check) { display: grid; gap: 8px; }
.template-animation-dialog output { color: var(--color-text-muted); font-size: .85rem; }
.template-animation-demo { display: grid; place-items: center; height: 68px; border-radius: 8px; background: #eef5fa; overflow: hidden; }
.template-animation-demo span { font-size: 38px; color: #28888d; animation: template-gif-demo 500ms steps(2, end) infinite alternate; }
@keyframes template-gif-demo { from { transform: translateX(-24px) rotate(-12deg); } to { transform: translateX(24px) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .template-animation-demo span { animation: none; } }
.template-design-print { padding: 20px; border: 1px solid #d9e2eb; border-radius: 8px; margin-top: 20px; }

/* Basic video template workspace: contained, responsive authoring panels. */
.video-basic { max-width: 1600px; margin-inline: auto; }
.video-basic-body { border: 0; padding: 0; min-width: 0; }
.video-basic-master { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.video-basic-card { min-width: 0; background: var(--surface, #fff); border: 1px solid #d7e1e8; padding: 20px; border-radius: 8px; margin-bottom: 16px; box-shadow: 0 2px 5px #102d4410; }
.video-basic-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.video-basic-card h3 { margin: 0 0 16px; }
.video-basic-card label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.video-basic-card label.check, .video-basic-card .video-basic-resolution { flex-direction: row; align-items: center; }
.video-basic-resolution span { margin-left: auto; }
.video-basic-card input[type="range"] { width: 100%; }
.video-basic-upload { min-height: 140px; justify-content: center; background: #f2f5f8; padding: 16px; text-align: center; border: 1px dashed #a7bfce; border-radius: 6px; }
.video-basic-upload input { width: 100%; min-width: 0; }
.video-basic-name { display: flex; gap: 12px; align-items: center; max-width: 520px; margin: 16px auto 24px; }
.video-basic-recordings { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 16px; }
.video-basic-new { display: grid; place-content: center; text-align: center; min-height: 260px; }
.video-basic-timeline { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 16px; }
.video-basic-clips { display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 0 0; list-style: none; }
.video-basic-clips > li { max-width: 100%; }
.video-basic-clips > li > button { min-height: 72px; display: flex; flex-direction: column; }
.video-basic-clips button[aria-pressed="true"] { border: 2px solid #1376a8; }
.video-basic-playback { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-block: 20px; }
.video-basic-playback fieldset { min-width: 0; border: 1px solid #d7e1e8; padding: 16px; }
.video-basic-card fieldset:disabled { opacity: .55; }
@media (max-width: 1000px) { .video-basic-master { grid-template-columns: 1fr 1fr; } .video-basic-master > div:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .video-basic-playback { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .video-basic-master, .video-basic-master > div:last-child, .video-basic-timeline { display: block; } .video-basic .designer-toolbar { flex-wrap: wrap; } .video-basic-name { flex-direction: column; align-items: stretch; } }

.event-setup { margin-bottom: 1rem; scroll-margin-top: 6rem; }
.event-setup-heading, .event-setup-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.event-setup-heading h2 { margin: .25rem 0; }
.event-setup-steps { display: flex; gap: .5rem 1rem; flex-wrap: wrap; list-style: none; padding: 0; }
.event-setup-steps li { color: var(--muted, #64748b); padding: .5rem 0; border-bottom: 2px solid transparent; }
.event-setup-steps [aria-current="step"] { color: var(--accent, #0f766e); border-color: currentColor; font-weight: 700; }

/* Dedicated operator media management; independent of public gallery styling. */
.gallery-management-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.gallery-management-tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 16px; color: var(--muted); }
.gallery-management-tabs [aria-pressed="true"] { color: var(--pine); border-bottom-color: var(--pine); font-weight: 700; }
.gallery-management-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.gallery-management-toolbar [data-gallery-refresh] { margin-left: auto; }
.gallery-management-status { margin: 12px 20px 0; min-height: 1.2em; }
.gallery-management .gallery-media-grid { grid-template-columns: repeat(auto-fill, minmax(min(235px, 100%), 1fr)); }
.gallery-management .gallery-media-card { position: relative; }
.gallery-management .gallery-media-card__select { position: absolute; z-index: 1; top: 8px; right: 8px; padding: 7px; border-radius: 4px; background: #fffe; }
.gallery-management .gallery-media-card__select input { width: 20px; height: 20px; margin: 0; }
.gallery-management .gallery-media-card__preview { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-management .gallery-media-thumbnail { position: absolute; inset: 0; }
.gallery-media-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; padding: 8px; background: #f5f7fa; }
.gallery-media-card__actions .button { padding: 8px; font-size: 12px; min-height: 40px; }
.gallery-media-card__actions .ui-icon { width: 16px; height: 16px; }
.gallery-media-card__body { font-size: 12px; }
.gallery-media-card__body details { margin-top: 10px; }
.gallery-media-card__body dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; font-size: 11px; }
.gallery-media-card__body dd { overflow-wrap: anywhere; margin: 0; }
.gallery-management-summary { padding: 16px 20px; }
.gallery-management [data-gallery-delete-dialog] { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.gallery-management [data-gallery-delete-dialog]::backdrop { background: #071422a8; }
.gallery-management [data-gallery-delete-dialog] p { line-height: 1.6; }
.gallery-media-dialog__stage video { display: block; width: min(900px, calc(100vw - 64px)); max-height: calc(100dvh - 180px); }
.gallery-media-dialog__actions { display: flex; gap: 12px; justify-content: center; padding-top: 12px; }
.gallery-media-dialog__actions button { margin: 0; }

/* The gallery template workspace is isolated from the event media manager. */
.gallery-template-entry { grid-column: 1 / -1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:24px; border:1px solid #c8d6e1; border-radius:12px; background:#f2f6f9; }
.gallery-template-entry h3 { margin:0 0 8px; }
.gallery-template-dialog { width:calc(100vw - 32px); max-width:1600px; height:calc(100dvh - 32px); max-height:none; padding:0; border:1px solid #b9c9d5; border-radius:16px; background:#fff; color:#213344; }
.gallery-template-dialog::backdrop { background:#0d182ab3; }
.gallery-template-dialog[open] { display:flex; flex-direction:column; }
.gallery-template-dialog [hidden] { display:none!important; }
.gallery-template-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:16px 22px; border-bottom:1px solid #d5e0e8; }
.gallery-template-toolbar h2 { margin:0; font-size:20px; }
.gallery-template-layout { display:grid; grid-template-columns:minmax(260px,340px) minmax(0,1fr); min-height:0; flex:1; }
.gallery-template-properties { min-width:0; overflow-y:auto; overflow-x:hidden; padding:20px; border-right:1px solid #d5e0e8; }
.gallery-template-properties label { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.gallery-template-properties .check { flex-direction:row; align-items:center; margin:16px 0; }
.gallery-template-properties .gallery-appearance-fields { display:block; padding:0; border:0; }
.gallery-template-properties .gallery-appearance-fields > legend { display:none; }
.gallery-template-properties input,.gallery-template-properties select,.gallery-template-properties textarea { max-width:100%; min-width:0; width:100%; }
.gallery-template-properties input[type=checkbox] { width:auto; }
.gallery-template-properties .gallery-asset { min-width:0; margin:16px 0; }
.gallery-template-layout .gallery-preview-panel { display:flex; flex-direction:column; min-height:0; margin:0; padding:16px; overflow:auto; border-radius:0; }
.gallery-template-layout .gallery-preview-panel .panel-heading { flex-wrap:wrap; }
.gallery-template-layout .gallery-preview-panel iframe { flex:1; min-height:320px; margin:8px auto; }
@media (max-width:850px) { .gallery-template-dialog { width:100vw; height:100dvh; margin:0; border-radius:0; } .gallery-template-layout { grid-template-columns:minmax(220px,280px) minmax(0,1fr); } }
@media (max-width:600px) { .gallery-template-layout { display:flex; flex-direction:column; overflow:auto; } .gallery-template-properties { overflow:visible; border-right:0; } .gallery-template-layout .gallery-preview-panel { overflow:visible; min-height:580px; } }

.gallery-text-format { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.gallery-text-format button { padding:7px 9px; border:1px solid #bdccd8; border-radius:5px; background:#f5f8fa; color:#213344; }
.gallery-text-format label { flex-basis:100%; }

.delivery-recipient, .delivery-report-media { overflow-wrap: anywhere; min-width: 10rem; max-width: 18rem; }
.delivery-report-preview { width: min(90vw, 50rem); max-height: 90dvh; overflow: auto; background: var(--panel, #fff); border: 0; border-radius: 1rem; padding: 1rem; }
.delivery-report-preview::backdrop { background: #0009; }
.delivery-report-preview img, .delivery-report-preview video { display: block; max-width: 100%; max-height: 70dvh; margin: 1rem auto; object-fit: contain; }
.slideshow-configuration { padding: 24px; }
.slideshow-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.slideshow-heading h2 { color: var(--pine); font-size: 26px; margin: 0; }
.slideshow-configuration .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.slideshow-heading > .inline-actions { margin-left: auto; }
.slideshow-configuration form { display: grid; gap: 26px; }
.slideshow-configuration details > summary { font-size: 19px; font-weight: 600; border-bottom: 1px solid #dfe4e9; padding: 12px 0; cursor: pointer; }
.slideshow-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 42px; padding: 22px 0; }
.slideshow-settings-grid > * { min-width: 0; }
.slideshow-settings-grid h3 { font-size: 14px; margin: 0 0 6px; }
.slideshow-settings-grid p { margin: 0 0 12px; }
.slideshow-settings-grid label { font-size: 13px; }
.slideshow-settings-grid small { color: #64717d; font-size: 11px; }
.slideshow-choices { display: flex; flex-wrap: wrap; margin: 10px 0; }
.slideshow-choices label { position: relative; cursor: pointer; }
.slideshow-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slideshow-choices span { display: block; border: 1px solid #cbd5df; padding: 8px 14px; background: white; }
.slideshow-choices input:checked + span { color: white; background: var(--pine); border-color: var(--pine); }
.slideshow-choices input:focus-visible + span { outline: 2px solid #172e42; outline-offset: 2px; }
.slideshow-grid-size { display: flex; gap: 10px; align-items: end; }
.slideshow-grid-size input { width: 76px; }
.slideshow-grid-size > span { padding-bottom: 10px; }
.slideshow-range { display: grid; gap: 16px; }
.slideshow-range > span { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.slideshow-range output { color: var(--pine); border: 1px solid var(--pine); border-radius: 4px; padding: 10px; white-space: nowrap; }
.slideshow-range input { width: 100%; padding: 0; accent-color: var(--pine); }
.slideshow-range small { text-align: right; }
.slideshow-asset { display: grid; gap: 10px; margin-bottom: 16px; }
.slideshow-upload { position: relative; overflow: hidden; justify-self: start; cursor: pointer; }
.slideshow-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.slideshow-upload:focus-within { outline: 2px solid #172e42; outline-offset: 2px; }
.slideshow-advert, .slideshow-durations { display: grid; gap: 20px; align-content: start; }
.slideshow-configuration footer { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
@media (max-width: 760px) {
  .slideshow-configuration { padding: 16px; }
  .slideshow-settings-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .slideshow-heading > .inline-actions { margin-left: 0; }
}
