/* Stelix Campaigns. Same tokens as the Stelix skin: obsidian ink, ember signal, warm paper. */
#taskmenu a.campaigns:before, .menu a.campaigns:before { content: "\f0a1"; }

.sc-content, .sc-sidebar {
  --ink: #0A0908; --ink-2: #2B2B30; --mute: #6B6B73; --line: #E6E6E9; --paper: #F7F7F8;
  --signal: #FF6A00; --signal-ink: #C2410C; --signal-wash: #F1F1F4;
  --good: #1F7A4D; --good-wash: #E7F4EC; --warn: #9A5B00; --warn-wash: #FFF4DC; --bad: #B42318; --bad-wash: #FDECEA;
}
.sc-scroller { background: var(--paper); }
.sc-content { min-height: 0; overflow: hidden; }
.sc-content > .header { flex-shrink: 0; }
.sc-content > .sc-scroller { min-height: 0; overflow-y: auto; }
.sc-main { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.sc-page { max-width: 820px; margin: 0 auto; padding: 28px 28px 64px; }
.sc-page--wide { max-width: 1180px; }

/* nav */
.sc-nav { padding: 8px 0 24px; }
.sc-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 6px; font-weight: 600; font-size: 12.5px; color: var(--mute); }
.sc-nav__add { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 10px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.sc-nav__add:hover { border-color: var(--signal); color: var(--signal-ink); }
.sc-nav ul { list-style: none; margin: 0; padding: 0; }
.sc-nav li a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.sc-nav li a:hover { background: var(--signal-wash); text-decoration: none; }
.sc-nav li a.is-on { background: var(--signal-wash); border-left-color: var(--signal); }
.sc-nav__name { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-nav__meta { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; }
.sc-nav__empty { padding: 6px 16px; color: var(--mute); font-size: 13px; }
.sc-nav__foot { margin-top: 18px !important; border-top: 1px solid var(--line) !important; padding-top: 8px !important; }

/* type and blocks */
.sc-hero { margin: 8px 0 24px; }
.sc-hero h1 { font-size: 30px; line-height: 1.15; font-weight: 600; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.01em; }
.sc-hero p { margin: 0 0 18px; max-width: 60ch; color: var(--mute); }
.sc-head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.sc-title { flex: 1 1 320px; font-family: inherit; font-size: 26px; font-weight: 600; line-height: 1.2; color: var(--ink); border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 4px 8px; margin-left: -9px; min-width: 0; }
.sc-title:hover:not(:disabled) { border-color: var(--line); }
.sc-title:focus { border-color: var(--signal); outline: none; background: #fff; }
.sc-head__actions { display: flex; gap: 8px; margin-left: auto; }
.sc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 16px; }
.sc-card h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.sc-card h3 { font-size: 14px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
.sc-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; }
.sc-note, .sc-sub, .sc-foot { color: var(--mute); font-size: 13px; }
.sc-note { margin: 8px 0 0; max-width: 72ch; }
.sc-card > .sc-note:not(:last-child) { margin: -4px 0 16px; }
.sc-foot { margin-top: 28px; }
.sc-empty { color: var(--mute); padding: 24px 0; margin: 0; }
.is-bad { color: var(--bad) !important; }

/* how it works */
.sc-how { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sc-how li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 56px; position: relative; color: var(--mute); }
.sc-how li strong { display: block; color: var(--ink); margin-bottom: 4px; }
.sc-how li:before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--signal); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }

/* forms */
.sc-field { margin: 0 0 14px; min-width: 0; }
.sc-field label { display: block; font-weight: 500; font-size: 13px; color: var(--ink); margin: 0 0 5px; }
.sc-field input, .sc-field select, .sc-field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #D6D6DB; border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 14px; color: var(--ink); background: #fff;
}
.sc-field textarea { resize: vertical; line-height: 1.5; }
.sc-field textarea#f_body_html { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(255, 106, 0, .16); }
.sc-field input:disabled, .sc-field textarea:disabled, .sc-field select:disabled { background: var(--paper); color: var(--mute); }
.sc-field small { display: block; color: var(--mute); font-size: 12px; margin-top: 4px; }
.sc-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sc-grid4 { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr .6fr; gap: 0 14px; }
.sc-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 0; }
.sc-row--end { align-items: flex-end; }
.sc-row--end .sc-field { margin-bottom: 0; }
.sc-grow { flex: 1 1 260px; }

/* buttons */
.sc-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 9px 16px; font: inherit; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.2; }
.sc-btn:focus-visible { outline: 3px solid rgba(255, 106, 0, .45); outline-offset: 2px; }
.sc-btn:disabled { opacity: .5; cursor: not-allowed; }
.sc-btn--signal { background: var(--signal); color: var(--ink); }
.sc-btn--signal:hover:not(:disabled) { background: #FF8A33; }
.sc-btn--ink { background: var(--ink); color: #fff; }
.sc-btn--ink:hover:not(:disabled) { background: #26262B; }
.sc-btn--quiet { background: #fff; color: var(--ink); border-color: #D6D6DB; }
.sc-btn--quiet:hover:not(:disabled) { border-color: var(--ink); }
.sc-btn--danger { background: var(--bad); color: #fff; }
.sc-btn--danger-quiet { background: #fff; color: var(--bad); border-color: #F1C4BF; }
.sc-btn--sm { padding: 6px 12px; font-size: 13px; }
.sc-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: sc-spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
.sc-btn .sc-spin { margin-right: 0; }
@keyframes sc-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-spin { animation-duration: 2.4s; } }

/* status */
.sc-pill { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: #EEEEF1; color: var(--ink-2); white-space: nowrap; }
.sc-pill--sending { background: var(--signal); color: var(--ink); }
.sc-pill--paused { background: var(--warn-wash); color: var(--warn); }
.sc-pill--sent { background: var(--good-wash); color: var(--good); }
.sc-pill--cancelled { background: var(--bad-wash); color: var(--bad); }
.sc-nav .sc-pill { font-size: 11px; padding: 0 7px; }
.sc-badges { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.sc-badge { font-size: 11.5px; border-radius: 6px; padding: 1px 7px; background: #F0F0F2; color: var(--ink-2); white-space: nowrap; }
.sc-badge--good { background: var(--good-wash); color: var(--good); }
.sc-badge--warn { background: var(--warn-wash); color: var(--warn); }
.sc-badge--bad { background: var(--bad-wash); color: var(--bad); }
.sc-st { font-size: 12.5px; font-weight: 500; }
.sc-st--sent { color: var(--good); }
.sc-st--failed, .sc-st--bounced, .sc-st--unsubscribed { color: var(--bad); }
.sc-st--queued, .sc-st--skipped { color: var(--mute); }
.sc-check { margin: 0 0 14px; padding: 0; list-style: none; }
.sc-check li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); }
.sc-check li:before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--signal); }
.sc-ok { background: var(--good-wash); color: var(--good); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; font-weight: 500; }
.sc-dirty { color: var(--warn); font-size: 13px; }
.sc-job { margin: 12px 0 0; color: var(--ink-2); }

/* campaign editor */
.sc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.sc-ai { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 14px; margin: 0 0 18px; }
.sc-col--preview { position: sticky; top: 12px; max-height: calc(100dvh - 88px); }
.sc-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #F4F4F5; }
.sc-preview__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.sc-preview__mode button { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--mute); padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.sc-preview__mode button.is-on { background: var(--ink); color: #fff; }
#cPreview { display: block; width: 100%; max-width: 100%; height: min(640px, calc(100dvh - 132px)); border: 0; margin: 0 auto; background: #F4F4F5; transition: width .2s; }
.sc-more { margin: 14px 0 0; }
.sc-more summary { cursor: pointer; font-weight: 500; color: var(--signal-ink); margin-bottom: 10px; }

/* results */
.sc-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sc-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sc-stat__v { display: block; font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sc-stat__l { display: block; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.sc-stat__s { display: block; font-size: 12px; color: var(--mute); }
.sc-progress { height: 8px; background: #EEEEF1; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.sc-progress div { height: 100%; background: var(--signal); }

/* tables */
.sc-table { width: 100%; border-collapse: collapse; background: #fff; }
.sc-page > .sc-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sc-table th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--mute); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sc-table td { padding: 12px; border-bottom: 1px solid #F0F0F2; vertical-align: top; }
.sc-table tr:last-child td { border-bottom: 0; }
.sc-table--tight td { padding: 7px 12px; font-size: 13px; }
.sc-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-url { word-break: break-all; }
.sc-members td:first-child { width: 28px; }
.sc-members tr.is-approved td:first-child { box-shadow: inset 3px 0 0 var(--good); }
.sc-members tr.is-rejected { opacity: .62; }
.sc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 12px; }
.sc-tabs button { border: 0; background: none; font: inherit; font-size: 14px; padding: 8px 12px; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.sc-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); font-weight: 600; }
.sc-tabs button span { font-size: 12px; color: var(--mute); margin-left: 2px; }
.sc-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.sc-check-all { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; margin-right: 8px; }

/* dialog and toast */
.sc-dialog { border: 0; border-radius: 16px; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 24px 60px rgba(10, 9, 8, .28); }
.sc-dialog::backdrop { background: rgba(10, 9, 8, .45); }
.sc-dlg { padding: 24px; margin: 0; }
.sc-dlg h2 { margin: 0 0 12px; font-size: 19px; color: #0A0908; }
.sc-dlg__body p { margin: 10px 0 0; color: #6B6B73; }
.sc-dlg__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.sc-dlg .sc-field label { display: block; font-weight: 500; font-size: 13px; margin: 0 0 5px; }
.sc-dlg .sc-field input { width: 100%; box-sizing: border-box; border: 1px solid #D6D6DB; border-radius: 8px; padding: 9px 11px; font: inherit; }
.sc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.sc-dl dt { color: #6B6B73; }
.sc-dl dd { margin: 0; color: #0A0908; font-weight: 500; word-break: break-word; }
.sc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0A0908; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 9999; max-width: min(560px, 90vw); box-shadow: 0 10px 30px rgba(10, 9, 8, .3); font-size: 14px; }
.sc-toast.is-bad { background: #B42318; color: #fff !important; } /* .is-bad alone would paint the text red on red */

@media (max-width: 1100px) {
  .sc-split { grid-template-columns: 1fr; }
  .sc-col--preview { position: static; max-height: none; }
  .sc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-grid4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sc-page { padding: 18px 14px 48px; }
  .sc-grid2, .sc-grid4, .sc-how { grid-template-columns: 1fr; }
  .sc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-card { padding: 18px 16px; }
  .sc-members th:nth-child(4), .sc-members td:nth-child(4) { display: none; }
}

/* report */
.sc-rhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.sc-rhead h2 { margin: 0; }
.sc-rhead .sc-row { margin: 0; }
.sc-chart { margin: 18px 0 8px; }
.sc-chart svg { width: 100%; height: auto; display: block; }
.sc-chart svg text { font: 10px "Instrument Sans", sans-serif; fill: var(--mute); }
.sc-chart figcaption { color: var(--mute); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sc-chart .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.sc-chart .k:first-child { margin-left: 0; }
.sc-chart .k--open { background: #C9C9D1; }
.sc-chart .k--click { background: var(--signal); }
.sc-chart .k--reply { background: var(--ink); }
.sc-report .sc-tabs { flex-wrap: wrap; }

/* phones: 16px fields so iOS does not zoom the page when one is tapped */
html.touch .sc-main input:not([type=checkbox]):not([type=radio]):not(.sc-title), html.touch .sc-main select, html.touch .sc-main textarea,
html.touch .sc-dlg input { font-size: 16px; }
html.touch .sc-title { font-size: 24px; }

/* ------------------------------------------------------------------------------------------------
   Stelix Mail language, same as the inbox: a serif title in the 64px header, white panes,
   hairlines instead of boxed cards, serif section titles, ember only on the main action. */
.sc-scroller { background: #fff; }
.sc-head-title { display: none; }
html.layout-large .sc-content > .header, html.layout-normal .sc-content > .header {
  display: flex; align-items: center; justify-content: flex-start; height: 64px; min-height: 64px; background: #fff; border-bottom: 1px solid var(--line);
}
html.layout-large .sc-content > .header .header-title, html.layout-normal .sc-content > .header .header-title { display: none !important; }
html.layout-large .sc-head-title, html.layout-normal .sc-head-title {
  display: block; font-family: "Instrument Serif", Georgia, serif; font-size: 30px; font-weight: 400; color: var(--ink);
  letter-spacing: -.01em; padding-left: 28px; white-space: nowrap; flex: 1; text-align: left;
}
.sc-hero h1, .sc-title, .sc-card h2, .sc-dlg h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; color: var(--ink); }
.sc-hero h1 { font-size: 46px; line-height: 1.05; margin-bottom: 10px; }
.sc-title { font-size: 42px; line-height: 1.1; padding: 2px 8px; }
.sc-card h2 { font-size: 27px; line-height: 1.15; margin-bottom: 12px; }
.sc-dlg h2 { font-size: 26px; }
.sc-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 26px 0 30px; margin: 0; }
.sc-head { margin-bottom: 8px; }
.sc-how { gap: 0; border-top: 1px solid var(--line); }
.sc-how li { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 20px 12px 20px 56px; }
.sc-how li:nth-child(odd) { border-right: 1px solid var(--line); }
.sc-how li:before { left: 12px; top: 20px; background: var(--ink); color: #fff; }
.sc-how li strong { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 22px; line-height: 1.2; }
.sc-step { background: var(--signal); color: var(--ink); }
.sc-field input, .sc-field select, .sc-field textarea, .sc-dlg .sc-field input { border-color: var(--line); border-radius: 10px; padding: 10px 12px; }
.sc-field input:hover:not(:disabled), .sc-field select:hover:not(:disabled), .sc-field textarea:hover:not(:disabled) { border-color: #CFCFD5; }
.sc-btn { border-radius: 10px; }
.sc-btn--signal { box-shadow: 0 6px 18px rgba(255, 106, 0, .28); }
.sc-btn--quiet { border-color: var(--line); }
.sc-ai, .sc-preview, .sc-stat { border-radius: 12px; }
.sc-page > .sc-table { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.sc-table th { font-size: 12px; text-transform: none; }
.sc-grid4 { grid-template-columns: 1.4fr 1fr 1.4fr 1.3fr .6fr; }
@media (max-width: 1100px) { .sc-grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .sc-grid4 { grid-template-columns: 1fr; }
  .sc-how { grid-template-columns: 1fr; }
  .sc-how li:nth-child(odd) { border-right: 0; }
  .sc-hero h1 { font-size: 38px; }
  .sc-title { font-size: 32px; }
  .sc-card { padding: 22px 0 24px; }
}
html.touch .sc-title { font-size: 32px; }
