:root {
  color-scheme: light;
  --navy: #16335f;
  --blue: #2463c7;
  --blue-dark: #174f9f;
  --ink: #202b3b;
  --muted: #748096;
  --line: #e5eaf1;
  --canvas: #f4f7fb;
  --white: #fff;
  --soft-blue: #edf4ff;
  --shadow: 0 10px 28px rgba(23, 48, 82, 0.055);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

button, a { font: inherit; }

.app-shell { min-height: 100vh; }

.topbar {
  height: 72px;
  background: var(--white);
  border-bottom: 1px solid #e9edf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.5%;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: white;
  background: linear-gradient(145deg, #2d72d5, #174781);
  border-radius: 11px;
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(36, 99, 199, .2);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { color: #1b3559; letter-spacing: .105em; font-size: 12px; font-weight: 800; }
.brand-copy span { color: #8090a7; font-size: 9px; font-weight: 700; letter-spacing: .18em; margin-top: 5px; }
.topbar-meta { display: flex; align-items: center; gap: 17px; }
.environment-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #dce8f7; background: #f5f9ff; border-radius: 20px; color: #4c678a; padding: 6px 11px; font-size: 11px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #e6a339; box-shadow: 0 0 0 3px #fbf0dc; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #e8eef7; color: #547091; font-size: 11px; font-weight: 700; }

.page-frame { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; padding: 27px 0 18px; color: #8a96a8; font-size: 12px; }
.breadcrumbs strong { color: #506079; font-weight: 600; }
.crumb-divider { color: #c0c9d5; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.eyebrow { color: #8794a7; font-weight: 700; letter-spacing: .14em; font-size: 10px; margin: 0 0 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 800 30px/1.2 'Manrope', 'Segoe UI', sans-serif; color: #192e4e; letter-spacing: -.035em; margin-bottom: 7px; }
.heading-copy { color: #78869a; margin: 0; font-size: 13px; }
.record-chip { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.76); border-radius: 12px; min-width: 260px; }
.record-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #5276a7; background: #edf3fb; font-size: 17px; }
.record-chip small, .record-chip strong { display: block; }
.record-chip small { color: #8a96a8; font-size: 10px; margin-bottom: 2px; }
.record-chip strong { color: #53647c; font-size: 11px; font-weight: 600; }

.prototype-note { display: flex; align-items: center; gap: 10px; border: 1px solid #f2dfb8; background: #fff9ed; color: #78633d; padding: 11px 14px; border-radius: 10px; font-size: 12px; margin-bottom: 19px; }
.prototype-note strong { color: #66512d; }
.note-icon { display: grid; flex: 0 0 19px; place-items: center; width: 19px; height: 19px; border: 1.5px solid #c8983f; border-radius: 50%; color: #a57b2f; font-size: 12px; font-weight: 700; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .85fr); gap: 19px; align-items: start; }
.main-column, .side-column { display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--white); border: 1px solid #e8edf3; border-radius: 13px; box-shadow: var(--shadow); }
.selection-panel, .message-panel, .attachments-panel { padding: 21px 23px; }
.panel-heading { display: flex; align-items: center; gap: 12px; }
.step-number { flex: 0 0 29px; display: grid; place-items: center; height: 29px; width: 29px; border-radius: 9px; background: var(--soft-blue); color: var(--blue); font: 700 13px 'Manrope', sans-serif; }
.panel-heading h2, .summary-heading h2 { color: #243550; font: 700 15px/1.25 'Manrope', sans-serif; margin: 0 0 4px; letter-spacing: -.015em; }
.panel-heading p, .summary-heading p { color: #8a96a8; font-size: 11px; margin: 0; }
.step-tag { margin-left: auto; color: #8895a8; background: #f5f7fa; border-radius: 20px; padding: 5px 9px; font-size: 9px; font-weight: 700; letter-spacing: .07em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 22px 0 0 41px; }
.field-block label { display: block; color: #4d5c72; font-size: 11px; font-weight: 700; margin-bottom: 7px; }
.select-placeholder, .value-placeholder { min-height: 41px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border: 1px solid #e4e9f0; border-radius: 8px; background: #fbfcfe; color: #98a3b2; font-size: 11px; }
.chevron { font-size: 18px; color: #a5afbd; }
.field-hint { display: block; color: #9aa5b3; font-size: 9px; margin-top: 7px; }
.message-heading { margin-bottom: 18px; }
.lock-label { margin-left: auto; color: #8591a3; font-size: 9px; font-weight: 700; letter-spacing: .065em; display: inline-flex; gap: 6px; align-items: center; }
.message-fields { margin-left: 41px; border-top: 1px solid #edf0f4; }
.message-field { display: flex; align-items: center; gap: 15px; min-height: 39px; border-bottom: 1px solid #edf0f4; }
.field-label { width: 46px; color: #8b98aa; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.skeleton-line { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #eef1f5, #f5f7f9); }
.recipient-line { width: 49%; }
.cc-line { width: 34%; }
.subject-line { width: 63%; }
.email-preview { margin: 15px 0 0 41px; border: 1px solid #e7ebf1; border-radius: 9px; overflow: hidden; min-height: 220px; position: relative; background: #fff; }
.preview-toolbar { height: 32px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border-bottom: 1px solid #edf0f4; background: #fafbfd; }
.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: #d2d9e3; }
.preview-title { margin-left: 8px; color: #9aa5b4; font-size: 8px; letter-spacing: .1em; font-weight: 700; }
.preview-content { padding: 18px 19px; opacity: .55; }
.greeting-line { width: 27%; margin-bottom: 19px; }
.body-line { margin-bottom: 10px; height: 7px; }
.body-line.long { width: 92%; }
.body-line.medium { width: 71%; }
.body-line.short { width: 48%; }
.second-paragraph { margin-top: 18px; }
.signoff-line { width: 22%; margin-top: 21px; }
.preview-empty { position: absolute; inset: 32px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.88); text-align: center; padding: 18px; }
.document-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f0f5fc; color: #6484ae; font-size: 17px; margin-bottom: 8px; }
.preview-empty strong { color: #586a83; font-size: 11px; margin-bottom: 3px; }
.preview-empty span:last-child { color: #9aa5b3; font-size: 10px; }
.compact-heading { margin-bottom: 15px; }
.attachment-empty { min-height: 76px; border: 1px dashed #d9e0e9; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #8492a6; font-size: 10px; gap: 3px; }
.attachment-symbol { font-size: 17px; color: #8ca1bd; line-height: 1; }
.attachment-empty small { color: #a0aab7; font-size: 9px; }
.summary-panel { padding: 19px 19px 16px; }
.summary-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid #edf0f4; }
.summary-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; background: #edf6f1; color: #4e9773; font-weight: 800; }
.check-list { list-style: none; margin: 4px 0 15px; padding: 0; }
.check-list li { min-height: 37px; display: flex; align-items: center; gap: 10px; color: #647389; font-size: 11px; border-bottom: 1px solid #f1f3f6; }
.check-circle { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #dce3ec; border-radius: 50%; color: #8896a8; font-size: 9px; }
.summary-footnote { display: flex; gap: 8px; align-items: flex-start; color: #8592a3; background: #f7f9fc; border-radius: 8px; padding: 10px; font-size: 9px; }
.shield-icon { color: #6683aa; font-size: 10px; }
.help-card { display: flex; gap: 11px; padding: 16px; border: 1px solid #e5edf8; border-radius: 12px; background: #f8fbff; }
.help-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 50%; background: #e8f0fc; color: #4c76ae; font-weight: 700; }
.help-card h3 { margin: 1px 0 5px; color: #354d6f; font: 700 12px 'Manrope', sans-serif; }
.help-card p { margin: 0 0 9px; color: #8492a6; font-size: 10px; }
.text-button { padding: 0; border: 0; background: transparent; color: #9aa6b4; font-size: 10px; font-weight: 700; }
.text-button:disabled { cursor: not-allowed; }
.text-button span { margin-left: 3px; }
.action-card { padding: 14px; border: 1px solid #e7ebf1; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.button { width: 100%; min-height: 39px; border-radius: 8px; font-size: 11px; font-weight: 700; margin: 0 0 8px; }
.button:disabled { cursor: not-allowed; opacity: .58; }
.button-secondary { color: #76849a; background: #fff; border: 1px solid #dfe5ed; }
.button-primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.action-card p { margin: 3px 0 0; text-align: center; color: #a0aab7; font-size: 9px; }
.page-footer { display: flex; justify-content: space-between; padding: 24px 2px 30px; color: #9aa5b3; font-size: 9px; }
.footer-separator { padding: 0 5px; color: #c5ccd6; }

@media (max-width: 860px) {
  .topbar { padding: 0 22px; }
  .page-frame { width: min(100% - 36px, 680px); }
  .content-grid { grid-template-columns: 1fr; }
  .side-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .summary-panel { grid-row: span 2; }
}

@media (max-width: 560px) {
  .topbar { height: 62px; padding: 0 16px; }
  .environment-pill { font-size: 0; padding: 8px; }
  .environment-pill .status-dot { margin: 0; }
  .topbar-meta { gap: 10px; }
  .page-frame { width: calc(100% - 28px); }
  .breadcrumbs { padding-top: 18px; font-size: 10px; gap: 7px; }
  .page-heading { display: block; }
  h1 { font-size: 25px; }
  .record-chip { min-width: 0; margin-top: 14px; }
  .selection-panel, .message-panel, .attachments-panel { padding: 17px 15px; }
  .field-grid { grid-template-columns: 1fr; margin-left: 0; }
  .message-fields, .email-preview { margin-left: 0; }
  .step-tag, .lock-label { display: none; }
  .side-column { display: flex; }
  .page-footer { gap: 8px; flex-direction: column; }
}

/* Aba técnica de Comunicados, alinhada à superfície do formulário do card. */
.manual-shell { min-height: 100vh; background: #f0f2f4; color: #171717; }
.manual-header { min-height: 78px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: #101010; border-bottom: 4px solid #f4c542; }
.manual-brand { display: flex; align-items: center; gap: 12px; font-size: 13px; letter-spacing: .04em; }
.manual-brand small { display: block; margin-top: 3px; color: #d5d5d5; font-size: 9px; }
.manual-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #f4c542; color: #111; font-weight: 900; }
.manual-header-label { color: #f4c542; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.manual-page { width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 34px; }
.manual-breadcrumb { margin: 0 0 22px; color: #78818b; font-size: 12px; }
.manual-breadcrumb span { padding: 0 8px; color: #aab0b7; }
.manual-breadcrumb strong { color: #212121; }
[data-pvmail-manual-root] { min-height: 420px; padding: 28px; border: 1px solid #e1e4e8; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(27, 34, 43, .08); }
.manual-communications h2 { margin: 0 0 7px; font-size: 24px; }
.manual-communications > p { color: #69727d; }
.manual-company { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; padding: 16px; border: 1px solid #f1d27a; border-radius: 10px; background: #fffaf0; }
.manual-company h3 { grid-column: 1 / -1; margin: 0; font-size: 14px; }
.manual-company p { margin: 0; font-size: 13px; }
.manual-communications label { display: block; margin: 14px 0; color: #222; font-size: 13px; font-weight: 700; }
.manual-communications label span { display: block; margin-bottom: 7px; }
.manual-communications input, .manual-communications select, .manual-communications textarea { box-sizing: border-box; width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #cfd5dc; border-radius: 8px; color: #20252a; background: #fff; font: inherit; font-weight: 400; }
.manual-communications textarea { min-height: 190px; resize: vertical; }
.manual-communications button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 8px; color: #111; background: #f4c542; font-weight: 800; cursor: pointer; }
.manual-communications button:disabled { opacity: .55; cursor: not-allowed; }
.manual-communications [role="status"] { min-height: 24px; color: #5b6671; }
.manual-communications [role="alert"] { color: #9f2525; }
.manual-page footer { margin-top: 12px; color: #7c858f; font-size: 11px; text-align: right; }
@media (max-width: 560px) { .manual-header { padding: 0 16px; } .manual-page { width: calc(100% - 24px); } [data-pvmail-manual-root] { padding: 18px; } .manual-company { grid-template-columns: 1fr; } }
