/* Promotion Metrics shared application language — compact, calm and operational. */
:root{--suite-ink:#10284b;--suite-navy:#1b2b49;--suite-teal:#008f83;--suite-muted:#667891;--suite-line:#d5e1ea;--suite-bg:#f3f7fa;--suite-card:#fff;--suite-radius:14px;--suite-shadow:0 10px 28px rgba(16,40,75,.055);--suite-canvas:1600px;--suite-gutter:24px}

/* Standard workspace geometry. Board and communications products retain purpose-built grids. */
.ws,.crm-shell,.rf-shell,.admit-shell,.af-shell,.cf-shell,.ff-shell,.if-shell,.omni-shell{width:min(var(--suite-canvas),calc(100% - (var(--suite-gutter) * 2)))!important;max-width:var(--suite-canvas)!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box}
.rf-shell,.admit-shell,.af-shell,.if-shell{padding:28px 0 60px}
.ff-shell{padding-top:28px}
.ff-shell,.rf-shell,.admit-shell,.if-shell{font-size:14px}

/* Consistent page hierarchy. */
.rf-head,.admit-head,.af-head,.ff-page-head,.if-head{min-height:94px;align-items:flex-end;margin-bottom:18px}
.rf-head h1,.admit-head h1,.af-head h1,.ff-page-head h1,.if-head h1{margin:5px 0 7px;font-size:36px;line-height:1.05;letter-spacing:-.035em;color:var(--suite-ink)}
.rf-head p,.admit-head p,.af-head p,.ff-page-head p,.if-head p{margin:0;color:var(--suite-muted);font-size:14px}
.rf-head .eyebrow,.admit-head .eyebrow,.af-head .eyebrow,.ff-page-head .eyebrow,.if-head .eyebrow{font-size:10px!important;letter-spacing:.17em;color:var(--suite-teal)!important;font-weight:900}

/* Buttons and compact controls. */
.rf-shell button,.rf-shell .button,.admit-shell button,.admit-shell .button,.if-shell button,.if-shell .button{min-height:38px;width:auto;border-radius:9px;padding:8px 14px;font-size:13px;font-weight:800}
.rf-shell input,.rf-shell select,.rf-shell textarea,.admit-shell input,.admit-shell select,.admit-shell textarea,.if-shell input,.if-shell select,.if-shell textarea{margin-top:0;box-sizing:border-box;font-size:13px}
.rf-shell label,.admit-shell label,.if-shell label{margin:0}
.rf-shell dialog form,.admit-shell dialog form{gap:11px;margin:0}
.rf-shell dialog,.admit-shell dialog{padding:0;width:min(720px,calc(100vw - 36px));max-height:calc(100vh - 44px);overflow:auto;border-radius:18px}
.rf-shell dialog form,.admit-shell dialog form{padding:24px}
.rf-shell dialog h2,.admit-shell dialog h2{margin:0 0 3px;font-size:24px}
.rf-shell dialog input,.rf-shell dialog select,.admit-shell dialog input,.admit-shell dialog select{min-height:38px}
.rf-shell dialog textarea,.admit-shell dialog textarea{min-height:76px}

/* Summary cards use the same rhythm across products. */
.suite-stat-strip,.ff-summary,.admit-metrics,.af-summary,.if-stats,.social-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.suite-stat-strip article,.ff-summary article,.admit-metrics article,.af-summary article,.if-stats article,.social-summary article{display:flex;min-height:96px;padding:16px 17px;border:1px solid var(--suite-line);border-radius:13px;background:var(--suite-card);box-shadow:var(--suite-shadow);box-sizing:border-box;flex-direction:column;justify-content:center}
.suite-stat-strip article span,.ff-summary article small,.admit-metrics article span,.if-stats article span,.social-summary article span{font-size:11px;color:var(--suite-muted)}
.suite-stat-strip article b,.ff-summary article b,.admit-metrics article b,.if-stats article b,.social-summary article b{margin:0 0 6px;font-size:27px;line-height:1;color:var(--suite-ink)}

/* Secondary navigation always looks like navigation, not loose links. */
.rf-tabs,.admit-tabs,.if-nav{display:flex;align-items:center;gap:4px;margin:16px 0;border-bottom:1px solid var(--suite-line);overflow-x:auto}
.rf-tabs a,.admit-tabs a,.if-nav a{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border-radius:7px 7px 0 0;border-bottom:3px solid transparent;background:transparent;color:var(--suite-muted);font-size:13px;font-weight:750;white-space:nowrap;text-decoration:none}
.rf-tabs a.active,.admit-tabs a.active,.if-nav a.active{background:#fff;color:var(--suite-ink);border-bottom-color:var(--suite-teal)}

/* Purposeful empty states replace unfinished-looking blank pages. */
.rf-grid>.empty,.admit-board>.empty{grid-column:1/-1;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:38px;text-align:center;border:1px solid var(--suite-line);border-radius:16px;background:#fff;box-shadow:var(--suite-shadow)}
.rf-grid>.empty:before,.admit-board>.empty:before{content:"";display:block;width:56px;height:56px;margin-bottom:14px;border-radius:18px;background:linear-gradient(145deg,#172b4c,#234a70);box-shadow:inset 0 -4px 0 #4fd0c5}
.rf-grid>.empty h2,.admit-board>.empty h2{margin:0 0 6px;font-size:20px}
.rf-grid>.empty p,.admit-board>.empty p{max-width:430px;margin:0;color:var(--suite-muted);line-height:1.55}
.ff-empty{min-height:290px;padding:48px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.ff-empty:before{content:"";width:54px;height:54px;margin-bottom:13px;border-radius:18px;background:linear-gradient(145deg,#172b4c,#234a70);box-shadow:inset 0 -4px 0 #45d2c5}
.ff-empty h2{margin:0 0 7px;font-size:20px}.ff-empty p{margin:0 0 16px;color:var(--suite-muted)}

/* Referral and admission records should feel like operational cards. */
.rf-grid,.admit-board{gap:12px}.rf-card,.rf-panel,.rule-card,.admit-card{border-color:var(--suite-line);border-radius:14px;box-shadow:var(--suite-shadow)}
.rf-card:hover,.admit-card:hover{transform:translateY(-1px);border-color:#55bdb5;box-shadow:0 14px 32px rgba(16,40,75,.09)}

/* OmniFlow is a communications workspace, but follows the same outer rhythm. */
.omni-shell{padding:26px 0 34px!important}.omni-head,.omni-tabs,.omni-grid{width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important}.omni-head{min-height:76px;align-items:flex-end}.omni-head h1{font-size:36px;letter-spacing:-.035em}.omni-grid{height:calc(100vh - 390px);min-height:480px;max-height:760px;border-radius:16px;box-shadow:var(--suite-shadow)}.omni-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.omni-thread{min-height:0}.omni-stream{min-height:0;overscroll-behavior:contain}
.omni-list form{padding:12px;margin-top:10px}.omni-list form label{margin:7px 0;font-size:12px}.omni-list form input,.omni-list form select{min-height:37px}.omni-list form button{min-height:38px;padding:8px 12px;font-size:13px}
.omni-assign-link{display:inline-flex;margin:0 0 8px;padding:7px 10px;border:1px solid var(--suite-line);border-radius:8px;background:#fff;color:var(--suite-ink);font-size:12px;font-weight:800;text-decoration:none}
.omni-list-heading{position:sticky;top:-10px;z-index:2;margin:6px -2px 3px;padding:9px 8px 6px;background:#f8fafc;color:var(--suite-muted);font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.omni-stream>.empty{height:100%;display:flex;align-items:center;justify-content:center;color:var(--suite-muted);font-size:0;text-align:center}.omni-stream>.empty:before{content:"Messages and activity will appear here";display:block;padding:18px 24px;border:1px dashed #c4d2de;border-radius:12px;background:#fff;font-size:15px}

/* FormFlow stays dense by design, but aligns to the suite canvas. */
.ff-shell:has(.ff-layout){padding:20px 0 54px}.ff-shell:has(.ff-layout) .ff-head{min-height:72px;margin-bottom:12px}.ff-shell:has(.ff-layout) .ff-head h1{font-size:30px}.ff-shell:has(.ff-layout) .ff-layout{gap:12px}.ff-shell:has(.ff-layout) .ff-settings,.ff-shell:has(.ff-layout) .ff-editor>section,.ff-shell:has(.ff-layout) .new-form,.ff-shell:has(.ff-layout) .form-card{border-color:var(--suite-line);box-shadow:var(--suite-shadow)}

/* InsightFlow should not run edge-to-edge. */
.if-shell .if-welcome{border-radius:18px}.if-shell .card-grid article,.if-shell .builder,.if-shell .panel,.if-shell .report-canvas,.if-shell .dashboard-widget,.if-shell .data-table{box-shadow:var(--suite-shadow)}

@media(max-width:900px){:root{--suite-gutter:14px}.rf-head,.admit-head,.af-head,.ff-page-head,.if-head{min-height:0;align-items:flex-start}.omni-shell{padding-top:18px!important;padding-bottom:18px!important}.omni-grid{height:auto}.rf-shell dialog,.admit-shell dialog{width:calc(100vw - 24px)}.suite-stat-strip,.ff-summary,.admit-metrics,.af-summary,.if-stats,.social-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
