:root { --communications-line: rgba(14,35,31,.13); --communications-muted: #687671; --communications-green: #1c755e; }
body { background: #f3f6f4; }
body.communications-loading main { visibility: hidden; }
body.communications-loading.client-portal-shell main { visibility: visible; }
.communications-app-brand { display: inline-flex; align-items: center; gap: .65rem; }
.communications-app-brand i { width: 1px; height: 1.35rem; background: currentColor; opacity: .3; }
.communications-app-brand strong { font-size: .78rem; letter-spacing: .05em; }
.communications-dashboard-link { padding: .68rem .9rem; color: var(--portal-ink); background: #fff; border: 1px solid var(--portal-line); border-radius: 4px; font-size: .82rem; font-weight: 500; text-decoration: none; }
.communications-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 5rem; }
.communications-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-bottom: 1.25rem; }
.communications-head h1 { margin: 0; font-family: var(--portal-heading-font), Georgia, serif; font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; }
.communications-head > div > p:last-child { max-width: 650px; color: var(--communications-muted); line-height: 1.6; }
.communications-number { min-width: 270px; padding: 1.25rem 1.4rem; color: #fff; background: var(--portal-deep); border-radius: 15px; }
.communications-number span, .communications-number small { display: block; color: rgba(255,255,255,.64); font-size: .72rem; font-weight: 700; }
.communications-number strong { display: block; margin: .35rem 0; font-size: 1.55rem; }
.communications-alert { margin-bottom: 1rem; padding: 1rem 1.2rem; color: #624331; background: #fff0e8; border-left: 4px solid #ed805e; border-radius: 8px; font-size: .9rem; font-weight: 700; }
.communications-onboarding-card { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; margin-bottom: 1rem; padding: 1.25rem 1.4rem; color: #fff; background: linear-gradient(120deg,var(--portal-deep),color-mix(in srgb,var(--portal-deep) 78%,var(--portal-accent))); border: 1px solid color-mix(in srgb,var(--portal-accent) 38%,transparent); }
.communications-onboarding-card[hidden] { display: none; }
.communications-onboarding-card h2 { margin: .15rem 0 .35rem; color: #fff; font: 600 1.7rem/1.1 var(--portal-heading-font),Georgia,serif; }
.communications-onboarding-card p:last-child { max-width: 720px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.5; }
.communications-onboarding-card .portal-button { flex: 0 0 auto; color: var(--portal-deep); background: #fff; }
.communications-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.communications-metrics article, .communications-panel { background: #fff; border: 1px solid var(--communications-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10,28,24,.05); }
.communications-metrics article { display: grid; gap: .35rem; padding: 1.15rem; }
.communications-metrics span { color: var(--communications-muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.communications-metrics strong { font-size: 2rem; }
.communications-metrics small { color: var(--communications-muted); }
.communications-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 1rem; margin-bottom: 1rem; }
.communications-panel { margin-bottom: 1rem; padding: clamp(1rem, 3vw, 1.6rem); }
.communications-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.communications-panel h2 { margin: 0; font-family: var(--portal-heading-font), Georgia, serif; font-size: 1.75rem; }
.communications-panel-head > span { color: var(--communications-muted); font-size: .82rem; }
.communications-panel-head > div > p:last-child { margin: .45rem 0 0; color: var(--communications-muted); font-size: .88rem; }
.communications-panel-head h2 span { color: var(--communications-green); }
.communications-ready { max-width: 280px; padding: .48rem .7rem; background: #eef7f4; border-radius: 999px; color: var(--communications-green) !important; font-weight: 800; text-align: center; }
.communications-ready.is-limited { color: #7b4f31 !important; background: #fff0e8; }
.communications-compose-form { display: grid; gap: 1rem; }
.communications-compose-options { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(240px,1fr) minmax(260px,1.25fr); gap: 1rem; align-items: end; }
.communications-compose-options fieldset, .communications-compose-options > label, .communications-message-field { min-width: 0; margin: 0; }
.communications-compose-options fieldset { display: flex; flex-wrap: wrap; gap: .7rem 1rem; padding: .8rem 1rem; border: 1px solid var(--communications-line); }
.communications-compose-options legend, .communications-compose-options > label > span, .communications-message-field > span { color: var(--communications-muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.communications-compose-options fieldset label { display: flex; align-items: center; gap: .4rem; font-size: .86rem; font-weight: 700; }
.communications-compose-options > label, .communications-message-field { display: grid; gap: .45rem; }
.communications-compose-options > label[hidden] { display: none; }
.communications-compose-options select, .communications-compose-options input, .communications-message-field select, .communications-message-field textarea { width: 100%; box-sizing: border-box; padding: .75rem .8rem; color: var(--portal-ink); background: #fff; border: 1px solid var(--communications-line); border-radius: 8px; font: inherit; }
.communications-message-field textarea { resize: vertical; line-height: 1.55; }
.communications-message-field small { justify-self: end; color: var(--communications-muted); }
.communications-compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.communications-compose-footer p { margin: 0; color: var(--communications-muted); font-size: .84rem; }
.communications-compose-footer p.is-error { color: #9a352c; }
.communications-compose-footer p.is-success { color: var(--communications-green); font-weight: 800; }
.communications-compose-actions { display: flex; flex: 0 0 auto; gap: .65rem; }
.communications-preview-dialog { width: min(920px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; color: var(--portal-ink); background: #eef2f0; box-shadow: 0 28px 90px rgba(10,28,24,.3); }
.communications-preview-dialog::backdrop { background: rgba(9,24,20,.68); backdrop-filter: blur(5px); }
.communications-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.35rem; background: #fff; border-bottom: 1px solid var(--communications-line); }
.communications-preview-head h2 { margin: .1rem 0; font-family: var(--portal-heading-font),Georgia,serif; font-size: 1.7rem; }
.communications-preview-head p:last-child { margin: .25rem 0 0; color: var(--communications-muted); font-size: .82rem; }
.communications-preview-head button { padding: .55rem .8rem; color: var(--portal-ink); background: #fff; border: 1px solid var(--communications-line); cursor: pointer; }
.communications-preview-browser { margin: 1.2rem; overflow: hidden; background: #fff; border: 1px solid var(--communications-line); border-radius: 12px; box-shadow: 0 12px 35px rgba(10,28,24,.08); }
.communications-preview-browser > div { display: flex; align-items: center; gap: .4rem; height: 38px; padding: 0 .8rem; color: var(--communications-muted); background: #f7f8f7; border-bottom: 1px solid var(--communications-line); font-size: .72rem; }
.communications-preview-browser > div span { width: 8px; height: 8px; background: #c8d0cc; border-radius: 50%; }
.communications-preview-browser > div strong { overflow: hidden; margin-left: .4rem; text-overflow: ellipsis; white-space: nowrap; }
.communications-preview-browser iframe { display: block; width: 100%; height: min(680px, calc(100vh - 190px)); background: #f2f4f3; border: 0; }
.communications-review-actions { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(240px,.65fr); gap: 1rem; padding: 0 1.2rem 1.2rem; }
.communications-test-email, .communications-live-send { display: grid; gap: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--communications-line); }
.communications-test-email { grid-template-columns: minmax(220px,1fr) auto; align-items: end; }
.communications-test-email > div, .communications-live-send > div { display: grid; gap: .4rem; }
.communications-test-email h3, .communications-live-send h3 { margin: 0; font-family: var(--portal-heading-font),Georgia,serif; font-size: 1.25rem; }
.communications-test-email > div > p, .communications-live-send p { margin: 0 0 .3rem; color: var(--communications-muted); font-size: .78rem; line-height: 1.45; }
.communications-test-email label { color: var(--communications-muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.communications-test-email input { width: 100%; box-sizing: border-box; padding: .75rem .8rem; color: var(--portal-ink); background: #fff; border: 1px solid var(--communications-line); border-radius: 8px; font: inherit; }
.communications-test-email p { grid-column: 1 / -1; margin: 0; color: var(--communications-muted); font-size: .78rem; }
.communications-test-email p.is-error { color: #9a352c; }
.communications-test-email p.is-success { color: var(--communications-green); font-weight: 800; }
.communications-test-button { color: var(--portal-deep); background: #fff; border: 1px solid var(--communications-line); white-space: nowrap; }
.communications-live-send { align-content: space-between; color: #fff; background: var(--portal-deep); }
.communications-live-send h3 { color: #fff; }
.communications-live-send p { color: rgba(255,255,255,.72); }
.communications-live-send .portal-button { color: var(--portal-deep); background: #fff; }
.communications-join-tools { display: grid; grid-template-columns: 1.3fr .7fr 1fr; gap: .8rem; }
.communications-join-tools > div { min-width: 0; padding: 1rem; background: #f6f8f7; border-radius: 10px; }
.communications-join-tools span, .communications-join-tools small { display: block; color: var(--communications-muted); font-size: .72rem; }
.communications-join-tools strong { display: block; overflow: hidden; margin: .55rem 0; font-size: .9rem; text-overflow: ellipsis; }
.communications-join-tools button, .communications-join-tools a { padding: 0; color: var(--communications-green); background: none; border: 0; font-size: .75rem; font-weight: 800; cursor: pointer; }
.communications-join-tools img { display: block; width: 92px; height: 92px; margin: .5rem 0; background: #fff; }
.communications-topic-list { display: grid; gap: .6rem; }
.communications-topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .7rem; padding: .8rem; background: #f6f8f7; border-radius: 8px; }
.communications-topic strong, .communications-topic small { display: block; }
.communications-topic small { margin-top: .25rem; color: var(--communications-muted); line-height: 1.4; }
.communications-topic span { color: var(--communications-green); font-weight: 800; }
.communications-table-wrap { overflow-x: auto; }
.communications-panel table, .communications-campaign-dialog table { width: 100%; border-collapse: collapse; }
.communications-panel th, .communications-panel td, .communications-campaign-dialog th, .communications-campaign-dialog td { padding: .85rem; border-bottom: 1px solid var(--communications-line); text-align: left; font-size: .84rem; }
.communications-panel th, .communications-campaign-dialog th { color: var(--communications-muted); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.communications-subscriber-name strong, .communications-subscriber-name small { display: block; }
.communications-subscriber-name small { margin-top: .2rem; color: var(--communications-muted); }
.communications-channel { display: inline-block; margin: .12rem; padding: .25rem .45rem; color: var(--communications-green); background: #e8f5f0; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.communications-channel.is-off { color: #7c6760; background: #f3ece9; }
.communications-empty { padding: 1.25rem; color: var(--communications-muted); background: #f6f8f7; border-radius: 9px; }
.communications-activity { display: grid; gap: .6rem; }
.communications-activity-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: .8rem; border-bottom: 1px solid var(--communications-line); font-size: .82rem; }
.communications-activity-row span { color: var(--communications-muted); }
.communications-status { position: fixed; inset: 0; display: grid; place-items: center; color: var(--portal-ink); background: #f3f6f4; font-weight: 800; }
body:not(.communications-loading) .communications-status { display: none; }

/* Tenant portal hosts inherit the client's saved design system. The unbound
   N3XRA route intentionally keeps the standard N3XRA portal treatment above. */
body.communications-tenant-surface {
  --communications-line: color-mix(in srgb, var(--portal-deep) 18%, transparent);
  --communications-muted: color-mix(in srgb, var(--portal-deep) 62%, white);
  --communications-green: var(--portal-accent);
  color: var(--portal-deep);
  background: color-mix(in srgb, var(--portal-accent) 10%, #f7f2e4);
}
.communications-tenant-surface .site-topbar {
  color: #fff;
  background: var(--portal-deep);
  border-bottom-color: color-mix(in srgb, var(--portal-accent) 32%, transparent);
}
.communications-tenant-surface .site-brand {
  color: #fff;
  font-family: var(--portal-body-font), Arial, sans-serif;
  letter-spacing: .2em;
}
.communications-tenant-surface .site-brand img { width: 54px; height: 42px; }
.communications-tenant-surface .communications-dashboard-link,
.communications-tenant-surface .portal-logout {
  color: #fff;
  background: transparent;
  border-color: rgba(255,255,255,.42);
  border-radius: 4px;
  letter-spacing: normal;
  text-transform: none;
}
.communications-tenant-surface .communications-shell { padding-top: 0; }
.communications-tenant-surface .communications-head {
  position: relative;
  margin: 0 calc(50% - 50vw) 1.4rem;
  padding: clamp(3.5rem, 8vw, 7.5rem) max(1rem, calc((100vw - 1180px) / 2));
  color: #fff;
  background: var(--portal-deep);
  overflow: hidden;
}
.communications-tenant-surface .communications-head::after {
  content: none;
}
.communications-tenant-surface .communications-head > div { position: relative; z-index: 1; }
.communications-tenant-surface .communications-head h1 {
  max-width: 850px;
  color: #fff;
  font-weight: 400;
  letter-spacing: -.045em;
}
.communications-tenant-surface .communications-head > div > p:last-child { color: rgba(255,255,255,.68); }
.communications-tenant-surface .portal-kicker { color: var(--portal-accent); letter-spacing: .18em; }
.communications-tenant-surface .communications-number {
  background: color-mix(in srgb, var(--portal-deep) 86%, var(--portal-accent));
  border: 1px solid color-mix(in srgb, var(--portal-accent) 38%, transparent);
  border-radius: 0;
  box-shadow: none;
}
.communications-tenant-surface .communications-metrics article,
.communications-tenant-surface .communications-panel {
  background: color-mix(in srgb, #fff 91%, var(--portal-accent));
  border-color: var(--communications-line);
  border-radius: 0;
  box-shadow: 0 18px 45px color-mix(in srgb, var(--portal-deep) 8%, transparent);
}
.communications-tenant-surface .communications-metrics article { border-top: 3px solid var(--portal-accent); }
.communications-tenant-surface .communications-panel h2 { font-weight: 400; letter-spacing: -.02em; }
.communications-tenant-surface .communications-join-tools > div,
.communications-tenant-surface .communications-topic,
.communications-tenant-surface .communications-empty {
  background: color-mix(in srgb, var(--portal-accent) 8%, #fff);
  border-radius: 0;
}
.communications-tenant-surface .communications-join-tools button,
.communications-tenant-surface .communications-join-tools a,
.communications-tenant-surface .communications-topic span { color: color-mix(in srgb, var(--portal-accent) 70%, var(--portal-deep)); }
.communications-tenant-surface .communications-channel {
  color: var(--portal-deep);
  background: color-mix(in srgb, var(--portal-accent) 28%, #fff);
}
.communications-tenant-surface .communications-status { color: #fff; background: var(--portal-deep); }

/* Communications participates in the same shared client workspace as the
   Apps Dashboard and other portal sections. The workspace pagebar owns the
   page title; the product content starts with the actionable number status. */
.client-portal-shell .communications-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--portal-ink);
  background: transparent;
  overflow: visible;
}
.client-portal-shell .communications-head > div:first-child { display: none; }
.client-portal-shell .communications-number { width: min(100%, 320px); }
.client-portal-shell .communications-status {
  inset: auto 1rem 1rem auto;
  display: block;
  place-items: initial;
  z-index: 100;
  max-width: min(28rem, calc(100vw - 2rem));
  padding: .8rem 1rem;
  color: var(--portal-ink);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--portal-line);
  border-radius: .8rem;
  box-shadow: 0 12px 36px rgba(14,23,35,.14);
  font-size: .88rem;
  text-align: left;
}
.client-portal-shell.communications-tenant-surface {
  --communications-line: var(--client-workspace-border);
  --communications-muted: var(--portal-muted);
  --communications-green: var(--portal-accent);
  background: var(--client-workspace-surface);
}
.client-portal-shell.communications-tenant-surface .portal-kicker { color: var(--portal-muted); }
.client-portal-shell .communications-metrics article,
.client-portal-shell .communications-panel {
  background: var(--client-workspace-panel);
  border-color: var(--client-workspace-border);
  box-shadow: none;
}
.client-portal-shell .communications-metrics article { border-top: 1px solid var(--client-workspace-border); }
.client-portal-shell .communications-join-tools > div,
.client-portal-shell .communications-topic,
.client-portal-shell .communications-empty { background: #f5fafb; }
.client-portal-shell .communications-panel th,
.client-portal-shell .communications-panel td,
.client-portal-shell .communications-activity-row { border-bottom-color: var(--client-workspace-border); }
.client-portal-shell .communications-compose-options select,
.client-portal-shell .communications-compose-options input,
.client-portal-shell .communications-message-field textarea { border-color: var(--client-workspace-border); }

@media (max-width: 850px) { .communications-metrics { grid-template-columns: repeat(2, 1fr); } .communications-grid, .communications-head, .communications-compose-options { grid-template-columns: 1fr; } .communications-number { min-width: 0; } .communications-join-tools { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .communications-review-actions { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .communications-app-brand strong, .communications-app-brand i, .communications-dashboard-link { display: none; } .communications-metrics { grid-template-columns: 1fr; } .communications-onboarding-card, .communications-compose-footer { align-items: stretch; flex-direction: column; } .communications-compose-actions { display: grid; grid-template-columns: 1fr; } .communications-panel-head { align-items: start; flex-direction: column; } .communications-activity-row { grid-template-columns: 80px minmax(0, 1fr); } .communications-activity-row > :last-child { grid-column: 2; } .communications-preview-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); } .communications-preview-browser { margin: .5rem; } .communications-review-actions { padding: .5rem; } .communications-test-email { grid-template-columns: 1fr; } .communications-test-email p { grid-column: 1; } }

#communications-journal-help{justify-self:start;margin-bottom:1rem;font-size:.82rem;line-height:1.5}

[data-communications-view][hidden] { display: none !important; }
.communications-workspace-nav { display:flex; gap:.65rem; flex-wrap:wrap; margin:0 0 1.5rem; }
.communications-workspace-nav button,.communications-pagination button,.communications-pagination a { border:1px solid var(--communications-line); background:#fff; color:var(--portal-ink,#17231b); padding:.8rem 1.1rem; font:inherit; font-weight:700; cursor:pointer; text-decoration:none; }
.communications-workspace-nav button[aria-current="page"] { background:var(--portal-deep,#17231b); border-color:var(--portal-deep,#17231b); color:#fff; }
.communications-campaign-row { display:flex; width:100%; align-items:center; justify-content:space-between; gap:1.5rem; text-align:left; padding:1.3rem 0; border:0; border-bottom:1px solid var(--communications-line); background:transparent; font:inherit; color:var(--portal-ink,#17231b); cursor:pointer; }
.communications-campaign-row:hover { background:var(--communications-paper,#f5f8f6); }
.communications-campaign-row small { display:block; margin-top:.4rem; color:var(--communications-muted); }
.communications-campaign-status { text-transform:capitalize; }
.communications-pagination { display:flex; align-items:center; gap:1rem; margin-top:1.2rem; flex-wrap:wrap; }
.communications-pagination button:disabled { opacity:.45; cursor:default; }
.communications-campaign-dialog { width:min(1100px,94vw); max-height:90vh; border:1px solid var(--communications-line); padding:2rem; background:#fff; color:var(--portal-ink,#17231b); }
.communications-campaign-dialog::backdrop { background:rgba(10,28,24,.65); }
.communications-campaign-dialog header { display:flex; justify-content:space-between; gap:1rem; align-items:start; }
.communications-campaign-dialog header button { padding:.65rem 1rem; background:#fff; border:1px solid var(--communications-line); font:inherit; cursor:pointer; }
.communications-campaign-dialog iframe { width:100%; height:500px; border:1px solid var(--communications-line); }
.communications-campaign-dialog td small { display:block; }
.communications-original-message { white-space:pre-wrap; line-height:1.7; }
.communications-delivery-summary { display:flex; flex-wrap:wrap; gap:1rem; padding:1rem 0; }
@media(max-width:700px) { .communications-campaign-row { align-items:start; flex-direction:column; gap:.65rem; } .communications-campaign-dialog { padding:1rem; } }

.communications-retry-area { padding:1rem; margin-bottom:1.5rem; background:#f6f8f7; border:1px solid var(--communications-line); }

/* Phone layouts: readable controls and bounded workspaces. */
@media(max-width:600px){
 .communications-panel{min-width:0;padding:18px 14px}
 .communications-compose-options>*{min-width:0}
 .communications-workspace-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .communications-workspace-nav button{min-height:48px;padding:12px 8px;font-size:14px}
 .communications-panel input:not([type=checkbox]),.communications-panel select,.communications-panel textarea,.communications-preview-dialog input{font-size:16px;min-width:0;max-width:100%}
 .communications-campaign-row strong,.communications-campaign-dialog h2{overflow-wrap:anywhere}
 .communications-campaign-dialog,.communications-preview-dialog{max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto}
 .communications-table-wrap{max-width:100%;overscroll-behavior-x:contain}
 .communications-panel button,.communications-campaign-dialog button,.communications-review-actions button{min-height:44px}
 .communications-campaign-dialog header{flex-wrap:wrap}
 .communications-send-channels label{min-height:44px}
}

.communications-photo-item { display:flex; align-items:center; gap:16px; padding:16px 0; border-bottom:1px solid #dfe5e2; }
.communications-photo-item > img { width:110px; height:auto; max-height:150px; object-fit:contain; }
.communications-photo-item > div { flex:1; min-width:0; }
.communications-photo-item strong { display:block; overflow-wrap:anywhere; }
.communications-photo-item label { display:block; margin:8px 0; }
.communications-photo-item input { width:100%; }
.communications-photo-mode { display:flex; align-items:center; gap:8px; }
.communications-photo-mode input { width:auto; }
@media (max-width:600px) { .communications-photo-item { flex-wrap:wrap; } .communications-photo-item > img { width:80px; } }

#communications-photos-field[hidden] { display:none; }

/* Forms overview uses the same restrained workspace hierarchy as message history. */
.communications-forms-panel .communications-panel-head{align-items:start;margin-bottom:24px}
.communications-forms-panel .communications-panel-head .portal-button{flex-shrink:0}
.communications-forms-columns,.communications-form-row{display:grid;grid-template-columns:minmax(0,1fr) 160px 100px;gap:24px;align-items:center}
.communications-forms-columns{padding:0 0 12px;border-bottom:1px solid var(--communications-line);font-size:12px;font-weight:700;color:var(--communications-muted)}
.communications-form-row{padding:22px 0;border-bottom:1px solid var(--communications-line)}
.communications-form-row h3{font:700 15px/1.5 Manrope,Arial,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}
.communications-form-state,.communications-form-activity{font-size:13px;line-height:1.6;color:var(--communications-muted)}
.communications-form-activity strong,.communications-form-activity small{display:block}
.communications-form-activity strong{font-weight:600;color:var(--portal-ink)}
.communications-form-link{font-size:13px;font-weight:700;color:var(--portal-ink);text-underline-offset:4px;text-align:right}
.communications-forms-note,.communications-forms-empty{color:var(--communications-muted);font-size:13px;line-height:1.7;margin:22px 0 0}
.communications-forms-empty{padding:12px 0 24px}
@media(max-width:700px){.communications-forms-columns{display:none}.communications-form-row{grid-template-columns:minmax(0,1fr) auto;gap:10px 20px}.communications-form-activity{grid-column:1;grid-row:2}.communications-form-link{grid-column:2;grid-row:1 / span 2}.communications-forms-panel .communications-panel-head{gap:18px}}

/* Keep identity colors, panel geometry and primary controls consistent across apps. */
.client-portal-shell .communications-panel{border-radius:0;box-shadow:none}
.communications-workspace-nav button{border-radius:4px;min-height:46px}
.communications-tenant-surface .communications-compose .communications-panel-head h2 span{color:var(--portal-ink)}
.communications-forms-panel .communications-panel-head{padding-bottom:20px;border-bottom:1px solid var(--communications-line)}
.communications-form-link{min-height:44px;display:inline-flex;align-items:center;justify-content:flex-end}
.communications-archived-forms{margin-top:22px;border-top:1px solid var(--communications-line)}
.communications-archived-forms>summary{display:flex;justify-content:space-between;gap:16px;padding:18px 0;list-style:none;cursor:pointer;font-size:14px;font-weight:700}
.communications-archived-forms>summary::-webkit-details-marker{display:none}
.communications-archived-forms>summary::after{content:'Show';font-size:13px;text-decoration:underline;text-underline-offset:4px}
.communications-archived-forms[open]>summary::after{content:'Hide'}
.communications-archived-forms>summary:focus-visible{outline:3px solid #517d97;outline-offset:3px}
