/* Shared spacing and containment for the larger type scale. */
.main-shell,main,.panel,.studio-grid,.studio-right,.execution-grid,.run-output-area,.brand-layout,.connection-layout,.portal-main{min-width:0}
.main-shell{overflow-x:clip}
main{width:100%}
h1,h2,h3{overflow-wrap:break-word}
h2,h3{line-height:1.4}
.page-heading,.auto-page-heading{align-items:flex-start;flex-wrap:wrap;gap:20px;margin-bottom:30px}
.page-heading p,.auto-page-heading p{line-height:1.7;margin-top:12px}
.page-heading>div,.auto-page-heading>div,.section-header>div{min-width:0}
.page-heading>div:first-child,.auto-page-heading>div:first-child{flex:1 1 350px}
.auto-actions,.action-cluster,.setup-actions,.asset-actions,.variant-actions,.caption-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.primary,.secondary{min-height:42px;line-height:1.45}
.text-button{line-height:1.5;white-space:normal}
.section-header{align-items:flex-start;flex-wrap:wrap;gap:14px 20px}
.section-header h2{margin:0}
.section-header p{line-height:1.65;margin:8px 0 0}
.section-header .subtle,.section-header .small-chip{align-self:flex-start;line-height:1.5}
label,legend{line-height:1.5}
label>input:not([type=checkbox]):not([type=file]),label>select,label>textarea{min-width:0;max-width:100%;line-height:1.5;margin-top:8px;margin-bottom:20px}
input,select,textarea{min-width:0}
textarea{line-height:1.65;resize:vertical}
.field-hint{margin:12px 0 20px!important;line-height:1.7!important}
.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.planner-controls,.toolbar,.filter-row,.bulk-bar,.metric-filter,.run-selector{flex-wrap:wrap;gap:14px}
.planner-controls{margin-bottom:24px}
.segmented{max-width:100%;flex-wrap:wrap;gap:4px}
.segmented button{min-width:0;line-height:1.4;white-space:normal}
.table-scroll,.run-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.report-preview{min-width:0;max-width:100%;overflow:hidden}
.data-table{border-collapse:collapse}
.data-table th,.data-table td{line-height:1.6;vertical-align:top}
.data-table .table-title{white-space:normal;overflow-wrap:anywhere;line-height:1.55}
.table-subtitle,.data-table td small{line-height:1.6;margin-top:6px}
label.upload-button{position:relative;min-height:42px;line-height:1.45}
label.upload-button>input[type=file]{position:absolute;width:1px!important;height:1px!important;min-width:0!important;padding:0!important;margin:0!important;border:0;clip-path:inset(50%);overflow:hidden;opacity:0}
.media-upload-folder{flex-wrap:wrap;gap:14px 20px}
.media-upload-folder label{flex-wrap:wrap;gap:10px;margin:0}
.media-upload-folder label>input{margin:0!important}
.media-formats{flex-wrap:wrap;gap:16px;line-height:1.7}
.studio-form>form>.primary{margin-top:4px}
.studio-form>form>p:last-child{margin-top:16px!important;line-height:1.75}
.studio-right,.studio-form,.studio-preview,.ai-studio-card,.brand-form,.brand-context-card,.journey-card,.variant-card{min-width:0;max-width:100%}
.ai-studio-card h2{margin:20px 0 18px;line-height:1.25}
.ai-studio-card>p{line-height:1.8;margin:16px 0 24px}
.ai-studio-card .auto-actions{gap:12px}
.ai-studio-card>small{display:block;margin-top:20px;line-height:1.75}
.studio-preview strong,.asset-card-body h3{overflow-wrap:anywhere;line-height:1.55}
.journey-card>p{line-height:1.8}
.journey-mini-flow{flex-wrap:wrap;gap:10px}
.journey-mini-flow>div{min-width:0}
.journey-card-meta,.journey-card-footer{flex-wrap:wrap;gap:14px;line-height:1.65}
.run-summary-strip{flex-wrap:wrap;gap:14px;line-height:1.6}
.variant-caption{line-height:1.8;margin:16px 0}
.variant-cta{line-height:1.7;margin:14px 0 20px}
.variant-labels{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
.variant-actions{row-gap:14px;margin-top:18px}
.variant-recipe{margin-top:18px;line-height:1.75}
.execution-log li p{line-height:1.75;margin:8px 0}
.brand-fields label,.connection-form label{display:block}
.connection-form form{margin-top:24px}
.connection-form .connection-result:empty{display:none}
.review-copy>p,.message-bubble,.report-notes,.settings-panel p{line-height:1.8}
.review-copy .action-cluster{margin-top:18px}
.queue-preview-list>div,.link-editor-row{gap:14px}
.portal-summary{flex-wrap:wrap;gap:14px 24px;line-height:1.7}
.portal-card-body{padding:24px}
.portal-card-body>p{line-height:1.85;margin:18px 0}
.portal-card-body label{margin-top:24px}
.portal-header>div{flex-wrap:wrap;justify-content:flex-end;gap:14px}
.portal-notice{line-height:1.8}
.simple-modal p,.simple-modal li{line-height:1.8}
.modal-header{align-items:flex-start;gap:20px}
.modal-footer{flex-wrap:wrap;gap:16px}
.modal-footer>div{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
[data-theme=dark] .ai-studio-card{background:linear-gradient(145deg,#282828,#202020);border-color:#424242}
[data-theme=dark] .ai-studio-card h2{color:#f3f3f3}
[data-theme=dark] .ai-studio-card>span,[data-theme=dark] .ai-studio-card>p,[data-theme=dark] .ai-studio-card>small{color:#bfbfbf}
[data-theme=dark] .variant-card,[data-theme=dark] .thread-list{background:#181818;border-color:#383838}
[data-theme=dark] .segmented{background:#202020;border-color:#3d3d3d}
[data-theme=dark] .segmented button{color:#c4c4c4}
[data-theme=dark] .segmented button.selected{background:#404040;color:#e9e9e9}
[data-theme=dark] .phone-frame{background:#222222;border-color:#424242}
@media(max-width:1100px){.studio-grid{grid-template-columns:minmax(0,1fr)}.studio-right{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.connection-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.page-heading>div:first-child,.auto-page-heading>div:first-child{flex-basis:100%}.page-heading,.auto-page-heading{gap:18px}.page-heading>.primary{font-size:15px}.page-heading>.primary>span{font-size:20px}.studio-right{grid-template-columns:minmax(0,1fr)}.metric-filter{align-items:stretch}.metric-filter label{flex:1 1 140px}.metric-filter label>input{margin-bottom:0}.metric-filter>button{align-self:flex-end}.report-preview .table-scroll{margin-inline:0}.preview-banner{line-height:1.5}}
@media(max-width:520px){main{padding:28px 16px 32px}.page-heading h1,.auto-page-heading h1{line-height:1.25}.page-heading p,.auto-page-heading p{font-size:15px;max-width:none}.auto-actions{width:100%;align-items:stretch}.auto-actions>.primary,.auto-actions>.secondary{white-space:normal;line-height:1.5}.section-header{padding:22px 20px;gap:12px}.form-row{grid-template-columns:minmax(0,1fr);gap:0}.studio-form .form-row{grid-template-columns:minmax(0,1fr);gap:0}.planner-controls>.segmented{display:flex;width:100%}.planner-controls>.segmented button{flex:1 1 85px;padding:9px 8px;font-size:14px}.media-upload-folder{align-items:flex-start}.media-upload-folder label{display:block;width:100%}.media-upload-folder label>input{width:100%!important;margin-top:8px!important}.media-formats{justify-content:center;font-size:13px}.journey-mini-flow>div{flex:1 1 100px}.journey-card-footer>*{max-width:100%}.brand-form .section-header{align-items:flex-start}.brand-form .section-header button{font-size:14px;padding:10px 12px}.readiness-bottom{flex-wrap:wrap;gap:12px}.readiness-bottom>span{line-height:1.65}.run-selector>button{white-space:normal;line-height:1.5}.modal-header,.simple-modal{padding:22px}.modal-header h2{line-height:1.35}.portal-main{padding:32px 20px}.portal-header{gap:12px;padding:20px}.portal-header>div{gap:10px}.portal-card-body{padding:22px}.portal-welcome h1{line-height:1.25}}
/* Keep wide tables inside their own scrolling region, including root overflow accounting. */
html,body{max-width:100%;overflow-x:hidden}
.main-shell{overflow-x:hidden}
/* Nexa wordmark monogram. */
.brand-icon{font-family:'DM Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-style:italic;font-weight:700;font-size:28px;letter-spacing:-1.5px;padding:0 2px 0 0;line-height:33px}
/* A single wordmark: italic N, upright EXA. */
.brand-wordmark{display:inline-block;font-size:34px;font-weight:900;letter-spacing:-1.8px;line-height:1.1;white-space:nowrap;transform:scaleX(1.18);transform-origin:left center}
.brand-wordmark i{font-style:italic;font-weight:900;margin-right:0}
.portal-header .brand-wordmark{font-size:32px}
@media(max-width:800px){.sidebar .brand-wordmark{font-size:15px;letter-spacing:-1px;transform:scaleX(1.06)}.sidebar .brand{margin-left:0;margin-right:0}}
/* Personal profile and account preferences. */
.topbar-left{display:flex;align-items:center;gap:16px;min-width:0;flex:1}
.topbar .sidebar-toggle{display:inline-flex!important;align-items:center;justify-content:center;min-width:36px;width:36px;height:36px;border-radius:8px;flex-shrink:0}
.topbar .sidebar-toggle svg{display:block}
.topbar-workspace{display:none;align-items:center;gap:8px;min-width:0}
.topbar-workspace select{width:180px;max-width:100%;border:1px solid var(--border);border-radius:8px;padding:9px 10px;font-size:14px;margin:0}
.topbar-workspace .workspace-add{min-width:28px}
.profile-link{width:100%;border:0;border-top:1px solid var(--border);background:transparent;text-align:left;color:inherit;cursor:pointer}
.profile-link>span:nth-child(2){flex:1;min-width:0}
.profile-link strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}
.profile-link-arrow{font-size:16px;color:var(--muted)}
.profile-avatar-button{cursor:pointer;padding:0;flex-shrink:0}
.profile-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:26px;align-items:start;max-width:1100px}
.profile-settings-stack{display:grid;gap:24px;min-width:0}
.profile-settings-card{padding:28px;min-width:0}
.profile-settings-card>h2{font-size:21px;margin:0 0 12px}
.profile-settings-card>p{font-size:15px;color:var(--muted);line-height:1.75;margin:12px 0 22px}
.profile-settings-card form{margin-top:24px}
.profile-identity{display:flex;align-items:center;gap:18px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.profile-identity h2{font-size:24px;overflow-wrap:anywhere;margin:0 0 7px}
.profile-identity p{font-size:14px;color:var(--muted);margin:0;line-height:1.6}
.profile-avatar-large{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:#ededed;color:#333;font-size:24px;font-weight:650;flex-shrink:0;border:1px solid #d9d9d9}
.profile-settings-card .settings-note{font-size:13px;color:var(--muted);line-height:1.7;margin-top:20px;margin-bottom:0}
.profile-feedback{font-size:14px;line-height:1.7;margin:14px 0 0}
.profile-feedback:empty{display:none}
.appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.appearance-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:18px 10px;min-height:100px;border:1px solid var(--border);border-radius:10px;background:transparent;color:inherit;font-size:15px}
.appearance-choice>span{font-size:27px;line-height:1}
.appearance-choice.selected{border-color:#676767;box-shadow:inset 0 0 0 1px #676767;background:#f2f2f2}
.account-details{margin:20px 0 24px}
.account-details>div{display:flex;justify-content:space-between;gap:24px;padding:15px 0;border-bottom:1px solid var(--border);font-size:14px;line-height:1.6}
.account-details dt{color:var(--muted)}
.account-details dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0}
body.nav-closed .sidebar{display:none}
body.nav-closed .main-shell{margin-left:0!important}
body.nav-closed .topbar-workspace{display:flex}
body.nav-closed .breadcrumb{display:none}
body.nav-closed .sidebar-toggle path{transform:translateX(6px)}
[data-theme=dark]{--blue:#e4e4e7}
[data-theme=dark] .primary{background:#e4e4e7;border-color:#eeeeee;color:#181818;box-shadow:0 3px 16px #0003}
[data-theme=dark] .nav-item.active,[data-theme=dark] .tabs button.active{background:#333333;color:#f4f4f5}
[data-theme=dark] .nav-item.active>span{color:#f4f4f5}
[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline-color:#b5b5b5}
[data-theme=dark] .profile-avatar-large{background:#303030;color:#f4f4f5;border-color:#505050}
[data-theme=dark] .appearance-choice.selected{background:#353535;border-color:#c2c2c2;box-shadow:inset 0 0 0 1px #c2c2c2}
[data-theme=dark] .profile-link:hover{background:#252525}
@media(max-width:1000px){.profile-settings-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.sidebar .workspace-picker{display:none}.topbar .breadcrumb{display:none}.topbar-workspace{display:flex;flex:1;min-width:0}.topbar-workspace select{width:100%;min-width:0;padding:8px;font-size:13px}.topbar-left{gap:9px;min-width:0}.topbar{gap:12px;padding-left:14px}.topbar-right{flex-shrink:0;gap:8px}.topbar-workspace .workspace-add{display:none}.profile-settings-card{padding:24px}.appearance-options{gap:9px}.appearance-choice{font-size:14px;padding:16px 8px}}
@media(max-width:520px){.profile-identity h2{font-size:22px}.profile-avatar-large{width:58px;height:58px;font-size:21px}.profile-settings-card{padding:22px}.account-details>div{display:block}.account-details dd{text-align:left;margin-top:7px}.topbar .sidebar-toggle{min-width:32px;width:32px;height:34px}.topbar-right .profile-avatar-button{display:none}.topbar-workspace select{font-size:13px}.appearance-choice{font-size:13px}}

[data-profile-initials]{overflow:hidden}[data-profile-initials]>img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}.profile-photo-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}.profile-photo-controls .photo-upload{position:relative;display:inline-flex;align-items:center;cursor:pointer;margin:0;overflow:hidden}.photo-upload input{position:absolute;width:1px;height:1px;opacity:0}.photo-upload:focus-within{outline:2px solid currentColor;outline-offset:3px}.channel{background:#ededed!important;color:#333!important;display:inline-flex;align-items:center;justify-content:center}.channel svg{width:60%;height:60%;display:block;fill:currentColor}[data-theme=dark] .channel{background:#333!important;color:#eee!important}

.channel{--social-cutout:#ededed}[data-theme=dark] .channel{--social-cutout:#333}

/* Shared monochrome channel marks across campaign and planning surfaces. */
.social-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:20px;height:20px;color:inherit;vertical-align:middle;--social-cutout:var(--surface,#fff)}.social-icon svg{display:block;width:100%;height:100%;fill:currentColor}.social-label{display:inline-flex;align-items:center;gap:8px;vertical-align:middle;max-width:100%}.social-label>span:last-child{min-width:0}.social-stack{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;vertical-align:middle}.channel>.social-icon{width:60%;height:60%;--social-cutout:#ededed}.channel .social-icon svg{width:100%;height:100%}.journey-channels>.social-label{padding:7px 10px;gap:8px}.journey-channels .social-icon{width:19px;height:19px}.journey-channels .social-label>span{padding:0;border:0;background:none;color:inherit}.channel-options label{display:flex;align-items:center;gap:8px}.channel-options .social-label{font-size:inherit}.calendar-post-meta{display:flex!important;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}.calendar-post .social-stack{gap:5px}.calendar-post .social-icon{width:15px;height:15px}.calendar-post .social-icon svg{width:15px;height:15px}.campaign-row small .social-stack{margin:5px 4px 5px 0}.variant-meta .social-label{font-size:inherit}.thread-list .social-icon{width:15px;height:15px}.portal-meta .social-label{font-size:inherit}.workflow-node .social-icon,.workflow-dest .social-icon{width:22px;height:22px}[data-theme=dark] .social-icon{--social-cutout:#191919}[data-theme=dark] .channel>.social-icon{--social-cutout:#333}

.social-icon{color:#444}[data-theme=dark] .social-icon{color:#dedede}[data-theme=dark] .calendar-panel .day{background:#242424;border-color:#454545}[data-theme=dark] .calendar-panel .day.outside-month{background:#202020}[data-theme=dark] .calendar-post{background:#333;border-color:#666;color:#eee}[data-theme=dark] .calendar-post.calendar-draft{background:#2c2c2c}[data-theme=dark] .calendar-post small,[data-theme=dark] .calendar-post strong,[data-theme=dark] .calendar-post>span{color:#dedede}
[data-theme=dark] .calendar-panel .day .calendar-post{background:#333!important;border-color:#666!important;color:#eee!important}[data-theme=dark] .calendar-panel .day .calendar-post>*{color:#eee!important}
