/* Deal desk: independent reading and decision panes, always within reach. */
:root {
  background: #fff;
}
body {
  background: #fff;
}
#mail-workspace {
  padding: 0;
  max-width: none;
}
.mail-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 18px;
}
.mail-command h2 {
  font:
    500 clamp(24px, 2.7vw, 38px)/1.12 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 7px 0;
  color: #102b3e;
}
.mail-focus-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f6f3;
  border: 1px solid #dbe7df;
  border-radius: 12px;
  padding: 10px 16px;
}
.mail-focus-stats strong {
  font:
    32px Georgia,
    serif;
  color: #356c56;
}
.mail-focus-stats span {
  font-size: 11px;
  max-width: 90px;
  line-height: 1.5;
}
.mail-focus-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-block: 1px solid #e4e7e6;
}
.mail-focus-toolbar input {
  flex: 1;
  min-width: 140px;
  max-width: 360px;
}
.mail-focus-toolbar select {
  max-width: 220px;
}
.mail-focus-toolbar > a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
  color: #596c72;
}
.mail-focus-tabs {
  display: flex;
  padding: 3px;
  border-radius: 9px;
  background: #f1f3f2;
  gap: 2px;
}
.mail-focus-tabs button {
  border: 0;
  background: transparent;
  font-size: 11px;
  padding: 9px 13px;
  color: #687671;
}
.mail-focus-tabs button[aria-pressed='true'] {
  background: #fff;
  color: #173d30;
  box-shadow: 0 1px 5px #16382818;
  border-radius: 6px;
}
.mail-context-line {
  display: flex;
  gap: 22px;
  padding: 11px 0;
  font-size: 10px;
  color: #62756a;
}
.mail-context-line span:first-child {
  color: #3d785b;
}
.mail-focus-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: calc(100dvh - 240px);
  min-height: 430px;
  border: 1px solid #e0e5e2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.mail-focus-list {
  overflow-y: auto;
  background: #fafbf9;
  border-right: 1px solid #e0e5e2;
  overscroll-behavior: contain;
}
.mail-list-caption {
  padding: 16px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #718075;
}
.mail-focus-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e7ebe7;
  background: transparent;
  border-radius: 0;
  padding: 17px 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 7px;
  color: #243b3e;
  box-shadow: none;
}
.mail-focus-row strong {
  font:
    600 12px/1.5 Arial,
    sans-serif;
}
.mail-focus-row > span:not(.deal-chip),
.mail-focus-row small {
  font-size: 10px;
  color: #6a7d72;
  line-height: 1.5;
}
.mail-focus-row:hover,
.mail-focus-row[aria-selected='true'] {
  background: #edf4ef;
  box-shadow: inset 3px 0 #467c61;
}
.deal-chip {
  display: inline-flex;
  align-self: flex-start;
  background: #e6eee8;
  border: 1px solid #d4e2d8;
  color: #33664c;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.mail-detail {
  padding: 0;
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: white;
}
.mail-review-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.mail-review-heading {
  padding: 18px 22px;
  border-bottom: 1px solid #e7ebe7;
  background: white;
}
.mail-review-heading h3 {
  font:
    500 22px/1.2 Georgia,
    serif;
  margin: 8px 0;
}
.mail-review-heading p {
  font-size: 11px;
  color: #6b7a74;
  margin: 5px 0;
}
.mail-review-columns {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
}
.mail-evidence-pane {
  padding: 22px;
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fbfcfa;
}
.mail-evidence-pane h4,
.mail-decision-pane h4 {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7a72;
}
.mail-evidence-pane .mail-source-text {
  max-height: none;
  margin: 14px 0;
  padding: 0;
  border: 0;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.85 Arial,
    sans-serif;
  color: #263f43;
}
.mail-decision-pane {
  padding: 20px;
  overflow-y: auto;
  min-width: 0;
  overscroll-behavior: contain;
  border-left: 1px solid #e3e8e4;
  background: white;
}
.mail-decision-pane > p {
  font-size: 12px;
  line-height: 1.6;
}
.mail-review-controls {
  position: sticky;
  bottom: -20px;
  background: #fff;
  padding: 14px 0;
  border-top: 1px solid #e2e8e3;
  display: flex;
  gap: 8px;
  z-index: 1;
}
.mail-decision-pane textarea {
  resize: vertical;
  min-height: 170px;
  background: #fbfcfa;
  border: 1px solid #d6dfd8;
  border-radius: 9px;
  padding: 12px;
  line-height: 1.6;
  font-size: 12px;
}
.mail-decision-pane label {
  font-size: 10px;
  color: #61736a;
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
.mail-action-card {
  border: 1px solid #dce6de;
  border-left: 3px solid #8baf96;
  background: #f6f9f6;
  padding: 13px;
  border-radius: 8px;
  margin: 10px 0;
}
.mail-action-card p {
  font-size: 12px;
  line-height: 1.6;
}
.mail-action-card small {
  font-size: 10px;
  color: #718075;
}
.mail-action-card button {
  font-size: 11px;
  margin-top: 9px;
}
.mail-review-state {
  font-size: 10px;
  color: #4d785e;
  letter-spacing: 0.04em;
}
.mail-focus-empty {
  padding: 45px 24px;
  color: #6c7c73;
  font:
    20px/1.5 Georgia,
    serif;
}
.mail-note {
  border-bottom: 1px solid #e5ebe5;
  padding: 10px 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.mail-note small {
  display: block;
  color: #819085;
  font-size: 9px;
}
.mail-comment-form textarea {
  min-height: 75px;
}
.signature-preview {
  white-space: pre-wrap;
  font-size: 10px;
  color: #728076;
  line-height: 1.6;
}
.browser-tool {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d6e2d8;
  border-radius: 12px;
  background: #f7faf7;
}
.browser-tool h3 {
  font:
    20px Georgia,
    serif;
  margin: 0 0 8px;
}
.browser-tool form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.browser-tool input {
  flex: 1;
  min-width: 160px;
}
.browser-receipt {
  border-top: 1px solid #dce6df;
  padding-top: 15px;
  margin-top: 16px;
}
.browser-receipt img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: left;
  border: 1px solid #e2e9e4;
  background: white;
}
.browser-receipt pre {
  white-space: pre-wrap;
  max-height: 180px;
  overflow: auto;
  font:
    11px/1.7 Arial,
    sans-serif;
}
.document-review {
  width: min(1500px, 96vw);
  height: 92dvh;
  max-height: 92dvh;
  border: 1px solid #dce4df;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 25px 100px #142c3f40;
}
.document-review::backdrop {
  background: #102b3e90;
}
.document-review > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid #dde5df;
  background: #fff;
}
.document-review > header strong {
  font:
    20px Georgia,
    serif;
}
.document-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  height: calc(100% - 65px);
}
.document-review-grid iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #e9eeeb;
}
.document-review-notes {
  overflow-y: auto;
  padding: 22px;
  border-left: 1px solid #dce4df;
}
.document-review-notes textarea {
  width: 100%;
  min-height: 140px;
}
.document-review-notes h3 {
  font:
    23px Georgia,
    serif;
}
.file-review-button {
  font-size: 10px;
  margin-left: 8px;
}
@media (min-width: 1600px) {
  .mail-focus-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .mail-review-columns {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  }
}
@media (max-width: 1100px) {
  .mail-focus-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .mail-review-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .mail-focus-toolbar select {
    max-width: 150px;
  }
  .mail-focus-toolbar {
    gap: 6px;
  }
  .mail-evidence-pane,
  .mail-decision-pane {
    padding: 16px;
  }
}
@media (max-width: 850px) {
  .mail-focus-layout {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .mail-focus-list {
    max-height: 250px;
    border-right: 0;
  }
  .mail-review-shell {
    min-height: 650px;
  }
  .mail-review-columns {
    grid-template-columns: 1fr;
  }
  .mail-evidence-pane {
    max-height: 400px;
  }
  .mail-decision-pane {
    border-left: 0;
    border-top: 1px solid #e3e8e4;
    max-height: 650px;
  }
  .mail-focus-toolbar {
    flex-wrap: wrap;
  }
  .mail-command h2 {
    font-size: 28px;
  }
  .mail-context-line {
    flex-wrap: wrap;
    gap: 8px;
  }
  .document-review-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 55% 45%;
  }
  .document-review-notes {
    border-left: 0;
    border-top: 1px solid #dce4df;
  }
}
.mail-command {
  padding: 4px 0 10px;
}
.mail-command h2 {
  font-size: 30px;
  margin: 5px 0;
}
.mail-focus-toolbar {
  padding: 9px 0;
}
.mail-review-heading select {
  max-width: 100%;
  font-size: 11px;
  margin-top: 7px;
}
.mail-focus-empty + p {
  padding: 0 24px;
  font-size: 12px;
  color: #7a887e;
}
.mail-focus-layout {
  min-height: 360px;
}
