/* Fax Console hero demo (assets/js/fax-console-demo.js).
   Values come from the design mockup "Landing page with live Fax Console demo". */

.fcd-mount { font-family: Inter, system-ui, -apple-system, sans-serif; color: var(--ink); }
.fcd-mount--hero { margin-top: 56px; min-height: 790px; scroll-margin-top: 6rem; }
.fcd-mount--panel { min-height: 560px; }
:where(.fcd-mount) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.fcd-mount) :where(button) { cursor: pointer; }
:where(.fcd-mount) :where(button:disabled) { cursor: default; }
.fcd-mount input::placeholder, .fcd-mount textarea::placeholder { color: #6b7480; }
.fcd-mount :focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
:where(.fcd-mount) svg { flex: none; }
/* the host page pads every <section>; the demo uses sections for structure only */
.fcd-mount section { padding: 0; }
.fcd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fcd-grow { flex: 1 1 auto; }
.fcd-minw0 { min-width: 0; }

/* ---------- window ---------- */
.fcd-stage { position: relative; }
.fcd-win {
  position: relative; container: fcdwin / inline-size; border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid rgba(34,34,34,.16);
  /* layered: contact edge + short drop + even all-round lift (no long downward spill onto the tasks row below) */
  box-shadow: 0 1px 2px rgba(34,34,34,.08), 0 6px 16px -4px rgba(34,34,34,.14), 0 16px 32px -14px rgba(34,34,34,.20), 0 0 48px -8px rgba(34,34,34,.16);
  transition: box-shadow .35s ease, transform .35s ease;
}
.is-live .fcd-win { box-shadow: 0 0 0 4px rgba(180,35,45,.14), 0 1px 2px rgba(34,34,34,.08), 0 8px 20px -4px rgba(34,34,34,.16), 0 20px 36px -14px rgba(34,34,34,.24), 0 0 56px -8px rgba(34,34,34,.18); transform: translateY(-4px); }

.fcd-chrome { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; background: #f6f8fa; border-bottom: 1px solid rgba(34,34,34,.09); }
.fcd-dots { display: flex; gap: 7px; }
.fcd-dots span { width: 11px; height: 11px; border-radius: 50%; background: #d3d8de; }
.fcd-url { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid rgba(34,34,34,.09); font-size: 13px; color: var(--muted); }
.fcd-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcd-livegrp {
  flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; white-space: nowrap; overflow: hidden;
  max-width: 0; margin-left: -14px; opacity: 0; visibility: hidden;
  transition: max-width .35s ease, margin-left .35s ease, opacity .25s ease, visibility .35s;
}
.is-live .fcd-livegrp { max-width: 360px; margin-left: 0; opacity: 1; visibility: visible; }
.fcd-livebadge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: #e7f4ec; color: #15663a; font-size: 12.5px; font-weight: 600; }
.fcd-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: fcdPulse 1.8s ease-out infinite; }
@keyframes fcdPulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,87,.5); } 70% { box-shadow: 0 0 0 7px rgba(31,157,87,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,87,0); } }
.fcd-btn-xs { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; border: 1px solid rgba(34,34,34,.16); background: #fff; font-size: 12.5px; font-weight: 600; }

.fcd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 18px; border-bottom: 1px solid rgba(34,34,34,.09); background: #fff; }
.fcd-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fcd-brand img { height: 26px; width: auto; display: block; }
.fcd-brand span { padding-left: 12px; border-left: 1px solid rgba(34,34,34,.14); font-size: 13px; color: var(--muted); white-space: nowrap; }
.fcd-search { flex: 1 1 240px; max-width: 440px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #8a919b; border-radius: 8px; background: #fff; color: var(--muted); }
.fcd-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,35,45,.18); }
.fcd-search input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0; font-size: 14px; color: var(--ink); background: transparent; }
.fcd-search input:focus { outline: none; }
.fcd-search input::-webkit-search-cancel-button, .fcd-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.fcd-clear { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #e6e9ed; color: #46505c; }
.fcd-clear:hover { background: #d3d8de; color: var(--ink); }
.fcd-primary { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; margin: 0; padding: 10px 16px; border: 0; border-radius: 7px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 22px -12px rgba(180,35,45,.6); }
.fcd-primary:hover { background: var(--red-dark); }
.fcd-primary--send { min-height: 44px; padding: 8px 20px; gap: 9px; font-size: 15px; }

/* ---------- body: sidebar + content ---------- */
.fcd-body { display: flex; flex-wrap: wrap; height: 600px; overflow-y: auto; }
.fcd-side { flex: 1 1 240px; min-width: 0; padding: 16px 12px; border-right: 1px solid rgba(34,34,34,.09); background: #fbfcfd; display: flex; flex-direction: column; gap: 4px; }
.fcd-main { flex: 999 1 560px; min-width: 0; height: 600px; overflow-y: auto; background: #fff; container: fcdmain / inline-size; }
/* panels: no sidebar, shorter body */
.fcd-win--panel .fcd-body, .fcd-win--panel .fcd-main { height: var(--fcd-fit-h, 440px); }
.fcd-win--panel .fcd-main { flex: 1 1 100%; }
.fcd-win--panel .fcd-top { padding: 10px 14px; gap: 10px 14px; }
.fcd-win--panel .fcd-search { flex: 1 1 160px; margin: 0 0 0 auto; }

.fcd-row:hover { background: #f6f8fa !important; }

.fcd-line { position: relative; margin: 0 4px 14px; }
.fcd-line-btn { width: 100%; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px 6px 12px; border: 1px solid #8a919b; border-radius: 8px; background: #fff; text-align: left; }
.fcd-line-txt { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.fcd-line-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-line-num { display: block; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.fcd-pop { background: #fff; border: 1px solid rgba(34,34,34,.12); border-radius: 12px; box-shadow: 0 24px 48px -20px rgba(34,34,34,.45); }
.fcd-line-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 8; width: 280px; padding: 6px; }
.fcd-pop-h { margin: 6px 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fcd-line-opt { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0 0 4px; padding: 8px 10px; border: 0; border-radius: 8px; background: #fff; text-align: left; }
.fcd-line-opt.is-on { background: #fbeaec; }
.fcd-line-opt-l { display: block; font-size: 14px; font-weight: 600; }
.fcd-line-opt-n { display: block; font-size: 12.5px; color: var(--muted); }
.fcd-pop-foot { margin: 6px 4px 2px; padding: 10px 6px 4px; border-top: 1px solid rgba(34,34,34,.08); font-size: 12px; line-height: 1.45; color: var(--muted); }
.fcd-pill { padding: 2px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.fcd-pill--nav { min-width: 22px; padding: 1px 7px; font-size: 12px; text-align: center; }
.fcd-pill--sm { min-width: 20px; padding: 0 6px; text-align: center; }

.fcd-nav { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; font-size: 14px; font-weight: 500; text-align: left; }
.fcd-nav.is-on { background: #fbeaec; color: var(--red-dark); font-weight: 600; }
.fcd-nav-inbox { display: flex; align-items: center; border-radius: 7px; }
.fcd-nav-inbox.is-on { background: #fbeaec; }
.fcd-nav-inbox .fcd-nav { flex: 1 1 auto; min-width: 0; padding-left: 6px; background: transparent; }
.fcd-chev-btn { flex: none; display: grid; place-items: center; width: 34px; height: 40px; padding: 0 0 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.fcd-chev { transition: transform .2s ease; }
.fcd-chev.is-collapsed { transform: rotate(-90deg); }

.fcd-folders { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px 21px; padding-left: 8px; border-left: 1px solid rgba(34,34,34,.12); }
.fcd-frow { position: relative; }
.fcd-fbtn { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; font-weight: 500; text-align: left; transition: background-color .12s ease, box-shadow .12s ease; }
.fcd-fbtn[data-on="true"] { background: #fbeaec; color: var(--red-dark); font-weight: 600; }
.fcd-frow:hover .fcd-fbtn[data-on="false"], .fcd-fbtn[data-on="false"]:focus-visible { background: #eceff3; box-shadow: inset 0 0 0 1px rgba(34,34,34,.06); }
.fcd-frow:hover .fcd-fbtn[data-on="true"] { background: #f6dde0; }
.fcd-fname { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-count { flex: none; display: inline-flex; justify-content: flex-end; min-width: 24px; }
.fcd-ftotal { font-size: 12px; color: var(--muted); }
.fcd-more { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; opacity: 0; transition: opacity .15s; }
.fcd-more.is-open { opacity: 1; color: var(--red); }
.fcd-frow:hover .fcd-more, .fcd-frow:focus-within .fcd-more { opacity: 1; }
.fcd-frow:hover .fcd-count, .fcd-frow:focus-within .fcd-count { visibility: hidden; }
.fcd-more:hover, .fcd-more:focus-visible { color: var(--red); }
@media (hover: none) { .fcd-more { opacity: 1; } .fcd-count { visibility: hidden; } }

.fcd-menu { position: absolute; right: 0; top: calc(100% + 2px); z-index: 8; width: 210px; padding: 6px; border-radius: 10px; box-shadow: 0 20px 40px -18px rgba(34,34,34,.45); }
.fcd-menu-item { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 7px; background: #fff; font-size: 13.5px; font-weight: 500; text-align: left; }
.fcd-menu-item.is-danger { color: var(--red-dark); }
.fcd-confirm { padding: 6px 6px 4px; }
.fcd-confirm-t { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; overflow-wrap: anywhere; }
.fcd-confirm-d { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fcd-pair { display: flex; gap: 6px; }
.fcd-sm { flex: 1 1 auto; min-height: 34px; padding: 5px 10px; border: 1px solid rgba(34,34,34,.18); border-radius: 7px; background: #fff; font-size: 12.5px; font-weight: 600; }
.fcd-sm--dark { border: 0; background: var(--ink); color: #fff; }
.fcd-sm--red { border: 0; background: var(--red); color: #fff; }
.fcd-sm--done { flex: none; min-height: 32px; padding: 4px 14px; border-radius: 6px; }
.fcd-inline-form { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; }
.fcd-inline-form--new { padding: 6px 4px 4px; }
.fcd-input-sm { width: 100%; box-sizing: border-box; min-height: 36px; padding: 6px 9px; border: 1px solid #8a919b; border-radius: 7px; font-size: 13px; background: #fff; }
.fcd-newfolder { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; }

/* ---------- lists ---------- */
.fcd-listhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 14px; }
.fcd-listhead--block { display: block; }
.fcd-h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.fcd-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.fcd-sub--sm { font-size: 12.5px; }
.fcd-sub--xs { margin: 0; font-size: 12px; }
.fcd-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 7px; border: 1px solid rgba(34,34,34,.18); background: #fff; font-size: 13.5px; font-weight: 600; }
.fcd-btn:hover:not(:disabled) { background: #f6f8fa; }
.fcd-btn--lg { min-height: 42px; padding: 8px 22px; font-size: 14px; font-weight: 500; }
.fcd-btn--lg:disabled { opacity: .5; }
.fcd-btn--foot { min-height: 44px; padding: 8px 28px; font-size: 14.5px; font-weight: 500; }
.fcd-btn--pv { padding: 8px 18px; font-weight: 600; }

.fcd-thead { padding: 8px 22px; border-top: 1px solid rgba(34,34,34,.08); font-size: 12px; font-weight: 600; color: var(--muted); }
.fcd-grid-in { display: grid; grid-template-columns: 14px minmax(0, 1.25fr) minmax(0, 1.5fr) 84px 64px 84px; gap: 14px; }
.fcd-grid-sent { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.5fr) 128px 88px; gap: 14px; }
.fcd-list { list-style: none; margin: 0; padding: 0; }
.fcd-list > li { border-top: 1px solid rgba(34,34,34,.07); }
.fcd-lrow { width: 100%; align-items: center; padding: 13px 22px; border: 0; background: #fff; text-align: left; }
.fcd-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.is-unread .fcd-dot { background: var(--red); }
.fcd-cell { min-width: 0; }
.fcd-cell-name { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-cell-name--b { font-weight: 600; }
.fcd-cell-num { display: block; font-size: 12.5px; color: var(--muted); }
.fcd-cell-subj { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-grid-sent .fcd-cell-subj { font-weight: 400; }
.is-unread .fcd-cell-name, .is-unread .fcd-cell-subj, .is-unread .fcd-cell-subj-m { font-weight: 700; }
.fcd-cell-subj-m { display: none; }
.fcd-cat { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #eceef1; color: #46505c; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.fcd-meta { font-size: 13px; color: var(--muted); }
.fcd-right { text-align: right; }
.fcd-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fcd-chip--lg { padding: 4px 10px; font-size: 12.5px; }
.fcd-chip.is-sent { background: #e7f4ec; color: #15663a; }
.fcd-chip.is-failed { background: #fbe9eb; color: var(--red-dark); }
.fcd-chip.is-sending { background: #e6effc; color: #0057b8; }

.fcd-empty { padding: 48px 22px; text-align: center; }
.fcd-empty--c { padding: 40px 22px; }
.fcd-empty-t { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.fcd-empty-t--tight { margin-bottom: 6px; }
.fcd-empty-d { margin: 0 auto; max-width: 360px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- viewer ---------- */
.fcd-vbar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid rgba(34,34,34,.09); background: #fff; }
.fcd-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 10px 8px 6px; border: 0; border-radius: 7px; background: transparent; font-size: 13.5px; font-weight: 600; }
.fcd-back:hover { background: #f6f8fa; }
.fcd-vhead { flex: 1 1 200px; min-width: 0; }
.fcd-vtitle { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-vsub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.fcd-actions--center { align-items: center; gap: 8px; }
.fcd-act { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 11px; border-radius: 7px; border: 1px solid rgba(34,34,34,.18); background: #fff; font-size: 13px; font-weight: 600; }
.fcd-act:hover { background: #f6f8fa; }
.fcd-act.is-pressed { border-color: var(--red); }
.fcd-act--icon { justify-content: center; min-width: 38px; padding: 7px; color: var(--red-dark); }
.fcd-retry { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 13px; border-radius: 7px; border: 0; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; }
.fcd-movebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 22px; border-bottom: 1px solid rgba(34,34,34,.09); background: #fbfcfd; }
.fcd-movebar-l { margin-right: 4px; font-size: 13px; font-weight: 600; }
.fcd-movechip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid rgba(34,34,34,.18); background: #fff; font-size: 13px; font-weight: 600; }
.fcd-movechip:hover:not(:disabled) { background: #f6f8fa; }
.fcd-movechip.is-here { border-color: rgba(34,34,34,.1); background: #f1f3f5; color: var(--muted); }
.fcd-linkbtn { min-height: 36px; padding: 6px 10px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; }

.fcd-paperwrap { padding: 22px; background: #f3f5f7; min-height: 520px; }
.fcd-details { max-width: 640px; margin: 0 auto 18px; padding: 18px 20px; background: #fff; border: 1px solid rgba(34,34,34,.1); border-radius: 12px; }
.fcd-details-h { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.fcd-details dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.fcd-details dt { font-size: 12px; color: var(--muted); }
.fcd-details dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 600; }
.fcd-pager { max-width: 640px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; font-weight: 600; }
.fcd-pgbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 7px; border: 1px solid rgba(34,34,34,.18); background: #fff; }
.fcd-pgbtn:disabled, .fcd-iconbtn:disabled { opacity: .4; }

.fcd-paper { position: relative; max-width: 640px; margin: 0 auto; min-height: 700px; padding: 18px 48px 48px; box-sizing: border-box; background: #fff; border: 1px solid rgba(34,34,34,.12); box-shadow: 0 18px 40px -24px rgba(34,34,34,.35); overflow: hidden; color: #1f2327; }
.fcd-paper-head { margin: 0 -28px 34px; padding-bottom: 8px; border-bottom: 1px dashed rgba(34,34,34,.3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; color: #3d434b; white-space: pre-wrap; }
.fcd-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 120px; font-weight: 800; letter-spacing: .08em; color: rgba(180,35,45,.07); pointer-events: none; user-select: none; white-space: nowrap; }
.fcd-paper-h { margin: 0 0 24px; font-family: 'Times New Roman', Times, Georgia, serif; font-size: 22px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.fcd-paper-h.is-cover { font-size: 40px; }
.fcd-paper-dl { margin: 0 0 24px; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 9px 16px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.fcd-paper-dl > div, .fcd-pvpaper-dl > div { display: contents; }
.fcd-paper-dl dt, .fcd-pvpaper-dl dt { font-weight: 700; }
.fcd-paper-dl dd, .fcd-pvpaper-dl dd { margin: 0; overflow-wrap: anywhere; }
.fcd-paper-p { margin: 0 0 14px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.55; }
.fcd-checks { font-family: Arial, Helvetica, sans-serif; }
.fcd-checks--col { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 30px; font-size: 14px; }
.fcd-checks--row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 14px; font-size: 12.5px; }
.fcd-check { display: inline-flex; align-items: center; gap: 10px; }
.fcd-checks--row .fcd-check { gap: 6px; }
.fcd-box { width: 14px; height: 14px; border: 1.5px solid #1f2327; display: grid; place-items: center; box-sizing: border-box; }
.fcd-box svg { width: 12px; height: 12px; }
.fcd-checks--row .fcd-box { width: 12px; height: 12px; border-width: 1.3px; }
.fcd-checks--row .fcd-box svg { width: 10px; height: 10px; }
.fcd-sign { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; font-family: Arial, Helvetica, sans-serif; font-size: 13px; }
.fcd-sign div { flex: 1 1 220px; border-top: 1px solid #1f2327; padding-top: 6px; }
.fcd-sign div + div { flex: 0 1 140px; }
.fcd-paper-foot { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 11px; color: var(--muted); }

/* ---------- composer ---------- */
.fcd-compose { display: flex; flex-direction: column; min-height: 600px; }
.fcd-chead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid rgba(34,34,34,.1); }
.fcd-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.fcd-x:hover { background: #f6f8fa; }
.fcd-cbody { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: stretch; }
.fcd-ccol { min-width: 0; padding: 16px 22px 20px; display: flex; flex-direction: column; }
.fcd-ccol--l { flex: 1 1 320px; gap: 16px; border-right: 1px solid rgba(34,34,34,.1); }
.fcd-ccol--r { flex: 1 1 340px; gap: 14px; }
.fcd-h3row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.fcd-h3row--sm { margin-bottom: 4px; }
.fcd-h3 { margin: 0; font-size: 15px; font-weight: 700; }
.fcd-h3--mb { margin-bottom: 10px; }
.fcd-h3--label { display: block; margin-bottom: 8px; }
.fcd-h3-opt { font-weight: 400; font-style: italic; color: var(--muted); }
.fcd-rcp-grid { display: grid; grid-template-columns: 92px minmax(0, 1fr) 64px; align-items: center; gap: 8px 10px; font-size: 14px; }
.fcd-field { width: 100%; min-width: 0; box-sizing: border-box; min-height: 40px; padding: 8px 11px; border: 1px solid #8a919b; border-radius: 7px; font-size: 14px; color: var(--ink); background: #fff; }
.fcd-field:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,35,45,.18); }
.fcd-field.is-invalid { border-color: var(--red); }
.fcd-field--dt { padding: 7px 10px; }
.fcd-field--r8 { border-radius: 8px; }
.fcd-textarea { display: block; min-height: 0; resize: vertical; }
.fcd-red { border: 0; border-radius: 7px; background: var(--red); color: #fff; font-size: 14px; font-weight: 600; }
.fcd-red:hover { background: var(--red-dark); }
.fcd-red--add { min-height: 40px; padding: 8px 0; }
.fcd-red--lg { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; }
.fcd-optional { font-size: 13px; font-style: italic; color: var(--muted); }
.fcd-err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: var(--red-dark); }
.fcd-err--file { margin-top: -4px; }
.fcd-suggest { margin-top: 8px; padding: 4px; border-radius: 10px; box-shadow: 0 14px 28px -18px rgba(34,34,34,.45); }
.fcd-sg { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 8px; background: #fff; text-align: left; }
.fcd-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f1f3f5; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; }
.fcd-avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }
.fcd-sg-name { display: block; font-size: 13.5px; font-weight: 600; }
.fcd-sg-num { display: block; font-size: 12px; color: var(--muted); }
.fcd-sg-add { font-size: 12px; font-weight: 600; color: var(--red); }
.fcd-box-card { margin-top: 12px; border: 1px solid rgba(34,34,34,.14); border-radius: 10px; overflow: hidden; background: #fff; }
.fcd-box-card.is-invalid, .fcd-docs.is-invalid { border-color: var(--red); }
.fcd-box-card-h { display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; border-bottom: 1px solid rgba(34,34,34,.08); background: #fbfcfd; }
.fcd-box-card-t { font-size: 14.5px; font-weight: 700; }
.fcd-box-card-n { font-size: 14px; color: var(--muted); }
.fcd-rcplist { list-style: none; margin: 0; padding: 4px; min-height: 120px; max-height: 196px; overflow-y: auto; }
.fcd-rcp { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 6px 6px 12px; border-radius: 7px; }
.fcd-rcp-name { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-rcp-name.is-unnamed { color: var(--muted); }
.fcd-rm { flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.fcd-rm:hover, .fcd-rm:focus-visible { color: var(--red); }
.fcd-box-empty { margin: 0; padding: 44px 16px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fcd-btnrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fcd-btnrow--tight { margin-top: 0; }
.fcd-picker { margin-top: 10px; border: 1px solid rgba(34,34,34,.14); border-radius: 10px; background: #fff; overflow: hidden; }
.fcd-picker-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid rgba(34,34,34,.08); background: #fbfcfd; font-size: 13.5px; font-weight: 700; }
.fcd-picker-list { max-height: 220px; overflow-y: auto; padding: 4px; }
.fcd-pick { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.fcd-pick.is-on { background: #f1f8f4; }
.fcd-pickstate { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--red); }
.fcd-pick.is-on .fcd-pickstate { color: #15663a; }

.fcd-mount .fcd-settings { padding-top: 16px; border-top: 1px solid rgba(34,34,34,.1); }
.fcd-stack { display: flex; flex-direction: column; gap: 10px; }
.fcd-label { display: block; margin-bottom: 4px; font-size: 13.5px; }
.fcd-label--sm { font-size: 13px; }
.fcd-label--b { margin-bottom: 5px; font-size: 12.5px; font-weight: 600; }
.fcd-label--inline { display: inline; margin: 0; }
.fcd-fieldset { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.fcd-fieldset--flat { margin: 0; }
.fcd-legend { padding: 0; margin-bottom: 6px; font-size: 13.5px; }
.fcd-radios { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.fcd-radio { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 14px; cursor: pointer; }
.fcd-radio input, .fcd-mark input { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }
.fcd-sched { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.fcd-sched-d { flex: 1 1 150px; }
.fcd-sched-t { flex: 1 1 120px; }

.fcd-cover-row { display: flex; gap: 10px; }
.fcd-select-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.fcd-select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.fcd-select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 42px; padding: 8px 36px 8px 12px; border: 1px solid #8a919b; border-radius: 8px; background: #fff; font-size: 14px; cursor: pointer; }
.fcd-coveropts-btn { flex: none; min-height: 42px; padding: 8px 14px; border: 1px solid rgba(34,34,34,.18); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; }
.fcd-coveropts-btn:disabled { background: #eef0f3; color: #6b7480; }
.fcd-coveropts { margin-top: 10px; padding: 14px; border: 1px solid rgba(34,34,34,.12); border-radius: 10px; background: #fbfcfd; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.fcd-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.fcd-mark { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 5px 12px 5px 10px; box-sizing: border-box; border-radius: 999px; border: 1.5px solid rgba(34,34,34,.18); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.fcd-mark input { width: 15px; height: 15px; }
.fcd-mark.is-on { border-color: var(--red); background: #fdf3f4; }
.fcd-textlink { align-self: flex-start; min-height: 32px; padding: 0; border: 0; background: transparent; color: var(--red); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fcd-docs { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 190px; border: 1px solid rgba(34,34,34,.14); border-radius: 10px; overflow: hidden; background: #fff; }
.fcd-docs-h { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(34,34,34,.08); }
.fcd-docs-h h3 { margin: 0; font-size: 15.5px; font-weight: 700; }
.fcd-docs-n { font-size: 15px; color: var(--muted); }
.fcd-docs-p { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.fcd-attach { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.fcd-att { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 12px; border: 1px solid rgba(34,34,34,.12); border-radius: 9px; background: #fbfcfd; }
.fcd-att-n { flex: none; width: 16px; font-size: 12px; font-weight: 700; color: var(--muted); }
.fcd-iconbtn { flex: none; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(34,34,34,.14); border-radius: 7px; background: #fff; }
.fcd-iconbtn:disabled { opacity: .35; }
.fcd-iconbtn.is-danger { color: var(--red-dark); }
.fcd-docs-empty { margin: auto 0; padding: 36px 16px; text-align: center; font-size: 13px; color: var(--muted); }
.fcd-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 130px; padding: 18px; box-sizing: border-box; border: 2px dashed #8a919b; border-radius: 10px; background: #fbfcfd; text-align: center; cursor: pointer; }
.fcd-drop.is-drag { border-color: var(--red); background: #fdf3f4; }
.fcd-drop:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.fcd-drop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fcd-drop-t { display: inline-flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; }
.fcd-drop-s { font-size: 14px; color: var(--muted); }
.fcd-drop-n { margin-top: 6px; font-size: 12px; color: var(--muted); }
.fcd-sub--samples { margin: 0 0 8px; font-size: 12.5px; }
.fcd-samples { display: flex; flex-wrap: wrap; gap: 6px; }
.fcd-sample { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid rgba(34,34,34,.18); background: #fff; font-size: 12.5px; font-weight: 600; }
.fcd-sample:hover:not(:disabled) { background: #f6f8fa; }
.fcd-sample.is-added { border-color: rgba(31,157,87,.45); background: #f1f8f4; color: #15663a; }

.fcd-preview { flex: 1 1 auto; padding: 18px 22px 22px; background: #f3f5f7; }
.fcd-preview-in { max-width: 560px; margin: 0 auto; }
.fcd-preview-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.fcd-pvnote { margin: -4px 0 10px; }
.fcd-pvpaper { position: relative; aspect-ratio: 8.5 / 11; overflow: hidden; padding: 12px 34px 24px; box-sizing: border-box; background: #fff; border: 1px solid rgba(34,34,34,.12); box-shadow: 0 18px 36px -24px rgba(34,34,34,.45); color: #1f2327; }
.fcd-pvpaper-head { margin: 0 -20px 20px; padding-bottom: 6px; border-bottom: 1px dashed rgba(34,34,34,.3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9.5px; color: #3d434b; white-space: nowrap; overflow: hidden; }
.fcd-pvpaper-h { margin: 0 0 16px; font-family: 'Times New Roman', Times, Georgia, serif; font-size: 17px; font-weight: 700; letter-spacing: .05em; line-height: 1.15; overflow-wrap: anywhere; }
.fcd-pvpaper-h.is-cover { padding-bottom: 6px; border-bottom: 1.5px solid #1f2327; font-size: 34px; }
.fcd-pvpaper-dl { margin: 0 0 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; }
.fcd-pvpaper-p { margin: 0 0 10px; font-family: Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.fcd-thumbs { display: flex; justify-content: center; gap: 10px; overflow-x: auto; padding: 12px 3px 4px; }
.fcd-thumb { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; }
.fcd-thumb-page { display: flex; flex-direction: column; gap: 3px; width: 40px; height: 52px; box-sizing: border-box; padding: 6px 5px; background: #fff; border: 1px solid rgba(34,34,34,.2); }
.fcd-thumb.is-on .fcd-thumb-page { box-shadow: 0 0 0 2px var(--red); }
.fcd-thumb-page span { height: 2px; width: 100%; background: #c9ced5; }
.fcd-thumb-page span:nth-child(1) { height: 3px; width: 80%; background: #1f2327; }
.fcd-thumb-page.is-cover span:nth-child(1) { height: 6px; width: 55%; }
.fcd-thumb-page span:nth-child(3) { width: 85%; }
.fcd-thumb-page span:nth-child(5) { width: 60%; }
.fcd-thumb-l { font-size: 11px; font-weight: 500; color: var(--muted); }
.fcd-thumb.is-on .fcd-thumb-l { font-weight: 700; color: var(--red-dark); }
.fcd-pv-empty { aspect-ratio: 8.5 / 11; display: grid; place-items: center; padding: 24px; border: 1.5px dashed rgba(34,34,34,.25); background: #fff; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.fcd-cfoot { position: sticky; bottom: 0; z-index: 2; margin-top: auto; }
.fcd-info { display: flex; align-items: center; gap: 8px; padding: 10px 22px; background: #f3f5f7; border-top: 1px solid rgba(34,34,34,.08); font-size: 13.5px; }
.fcd-info strong { font-weight: 700; }
.fcd-info.is-missing { background: #fbe9eb; color: var(--red-dark); }
.fcd-info.is-ready { background: #e7f4ec; color: #15663a; }
.fcd-cactions { box-shadow: 0 2px 0 #f6f8fa; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 22px; background: #f6f8fa; border-top: 1px solid rgba(34,34,34,.1); }

/* ---------- contacts ---------- */
.fcd-ncform { margin: 0 22px 16px; padding: 14px; border-radius: 10px; background: #f6f8fa; }
.fcd-ncrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.fcd-nc-name { flex: 1 1 180px; min-width: 0; }
.fcd-nc-num { flex: 1 1 160px; min-width: 0; }
.fcd-dark { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; }
.fcd-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 11px 22px; }
.fcd-contact-txt { flex: 1 1 180px; min-width: 0; }

/* ---------- overlays ---------- */
.fcd-scrim { position: absolute; inset: 0; z-index: 7; margin: 0; padding: 0; border: 0; background: transparent; cursor: default; }
.fcd-toast-region { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 5; width: max-content; max-width: calc(100% - 32px); }
.fcd-toast { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.4; box-shadow: 0 14px 30px -12px rgba(0,0,0,.5); }
.fcd-toast-act { flex: none; min-height: 32px; padding: 0 4px; border: 0; background: transparent; color: #fff; font-weight: 700; text-decoration: underline; }
.fcd-shot { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; justify-content: flex-end; margin: 0; padding: 0; border: 0; background: transparent; }
.fcd-hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 20px 20px 0; padding: 9px 15px; border-radius: 999px; background: rgba(34,34,34,.9); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }

/* ---------- below the window ---------- */
.fcd-below { margin-top: 26px; }
.fcd-tasks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; }
.fcd-tasks-h { margin: 0 8px 0 0; font-size: 14px; font-weight: 600; }
.fcd-tasks-h span { font-weight: 500; color: var(--muted); }
.fcd-task { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid rgba(34,34,34,.18); background: #fff; font-size: 14px; font-weight: 500; }
.fcd-task:hover { border-color: rgba(34,34,34,.35); }
.fcd-task.is-done { border-color: rgba(31,157,87,.5); background: #f1f8f4; }
.fcd-task-ring { width: 20px; height: 20px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(34,34,34,.35); background: #fff; color: #fff; }
.is-done .fcd-task-ring { border-color: var(--green); background: var(--green); }
/* --fcd-tasks-w = widest row of task pills, measured in fax-console-demo.js */
.fcd-disclaimer { max-width: var(--fcd-tasks-w, 1060px); margin: 22px auto 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-align: center; }
.fcd-disclaimer svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }

/* ---------- phones: the demo needs a desktop or tablet; show the app pitch instead ---------- */
.fcd-mobile { display: none; }
/* 990px and below (range syntax so fractional widths like 990.5 under browser zoom still count), plus phones held sideways */
@media (width < 991px), (max-height: 500px) and (pointer: coarse) {
  .fcd-mount, .fcd-panel-slot { display: none; }
  .fcd-mobile {
    display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; padding: 32px 22px;
    border: 1.5px dashed rgba(34,34,34,.22); border-radius: 16px; background: #eef0f3; color: var(--muted); text-align: center;
  }
}
.fcd-mobile-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e1e4e9; color: #6b7480; }
.fcd-mobile-t { margin: 4px 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.fcd-mobile-d { margin: 0; max-width: 22rem; font-size: .9375rem; line-height: 1.55; }
.fcd-mobile .store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 8px; }
/* store badges match online-fax.html */
.fcd-mobile .store-badge { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.2rem; border-radius: 12px; background: #fff; border: 1px solid var(--line-mid); box-shadow: 0 12px 26px -18px rgba(34,34,34,.4); text-align: left; }
.fcd-mobile .store-badge img { height: 1.6rem; width: auto; filter: brightness(0) opacity(.9); }
.fcd-mobile .store-badge-tx { display: flex; flex-direction: column; line-height: 1.08; }
.fcd-mobile .store-badge-sub { font-size: .7rem; font-weight: 600; color: var(--muted); }
.fcd-mobile .store-badge-name { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }

/* ---------- inbox panel: folder chips stand in for the sidebar ---------- */
/* chips wrap so every folder stays visible (that is the point of this panel) */
.fcd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid rgba(34,34,34,.09); background: #fbfcfd; }
.fcd-chipnav { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 11px 3px 9px; border: 1px solid rgba(34,34,34,.14); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fcd-chipnav:hover { background: #f6f8fa; }
.fcd-chipnav.is-on { border-color: rgba(180,35,45,.35); background: #fbeaec; color: var(--red-dark); font-weight: 600; }
.fcd-chipnav--add { border-style: dashed; color: var(--muted); font-weight: 600; }
.fcd-chip-form { flex: none; display: flex; align-items: center; gap: 6px; }
.fcd-chip-form .fcd-input-sm { width: 150px; min-height: 30px; padding-top: 4px; padding-bottom: 4px; }
.fcd-chip-form .fcd-sm { flex: none; min-height: 30px; padding-top: 3px; padding-bottom: 3px; }
.fcd-homeback { padding: 10px 22px 0; }

/* ---------- contacts: import + visibility ---------- */
.fcd-import { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fcd-filebtn { position: relative; overflow: hidden; cursor: pointer; }
.fcd-filebtn input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.fcd-filebtn:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.fcd-textlink--sm { min-height: 0; font-size: 12.5px; }
.fcd-nc-vis { flex: 1 1 140px; min-width: 0; }
.fcd-vis, .fcd-vis-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6573' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
}
.fcd-vis-select { padding-right: 30px; }
.fcd-vis { flex: none; max-width: 140px; min-height: 32px; padding: 4px 28px 4px 11px; border: 1px solid rgba(34,34,34,.16); border-radius: 999px; background-color: #f6f8fa; font-size: 12.5px; font-weight: 600; color: #46505c; }
.fcd-vis:hover { border-color: rgba(34,34,34,.3); }

/* ---------- security panel: Settings > Security (MFA dialog, Configure SSO, SSO users) ---------- */
.fcd-win--v-security .fcd-body, .fcd-win--v-security .fcd-main { height: 580px; }
.fcd-mount--panel[data-fcd="security"] { min-height: 700px; }
.fcd-sec { display: flex; flex-direction: column; min-height: 100%; }
.fcd-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 12px; }
.fcd-segs { display: flex; gap: 4px; margin: 0 22px; padding: 4px; border-radius: 10px; background: #f1f3f5; }
.fcd-seg { flex: 1 1 0; min-width: 0; min-height: 34px; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcd-seg:hover { color: var(--ink); }
.fcd-seg.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(34,34,34,.12), 0 0 0 1px rgba(34,34,34,.06); }

.fcd-mfa { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 22px 22px 18px; text-align: center; }
.fcd-mfa-logo { display: block; height: 38px; width: auto; margin-bottom: 4px; }
.fcd-mfa-t { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: #46505c; }
.fcd-mfa-t strong { color: var(--ink); }
.fcd-mfa-label { align-self: stretch; margin-bottom: -6px; text-align: left; }
.fcd-mfa-help { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.fcd-mfa-ok { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e7f4ec; color: #15663a; }
.fcd-btn--ic svg { color: var(--muted); }
.fcd-cactions--end { justify-content: flex-end; }
.fcd-sec { position: relative; }
.fcd-mfa .fcd-textlink { align-self: center; }
.mfa-fields { align-self: stretch; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.mfa-fields .fcd-label { display: block; }
/* six one-digit boxes: typing moves on, pasting fills them all, a wrong code shakes */
.mfa-boxes { display: flex; gap: 8px; margin: 4px 0 2px; }
.mfa-box { box-sizing: border-box; width: 46px; height: 54px; padding: 0; border: 1.5px solid #8a919b; border-radius: 9px; background: #fff; text-align: center; font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; caret-color: var(--red); }
.mfa-box:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(180,35,45,.18); }
.mfa-box.is-filled { border-color: var(--ink); }
.mfa-box.is-invalid { border-color: var(--red); }
@keyframes mfaShake0 { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes mfaShake1 { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@media (prefers-reduced-motion: no-preference) {
  .mfa-boxes.is-shake-0 { animation: mfaShake0 .45s ease; }
  .mfa-boxes.is-shake-1 { animation: mfaShake1 .45s ease; }
  .mfa-mail { animation: mfaMailIn .35s cubic-bezier(.22,.8,.3,1) both; }
}
.mfa-session { align-self: stretch; margin: 2px 0 6px; padding: 12px 14px; border: 1px solid rgba(34,34,34,.1); border-radius: 10px; background: #fbfcfd; text-align: left; }
.mfa-session div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.mfa-session dt { color: var(--muted); }
.mfa-session dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
/* the emailed code arrives as a notification over the panel */
.mfa-mail { position: absolute; top: 12px; left: 22px; right: 22px; z-index: 3; display: flex; align-items: flex-start; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid rgba(34,34,34,.12); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -16px rgba(34,34,34,.45); }
@keyframes mfaMailIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mfa-mail-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e6effc; color: #0057b8; }
.mfa-mail-tx { flex: 1 1 auto; min-width: 0; }
.mfa-mail-tx p { margin: 0; }
.mfa-mail-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mfa-mail-h span { color: var(--muted); font-size: 12px; }
.mfa-mail-s { font-size: 13px; font-weight: 600; }
.mfa-mail-tx .mfa-mail-b { margin-top: 2px; font-size: 13px; color: var(--muted); }
.mfa-mail-b strong { color: var(--ink); letter-spacing: .08em; }
.mfa-mail-act { flex: none; display: flex; align-items: center; gap: 4px; }
.mfa-mail-act .fcd-sm { flex: none; padding-left: 12px; padding-right: 12px; }
/* team policy */
.mfa-pol { padding: 12px 22px 12px; }
.mfa-req { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid rgba(34,34,34,.12); border-radius: 12px; background: #fbfcfd; cursor: pointer; }
.mfa-req > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.mfa-req strong { font-size: 14.5px; color: var(--ink); }
.fcd-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: #8a919b; cursor: pointer; transition: background .2s; }
.fcd-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.fcd-switch:checked { background: var(--red); }
.fcd-switch:checked::after { transform: translateX(18px); }
.fcd-switch:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.mfa-pol-h { margin: 18px 0 6px; }
.mfa-people { list-style: none; margin: 0; padding: 0; }
.mfa-people li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(34,34,34,.08); }
.mfa-people li:first-child { border-top: 0; }
.mfa-pact { flex: none; min-height: 32px; padding: 4px 12px; }


.fcd-ellip { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- cover page editor (its own section): form on the left, live preview on the right ---------- */
.fcd-mount--wide { min-height: 780px; }
.fcd-win--v-cover .fcd-body, .fcd-win--v-cover .fcd-main { height: 640px; }
.fcd-win--v-cover .fcd-main { flex: 1 1 100%; overflow: hidden; }
.cpe { display: flex; flex-direction: column; height: 100%; }
.cpe-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.cpe-form { min-height: 0; overflow-y: auto; padding: 18px 22px 20px; border-right: 1px solid rgba(34,34,34,.1); }
.cpe-h { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.cpe-f { margin-bottom: 12px; }
.cpe-f > .fcd-label { display: block; }
.cpe-line { margin-top: 8px; }
.cpe-hr { margin: 18px 0 16px; border: 0; border-top: 1px solid rgba(34,34,34,.1); }
.cpe-logo-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cpe-tip { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cpe-tip--auto { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: #f6f8fa; }

.cpe-preview { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
/* viewer chrome matches the hero's fax viewer: white title bar, outlined buttons, grey canvas */
.cpe-viewer { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #f3f5f7; }
.cpe-vbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 18px; border-bottom: 1px solid rgba(34,34,34,.09); background: #fff; }
.cpe-vbar .fcd-vhead { flex: 1 1 140px; }
.cpe-saved { color: #15663a; font-weight: 600; }
.cpe-mode { flex: 0 0 auto; margin: 0; }
.cpe-mode .fcd-seg { flex: 0 0 auto; padding: 5px 14px; min-height: 30px; }
.cpe-zoom { display: inline-flex; align-items: center; gap: 6px; }
.cpe-zoom .fcd-pgbtn { width: 34px; height: 34px; }
.cpe-zoom-v { min-width: 44px; text-align: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fcd-act--icon.cpe-act { color: var(--ink); }
.cpe-canvas { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 22px; }

/* the page: everything is sized in em off --z so the zoom buttons scale it like a PDF */
.cpe-page {
  --z: 1;
  position: relative; overflow: hidden; display: flex; flex-direction: column; box-sizing: border-box; width: calc(var(--z) * 560px); aspect-ratio: 8.5 / 11; margin: 0 auto;
  padding: 1.6em 4em 2em; background: #fff; color: #1f2327; font-family: Verdana, Geneva, sans-serif; font-size: calc(var(--z) * 11px); line-height: 1.35;
  border: 1px solid rgba(34,34,34,.12); box-shadow: 0 18px 40px -24px rgba(34,34,34,.35);
}
.cpe-page p { margin: 0; }
/* transmit stamp + SAMPLE watermark, as on the faxes in the hero viewer */
.cpe-stamp { margin: 0 -2.5em 2.6em; padding-bottom: .7em; border-bottom: 1px dashed rgba(34,34,34,.3); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95em; color: #3d434b; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.cpe-wm { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-family: Inter, system-ui, sans-serif; font-size: 10.5em; font-weight: 800; letter-spacing: .08em; color: rgba(180,35,45,.07); pointer-events: none; user-select: none; white-space: nowrap; }
.cpe-page .cpe-pageno { margin-top: .9em; text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: .95em; color: var(--muted); }
.cpe-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2em; }
.cpe-org { display: flex; flex-direction: column; gap: 1.2em; min-width: 0; }
.cpe-co { font-size: 1.6em; font-weight: 700; line-height: 1.2; }
.cpe-logo { flex: none; display: grid; place-items: center; width: 13em; height: 13em; padding: .6em; }
.cpe-logo-ph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #ececec 0 2px, #f7f7f7 2px 4px); font-size: 1.45em; line-height: 1.35; text-align: center; color: #333; }
.cpe-logo img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.cpe-logo-sample { display: flex; flex-direction: column; align-items: center; gap: .5em; font-size: 1.2em; font-weight: 700; text-align: center; color: #111; }
.cpe-logo-mark { display: grid; place-items: center; width: 3em; height: 3em; border-radius: .6em; background: var(--red); color: #fff; font-size: 1.1em; letter-spacing: .02em; }
.cpe-rule { border-top: 1px dotted #9aa0a6; }
.cpe-rule--solid { border-top-style: solid; }
.cpe-top + .cpe-rule { margin-top: 3em; }
.cpe-fax { padding: .1em 0 .05em; font-size: 4.2em; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.cpe-to { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em 2em; margin: 1em 0 1.4em; }
.cpe-to > div { display: grid; grid-template-columns: auto 1fr; gap: .2em .8em; align-content: start; }
.cpe-to dt { font-weight: 400; }
.cpe-to dd { margin: 0; }
.cpe-line-row { margin: 0 0 1em; }
.cpe-line-row + .cpe-rule { margin-bottom: 1em; }
.cpe-foot { margin-top: auto; }
.cpe-foot .cpe-rule { margin-bottom: .8em; }
.cpe-page b { font-weight: 700; }
.cpe-dyn { padding: 0 .2em; border-radius: .2em; background: #fff1a8; color: inherit; font-weight: 700; }
.cpe-legend { margin: 0; padding: 8px 16px; border-top: 1px solid rgba(34,34,34,.1); font-size: 12.5px; color: var(--muted); }
.cpe-legend .cpe-dyn { font-weight: 600; }
/* editable bits of the template: hover to see them, click to open in the field editor */
.cpe-hit { display: inline; padding: 0 .1em; margin: 0 -.1em; border: 0; border-radius: .2em; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; outline: 1px dashed transparent; outline-offset: .15em; transition: outline-color .15s ease, background-color .15s ease; }
.cpe-hit:hover { outline-color: rgba(180,35,45,.55); }
.cpe-hit.is-on { outline: 1.5px solid var(--red); background: rgba(180,35,45,.06); }
.cpe-hit.is-empty { color: #9aa0a6; font-style: italic; }
.cpe-hit.cpe-logo { display: grid; margin: 0; outline-offset: 0; }
/* keep the "try it live" hint clear of the footer's Save button */
.fcd-win--v-cover .fcd-hint { margin-bottom: 104px; }
.cpe-foot .cpe-hit { display: block; font-size: .95em; line-height: 1.45; }

/* ---------- narrow content panes (the tour panels, or the hero squeezed) ---------- */
@container fcdmain (width < 760px) {
  .fcd-grid-in { grid-template-columns: 14px minmax(0, 1fr) minmax(0, 1.2fr) 64px; }
  .fcd-grid-in .fcd-c-cat, .fcd-grid-in .fcd-c-pages { display: none; }
}
@container fcdmain (width < 700px) {
  /* viewer + contact actions go icon-only (the label stays as the accessible name);
     back + actions share the top row and the fax title runs underneath */
  .fcd-act-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fcd-act { justify-content: center; min-width: 38px; padding: 7px 9px; }
  .fcd-vbar .fcd-actions { margin-left: auto; }
  .fcd-vhead { flex-basis: 100%; order: 1; }
  .fcd-paperwrap { padding: 16px; }
  .fcd-paper { min-height: 520px; padding: 16px 28px 44px; }
  .fcd-paper-head { margin: 0 -12px 26px; }
  .fcd-paper-dl { grid-template-columns: 130px minmax(0, 1fr); }
}
@container fcdmain (width < 520px) {
  .fcd-sec-head, .fcd-mfa, .mfa-pol { padding-left: 16px; padding-right: 16px; }
  .fcd-segs { margin: 0 16px; }
  .mfa-mail { left: 12px; right: 12px; }
  .mfa-box { width: 40px; height: 48px; font-size: 20px; }
  .mfa-people .fcd-chip { display: none; }
}
@container fcdmain (width < 560px) {
  .fcd-listhead, .fcd-lrow, .fcd-thead, .fcd-vbar, .fcd-contact, .fcd-chead, .fcd-movebar, .fcd-cactions, .fcd-info, .fcd-homeback { padding-left: 16px; padding-right: 16px; }
  .fcd-ncform { margin-left: 16px; margin-right: 16px; }
  .fcd-grid-in { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; }
  .fcd-grid-sent { grid-template-columns: minmax(0, 1fr) auto; }
  .fcd-c-subj, .fcd-grid-sent .fcd-c-when { display: none; }
  .fcd-cell-subj-m { display: block; margin-top: 2px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fcd-paperwrap { padding: 14px; }
  .fcd-paper { min-height: 480px; padding: 14px 20px 44px; }
  .fcd-paper-head { margin: 0 -8px 24px; }
  .fcd-paper-dl { grid-template-columns: 112px minmax(0, 1fr); }
  .fcd-paper-h.is-cover { font-size: 32px; }
  .fcd-watermark { font-size: 84px; }
  .fcd-details dl { grid-template-columns: 1fr 1fr; }
  .fcd-ccol { padding-left: 16px; padding-right: 16px; }
  .fcd-rcp-grid { grid-template-columns: 82px minmax(0, 1fr) 56px; }
  .fcd-preview { padding-left: 16px; padding-right: 16px; }
  .fcd-pvpaper { padding: 10px 18px 18px; }
  .fcd-pvpaper-dl { grid-template-columns: 84px minmax(0, 1fr); }
  .fcd-cactions > .fcd-btn { padding-left: 18px; padding-right: 18px; }
  .fcd-contact { flex-wrap: nowrap; gap: 10px; }
  .fcd-contact-txt { flex: 1 1 auto; }
  .fcd-avatar { width: 32px; height: 32px; font-size: 11.5px; }
  .fcd-vis { max-width: 118px; }
}
@container fcdwin (width < 480px) {
  .fcd-brand span { display: none; }
  /* drop the decorative address bar so "Live demo" + Reset stay on the chrome row */
  .fcd-url { display: none; }
  .fcd-livegrp { margin-left: auto; }
  .is-live .fcd-livegrp { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .fcd-pulse { animation: none; }
  .fcd-win, .is-live .fcd-win { transition: none; transform: none; }
  .fcd-livegrp, .fcd-chev, .fcd-fbtn { transition: none; }
}
html.motion-paused .fcd-pulse { animation-play-state: paused; }
