:root{--bg:#eef3f8;--card:#ffffff;--ink:#1a2940;--muted:#667892;--brand:#12395b;--brand2:#1f5b92;--line:#d8e1ec;--success:#e9f8ef;--error:#fdecec}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{text-decoration:none;color:inherit}code{background:#edf2f7;padding:2px 6px;border-radius:6px}
.app-shell{display:grid;grid-template-columns:320px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;align-self:start;min-height:100vh;max-height:100vh;overflow:auto;background:linear-gradient(180deg,var(--brand),#0f2740);color:#fff;padding:28px 22px;display:flex;flex-direction:column;gap:20px}.brand-block{padding:0 6px 14px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:11px;opacity:.75}.brand{font-size:22px;font-weight:800;margin-top:6px}.nav-menu{display:grid;gap:16px;padding-right:4px}.nav-group,.nav-section{display:grid;gap:12px;padding:14px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04)}.nav-heading{display:grid;gap:4px;padding:0 4px}.nav-label{padding:0;color:rgba(237,245,255,.72);font-size:11px;letter-spacing:.14em;text-transform:uppercase}.nav-hint{color:rgba(237,245,255,.64);font-size:12px;line-height:1.45}.nav-card-list,.nav-subnav{display:grid;gap:10px}.nav-link{display:grid;gap:4px;padding:14px 16px;min-height:56px;border-radius:14px;color:#edf5ff;border:1px solid transparent;background:rgba(255,255,255,.03);transition:background .15s ease,transform .15s ease,box-shadow .15s ease,border-color .15s ease}.nav-link-title{font-weight:700;line-height:1.25}.nav-link-meta{font-size:12px;line-height:1.45;color:rgba(237,245,255,.74)}.nav-section .nav-link{background:rgba(255,255,255,.05)}.sidebar nav a:hover,.sidebar nav a:focus-visible{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.14);box-shadow:0 10px 22px rgba(4,16,28,.16);transform:translateY(-1px);outline:none}.sidebar nav a.is-active{background:#fff;color:var(--brand);border-color:rgba(255,255,255,.2);box-shadow:0 14px 30px rgba(4,16,28,.22)}.sidebar nav a.is-active .nav-link-meta{color:#50667f}.sidebar-footer{margin-top:auto;display:grid;gap:10px;padding:14px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.content{padding:32px clamp(18px,3.5vw,42px);width:min(100%,1560px);margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:26px}.topbar h1{margin:0 0 6px;font-size:32px}.topbar p{margin:0;color:var(--muted);max-width:900px}
.alert{padding:14px 16px;border-radius:12px;margin-bottom:18px}.alert.success{background:var(--success);color:#215c38}.alert.error{background:var(--error);color:#8a2b2b}
.cards,.grid{display:grid;gap:22px;margin-bottom:22px}.cards.four{grid-template-columns:repeat(4,1fr)}.grid.two{grid-template-columns:repeat(2,1fr)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.five{grid-template-columns:repeat(5,1fr)}
.card{background:var(--card);border-radius:20px;padding:24px;box-shadow:0 14px 42px rgba(16,42,67,.08);border:1px solid var(--line)}.card h2,.card h3{margin-top:0}.stat p{font-size:34px;font-weight:800;margin:8px 0}.stat span{color:var(--muted);font-size:13px;line-height:1.5}.stat.alt p{font-size:28px}
input,select,textarea,button{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--line);font:inherit;background:#fff}textarea{resize:vertical;min-height:120px}label{display:block;margin:8px 0 6px;font-weight:600}.checkbox-row{display:flex;gap:18px;margin:10px 0 16px}.checkbox-row input{width:auto}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;cursor:pointer}.btn.primary{background:var(--brand2);border-color:var(--brand2);color:#fff}.btn.secondary{background:#eff5fb;color:var(--brand);border-color:#c9d8ea}.btn.danger{background:#f8e7e7;color:#8a2b2b;border-color:#efc8c8}.btn.small{padding:8px 10px;width:auto}.btn.full{width:100%}
.badge{display:inline-block;padding:6px 10px;border-radius:999px;background:#edf4fc;color:#244a78;font-size:12px;font-weight:700}.muted{color:var(--muted)}.small{font-size:12px}.mt-12{margin-top:12px}.clean-list{padding-left:18px}.clean-list li{margin:10px 0}
table{width:100%;border-collapse:collapse}th,td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.auth-body{display:grid;place-items:center;min-height:100vh;background:linear-gradient(135deg,#0f2740,#204d77)}.auth-shell{width:min(460px,92vw)}.auth-card{background:#fff;border-radius:22px;padding:34px;box-shadow:0 24px 60px rgba(0,0,0,.18)}
.toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.toolbar-right{margin-left:auto}.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form input,.inline-form select{min-width:140px}.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.page-link{padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}.page-link.active{background:var(--brand2);color:#fff;border-color:var(--brand2)}.preview-box{background:#f7fafd;border:1px dashed #bfd0e2;border-radius:14px;padding:16px;margin:14px 0}.preview-inner{margin-top:10px;padding-top:10px;border-top:1px solid #d6e3ef}
@media (max-width:1180px){.app-shell{grid-template-columns:290px 1fr}}
@media (max-width:1100px){.cards.four,.grid.two,.form-grid.five,.form-grid.three{grid-template-columns:1fr 1fr}.app-shell{grid-template-columns:1fr}.sidebar{position:static;min-height:auto;max-height:none;padding:20px 18px}.nav-menu{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}.sidebar-footer{margin-top:0}.toolbar,.inline-form{display:grid;grid-template-columns:1fr}}
@media (max-width:720px){.cards.four,.grid.two,.form-grid,.form-grid.five,.form-grid.three{grid-template-columns:1fr}.content{padding:18px}.sidebar{padding:18px 16px}.nav-menu{grid-template-columns:1fr}.nav-group,.nav-section,.sidebar-footer{padding:12px}}
.form-grid-two-col-uneven{grid-template-columns:1.1fr .9fr}.stacked-badges{display:flex;flex-wrap:wrap;gap:6px}.conversation-grid{grid-template-columns:.95fr 1.05fr}.conversation-list{display:grid;gap:10px}.conversation-item{display:block;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.conversation-item.active{border-color:var(--brand2);box-shadow:inset 0 0 0 1px var(--brand2)}.conversation-head,.conversation-meta{display:flex;justify-content:space-between;gap:12px}.conversation-preview{margin:8px 0;color:var(--ink)}.thread{display:grid;gap:12px;max-height:720px;overflow:auto;padding-right:4px}.bubble{padding:16px;border-radius:16px;max-width:86%;border:1px solid var(--line);background:#f8fbff}.bubble.outbound{margin-left:auto;background:#eef5ff;border-color:#cbdcf6}.bubble.inbound{margin-right:auto;background:#fff}.preview-subject{margin-top:8px;font-weight:700}.mini-chart{min-height:220px}.chart-bars{display:flex;align-items:flex-end;gap:12px;height:170px;padding:12px 4px 0}.chart-group{display:flex;align-items:flex-end;gap:4px}.chart-group-4{gap:3px}.bar{width:14px;border-radius:8px 8px 0 0;background:var(--brand)}.bar.unique_open_count{background:#4d7ca8}.bar.unique_click_count{background:#7ea2c8}.bar.bounced_count{background:#cc7d7d}.chart-label{font-size:11px;color:var(--muted);transform:rotate(-35deg);transform-origin:left top;margin-left:6px}.chart-legend{display:flex;gap:16px;margin-top:14px;color:var(--muted);font-size:12px;flex-wrap:wrap}.legend-chip{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:6px;background:var(--brand)}.legend-chip.unique_open_count{background:#4d7ca8}.legend-chip.unique_click_count{background:#7ea2c8}.legend-chip.bounced_count{background:#cc7d7d}@media (max-width:1100px){.conversation-grid,.form-grid-two-col-uneven{grid-template-columns:1fr}}
.builder-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.builder-canvas{display:grid;gap:10px;margin-bottom:12px}.builder-block{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfdff}.builder-block-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.timeline-list{display:grid;gap:10px;max-height:520px;overflow:auto}.timeline-item{padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.permissions-grid{display:flex;flex-wrap:wrap;gap:8px;max-width:900px}.permission-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#f8fbff;font-size:12px}.permission-pill input{width:auto;margin:0}
.actions-cell{display:flex;gap:8px;flex-wrap:wrap}.card details summary{cursor:pointer;color:var(--brand);margin-bottom:8px}.card details[open] summary{margin-bottom:12px}.report-hero{display:flex;justify-content:space-between;align-items:center;gap:16px}

.tabs-inline{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#f4f8fc;border:1px solid var(--line)}
.template-picker{background:#fbfdff}
.composer-shell{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;align-items:start}
.stacked-panel{display:grid;gap:14px;align-content:start}
.builder-palette{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.builder-dropzone{min-height:160px;padding:14px;border:1px dashed #bfd0e2;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f6faff)}
.builder-empty{display:grid;place-items:center;min-height:120px;text-align:center}
.builder-block{transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.builder-block.dragging{opacity:.72;transform:scale(.99)}
.builder-block.drag-over{border-color:var(--brand2);box-shadow:0 0 0 1px var(--brand2);background:#f3f8fe}
.builder-block-title{display:flex;align-items:center;gap:8px}
.drag-handle{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:#edf4fc;color:#355d8d;font-size:12px}
.preflight-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.preflight-list{display:grid;gap:10px}
.preflight-row{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}
.preflight-row strong{font-size:13px}
.preflight-row span{font-size:12px;color:var(--muted)}
.status-pass{border-color:#cfe7d8;background:#f5fcf7}
.status-warn{border-color:#f0dfb6;background:#fffaf0}
.status-error{border-color:#efc8c8;background:#fff5f5}
.alert-list{display:grid;gap:10px}
.alert-tile{padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:#fff}
.alert-tile.ok{border-color:#cfe7d8;background:#f5fcf7}
.alert-tile.warn{border-color:#f0dfb6;background:#fffaf0}
.alert-tile.error{border-color:#efc8c8;background:#fff5f5}
.health-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.health-item{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fbfdff;display:grid;gap:4px}
.health-item strong{font-size:18px}
.compact-toolbar{margin-bottom:8px}
.bubble-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;color:var(--muted);font-size:12px}
.stacked-on-mobile{display:flex;justify-content:space-between;align-items:center;gap:16px}
.builder-add{width:auto}
@media (max-width:1100px){.composer-shell,.health-grid{grid-template-columns:1fr 1fr}}
@media (max-width:720px){.composer-shell,.health-grid{grid-template-columns:1fr}.stacked-on-mobile{display:grid}}


.section-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.section-copy p{margin:6px 0 0;color:var(--muted);line-height:1.6}
.section-gap-sm{margin-bottom:14px}
.spaced-card{display:grid;gap:16px}
.roomy-grid{align-items:start}
.form-grid-three-balanced{grid-template-columns:repeat(3,minmax(0,1fr))}
.table-shell{overflow:auto;border:1px solid var(--line);border-radius:16px;background:#fff}
.table-shell table{min-width:980px}
.compact-table-shell table{min-width:760px}
.data-table tbody tr:hover{background:#fbfdff}
.toolbar-meta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:2px}
.empty-state-cell{text-align:center;padding:26px 18px}
.form-help{margin-top:-2px}
.align-end{align-items:flex-end}
.filters-row{max-width:1000px}
.compact-stats .card{min-height:160px}
.page-slider{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f6faff)}
.page-slider-main{display:grid;gap:10px}
.page-slider-copy{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap}
.page-slider input[type="range"]{padding:0;border:0;background:transparent;min-height:auto}
.contact-table td strong{display:block;margin-bottom:4px}
.workspace-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}.workspace-hero h2{margin:0 0 6px}.workspace-hero p{margin:0;color:var(--muted);max-width:820px;line-height:1.6}.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}.feature-list{display:grid;gap:10px;padding-left:18px;margin:0}.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.metric-chip{padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.metric-chip strong{display:block;font-size:20px;margin-bottom:4px}.card table.compact th,.card table.compact td{padding:10px 12px}@media (max-width:1100px){.metric-strip{grid-template-columns:1fr}}
@media (max-width:1100px){.form-grid-three-balanced,.compact-stats{grid-template-columns:1fr 1fr}.page-slider{grid-template-columns:1fr}}
@media (max-width:720px){.toolbar-meta,.page-slider-copy{display:grid}.form-grid-three-balanced,.compact-stats{grid-template-columns:1fr}.table-shell table{min-width:760px}}

.commercial-campaign-card{display:grid;gap:18px}
.commercial-campaign-overview{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:18px;align-items:start;padding:18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.campaign-overview-copy{display:grid;gap:12px}
.studio-readiness-inline{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.section-toolbar{margin-top:4px}
.compact-list{margin:0;padding-left:18px}
@media (max-width:1100px){.commercial-campaign-overview{grid-template-columns:1fr}}
.mail-center-layout{display:grid;grid-template-columns:280px minmax(320px,.9fr) minmax(420px,1.1fr);gap:22px;align-items:start;margin-bottom:22px}
.mail-center-detail{display:grid;gap:22px;align-content:start}
.folder-rail-card{position:sticky;top:24px}
.folder-list{display:grid;gap:10px}
.folder-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}
.folder-item.active{border-color:var(--brand2);box-shadow:inset 0 0 0 1px var(--brand2);background:#f3f8fe}
.folder-item-copy{display:grid;gap:4px}
.mail-folder-create{padding:16px;border:1px dashed #bfd0e2;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f6faff)}
.mail-conversation-list{max-height:860px;overflow:auto;padding-right:4px}
.mail-thread{max-height:520px}
.mailbox-move-bar{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}
@media (max-width:1280px){.mail-center-layout{grid-template-columns:260px minmax(300px,.9fr) minmax(360px,1.1fr)}}
@media (max-width:1100px){.mail-center-layout{grid-template-columns:1fr}.folder-rail-card{position:static}.mail-conversation-list,.mail-thread{max-height:none}}

.workspace-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;margin-bottom:18px}.workspace-hero h2{margin:0 0 6px}.workspace-hero p{margin:0;color:var(--muted);max-width:980px}.workspace-actions{display:flex;gap:10px;flex-wrap:wrap}.spaced-card{display:grid;gap:14px}.compact-toolbar{margin-bottom:10px}.stacked-panel{display:grid;gap:10px}.is-disabled{pointer-events:none;opacity:.45}
.mail-hero{margin-bottom:16px}.mail-search-bar{display:grid;gap:12px}.mail-inline-check{display:inline-flex;align-items:center;gap:8px;font-weight:600;margin:0}.mail-inline-check input{width:auto}.mail-bucket-tabs{display:flex;gap:8px;flex-wrap:wrap}.mail-tab{padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#f8fbff;font-weight:700;color:var(--brand)}.mail-tab.active{background:var(--brand2);border-color:var(--brand2);color:#fff}
.mail-v16-layout{display:grid;grid-template-columns:280px 380px minmax(0,1fr);gap:18px;align-items:start}.mail-v16-left,.mail-v16-center,.mail-v16-detail>.card,.mail-v16-side>.card{position:sticky;top:24px}.mail-v16-left{top:24px}.mail-v16-center{top:24px;max-height:calc(100vh - 48px);overflow:auto}.mail-v16-detail{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);gap:18px;align-items:start}.mail-v16-side{display:grid;gap:18px;align-content:start}.mail-rail-group{display:grid;gap:8px}.folder-list-compact{display:grid;gap:8px}.folder-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:#fbfdff}.folder-item.active{border-color:var(--brand2);background:#eef5ff}.folder-item-copy{display:grid;gap:3px}.mail-chip-list{display:flex;flex-wrap:wrap;gap:8px}.mail-chip-list.compact{gap:6px}.mail-chip{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 10px;border-radius:999px;border:1px solid var(--line);font-size:12px;font-weight:700;background:#f8fbff}.mail-chip.color-blue{background:#eef5ff;color:#274d78;border-color:#cfe0f8}.mail-chip.color-green{background:#ecf8ef;color:#235f3e;border-color:#caead5}.mail-chip.color-amber{background:#fff5e6;color:#8a5814;border-color:#f1dfba}.mail-chip.color-red{background:#fdecec;color:#8a2b2b;border-color:#efc8c8}.mail-chip.color-violet{background:#f3eefe;color:#58338a;border-color:#dbcff9}.mail-chip.color-slate{background:#eef2f7;color:#475569;border-color:#d7e0ea}
.mail-rule-list,.mail-note-stack,.mail-campaign-stack{display:grid;gap:10px}.mail-rule-item,.mail-note-card,.mail-campaign-card{padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.mail-campaign-card{display:grid;gap:4px}.mail-campaign-card:hover{border-color:#bed0e3;background:#f6fbff}
.mail-v16-conversation-list{gap:12px}.mail-v16-row{display:grid;gap:8px;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fbfdff}.mail-v16-row.active{border-color:var(--brand2);background:#f4f8ff;box-shadow:inset 0 0 0 1px var(--brand2)}.preview-subject-row{display:flex;justify-content:space-between;align-items:center;gap:12px}.mail-star-indicator{font-size:18px;color:#c08117}.mail-page-slider{display:flex;align-items:center;gap:14px;justify-content:space-between}.page-slider-control{display:grid;gap:6px;flex:1}.page-slider-control input{width:100%}
.mail-empty-detail{display:grid;place-items:center;min-height:320px;text-align:center}.mail-thread-toolbar{align-items:flex-start}.mail-thread-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.mail-thread-meta-bar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:10px}.mail-thread-stack{display:grid;gap:14px;max-height:66vh;overflow:auto;padding-right:4px}.mail-thread-card{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfdff}.mail-thread-card.outbound{background:#eef5ff;border-color:#d3e0f8}.mail-thread-card.inbound{background:#fff}.mail-avatar{width:44px;height:44px;border-radius:999px;display:grid;place-items:center;background:#12395b;color:#fff;font-weight:800}.mail-thread-body{display:grid;gap:8px}.mail-thread-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.mail-thread-content{line-height:1.6}.mail-attachment-card{display:grid;gap:8px;padding:12px;border-radius:14px;background:#f4f8fc;border:1px solid var(--line)}.mail-attachment-card img{max-width:220px;border-radius:12px;border:1px solid var(--line)}.mail-reply-wrap{padding-top:10px;border-top:1px solid var(--line)}
.mail-crm-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mail-crm-grid div{display:grid;gap:4px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.mail-draft-status{min-height:18px}.mail-compose-drawer{position:fixed;top:0;right:0;bottom:0;width:min(560px,96vw);padding:18px;background:rgba(9,18,29,.18);display:flex;justify-content:flex-end;pointer-events:none;opacity:0;transition:opacity .18s ease}.mail-compose-drawer.is-open{opacity:1;pointer-events:auto}.mail-compose-panel{width:100%;max-height:100%;overflow:auto;border-radius:22px;box-shadow:0 22px 54px rgba(10,24,39,.22)}
.mail-autosave-form.is-saving .mail-draft-status{color:#9a6700}.mail-autosave-form.is-saved .mail-draft-status{color:#0f766e}.mail-autosave-form.is-error .mail-draft-status{color:#b91c1c}.mail-thread-actions form,.mail-thread-meta-bar form{margin:0}
@media (max-width:1380px){.mail-v16-layout{grid-template-columns:250px 340px minmax(0,1fr)}.mail-v16-detail{grid-template-columns:1fr}}
@media (max-width:1100px){.mail-v16-layout{grid-template-columns:1fr}.mail-v16-left,.mail-v16-center,.mail-v16-detail>.card,.mail-v16-side>.card{position:static;max-height:none}.mail-v16-detail{grid-template-columns:1fr}.mail-page-slider{flex-direction:column;align-items:stretch}.mail-crm-grid{grid-template-columns:1fr}}
@media (max-width:720px){.mail-thread-card{grid-template-columns:1fr}.mail-avatar{display:none}.mail-thread-card-head,.mail-thread-meta-bar,.mail-thread-actions,.workspace-actions{flex-direction:column;align-items:stretch}}

/* V16.3 Mail Center Outlook-style cleanup */
.mail-outlook-shell{display:grid;gap:16px}
.mail-outlook-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px 20px;background:linear-gradient(180deg,#ffffff,#f8fbfd)}
.mail-outlook-brand{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.mail-outlook-brand h2{margin:0 0 4px}.mail-outlook-brand p{margin:0;max-width:760px;line-height:1.55}
.mail-outlook-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.mail-view-toggle{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:999px;background:#fff}.mail-view-button{border:0;background:transparent;color:var(--muted);font-weight:700;padding:6px 10px;border-radius:999px;cursor:pointer}.mail-view-button.is-active{background:#e7f0fa;color:var(--brand)}
.mail-outlook-search{padding:14px 18px;background:#fff}.mail-search-form{display:grid;grid-template-columns:minmax(260px,1.9fr) repeat(3,minmax(0,1fr)) auto auto;gap:10px;align-items:end}.mail-search-form label{display:grid;gap:6px}.mail-search-field input{padding-left:14px}.mail-star-filter{align-self:end;padding-bottom:10px}
.mail-outlook-layout{grid-template-columns:270px minmax(330px,.95fr) minmax(0,1.12fr);gap:16px}
.mail-outlook-left,.mail-outlook-center,.mail-reading-pane,.mail-insights-card{border-radius:18px;background:#fff;box-shadow:none;border:1px solid #dde5ee}
.mail-outlook-left,.mail-outlook-center,.mail-reading-pane,.mail-outlook-insights>.card{position:sticky;top:24px}
.mail-outlook-left{padding:18px 16px;display:grid;gap:14px;align-content:start}.mail-rail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mail-rail-header h3{margin:2px 0 0}.mail-rail-section{display:grid;gap:8px}.mail-rail-title{font-size:12px;font-weight:800;color:#627487;text-transform:uppercase;letter-spacing:.04em}.mail-rail-helper{line-height:1.5}
.mail-outlook-left details{border:1px solid var(--line);border-radius:14px;background:#fbfdff;padding:12px}.mail-outlook-left summary{cursor:pointer;font-weight:700}.mail-mini-section-title{font-size:12px;font-weight:800;color:#627487;text-transform:uppercase;letter-spacing:.04em}.mail-rule-list-compact{margin-top:8px}
.mail-outlook-left .folder-item{padding:11px 12px;border-radius:12px;background:transparent;border:1px solid transparent}.mail-outlook-left .folder-item:hover{background:#f6f9fc;border-color:#e1e8ef}.mail-outlook-left .folder-item.active{background:#eaf2fb;border-color:#c9d7e6;box-shadow:none}
.mail-outlook-center{padding:0;overflow:hidden;max-height:calc(100vh - 48px)}.mail-list-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 20px 10px;border-bottom:1px solid #e8edf3}.mail-list-header h2{margin:2px 0 0}.mail-list-header-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mail-bucket-tabs-outlook{padding:0 20px 12px;border-bottom:1px solid #edf2f6}.mail-bucket-tabs-outlook .mail-tab{padding:8px 14px;background:#fff}.mail-list-headline{display:grid;grid-template-columns:minmax(150px,.45fr) minmax(0,1fr) auto;gap:16px;padding:10px 20px;background:#f8fafc;border-bottom:1px solid #edf2f6;font-weight:700}
.mail-v16-conversation-list{gap:0}.mail-outlook-center .conversation-item{border:0;border-bottom:1px solid #edf2f6;border-radius:0;background:#fff;padding:14px 20px}.mail-outlook-center .conversation-item:hover{background:#f8fafc}.mail-outlook-center .conversation-item.active{background:#eef5ff;box-shadow:inset 3px 0 0 #4f7ea8}.mail-v16-row{display:grid;grid-template-columns:minmax(150px,.45fr) minmax(0,1fr) auto;gap:16px;align-items:start}.mail-row-left,.mail-row-main,.mail-row-right{display:grid;gap:6px}.mail-row-sender-line{display:flex;align-items:center;gap:8px}.mail-row-sender{font-size:14px;line-height:1.35}.mail-row-unread-dot{width:8px;height:8px;border-radius:999px;background:#1e5d8f;display:inline-block}.mail-row-subject-line{display:flex;gap:8px;align-items:baseline;min-width:0}.mail-row-subject{font-weight:700;color:#122033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:44%}.mail-row-preview{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.mail-row-tags{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.mail-row-bucket{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:700}.mail-row-star{font-size:16px;color:#b58a1f}.mail-row-star.is-on{color:#d19b1a}.mail-row-right{text-align:right;min-width:96px}
.mail-page-slider{padding:14px 20px}
.mail-outlook-detail{grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.mail-reading-pane{padding:0;overflow:hidden}.mail-empty-detail{min-height:380px;padding:40px}.mail-thread-toolbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 20px 10px;border-bottom:1px solid #edf2f6;background:#fff}.mail-thread-toolbar h2{margin:2px 0 0}.mail-thread-actions{gap:8px;justify-content:flex-end}.mail-thread-actions .btn{border-radius:999px}.mail-thread-meta-bar{display:flex;gap:12px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #edf2f6;background:#fbfdff}.mail-thread-meta-bar form{display:flex;gap:8px;align-items:center}.mail-thread-stack{padding:18px 20px;max-height:58vh;background:#f7fafc}.mail-thread-card{background:#fff;border-color:#dde6ee;border-radius:16px}.mail-thread-card.outbound{background:#eef5ff;border-color:#d2dff0}.mail-thread-content{font-size:14px;color:#16263a}.mail-reply-wrap{padding:18px 20px;border-top:1px solid #edf2f6;background:#fff}
.mail-outlook-insights{display:grid;gap:16px;align-content:start}.mail-insights-card{padding:0;overflow:hidden}.mail-insights-nav{display:flex;gap:4px;padding:12px;border-bottom:1px solid #edf2f6;background:#f8fafc;flex-wrap:wrap}.mail-insight-tab{border:0;background:transparent;border-radius:999px;padding:8px 12px;font-weight:700;color:#5c7084;cursor:pointer}.mail-insight-tab.is-active{background:#e7f0fa;color:#184972}.mail-insight-panel{display:none;padding:16px;gap:12px}.mail-insight-panel.is-active{display:grid}.mail-insight-panel .toolbar{margin-bottom:0}.mail-insight-panel .stacked-panel,.mail-insight-panel .mail-note-stack,.mail-insight-panel .mail-campaign-stack,.mail-insight-panel .mail-crm-grid{margin-top:4px}
.mail-compose-panel{border-radius:18px;border:1px solid #d9e3ed;box-shadow:0 18px 48px rgba(15,23,42,.18)}
.mail-outlook-shell[data-mail-density="cozy"] .mail-outlook-center .conversation-item{padding-top:11px;padding-bottom:11px}.mail-outlook-shell[data-mail-density="cozy"] .mail-row-preview{display:none}.mail-outlook-shell[data-mail-density="cozy"] .mail-list-headline{padding-top:8px;padding-bottom:8px}.mail-outlook-shell[data-mail-density="compact"] .mail-outlook-center .conversation-item{padding-top:9px;padding-bottom:9px}.mail-outlook-shell[data-mail-density="compact"] .mail-row-left .small,.mail-outlook-shell[data-mail-density="compact"] .mail-row-tags,.mail-outlook-shell[data-mail-density="compact"] .mail-list-headline{display:none}.mail-outlook-shell[data-mail-density="compact"] .mail-v16-row{grid-template-columns:minmax(140px,.45fr) minmax(0,1fr) auto}.mail-outlook-shell[data-mail-density="compact"] .mail-row-preview{display:inline}.mail-outlook-shell[data-mail-density="compact"] .mail-row-right{min-width:78px}
.mail-outlook-shell[data-mail-layout="bottom"] .mail-outlook-layout{grid-template-columns:270px minmax(0,1fr)}.mail-outlook-shell[data-mail-layout="bottom"] .mail-outlook-center{grid-column:2}.mail-outlook-shell[data-mail-layout="bottom"] .mail-outlook-detail{grid-column:2;grid-template-columns:1fr}.mail-outlook-shell[data-mail-layout="focus"] .mail-outlook-detail{grid-template-columns:1fr}.mail-outlook-shell[data-mail-layout="focus"] .mail-outlook-insights{display:none}
@media (max-width:1400px){.mail-outlook-layout{grid-template-columns:250px minmax(300px,.9fr) minmax(0,1fr)}.mail-outlook-detail{grid-template-columns:1fr 300px}.mail-search-form{grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(0,1fr)) auto auto}}
@media (max-width:1180px){.mail-outlook-layout{grid-template-columns:1fr}.mail-outlook-left,.mail-outlook-center,.mail-reading-pane,.mail-outlook-insights>.card{position:static;max-height:none}.mail-outlook-detail{grid-template-columns:1fr}.mail-search-form{grid-template-columns:1fr 1fr}.mail-list-headline,.mail-v16-row{grid-template-columns:minmax(120px,.45fr) minmax(0,1fr) auto}}
@media (max-width:860px){.mail-outlook-header,.mail-outlook-controls{align-items:stretch}.mail-search-form{grid-template-columns:1fr}.mail-star-filter{padding-bottom:0}.mail-list-headline{display:none}.mail-v16-row{grid-template-columns:1fr;gap:8px}.mail-row-right{text-align:left;min-width:0}.mail-thread-toolbar,.mail-thread-meta-bar,.mail-thread-actions{flex-direction:column;align-items:stretch}.mail-thread-meta-bar form{flex-direction:column;align-items:stretch}.mail-thread-stack{max-height:none}.mail-outlook-shell[data-mail-layout="bottom"] .mail-outlook-layout{grid-template-columns:1fr}}

/* V16.6 Email Theme Creator */
.theme-creator-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;align-items:start}.theme-creator-layout--wide{grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr)}.theme-creator-card,.theme-library-card{display:grid;gap:12px}.theme-mode-toggle{display:flex;gap:10px;flex-wrap:wrap}.theme-mode-pill{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#f8fbff;font-weight:700;cursor:pointer}.theme-mode-pill input{width:auto;margin:0}.theme-mode-pill:has(input:checked){border-color:var(--brand2);background:#edf5ff;color:var(--brand)}
.theme-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#ffffff,#f7fbff)}.theme-toolbar-copy{display:grid;gap:4px}.theme-toolbar-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.theme-toolbar-actions label{display:grid;gap:6px}
.theme-workbench{display:grid;grid-template-columns:minmax(250px,.65fr) minmax(420px,1fr) minmax(340px,.8fr);gap:18px;align-items:start}.theme-palette-column,.theme-canvas-column,.theme-inspector-column{display:grid;gap:16px}.theme-panel-card{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.04)}.theme-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-settings-grid label{display:grid;gap:6px}.theme-palette-grid{display:grid;gap:10px}.theme-palette-item{display:grid;gap:4px;text-align:left;padding:14px 16px;border:1px solid #cddbeb;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f7fbff);cursor:grab}.theme-palette-item span{color:var(--muted);font-size:13px;line-height:1.5}.theme-palette-item:active{cursor:grabbing}.theme-palette-item.is-dragging{opacity:.55}
.theme-builder-canvas{display:grid;gap:12px;min-height:320px;padding:14px;border:1px dashed #bfd3e6;border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f7fbff)}.theme-builder-canvas.is-drop-target{border-color:var(--brand2);background:#eff6ff}.theme-canvas-empty{padding:28px 18px;border:1px dashed #c8d7e6;border-radius:16px;background:#ffffff;text-align:center}.theme-canvas-card{position:relative}.theme-canvas-card-item{display:grid;gap:10px;padding:14px 16px;border:1px solid #d5e1ec;border-radius:18px;background:#fff;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.theme-canvas-card-item:hover{border-color:#9cb6cf;box-shadow:0 12px 24px rgba(15,23,42,.06)}.theme-canvas-card-item.is-selected{border-color:var(--brand2);box-shadow:0 0 0 3px rgba(59,130,246,.12)}.theme-canvas-card-item.is-dragging{opacity:.45}.theme-canvas-card-item.is-drop-before{box-shadow:inset 0 3px 0 var(--brand2)}.theme-canvas-card-item.is-drop-after{box-shadow:inset 0 -3px 0 var(--brand2)}.theme-canvas-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.theme-canvas-card-title{display:grid;gap:3px}.theme-canvas-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.theme-canvas-card-summary{color:var(--muted);font-size:13px;line-height:1.55}.theme-canvas-card-outline{display:flex;gap:8px;flex-wrap:wrap}.theme-outline-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #d7e2ec;border-radius:999px;background:#f8fbff;font-size:12px;color:#455468}
.theme-section-inspector{display:grid;gap:12px}.theme-section-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-section-fields label{display:grid;gap:6px}.theme-section-fields label:has(textarea),.theme-section-fields .field-full{grid-column:1 / -1}.theme-section-inspector-actions{display:flex;gap:8px;flex-wrap:wrap}.theme-panel-card details{display:grid;gap:10px}.theme-panel-card details summary{list-style:none}.theme-panel-card details summary::-webkit-details-marker{display:none}.theme-panel-card textarea{min-height:220px}.theme-preview-panel iframe{width:100%;min-height:780px;border:1px solid #d7e2ec;border-radius:16px;background:#e7edf5}.theme-sms-shell{display:grid;gap:10px}.theme-sms-shell textarea{min-height:220px}
.theme-library-list{display:grid;gap:12px}.theme-library-item{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfdff}.theme-library-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.theme-library-head h3{margin:0 0 6px}.theme-library-meta{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:1500px){.theme-workbench{grid-template-columns:minmax(240px,.7fr) minmax(360px,1fr)}.theme-inspector-column{grid-column:1 / -1;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1320px){.theme-creator-layout,.theme-creator-layout--wide,.theme-workbench{grid-template-columns:1fr}.theme-inspector-column{grid-template-columns:1fr}.theme-preview-panel iframe{min-height:560px}}
@media (max-width:760px){.theme-settings-grid,.theme-section-fields{grid-template-columns:1fr}.theme-toolbar,.theme-toolbar-actions,.theme-mode-toggle,.theme-library-head{flex-direction:column;align-items:stretch}.theme-canvas-card-head{flex-direction:column}.theme-canvas-card-actions{justify-content:flex-start}}

.theme-creator-layout-v2{grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr)}
.theme-builder-layout-v2{grid-template-columns:minmax(280px,.8fr) minmax(360px,1.15fr) minmax(360px,1fr);gap:18px;align-items:start}
.theme-builder-side-v2,.theme-editor-side-v2{display:grid;gap:16px}
.theme-builder-panel,.theme-canvas-shell,.theme-inspector-card{display:grid;gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.theme-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.theme-palette-item{display:grid;gap:6px;text-align:left;padding:14px;border:1px solid #d7e3ef;border-radius:16px;background:linear-gradient(180deg,#fbfdff,#f5f9ff);cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease;color:var(--text)}
.theme-palette-item:hover,.theme-palette-item:focus{border-color:#8db1d4;transform:translateY(-1px);box-shadow:0 10px 22px rgba(15,23,42,.06)}
.theme-palette-item.is-dragging{opacity:.55}
.theme-canvas-board{display:grid;gap:10px;padding:14px;border:1px dashed #c7d6e5;border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f6f9fc);min-height:520px}
.theme-canvas-list{display:grid;gap:10px;align-content:start}
.theme-drop-zone{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px dashed #c8d7e6;border-radius:14px;background:#fcfeff;color:#607285;font-size:12px;font-weight:700;letter-spacing:.02em;transition:border-color .18s ease,background .18s ease,color .18s ease}
.theme-drop-zone.is-empty{min-height:120px;padding:16px;text-align:center}
.theme-drop-zone.is-over{border-color:#4f7ea8;background:#eaf2fb;color:#1a4870}
.theme-canvas-card{display:grid;gap:10px;padding:14px 16px;border:1px solid #d7e3ef;border-radius:18px;background:#fff;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.theme-canvas-card:hover{border-color:#97b8d7;box-shadow:0 10px 22px rgba(15,23,42,.05)}
.theme-canvas-card.is-selected{border-color:#4f7ea8;box-shadow:0 0 0 3px rgba(79,126,168,.12)}
.theme-canvas-card.is-dragging{opacity:.55;transform:scale(.99)}
.theme-canvas-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start}
.theme-drag-handle{border:1px solid #d7e3ef;background:#f7fafc;color:#607285;border-radius:12px;padding:8px 10px;font-weight:800;cursor:grab}
.theme-drag-handle:active{cursor:grabbing}
.theme-canvas-card-copy{display:grid;gap:6px;min-width:0}
.theme-canvas-card-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.theme-block-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;background:#eff4fa;color:#47627d;font-size:12px;font-weight:700}
.theme-canvas-card-summary{line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.theme-canvas-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.theme-section-inspector{display:grid;gap:12px}
.theme-section-fields-v2{display:grid;grid-template-columns:1fr;gap:12px}
.theme-section-fields-v2 label{display:grid;gap:6px}
.theme-section-fields-v2 textarea{min-height:110px}
.theme-code-card textarea{min-height:200px}
@media (max-width:1480px){.theme-builder-layout-v2{grid-template-columns:minmax(260px,.8fr) minmax(320px,1fr)}.theme-editor-side-v2{grid-column:1 / -1}.theme-preview-card iframe{min-height:560px}}
@media (max-width:980px){.theme-creator-layout-v2,.theme-builder-layout-v2,.theme-palette-grid{grid-template-columns:1fr}.theme-canvas-card-head{grid-template-columns:1fr}.theme-canvas-card-actions{justify-content:flex-start}}

.theme-v2-layout{grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr)}
.theme-v2-editor-card{gap:16px}
.theme-v2-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.theme-v2-toolbar-copy{display:grid;gap:4px;max-width:760px}
.theme-v2-toolbar-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.theme-v2-toolbar-actions label{display:grid;gap:6px;min-width:160px}
.theme-v2-shell{display:grid;grid-template-columns:260px minmax(0,1fr) 380px;gap:18px;align-items:start}
.theme-v2-palette-card,.theme-v2-panel,.theme-v2-canvas-column{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.theme-v2-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.theme-v2-panel-note{padding:12px 14px;border-radius:14px;background:#f5f8fc;border:1px dashed #c8d7e6}
.theme-v2-palette-grid{display:grid;gap:10px}
.theme-v2-palette-item{display:grid;gap:4px;text-align:left;padding:14px 16px;border:1px solid #d7e4f0;border-radius:16px;background:#fff;cursor:grab;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease}
.theme-v2-palette-item strong{font-size:14px}
.theme-v2-palette-item span{font-size:12px;color:var(--muted);line-height:1.45}
.theme-v2-palette-item:hover,.theme-v2-palette-item:focus-visible{border-color:#8fb3d2;box-shadow:0 12px 24px rgba(15,39,64,.08);transform:translateY(-1px);background:#fbfdff;outline:none}
.theme-v2-canvas-column{gap:16px}
.theme-v2-canvas{display:grid;gap:10px;padding:14px;border:1px dashed #c4d6e8;border-radius:18px;background:#fbfdff;min-height:420px}
.theme-v2-empty-canvas{display:grid;gap:8px;place-items:center;text-align:center;padding:56px 18px;border:1px dashed #cfe0ef;border-radius:16px;background:rgba(255,255,255,.75)}
.theme-v2-drop-slot{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;border:0;background:transparent;padding:0;cursor:pointer;text-align:left}
.theme-v2-drop-line{display:block;height:3px;border-radius:999px;background:transparent;transition:background .15s ease,box-shadow .15s ease}
.theme-v2-drop-copy{font-size:11px;color:#7b8ea3;opacity:0;transition:opacity .15s ease,color .15s ease}
.theme-v2-drop-slot.is-active .theme-v2-drop-line,.theme-v2-dragging .theme-v2-drop-line{background:#77a8d0;box-shadow:0 0 0 3px rgba(119,168,208,.16)}
.theme-v2-drop-slot.is-active .theme-v2-drop-copy,.theme-v2-dragging .theme-v2-drop-copy{opacity:1}
.theme-v2-canvas-card{display:grid;gap:12px;padding:16px 18px;border:1px solid #d9e6f1;border-radius:18px;background:#fff;box-shadow:0 8px 18px rgba(15,39,64,.04);cursor:pointer}
.theme-v2-canvas-card.is-selected{border-color:#6d98bf;box-shadow:0 0 0 3px rgba(109,152,191,.14),0 12px 24px rgba(15,39,64,.08)}
.theme-v2-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.theme-v2-card-title{display:flex;gap:10px;align-items:flex-start}
.theme-v2-drag-handle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:10px;background:#eef4fa;color:#6b7e92;font-size:14px;line-height:1;cursor:grab}
.theme-v2-card-preview{padding:12px 14px;border-radius:14px;background:#f6f9fc;color:#324457;font-size:13px;line-height:1.5}
.theme-v2-inline-actions{display:flex;gap:8px;flex-wrap:wrap}
.theme-v2-code-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.theme-v2-code-card{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}
.theme-v2-code-card textarea{min-height:280px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.6}
.theme-v2-inspector-column{display:grid;gap:16px}
.theme-v2-settings-grid,.theme-v2-inspector-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-v2-settings-grid label,.theme-v2-inspector-fields label{display:grid;gap:6px}
.theme-v2-inspector-fields label:has(textarea){grid-column:1 / -1}
.theme-v2-inspector-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.theme-v2-empty{padding:18px;border:1px dashed #c8d7e6;border-radius:16px;background:#fbfdff;text-align:center}
.theme-preview-card iframe{width:100%;min-height:540px;border:1px solid #dce7f1;border-radius:16px;background:#edf3f9}
.theme-library-list{display:grid;gap:12px}.theme-library-item{display:grid;gap:10px;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fbfdff}.theme-library-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.theme-library-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
@media (max-width:1500px){.theme-v2-shell{grid-template-columns:240px minmax(0,1fr) 340px}}
@media (max-width:1320px){.theme-v2-layout,.theme-v2-shell,.theme-v2-code-grid{grid-template-columns:1fr}.theme-v2-palette-card,.theme-v2-canvas-column,.theme-v2-inspector-column{position:static}.theme-preview-card iframe{min-height:520px}}
@media (max-width:860px){.theme-v2-toolbar,.theme-v2-panel-head,.theme-v2-card-head,.theme-v2-inspector-head,.theme-v2-toolbar-actions{flex-direction:column;align-items:stretch}.theme-v2-settings-grid,.theme-v2-inspector-fields{grid-template-columns:1fr}.theme-v2-code-card textarea{min-height:220px}}

/* V16.7 Elite Template Creator cleanup */
.theme-v3-shell-page{display:grid;gap:20px}
.theme-v3-studio-card{display:grid;gap:18px}
.theme-v3-hero-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;padding:22px;border:1px solid #d9e5f0;border-radius:24px;background:linear-gradient(135deg,#ffffff 0%,#f7fbff 58%,#ecf4ff 100%)}
.theme-v3-hero-copy{display:grid;gap:8px;align-content:start}
.theme-v3-hero-copy h3{margin:0;font-size:28px;line-height:1.15;color:#122033}
.theme-v3-hero-copy p{margin:0;max-width:760px;color:#587084;line-height:1.7}
.theme-v3-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#2d5b86}
.theme-v3-progress-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-v3-progress-step{display:grid;gap:4px;padding:14px 16px;border:1px solid #d9e5f0;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 8px 18px rgba(16,42,67,.04)}
.theme-v3-progress-step span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#edf5ff;color:#214d76;font-size:12px;font-weight:800}
.theme-v3-progress-step strong{font-size:14px;color:#122033}
.theme-v3-progress-step small{font-size:12px;color:#6a7f93}
.theme-v3-progress-step.is-active{border-color:#a9c6e2;box-shadow:0 0 0 3px rgba(92,138,181,.14),0 12px 28px rgba(16,42,67,.08)}
.theme-v3-meta-grid label{display:grid;gap:6px}
.theme-v3-commandbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:#f9fbfe}
.theme-v3-commandbar-copy{display:grid;gap:4px;max-width:760px}
.theme-v3-commandbar-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.theme-v3-commandbar-actions label{display:grid;gap:6px;min-width:160px}
.theme-v3-builder-shell{display:grid;grid-template-columns:260px minmax(0,1fr) 380px;gap:18px;align-items:start}
.theme-v3-sidebar,.theme-v3-dock{display:grid;gap:16px;align-content:start;position:sticky;top:24px}
.theme-v3-stage{display:grid;gap:16px}
.theme-v3-sidebar-card,.theme-v3-stage-card,.theme-v3-inspector-panel,.theme-v3-settings-panel,.theme-v3-preview-panel{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 10px 28px rgba(15,39,64,.05)}
.theme-v3-sidebar-card--palette{background:linear-gradient(180deg,#ffffff,#fbfdff)}
.theme-v3-group-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7e92;margin-bottom:2px}
.theme-v3-block-group{display:grid;gap:10px}
.theme-v3-sidebar .theme-v2-palette-grid{grid-template-columns:1fr}
.theme-v3-sidebar .theme-v2-palette-item{padding:15px 16px;border-radius:18px;background:linear-gradient(180deg,#ffffff,#fbfdff)}
.theme-v3-guidance-list{display:grid;gap:8px;padding-left:18px;margin:0}
.theme-v3-stat-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.theme-v3-stat-pill{display:grid;gap:4px;padding:12px 14px;border:1px solid #dce7f1;border-radius:16px;background:#f8fbff}
.theme-v3-stat-pill strong{font-size:16px;color:#17324f}
.theme-v3-canvas{min-height:560px;background:linear-gradient(180deg,#f8fbfe,#f3f7fb);border:1px dashed #bfd4e6}
.theme-v3-canvas .theme-v2-canvas-card{background:#fff}
.theme-v3-advanced-panel{display:grid;gap:14px;padding:16px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 8px 20px rgba(15,39,64,.04)}
.theme-v3-advanced-panel summary{display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;list-style:none;color:inherit;margin:0}
.theme-v3-advanced-panel summary::-webkit-details-marker{display:none}
.theme-v3-advanced-panel[open] summary{padding-bottom:14px;border-bottom:1px solid #edf2f6}
.theme-v3-code-grid{margin-top:0}
.theme-v3-dock{grid-template-rows:auto 1fr}
.theme-v3-dock-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px;border:1px solid var(--line);border-radius:18px;background:#f5f8fc;box-shadow:0 8px 18px rgba(15,39,64,.04)}
.theme-v3-dock-tabs button{appearance:none;border:0;background:transparent;padding:11px 12px;border-radius:12px;color:#5c7084;font-weight:800;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.theme-v3-dock-tabs button.is-active{background:#fff;color:#14314f;box-shadow:0 8px 18px rgba(15,39,64,.08)}
.theme-v3-dock-panel{display:none}
.theme-v3-dock-panel.is-active{display:block}
.theme-v3-preview-panel iframe{width:100%;min-height:720px;border:1px solid #dce7f1;border-radius:18px;background:#edf3f9}
.theme-v3-settings-panel .theme-v2-settings-grid,.theme-v3-inspector-panel .theme-v2-inspector-fields{gap:12px}
.theme-v3-library-card{display:grid;gap:14px}
.theme-v3-library-card .theme-library-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.theme-v3-library-item{background:#fff;border-color:#dee7ef}
.theme-v3-library-item h3{margin-bottom:0}
@media (max-width:1500px){.theme-v3-builder-shell{grid-template-columns:240px minmax(0,1fr) 340px}.theme-v3-preview-panel iframe{min-height:620px}}
@media (max-width:1260px){.theme-v3-builder-shell{grid-template-columns:minmax(240px,300px) minmax(0,1fr)}.theme-v3-dock{grid-column:1 / -1;position:static}.theme-v3-preview-panel iframe{min-height:540px}}
@media (max-width:980px){.theme-v3-hero-panel,.theme-v3-builder-shell,.theme-v3-progress-strip,.theme-v3-stat-row,.theme-v3-library-card .theme-library-list{grid-template-columns:1fr}.theme-v3-sidebar,.theme-v3-dock{position:static}.theme-v3-commandbar,.theme-v3-commandbar-actions{flex-direction:column;align-items:stretch}.theme-v3-dock-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.theme-v3-hero-copy h3{font-size:24px}}
@media (max-width:760px){.theme-v3-dock-tabs{grid-template-columns:1fr}.theme-v3-preview-panel iframe{min-height:440px}.theme-v3-advanced-panel summary{flex-direction:column;align-items:flex-start}}

.theme-pro-shell-page{display:grid;gap:20px}
.theme-pro-studio-card{display:grid;gap:18px}
.theme-pro-brief-card{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(420px,.85fr);gap:18px;padding:24px;border:1px solid #dbe5ef;border-radius:24px;background:linear-gradient(135deg,#ffffff 0%,#f8fbff 60%,#edf4ff 100%);box-shadow:0 12px 28px rgba(15,39,64,.05)}
.theme-pro-brief-copy{display:grid;gap:8px;align-content:start}
.theme-pro-brief-copy h3{margin:0;font-size:30px;line-height:1.1;color:#112135}
.theme-pro-brief-copy p{margin:0;color:#567086;line-height:1.75;max-width:780px}
.theme-pro-kicker{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#2d5b86}
.theme-pro-step-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-pro-step{display:grid;gap:4px;padding:14px 16px;border:1px solid #d9e5f0;border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 8px 20px rgba(16,42,67,.04)}
.theme-pro-step span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#edf5ff;color:#214d76;font-size:12px;font-weight:800}
.theme-pro-step strong{font-size:14px;color:#122033}
.theme-pro-step small{font-size:12px;color:#6a7f93}
.theme-pro-step.is-active{border-color:#a9c6e2;box-shadow:0 0 0 3px rgba(92,138,181,.14),0 12px 28px rgba(16,42,67,.08)}
.theme-pro-top-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.theme-pro-guide-item{display:grid;gap:6px;padding:16px 18px;border:1px solid #dce7f1;border-radius:18px;background:#fbfdff}
.theme-pro-meta-grid label{display:grid;gap:6px}
.theme-pro-commandbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:18px 20px;border:1px solid var(--line);border-radius:22px;background:#f9fbfe}
.theme-pro-commandbar-copy{display:grid;gap:4px;max-width:820px}
.theme-pro-commandbar-actions{display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.theme-pro-commandbar-actions label{display:grid;gap:6px;min-width:160px}
.theme-pro-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.62fr);gap:18px;align-items:start}
.theme-pro-canvas-stage,.theme-pro-outline-card,.theme-pro-inspector-card,.theme-library-overview-card{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,39,64,.05)}
.theme-pro-stage-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.theme-pro-stage-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.theme-pro-stat-pill{display:grid;gap:4px;padding:10px 14px;min-width:92px;border:1px solid #dce7f1;border-radius:16px;background:#f8fbff}
.theme-pro-stat-pill strong{font-size:16px;color:#17324f}
.theme-pro-canvas{min-height:680px;background:linear-gradient(180deg,#f8fbfe,#f3f7fb);border:1px dashed #bfd4e6}
.theme-pro-right-rail{display:grid;gap:16px;position:sticky;top:24px}
.theme-pro-outline-list{display:grid;gap:10px}
.theme-pro-outline-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;padding:12px 14px;border:1px solid #dbe5ef;border-radius:16px;background:#fbfdff;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.theme-pro-outline-item:hover,.theme-pro-outline-item:focus-visible{border-color:#8fb3d2;box-shadow:0 10px 22px rgba(15,39,64,.08);transform:translateY(-1px);outline:none}
.theme-pro-outline-item.is-selected{border-color:#6d98bf;box-shadow:0 0 0 3px rgba(109,152,191,.14),0 12px 24px rgba(15,39,64,.08);background:#fff}
.theme-pro-outline-order{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:#edf5ff;color:#214d76;font-size:12px;font-weight:800}
.theme-pro-outline-copy{display:grid;gap:4px;min-width:0}
.theme-pro-outline-copy strong{font-size:14px;color:#183049}
.theme-pro-outline-copy small{color:#637a90;line-height:1.45}
.theme-pro-preview-dock{display:grid;gap:14px;padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,39,64,.05)}
.theme-pro-preview-dock.is-collapsed .theme-pro-preview-frame-wrap{display:none}
.theme-pro-preview-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.theme-pro-preview-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.theme-pro-view-toggle{display:flex;gap:6px;padding:6px;border:1px solid #dce7f1;border-radius:14px;background:#f5f8fc}
.theme-pro-view-toggle button{appearance:none;border:0;background:transparent;padding:9px 12px;border-radius:10px;color:#5c7084;font-weight:800;cursor:pointer;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.theme-pro-view-toggle button.is-active{background:#fff;color:#14314f;box-shadow:0 8px 18px rgba(15,39,64,.08)}
.theme-pro-preview-frame-wrap{display:grid;place-items:center;padding:18px;border-radius:18px;background:linear-gradient(180deg,#edf3f9,#e8eff7);border:1px solid #dce7f1;overflow:auto}
.theme-pro-preview-frame-wrap iframe{width:100%;min-height:720px;border:1px solid #cedae6;border-radius:18px;background:#edf3f9}
.theme-pro-preview-frame-wrap[data-preview-device="mobile"] iframe{max-width:390px;min-height:760px}
.theme-pro-window[hidden]{display:none !important}
.theme-pro-window{position:fixed;top:96px;left:calc(50% - 520px);width:min(1080px,calc(100vw - 40px));max-height:calc(100vh - 120px);display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid #d9e5f0;border-radius:24px;background:#fff;box-shadow:0 28px 60px rgba(15,23,42,.24);overflow:hidden;z-index:90}
.theme-pro-window.is-dragging{box-shadow:0 36px 84px rgba(15,23,42,.32)}
.theme-pro-window-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;border-bottom:1px solid #e1ebf4;background:linear-gradient(180deg,#f9fbfe,#f1f6fb);cursor:move;user-select:none}
.theme-pro-window-meta{display:grid;gap:4px}
.theme-pro-window-meta strong{font-size:16px;color:#122033}
.theme-pro-window-meta small{font-size:12px;line-height:1.6;color:#667a8e}
.theme-pro-window-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.theme-pro-window-badge{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#ecf4ff;color:#244e77;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.theme-pro-window-body{padding:18px;overflow:auto;background:#fff}
.theme-pro-window.is-minimized{width:min(420px,calc(100vw - 24px));max-height:none;grid-template-rows:auto}
.theme-pro-window.is-minimized .theme-pro-window-body{display:none}
.theme-pro-window.is-minimized .theme-pro-window-head{padding:14px 16px;border-bottom:0}
.theme-pro-window.is-minimized .theme-pro-window-meta small{display:none}
.theme-pro-window--blocks{width:min(980px,calc(100vw - 40px));max-height:calc(100vh - 132px)}
.theme-pro-window--settings{width:min(760px,calc(100vw - 40px));max-height:calc(100vh - 132px)}
.theme-pro-window--blocks .theme-pro-window-body,.theme-pro-window--settings .theme-pro-window-body{padding:20px}
.theme-pro-window--blocks.is-minimized,.theme-pro-window--settings.is-minimized{width:min(460px,calc(100vw - 24px))}
.theme-pro-modal{position:fixed;inset:0;z-index:60;background:rgba(15,23,42,.52);padding:32px;display:grid;place-items:center}
.theme-pro-modal-dialog{width:min(1080px,100%);max-height:min(88vh,960px);display:grid;gap:16px;padding:22px;border-radius:24px;background:#fff;border:1px solid #d9e5f0;box-shadow:0 28px 60px rgba(15,23,42,.24)}
.theme-pro-modal-dialog--narrow{width:min(760px,100%)}
.theme-pro-modal-dialog--wide{width:min(1220px,100%)}
.theme-pro-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.theme-pro-modal-body{overflow:auto;padding-right:4px}
.theme-pro-popup-grid{display:grid;gap:18px}
.theme-pro-popup-group{display:grid;gap:10px}
.theme-pro-group-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b7e92}
.theme-pro-block-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
.theme-pro-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.theme-pro-code-grid{grid-template-columns:1fr 1fr;gap:16px}
.theme-library-shell{display:grid;gap:20px}
.theme-library-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.theme-library-item--pro{background:#fff;border-color:#dee7ef;box-shadow:0 10px 22px rgba(15,39,64,.05)}
.theme-modal-open{overflow:hidden}
@media (max-width:1500px){.theme-pro-workspace{grid-template-columns:minmax(0,1.4fr) minmax(300px,.66fr)}.theme-pro-preview-frame-wrap iframe{min-height:620px}}
@media (max-width:1260px){.theme-pro-brief-card,.theme-pro-workspace,.theme-library-overview-grid{grid-template-columns:1fr}.theme-pro-right-rail{position:static}.theme-pro-preview-frame-wrap iframe{min-height:560px}}
@media (max-width:980px){.theme-pro-top-guide,.theme-pro-step-row,.theme-pro-settings-grid,.theme-pro-code-grid,.theme-pro-block-grid{grid-template-columns:1fr}.theme-pro-commandbar,.theme-pro-commandbar-actions,.theme-pro-stage-head,.theme-pro-preview-head,.theme-pro-modal-head,.theme-pro-window-head,.theme-pro-window-actions{flex-direction:column;align-items:stretch}.theme-pro-modal{padding:16px}.theme-pro-modal-dialog{width:100%;max-height:92vh}.theme-pro-preview-actions{justify-content:space-between}.theme-pro-window{top:72px;left:16px !important;width:calc(100vw - 32px);max-height:calc(100vh - 88px)}}
@media (max-width:760px){.theme-pro-stage-actions{align-items:stretch}.theme-pro-preview-frame-wrap iframe{min-height:440px}.theme-pro-preview-frame-wrap[data-preview-device="mobile"] iframe{max-width:320px;min-height:600px}.theme-pro-window{top:64px;left:12px !important;width:calc(100vw - 24px);max-height:calc(100vh - 76px)}.theme-pro-window.is-minimized{width:calc(100vw - 24px)}}

/* V16.8.4 Image block upload and resize tools */
.theme-pro-inspector-span{grid-column:1 / -1}
.theme-pro-image-tools{display:grid;gap:12px;padding:14px;border:1px solid #dce7f1;border-radius:18px;background:#f8fbff}
.theme-pro-image-preview-frame{display:grid;place-items:center;min-height:180px;padding:14px;border:1px dashed #bfd4e6;border-radius:16px;background:linear-gradient(180deg,#ffffff,#f4f8fc);overflow:hidden}
.theme-pro-image-preview-frame img{display:block;max-width:100%;max-height:260px;border-radius:14px;object-fit:contain;box-shadow:0 14px 32px rgba(15,39,64,.12)}
.theme-pro-image-empty{display:grid;place-items:center;width:100%;min-height:150px;border-radius:14px;background:#eef4fa;color:#6a7f93;font-size:13px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.theme-pro-image-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.theme-pro-range-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:4px}
.theme-pro-range-meta strong{font-size:13px;color:#16304c}
.theme-v2-card-preview--image{display:grid;grid-template-columns:minmax(120px,160px) minmax(0,1fr);align-items:center;gap:14px;background:#f6f9fc}
.theme-v2-card-image-thumb{display:block;width:100%;max-width:160px;max-height:110px;border-radius:14px;object-fit:cover;border:1px solid #dbe5ef;background:#fff}
.theme-v2-card-image-thumb--empty{display:grid;place-items:center;padding:18px;font-size:12px;font-weight:700;color:#70849a;background:#eef4fa}
.theme-v2-card-preview-meta{display:grid;gap:4px;min-width:0;color:#324457;font-size:13px;line-height:1.45}
.theme-v2-card-preview-meta small{color:#6b7f94}
@media (max-width:860px){.theme-pro-image-toolbar,.theme-v2-card-preview--image{grid-template-columns:1fr;display:grid}.theme-v2-card-image-thumb{max-width:100%;max-height:180px}.theme-pro-range-meta{align-items:flex-start;flex-direction:column}}

/* V16.9 Contacts CRM + communication center */
.contact-crm-shell{display:grid;gap:22px;margin-bottom:22px}
.contact-hero-card{display:grid;gap:18px}
.contact-hero-main{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.contact-hero-main h2{margin:4px 0 8px}
.contact-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.contact-hero-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.contact-hero-stats div,.contact-detail-grid div,.contact-status-card,.contact-subscription-box{display:grid;gap:4px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fbfdff}
.contact-hero-stats strong{font-size:22px}
.contact-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.contact-status-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.contact-status-card.is-active{background:#eef7f1;border-color:#cbe6d2}
.contact-status-card.is-muted{background:#fbfdff}
.contact-subscription-box .toolbar{margin-bottom:6px}
.contact-communication-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);gap:18px;align-items:start}
.contact-compose-card,.contact-thread-list-card,.contact-thread-viewer{display:grid;gap:14px}
.contact-thread-stack{max-height:780px}
.contact-timeline-list{max-height:640px}
@media (max-width:1280px){.contact-hero-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){.contact-communication-layout,.contact-status-strip,.contact-detail-grid{grid-template-columns:1fr}.contact-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.contact-hero-actions{display:grid;grid-template-columns:1fr}.contact-hero-stats{grid-template-columns:1fr}}

/* V16.9.1 Report explorer pagination + floating windows */
.report-explorer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.report-explorer-tile{display:grid;gap:6px;padding:18px;border:1px solid #d9e5f0;border-radius:18px;background:linear-gradient(180deg,#f9fbfe,#f3f7fb);text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.report-explorer-tile strong{font-size:15px;color:#14314f}
.report-explorer-tile span{font-size:12px;line-height:1.55;color:#667a8e}
.report-explorer-tile:hover{transform:translateY(-1px);border-color:#bfd3e5;box-shadow:0 14px 28px rgba(15,39,64,.08)}
.report-explorer-tile.is-muted{opacity:.72}
.report-explorer-tile[data-window-state="minimized"]{border-style:dashed}
.report-drilldown-window{width:min(860px,calc(100vw - 40px));max-height:calc(100vh - 116px);z-index:120}
.report-drilldown-window--wide{width:min(980px,calc(100vw - 40px))}
.report-window-table-wrap{border:1px solid #e1ebf4;border-radius:18px;overflow:auto;background:#fff}
.report-window-table-wrap table{margin:0;min-width:100%}
.report-window-table-wrap thead th{position:sticky;top:0;background:#f7fafc;z-index:1}
.report-window-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px;padding-top:14px;border-top:1px solid #e1ebf4}
.report-window-footer-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-left:auto}
.report-window-page-size{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.report-window-page-size label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;color:#617589}
.report-window-page-size select{min-width:88px}
.report-window-pager{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.report-window-pager a{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:9px 12px;border-radius:12px;border:1px solid #d9e5f0;background:#fff;color:#294763;font-size:12px;font-weight:700}
.report-window-pager a.is-active{background:#14314f;color:#fff;border-color:#14314f;box-shadow:0 12px 24px rgba(20,49,79,.18)}
.report-window-pager a.is-disabled{pointer-events:none;opacity:.45}
@media (max-width:1180px){.report-explorer-grid{grid-template-columns:1fr}.report-drilldown-window,.report-drilldown-window--wide{width:calc(100vw - 28px)}}
