/* FLYPIGBOX R6.15.5 - shared template rules and full-mode layout closure */
.r6155-mode-parity-hero{align-items:flex-start;gap:24px}.r6155-mode-parity-hero>div:first-child{min-width:0;max-width:900px}.r6155-mode-kicker{display:inline-flex;margin-bottom:8px;padding:5px 10px;border-radius:999px;background:rgba(32,102,196,.10);color:#245d9f;font-size:12px;font-weight:800}.r6155-sync-facts,.r6155-field-scope{display:flex;flex-wrap:wrap;gap:7px}.r6155-sync-facts{margin-top:12px}.r6155-sync-facts span,.r6155-field-scope span,.r6155-sync-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 9px;border:1px solid rgba(47,93,151,.16);border-radius:999px;background:rgba(255,255,255,.72);font-size:12px;color:#4b607b}.r6155-sync-badge{color:#24633f!important;background:rgba(43,151,88,.08)!important;border-color:rgba(43,151,88,.18)!important;font-weight:800}.r6155-field-scope{justify-content:flex-end;margin:2px 0 6px}.r6155-template-sync-note{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:12px 18px;padding:12px 16px;border:1px solid rgba(41,104,190,.18);border-radius:16px;background:linear-gradient(135deg,rgba(233,243,255,.96),rgba(247,251,255,.94));box-shadow:0 8px 24px rgba(46,83,131,.06)}.r6155-template-sync-note>div:first-child{display:grid;gap:3px}.r6155-template-sync-note strong{font-size:14px}.r6155-template-sync-note span{font-size:12px;color:#52657a}.r6155-template-sync-note>div:last-child{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.r6155-template-sync-note>div:last-child span{padding:5px 9px;border-radius:10px;background:#fff;border:1px solid rgba(47,93,151,.12)}

/* Full mode is more detailed, but keeps one calm page grid and predictable actions. */
.workspace-full .cui-main,.workspace-full main{min-width:0}.workspace-full .cui-content{max-width:1680px;margin:0 auto}.workspace-full .card{min-width:0}.workspace-full .section-title,.workspace-full .page-heading,.workspace-full .doc-center-hero{gap:16px;align-items:flex-start}.workspace-full .actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.workspace-full .table-wrap{max-width:100%;overflow:auto;border-radius:14px}.workspace-full .table{min-width:760px}.workspace-full .table th{position:sticky;top:0;z-index:1;white-space:nowrap}.workspace-full .form-grid{align-items:start}.workspace-full details.card>summary{min-height:54px}.workspace-full .doc-template-group{padding:18px}.workspace-full .r6151-template-row{grid-template-columns:44px minmax(260px,1fr) minmax(430px,.9fr);align-items:center}.workspace-full .doc-template-actions{min-width:0}.workspace-full .doc-template-card-stats{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.workspace-full .r6155-field-scope{justify-content:flex-end}.workspace-full .template-studio-toolbar{position:sticky;top:0;z-index:20}.workspace-full .template-studio-shell,.workspace-full .r6144-studio{min-width:0}.workspace-full .template-studio-editor,.workspace-full .r6144-inspector,.workspace-full .r6144-preview{min-width:0}.workspace-full .template-field-card{min-width:0}.workspace-full .template-field-identity,.workspace-full .template-field-identity strong{min-width:0}.workspace-full .template-field-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-full .order-detail-grid,.workspace-full .detail-grid,.workspace-full .dashboard-grid{align-items:start}.workspace-full .muted,.workspace-full small{line-height:1.45}

@media(max-width:1180px){.workspace-full .r6151-template-row{grid-template-columns:44px 1fr}.workspace-full .r6151-template-row>.doc-template-actions{grid-column:2}.workspace-full .doc-template-card-stats,.workspace-full .r6155-field-scope{justify-content:flex-start}.r6155-template-sync-note{align-items:flex-start;flex-direction:column}.r6155-template-sync-note>div:last-child{justify-content:flex-start}.workspace-full .table{min-width:680px}}
@media(max-width:760px){.r6155-mode-parity-hero{display:grid}.r6155-template-sync-note{margin:10px 8px}.workspace-full .r6151-template-row{grid-template-columns:36px minmax(0,1fr);padding:12px}.workspace-full .r6151-template-row>.doc-template-actions{grid-column:1/-1}.workspace-full .table{min-width:620px}}
