/* JNET Communications Redux
   Presentation and interaction enhancements only. Existing mail tables, RPCs,
   storage keys, element IDs, and message data remain authoritative. */

:root {
  --comms-accent: #ef4444;
  --comms-accent-strong: #ff5c5c;
  --comms-accent-soft: rgba(239, 68, 68, .12);
  --comms-green: #49c58b;
  --comms-panel: rgba(10, 12, 18, .96);
  --comms-panel-raised: rgba(15, 17, 24, .97);
  --comms-stroke: rgba(255, 255, 255, .10);
  --comms-stroke-strong: rgba(255, 255, 255, .17);
  --comms-text: rgba(255, 255, 255, .94);
  --comms-muted: rgba(255, 255, 255, .62);
}

body.comms-redux {
  background:
    radial-gradient(900px 640px at 14% 0%, rgba(128, 24, 30, .22), transparent 62%),
    radial-gradient(980px 760px at 100% 100%, rgba(32, 56, 78, .13), transparent 60%),
    #07080c;
}



















.comms-redux .content {
  padding: 14px;
  min-width: 0;
}

.comms-redux .topbar {
  top: 8px;
  padding: 10px 12px;
  min-height: 58px;
  border-radius: 16px;
  background: rgba(9, 10, 15, .91);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.comms-redux .topLabel {
  display: none;
}

.comms-redux .topbarLeft {
  flex: 1 1 380px;
}

.comms-redux .search {
  max-width: 650px;
  min-width: 180px;
  border-radius: 11px;
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
}

.comms-redux .search:focus-within {
  border-color: rgba(239, 68, 68, .62);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .10);
}

.comms-redux .search input {
  font-size: 14px;
}

.comms-redux .topbarRight {
  flex-wrap: nowrap;
  min-width: 0;
}

.comms-redux .topbarRight .pill.node,
.comms-redux .topbarRight .who {
  display: none;
}

.comms-redux .selectBtn {
  min-width: 250px;
  max-width: 360px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.comms-redux .nativeIdentitySelect { display: none; }

.comms-redux .identityPickerBtn {
  min-width: 260px;
  max-width: 380px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comms-redux .identityPickerBtn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.comms-redux .identityPickerModal { width: min(680px, 96vw); }

.comms-redux .identitySearch {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  outline: 0;
  background: rgba(255, 255, 255, .035);
  color: #fff;
  font: 14px/1.2 var(--sans);
}

.comms-redux .identitySearch:focus {
  border-color: rgba(239, 68, 68, .56);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}

.comms-redux .identityList {
  display: grid;
  gap: 5px;
  max-height: min(62vh, 560px);
  overflow-y: auto;
}

.comms-redux .identityRow {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--comms-text);
  text-align: left;
  cursor: pointer;
}

.comms-redux .identityRow:hover,
.comms-redux .identityRow.active {
  border-color: rgba(239, 68, 68, .25);
  background: rgba(239, 68, 68, .08);
}

.comms-redux .identityRow strong,
.comms-redux .identityRow span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.comms-redux .identityRow strong { font: 700 13px/1.25 var(--sans); }
.comms-redux .identityRow span { margin-top: 4px; color: var(--comms-muted); font: 10px/1.25 var(--mono); }
.comms-redux .identityType { align-self: center; color: rgba(255,255,255,.46); font: 700 9px/1 var(--mono); letter-spacing: 1px; }

.comms-redux .commsWrap {
  width: 100%;
}

.comms-redux .commsBox {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--comms-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.comms-redux .commsTitle {
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--comms-stroke);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(239, 68, 68, .08), transparent 38%);
  align-items: center;
}

.comms-redux .commsTitleLeft > div:first-child {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.2px;
  text-transform: none;
}

.comms-redux #commsOpLabel {
  letter-spacing: 1.25px !important;
  color: var(--comms-muted) !important;
}

.comms-redux .commsTitleRight {
  gap: 7px;
}

.comms-redux .commsTitleRight .badge {
  background: rgba(255, 255, 255, .04);
}

.comms-redux .btn,
.comms-redux .tinyBtn {
  min-height: 36px;
  border-radius: 9px;
  letter-spacing: 1.05px;
  font-weight: 700;
}

.comms-redux .btn.primary {
  color: #fff;
  border-color: rgba(255, 92, 92, .72);
  background: linear-gradient(180deg, #e13f46, #b9222b);
  box-shadow: 0 8px 22px rgba(185, 34, 43, .24);
}

.comms-redux .btn.primary:hover {
  background: linear-gradient(180deg, #ed5158, #c52b34);
}

.comms-redux .mailCommandBar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--comms-stroke);
  background: rgba(255, 255, 255, .018);
  scrollbar-width: none;
}

.comms-redux .mailCommandBar::-webkit-scrollbar { display: none; }

.comms-redux .commandGroup {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.comms-redux .commandGroup.end {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.comms-redux .commandDivider {
  width: 1px;
  height: 26px;
  margin: 0 3px;
  background: var(--comms-stroke);
}

.comms-redux .commandBtn,
.comms-redux .commandSelect,
.comms-redux .selectAllWrap {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  font: 700 10px/1 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comms-redux .commandBtn {
  padding: 8px 10px;
  cursor: pointer;
}

.comms-redux .commandBtn:hover:not(:disabled),
.comms-redux .commandBtn.active {
  color: #fff;
  border-color: rgba(255, 255, 255, .11);
  background: rgba(255, 255, 255, .055);
}

.comms-redux .commandBtn.danger:hover:not(:disabled) {
  color: #ff9a9a;
  border-color: rgba(239, 68, 68, .25);
  background: rgba(239, 68, 68, .08);
}

.comms-redux .commandBtn:disabled {
  opacity: .34;
  cursor: not-allowed;
}

.comms-redux .commandSelect {
  padding: 0 28px 0 9px;
  border-color: rgba(255, 255, 255, .09);
  background: #101117;
  cursor: pointer;
}

.comms-redux .selectAllWrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: var(--comms-muted);
}

.comms-redux input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--comms-accent);
}

.comms-redux .mailGrid {
  --wFolders: 216px;
  --wList: 420px;
  grid-template-columns: var(--wFolders) 1px var(--wList) 1px minmax(0, 1fr);
  height: calc(100vh - 204px);
  min-height: 590px;
  border-radius: 0;
  background: #08090d;
}

.comms-redux .splitter {
  background: var(--comms-stroke);
  border: 0;
  position: relative;
}

.comms-redux .splitter::after {
  content: "";
  position: absolute;
  inset: 0 -4px;
}

.comms-redux .panel,
.comms-redux .viewer {
  border: 0;
  border-radius: 0;
  background: rgba(7, 8, 12, .9);
}

.comms-redux .panelHead {
  min-height: 48px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .025);
}

.comms-redux .folders {
  padding: 8px;
  gap: 3px;
  overflow-y: auto;
}

.comms-redux .folderBtn {
  position: relative;
  min-height: 40px;
  padding: 8px 10px 8px 13px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 10px;
}

.comms-redux .folderBtn:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, .055);
}

.comms-redux .folderBtn.active {
  border-color: transparent;
  background: rgba(239, 68, 68, .13);
  box-shadow: inset 3px 0 0 var(--comms-accent);
}

.comms-redux .folderBtn .badge {
  min-width: 24px;
  text-align: center;
  border: 0;
  background: rgba(255, 255, 255, .06);
}

.comms-redux .list {
  padding: 0;
  background: rgba(255, 255, 255, .012);
}

.comms-redux .mailItem {
  position: relative;
  margin: 0;
  padding: 14px 14px 13px 46px;
  min-height: 112px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  border-radius: 0;
  background: transparent;
}

.comms-redux .mailItem:hover {
  border-color: rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .045);
}

.comms-redux .mailItem.active {
  border-color: rgba(255, 255, 255, .07);
  background: linear-gradient(90deg, rgba(239, 68, 68, .13), rgba(239, 68, 68, .045));
  box-shadow: inset 3px 0 0 var(--comms-accent);
}

.comms-redux .mailItem.selected {
  background: rgba(74, 116, 170, .13);
}

.comms-redux .mailSelect {
  position: absolute;
  left: 15px;
  top: 17px;
  z-index: 2;
}

.comms-redux .mailStar {
  position: absolute;
  left: 13px;
  top: 48px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .28);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px;
}

.comms-redux .mailStar.on {
  color: #f4bf4f;
}

.comms-redux .mailTop {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: 1.05px;
}

.comms-redux .mailTop .from {
  max-width: 64%;
}

.comms-redux .mailSubj {
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comms-redux .mailSnip {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  max-height: 2.9em;
  color: rgba(255, 255, 255, .56);
  font-size: 12.5px;
  line-height: 1.43;
}

.comms-redux .mailItem.unread::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--comms-accent-strong);
  box-shadow: 0 0 12px rgba(239, 68, 68, .4);
}

.comms-redux .mailItem.unread .mailTop,
.comms-redux .mailItem.unread .mailSubj {
  color: #fff;
  font-weight: 800;
}

.comms-redux.density-compact .mailItem {
  min-height: 78px;
  padding-top: 10px;
  padding-bottom: 9px;
}

.comms-redux.density-compact .mailSelect { top: 12px; }
.comms-redux.density-compact .mailStar { top: 39px; }
.comms-redux.density-compact .mailSnip { -webkit-line-clamp: 1; max-height: 1.5em; }

.comms-redux .viewer {
  background: #0a0b10;
}

.comms-redux .viewerHead {
  min-height: 74px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .025);
}

.comms-redux .viewerHead > div:first-child {
  min-width: 0;
}

.comms-redux .vhSubj {
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.18;
}

.comms-redux .vhMeta {
  margin-top: 8px;
  letter-spacing: .8px;
  text-transform: none;
}

.comms-redux .viewerBody {
  padding: clamp(18px, 2.2vw, 34px);
}

.comms-redux .viewerBody > .metaLine,
.comms-redux .viewerBody > .bodyText,
.comms-redux .viewerBody > .attWrap {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.comms-redux .metaLine {
  padding: 13px 15px;
  border-style: solid;
  background: rgba(255, 255, 255, .025);
  text-transform: none;
  letter-spacing: .45px;
  line-height: 1.65;
}

.comms-redux .bodyText {
  font-size: 15px;
  line-height: 1.67;
  color: rgba(255, 255, 255, .9);
}

.comms-redux .viewerEmpty {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--comms-muted);
}

.comms-redux .viewerEmpty strong {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .8);
  font: 700 16px/1.2 var(--sans);
}

.comms-redux .viewerQuickActions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.comms-redux .readerStar.on {
  color: #f4bf4f;
  border-color: rgba(244, 191, 79, .28);
}

.comms-redux .conversationWrap {
  width: min(920px, 100%);
  margin: 0 auto;
}

.comms-redux .conversationSummary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0 3px;
  color: var(--comms-muted);
  font: 600 10px/1.2 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comms-redux .conversationSummary strong {
  color: var(--comms-text);
  font-size: 11px;
}

.comms-redux .conversationCard {
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .018);
}

.comms-redux .conversationCard.current {
  border-color: rgba(239, 68, 68, .26);
  background: rgba(239, 68, 68, .035);
}

.comms-redux .conversationCard > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.comms-redux .conversationCard > header strong,
.comms-redux .conversationCard > header span {
  display: block;
}

.comms-redux .conversationCard > header strong { font: 750 13px/1.2 var(--sans); }
.comms-redux .conversationCard > header span { margin-top: 3px; color: var(--comms-muted); font: 10px/1.2 var(--mono); }
.comms-redux .conversationMeta { flex: 0 0 auto; color: var(--comms-muted); font: 700 9px/1.3 var(--mono); letter-spacing: .8px; text-transform: uppercase; }
.comms-redux .conversationSubject { margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .07); color: rgba(255,255,255,.82); font: 700 12px/1.3 var(--sans); }
.comms-redux .conversationContent { margin-top: 15px; }
.comms-redux .conversationContent > .metaLine,
.comms-redux .conversationContent > .bodyText,
.comms-redux .conversationContent > .attWrap { max-width: none; }

.comms-redux .modalBack {
  background: rgba(0, 0, 0, .76);
}

.comms-redux .modal {
  width: min(1040px, 96vw);
  max-height: 92vh;
  border-radius: 16px;
  background: #0e1016;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .7);
}

.comms-redux .modalHead {
  min-height: 58px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .025);
}

.comms-redux .modalBody {
  padding: 18px;
  gap: 12px;
}

.comms-redux .row {
  grid-template-columns: 76px minmax(0, 1fr);
}

.comms-redux .field {
  min-height: 44px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .025);
}

.comms-redux .field:focus-within {
  border-color: rgba(239, 68, 68, .55);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .08);
}

.comms-redux .field textarea {
  min-height: 300px;
  font-size: 15px;
  line-height: 1.6;
}

.comms-redux .composeMetrics {
  margin: -5px 3px 0 auto;
  color: rgba(255, 255, 255, .42);
  font: 600 10px/1 var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.comms-redux .mobilePaneNav,
.comms-redux .mobileBack {
  display: none;
}

.comms-redux .mobileMoreGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.comms-redux .mobileMoreGrid .btn {
  min-height: 52px;
  white-space: normal;
}

@media (max-width: 1380px) {
  
  .comms-redux .mailGrid { --wFolders: 190px; --wList: 360px; }
  .comms-redux .commsTitleRight .badge { display: none; }
}

@media (max-width: 1120px) {
  
  
  
  
  
  
  .comms-redux .content { padding-top: 4px; }
  .comms-redux .mailGrid { height: calc(100vh - 240px); min-height: 560px; }
}

@media (max-width: 980px) {
  .comms-redux .content { padding: 4px 8px 72px; }
  .comms-redux .topbar {
    position: relative;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .comms-redux .topbarLeft { flex-basis: auto; }
  .comms-redux .search { max-width: none; width: 100%; }
  .comms-redux .topbarRight { justify-content: space-between; }
  .comms-redux .topbarRight .pill { display: none; }
  .comms-redux .selectBtn { flex: 1; min-width: 0; max-width: none; }
  .comms-redux .identityPickerBtn { flex: 1; min-width: 0; max-width: none; }
  .comms-redux .commsTitle { align-items: flex-start; }
  .comms-redux .commsTitleRight { flex-wrap: nowrap; }
  .comms-redux #refreshDirBtn,
  .comms-redux #folderManageBtn,
  .comms-redux #manageOrgsBtn { display: none; }
  .comms-redux .mailCommandBar { overflow-x: auto; padding: 7px 8px; }
  .comms-redux .commandGroup { flex-wrap: nowrap; }
  .comms-redux .commandGroup.end { display: none; }
  .comms-redux .mailGrid {
    display: block;
    height: calc(100dvh - 314px);
    min-height: 420px;
    overflow: hidden;
  }
  .comms-redux .mailGrid > .panel,
  .comms-redux .mailGrid > .viewer {
    display: none;
    height: 100%;
  }
  .comms-redux[data-mobile-pane="folders"] .mailGrid > .panel[aria-label="Folders"],
  .comms-redux[data-mobile-pane="messages"] .mailGrid > .panel[aria-label="Message List"],
  .comms-redux[data-mobile-pane="reader"] .mailGrid > .viewer {
    display: flex;
  }
  .comms-redux .mobilePaneNav {
    position: fixed;
    z-index: 120;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(10, 11, 16, .96);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
  }
  .comms-redux .mobilePaneBtn {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .6);
    font: 700 9px/1 var(--mono);
    letter-spacing: .9px;
    text-transform: uppercase;
  }
  .comms-redux .mobilePaneBtn.active {
    color: #fff;
    background: var(--comms-accent-soft);
  }
  .comms-redux .toast { left: 8px; right: 8px; bottom: 74px; }
  .comms-redux .toast .t { max-width: none; text-align: center; }
  .comms-redux .mobileBack {
    display: inline-flex;
    margin-right: 6px;
  }
  .comms-redux .viewerHead { flex-direction: column; }
  .comms-redux .viewerQuickActions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  
  .comms-redux .content { padding-top: 8px; }
  .comms-redux .commsTitleLeft > div:first-child { font-size: 17px; }
  .comms-redux .commsTitleRight .btn:not(.primary) { display: none; }
  .comms-redux .mailCommandBar .commandBtn .commandLabel { display: none; }
  .comms-redux .mailCommandBar .commandBtn { font-size: 14px; min-width: 36px; }
  .comms-redux .selectAllWrap span { display: none; }
  .comms-redux .mailGrid { height: calc(100dvh - 282px); }
  .comms-redux .row { grid-template-columns: 1fr; gap: 5px; }
  .comms-redux .row label { padding: 0 2px; }
  .comms-redux .modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .comms-redux .modalBody { padding: 13px; }
  .comms-redux .field textarea { min-height: 35vh; }
  .comms-redux .viewerBody { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .comms-redux *,
  .comms-redux *::before,
  .comms-redux *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* COMPOSER REDUX — presentation only; existing mail handlers and controls stay intact. */
.comms-redux #composeBack {
  padding: 24px;
  background:
    radial-gradient(circle at 50% 12%, rgba(146, 28, 38, .18), transparent 38%),
    rgba(2, 3, 6, .84);
  backdrop-filter: blur(18px) saturate(.8);
}

.comms-redux #composeBack .composeModal {
  width: min(1120px, calc(100vw - 48px));
  height: min(900px, calc(100dvh - 48px));
  max-height: none;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 26%),
    #101218;
  box-shadow: 0 36px 110px rgba(0,0,0,.76), 0 0 0 1px rgba(239,68,68,.03) inset;
}

.comms-redux #composeBack .composeHeader {
  flex: 0 0 72px;
  min-height: 72px;
  padding: 0 26px;
  border-bottom-color: rgba(255,255,255,.08);
  background: rgba(7,8,12,.58);
}

.comms-redux #composeTitle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.comms-redux #composeTitle strong {
  color: #fff;
  font: 750 20px/1 var(--sans);
  letter-spacing: -.2px;
}

.comms-redux #composeTitle span {
  color: rgba(255,255,255,.42);
  font: 650 9px/1 var(--mono);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.comms-redux #closeCompose {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0 0 2px;
  border-radius: 50%;
  color: rgba(255,255,255,.72);
  font: 300 24px/1 var(--sans);
}

.comms-redux #closeCompose:hover {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
}

.comms-redux #composeBack .composeWorkspace {
  flex: 1 1 auto;
  display: flex;
  padding: 14px 28px 18px;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.comms-redux #composeBack .composeRow {
  grid-template-columns: 72px minmax(0,1fr);
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.comms-redux #composeBack .composeRow > label {
  padding: 0;
  color: rgba(255,255,255,.46);
  font: 700 11px/1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}

.comms-redux #composeBack .composeRow > .field {
  position: relative;
  min-height: 48px;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.comms-redux #composeBack .composeRow > .field:focus-within {
  border: 0;
  box-shadow: none;
}

.comms-redux #composeBack .compose-from {
  min-height: 50px;
}

.comms-redux #composeBack .compose-from select {
  color: rgba(255,255,255,.72);
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0;
}

.comms-redux #composeBack .compose-to .field,
.comms-redux #composeBack .compose-cc .field {
  padding-right: 48px;
}

.comms-redux #composeBack .compose-to .pickInput,
.comms-redux #composeBack .compose-cc .pickInput {
  width: 100%;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 500 14px/1.4 var(--sans);
  letter-spacing: 0;
}

.comms-redux #composeBack .compose-to .pickInput::placeholder,
.comms-redux #composeBack .compose-cc .pickInput::placeholder {
  color: rgba(255,255,255,.34);
}

.comms-redux .composeInlineAction {
  position: absolute;
  top: 10px;
  right: 0;
  min-width: 38px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(255,255,255,.48);
  cursor: pointer;
  font: 700 11px/1 var(--sans);
}

.comms-redux .composeInlineAction:hover,
.comms-redux .composeInlineAction.active {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.comms-redux #composeBack .compose-cc:not(.is-open),
.comms-redux #composeBack .compose-files:not(.is-open),
.comms-redux #composeBack .compose-links:not(.is-open) {
  display: none;
}

.comms-redux #composeBack .compose-subject {
  min-height: 62px;
}

.comms-redux #composeBack .compose-subject input {
  color: #fff;
  font: 700 18px/1.35 var(--sans);
  letter-spacing: -.15px;
}

.comms-redux #composeBack .compose-subject input::placeholder {
  color: rgba(255,255,255,.28);
}

.comms-redux .composeInsertBar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding-left: 84px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.comms-redux .composeTool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.58);
  cursor: pointer;
  font: 650 11px/1 var(--sans);
}

.comms-redux .composeTool span { color: rgba(239,68,68,.9); font-size: 15px; }
.comms-redux .composeTool:hover,
.comms-redux .composeTool.active { color: #fff; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.045); }

.comms-redux .composeInsertStatus {
  margin-left: auto;
  color: rgba(255,255,255,.3);
  font: 650 9px/1 var(--mono);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.comms-redux #composeBack .compose-files,
.comms-redux #composeBack .compose-links {
  padding: 9px 0;
  border-bottom-color: rgba(255,255,255,.055);
}

.comms-redux #composeBack .compose-files > .field,
.comms-redux #composeBack .compose-links > .field {
  padding: 0;
}

.comms-redux #composeBack .compose-files .attRow,
.comms-redux #composeBack .compose-links .attWrap {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}

.comms-redux #composeBack #attPickBtn { display: none; }
.comms-redux #composeBack .attHelp { color: rgba(255,255,255,.35); letter-spacing: .8px; }

.comms-redux #composeBack .compose-links .attWrap > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto auto;
  flex-wrap: nowrap !important;
}

.comms-redux #composeBack #linkInput {
  width: 100% !important;
  padding: 8px 10px;
  border-radius: 7px;
  background: rgba(0,0,0,.2);
}

.comms-redux #composeBack .compose-body {
  flex: 1 0 auto;
  align-items: stretch;
  min-height: 300px;
  padding: 16px 0 8px;
  border-bottom: 0;
}

.comms-redux #composeBack .compose-body > label { padding-top: 7px; }
.comms-redux #composeBack .compose-body > .field { align-items: stretch; }

.comms-redux #composeBack .compose-body textarea {
  min-height: clamp(260px, 37vh, 440px);
  padding: 4px 2px;
  color: rgba(255,255,255,.9);
  font: 400 16px/1.65 var(--sans);
  letter-spacing: 0;
}

.comms-redux #composeBack .compose-body textarea::placeholder { color: rgba(255,255,255,.26); }

.comms-redux #composeBack .composeMetrics {
  margin: -22px 0 8px auto;
  color: rgba(255,255,255,.28);
  font-size: 9px;
  letter-spacing: .7px;
}

.comms-redux #composeBack .compose-signature {
  min-height: 58px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,.075);
  border-bottom: 0;
}

.comms-redux #composeBack .compose-signature .field {
  align-items: center;
  min-height: 48px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}

.comms-redux #composeBack #sigPreview {
  color: rgba(255,255,255,.56) !important;
  font: 500 10px/1.35 var(--sans) !important;
}

.comms-redux #composeBack .composeFooter {
  flex: 0 0 70px;
  min-height: 70px;
  padding: 12px 26px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(7,8,12,.72) !important;
}

.comms-redux #composeBack .composeFooter > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.comms-redux .composeFooterHint {
  color: rgba(255,255,255,.28);
  font: 650 9px/1 var(--mono);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.comms-redux #composeBack #saveDraftBtn,
.comms-redux #composeBack #sendBtn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.comms-redux #composeBack #saveDraftBtn {
  color: rgba(255,255,255,.72);
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
}

.comms-redux #composeBack #sendBtn {
  min-width: 128px;
  border-color: rgba(255,99,108,.82);
  background: linear-gradient(180deg, #f04a53, #c92132);
  box-shadow: 0 8px 26px rgba(201,33,50,.25);
  color: #fff;
}

.comms-redux #composeBack #sendBtn:hover { filter: brightness(1.08); transform: translateY(-1px); }

@media (max-width: 700px) {
  .comms-redux #composeBack { padding: 0; }
  .comms-redux #composeBack .composeModal {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .comms-redux #composeBack .composeHeader {
    flex-basis: 62px;
    min-height: 62px;
    padding: 0 16px;
  }
  .comms-redux #composeTitle strong { font-size: 17px; }
  .comms-redux #composeBack .composeWorkspace { padding: 8px 14px 14px; }
  .comms-redux #composeBack .composeRow {
    grid-template-columns: 54px minmax(0,1fr);
    gap: 6px;
  }
  .comms-redux #composeBack .composeRow > label { padding: 0; }
  .comms-redux .composeInsertBar { padding-left: 58px; }
  .comms-redux .composeInsertStatus { display: none; }
  .comms-redux #composeBack .compose-body {
    display: block;
    min-height: 300px;
    padding-top: 14px;
  }
  .comms-redux #composeBack .compose-body > label {
    display: block;
    margin-bottom: 8px;
  }
  .comms-redux #composeBack .compose-body textarea { min-height: 34vh; }
  .comms-redux #composeBack .composeMetrics { margin-top: -20px; }
  .comms-redux #composeBack .compose-signature { grid-template-columns: 54px minmax(0,1fr); }
  .comms-redux #composeBack .composeFooter {
    flex-basis: 66px;
    min-height: 66px;
    padding: 10px 14px !important;
  }
  .comms-redux .composeFooterHint { display: none; }
  .comms-redux #composeBack #saveDraftBtn,
  .comms-redux #composeBack #sendBtn { min-height: 44px; }
}

/* Standard JNET navigation remains available on narrow screens. */
@media(max-width:1120px){.comms-redux .app{display:block}.comms-redux .rail{display:block;padding:10px;border-right:0}.comms-redux .nav{display:flex;overflow-x:auto;gap:8px}.comms-redux .navBtn{flex:0 0 auto;min-width:190px}.comms-redux .railCard,.comms-redux .railBottom{display:none}}
