/* Plain CSS, no build step. Dense and legible: this is an operations console
   someone stares at for hours, not a marketing page. */

:root {
    --bg: #f6f7f9;
    --panel: #ffffff;
    --ink: #1c2128;
    --muted: #6b7280;
    --line: #e2e5ea;
    --accent: #1f6feb;
    --ok: #1a7f37;
    --warn: #9a6700;
    --bad: #b42318;
    --out: #dcf8c6;
    --in: #ffffff;
    --radius: 8px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei",
          "PingFang HK", "Noto Sans CJK TC", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- chrome ---- */

.topbar {
    display: flex; align-items: center; gap: 20px;
    padding: 10px 20px; background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 10;
}
.topbar .brand { font-weight: 600; color: var(--ink); }
.topbar nav { display: flex; gap: 16px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* A nav item that opens a small menu on hover.
   No gap between the link and the panel: a few pixels of dead space there and
   the menu flickers shut as the pointer crosses it. focus-within is what makes
   it reachable by keyboard, since there is no click handler to fall back on. */
.navmenu { position: relative; display: inline-block; }

.navmenu-pop {
    display: none;
    position: absolute;
    top: 100%;
    left: -6px;
    min-width: 128px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    z-index: 20;
}
.navmenu:hover .navmenu-pop,
.navmenu:focus-within .navmenu-pop { display: block; }

.navmenu-pop a {
    display: block;
    padding: 6px 10px;
    border-radius: 4px;
    color: var(--ink);
    white-space: nowrap;
}
.navmenu-pop a:hover { background: var(--bg); text-decoration: none; }

main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
main.bare { max-width: 380px; margin-top: 12vh; }
/* The client-facing pairing page: wide enough for a 512px QR, still a single
   column so it reads on a phone. */
main.bare.pair { max-width: 560px; margin-top: 6vh; }

h1 { font-size: 21px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 28px 0 10px; }
h3 { font-size: 14px; margin: 18px 0 8px; }

/* Page title on the left, its primary action on the right. baseline alignment
   would drift with the two-line intro paragraph, so the action is pinned to the
   top of the row instead. */
.page-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.page-head > .btn { flex: 0 0 auto; margin-top: 4px; }

/* An <a> that has to read as the primary button, since button.primary only
   styles real buttons. */
.btn.primary-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn.primary-link:hover { background: #1a5fd0; text-decoration: none; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: "SF Mono", Consolas, "Courier New", monospace; font-size: 12px; }
.inline { display: inline; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* Open / Edit / Remove in a list row. The form around Remove is inline so the
   three read as one group, and they keep a small gap so Remove is not a
   mis-click away from Edit. */
/* Bulk-assign bar under the conversation list. Sticks to the bottom of the
   viewport so that on a 50-row page the number you picked and the Confirm
   button are still reachable without scrolling back down. */
.bulkbar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--accent, var(--line));
    border-radius: 6px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, .06);
}
.bulkbar .small.muted { flex: 1 1 100%; }

/* Required, and not redundant: `display: flex` above is an author rule, so it
   beats the browser's own [hidden] { display: none }, which is a UA style. Set
   hidden on this element without this line and it stays on screen. */
.bulkbar[hidden] { display: none; }

/* ---- trust score ---- */

/* The score in a list row: large enough to scan a column of them at a glance,
   coloured by band so the number does not have to be interpreted. */
.trust-score {
    display: inline-block;
    min-width: 2.4em;
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    border: 1px solid var(--line);
}
/* The same number on the detail page, as the headline. */
.trust-big {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    padding: 4px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
}
/* Bands. Named for the band's meaning rather than the colour, so changing a
   band's colour in config/trust.php does not need a class renamed here. */
.trust-ok   { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.trust-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.trust-bad  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Narrow, and never the click target for opening a row. */
.tickcol { width: 1%; white-space: nowrap; }
.tickcol input { margin: 0; }

.row-actions { white-space: nowrap; }
.row-actions > a,
.row-actions > form { display: inline-block; vertical-align: middle; }
.row-actions > a + a,
.row-actions > a + form,
.row-actions > form + a { margin-left: 4px; }

/* ---- panels ---- */

.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.panel-head .spacer { margin-left: auto; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- tiles ---- */

.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile {
    background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
    padding: 8px 12px; min-width: 92px;
}
.tile .n { font-size: 20px; font-weight: 600; }
.tile .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tile.attention { border-color: #f3c2bd; background: #fff4f2; }
.tile.attention .n { color: var(--bad); }

/* ---- tables ---- */

table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tr.flagged { background: #fff8f6; }
.table-wrap { overflow-x: auto; }

/* The import preview shows every row of the file, so it scrolls in place
   rather than pushing the mapping controls off the page. The header stays put
   while it does -- on a 400-row list, a column you cannot name is a column you
   cannot check. */
.preview-rows {
    max-height: 60vh;
    overflow: auto;
}
.preview-rows thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    /* Opaque: rows scroll underneath this, not through it. */
    background: var(--panel, #fff);
    box-shadow: inset 0 -1px 0 var(--line);
}
/* The file's own line number, so a row here and an "error on line 42" name the
   same row. Narrow and quiet -- it is a landmark, not data. */
.preview-rows td.rownum,
.preview-rows th.rownum {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---- badges ---- */

.badge {
    display: inline-block; padding: 1px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 600; border: 1px solid var(--line); background: var(--bg);
}
.badge-dry { background: #eef6ff; border-color: #b9d6fb; color: #0a4ea3; }
.badge-live { background: #fdecea; border-color: #f3b5ae; color: var(--bad); }
.badge-ok, .badge-online, .badge-completed_interested { background: #e8f5ec; border-color: #a7d8b6; color: var(--ok); }
.badge-warn, .badge-unpaired, .badge-dormant, .badge-paused { background: #fff6e0; border-color: #ecd08a; color: var(--warn); }
.badge-bad, .badge-banned, .badge-failed { background: #fdecea; border-color: #f3b5ae; color: var(--bad); }
.badge-offline, .badge-queued, .badge-draft { background: var(--bg); color: var(--muted); }

/* ---- forms ---- */

label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
/* type=search belongs in this list: it is a text box like the rest, and left
   out of it the campaign search rendered as an unstyled browser default with
   no width, padding or border. */
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number],
input[type=time], input[type=file], select, textarea {
    width: 100%; padding: 7px 9px; border: 1px solid var(--line);
    border-radius: 6px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 72px; resize: vertical; }
.field { margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 160px; }

button, .btn {
    padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px;
    background: #fff; color: var(--ink); font: inherit; cursor: pointer;
    display: inline-block;
}
button:hover, .btn:hover { background: var(--bg); text-decoration: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: #1a5fd0; }
button.danger { background: #fff; border-color: #f3b5ae; color: var(--bad); }
button.danger:hover { background: #fdecea; }
button.link { background: none; border: none; color: var(--accent); padding: 0; cursor: pointer; }
button.small, .btn.small { padding: 3px 8px; font-size: 12px; }

/* A disabled button carries the reason in its title, so it has to read as
   pressable-but-not-now rather than as a button that failed to draw. The
   cursor and the muted text are the whole signal; the browser default is
   inconsistent once a background is set. */
button[disabled], button[disabled]:hover {
    background: var(--bg); color: var(--muted); border-color: var(--line);
    cursor: not-allowed; opacity: 0.75;
}

/* A row of actions above a section: buttons first, then the sentence that
   explains what they will do. Wraps rather than squeezing on a narrow screen. */
.rowbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin: 0 0 12px;
}
.rowbar > .small { flex: 1 1 260px; min-width: 0; }

.checkline { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.checkline input { width: auto; }
.checkline label { margin: 0; font-size: 13px; color: var(--ink); }

/* ---- flashes and callouts ---- */

.flash {
    padding: 10px 14px; border-radius: 6px; margin-bottom: 14px;
    border: 1px solid #b9d6fb; background: #eef6ff; color: #0a4ea3;
}
.flash-error { border-color: #f3b5ae; background: #fdecea; color: var(--bad); }

/* A URL meant to be copied: monospace, fully selectable, and wrapping
   rather than overflowing, with its buttons pinned beside it. */
.linkbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 11px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.linkbar-url {
    flex: 1 1 320px;
    min-width: 0;
    font-family: "SF Mono", Consolas, "Courier New", monospace;
    font-size: 13px;
    word-break: break-all;
    user-select: all;
}
.linkbar button, .linkbar .btn { flex: 0 0 auto; user-select: none; background: #fff; }

.callout {
    padding: 10px 14px; border-radius: 6px; border: 1px solid #ecd08a;
    background: #fff6e0; color: #6b4d00; margin-bottom: 14px;
}
.callout-bad { border-color: #f3b5ae; background: #fdecea; color: var(--bad); }
.callout ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- transcript ---- */

/* A column of bubbles, each aligned to its own side. Doing the alignment here
   rather than with margin-left:auto is what lets a bubble be only as wide as
   its contents. */
.transcript {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: #efeae2;
    border-radius: var(--radius);
    padding: 14px 16px;
    max-height: 62vh;
    overflow-y: auto;
}

.bubble {
    /* fit-content is the point. A block element takes the FULL width of its
       container up to max-width, so a two-character reply used to render a
       bubble 74% of the panel wide, almost all of it empty. */
    width: fit-content;
    max-width: min(74%, 520px);

    /* Wrapping flex row so the timestamp sits beside a short message and drops
       under a long one, instead of always claiming a line of its own. */
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;

    padding: 6px 9px;
    border-radius: 8px;
    background: var(--in);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    word-break: break-word;
}

/* pre-wrap belongs on the message text alone. On the bubble it also preserved
   the template's own indentation, so every message rendered with a chunk of
   leading whitespace inside it. */
.bubble .text {
    white-space: pre-wrap;
    min-width: 0;
}

.bubble.out {
    background: var(--out);
    align-self: flex-end;
}

.bubble.system {
    align-self: center;
    justify-content: center;
    max-width: min(88%, 560px);
    background: #fff9db;
    font-size: 12px;
}

.bubble .meta {
    font-size: 10px;
    color: var(--muted);
    margin-left: auto;      /* pushed to the trailing edge of whichever line it lands on */
    white-space: nowrap;
    line-height: 1.6;
}

/* An attachment always takes its own line above the caption. */
.bubble .attachment,
.bubble .attachment-media {
    flex: 1 0 100%;
    font-size: 11px;
    color: var(--muted);
    display: block;
}

.bubble .attachment { text-decoration: none; }
.bubble .attachment:hover { text-decoration: underline; }

/* The picture itself, capped so a tall image does not push the rest of the
   conversation off screen. Click through for the full size. */
.bubble .attachment-media {
    margin-bottom: 4px;
    line-height: 0;
}
.bubble .attachment-media img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    border-radius: 6px;
    cursor: zoom-in;
    background: rgba(0, 0, 0, .04);
}

.bubble img { max-width: 100%; border-radius: 6px; }

/* A voice note.
   The width is a fixed px value, NOT a percentage. .bubble is width:fit-content,
   so a percentage here is circular -- the parent sizes to the child and the
   child to the parent -- and Chrome resolved it by collapsing the control to
   72px, which renders as a sliver with no visible play button. */
.bubble .attachment-audio {
    flex: 1 0 auto;
    width: 280px;
    max-width: 100%;
    height: 40px;
    margin-bottom: 4px;
}

.ticks { letter-spacing: -2px; }
.ticks.read { color: #34b7f1; }

/* ---- pairing ---- */

.qr-box {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
/* Shown at its natural 512px where there is room, never scaled up past it.
   `image-rendering: pixelated` keeps module edges hard instead of letting the
   browser blur them into each other -- but only works in our favour when the
   image is not being downscaled, hence the max-width rather than a fixed one. */
.qr-box img {
    width: 100%;
    max-width: 512px;
    height: auto;
    image-rendering: pixelated;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
}
.qr-countdown { font-size: 12px; color: var(--muted); }

/* ---- misc ---- */

.step-card { border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin-bottom: 12px; background: #fff; }
.step-card.final { border-color: #a7d8b6; }
.variant { border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 8px; }

/* A saved wording at rest: the text as it will be sent, nothing that looks
   like a form until Edit is pressed. pre-wrap because a wording's own line
   breaks are part of the message. */
.wording-body {
    white-space: pre-wrap;
    word-break: break-word;
    padding: 7px 9px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}
/* The file a step carries, shown rather than named. Capped so a tall image or
   an A4 page does not push the wordings off screen. */
.attach-preview {
    margin-top: 8px;
    padding: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.attach-preview img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 4px;
    display: block;
    background: #fff;
}
/* A PDF renders through the browser viewer, so it needs real dimensions --
   an auto-height embed collapses to nothing. */
.attach-pdf {
    width: 100%;
    max-width: 320px;
    height: 220px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}
.attach-preview > div { margin-top: 6px; }

.preview-phone {
    background: #efeae2; border-radius: 8px; padding: 10px; margin-top: 6px;
}
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
    padding: 7px 12px; border: 1px solid transparent; border-bottom: none;
    border-radius: 6px 6px 0 0; color: var(--muted); margin-bottom: -1px;
}
.tabs a.active { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }

/* Tinted tabs group the ones that belong together: green for the three that
   make a campaign send, orange for EDM as the separate channel it is.
   A left edge and a faint wash rather than coloured text, so the active tab's
   own styling still reads as "you are here" on top of the tint. */
.tabs a.hl-green,
.tabs a.hl-orange { border-left-width: 3px; border-left-style: solid; }

.tabs a.hl-green  { border-left-color: #1f9d55; background: #f2fbf6; color: #15703d; }
.tabs a.hl-orange { border-left-color: #d97706; background: #fff8ee; color: #9a5608; }

.tabs a.hl-green:hover  { background: #e6f7ee; }
.tabs a.hl-orange:hover { background: #fdf0dc; }

/* Active wins on the other three edges so the selected tab still joins the
   panel below it, but keeps its colour on the left. */
.tabs a.hl-green.active,
.tabs a.hl-orange.active { background: #fff; border-top-color: var(--line); border-right-color: var(--line); }
.tabs a.hl-green.active  { color: #15703d; }
.tabs a.hl-orange.active { color: #9a5608; }
/* ---- EDM rich text editor ---- */

.rt { border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }

.rt-bar {
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    padding: 5px 6px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.rt-spacer { flex: 1 1 auto; }
.rt-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }

.rt-btn {
    min-width: 30px; padding: 4px 7px; font-size: 13px; line-height: 1.2;
    border: 1px solid transparent; background: none; border-radius: 4px; cursor: pointer;
}
.rt-btn:hover { background: #fff; border-color: var(--line); }

/* The writing surface. A generous min-height because an EDM is a page, not a
   form field, and a three-line box invites a three-line email. */
.rt-area {
    min-height: 260px; max-height: 60vh; overflow-y: auto;
    padding: 14px 16px; font-size: 14px; line-height: 1.6; outline: none;
}
.rt-area:focus { box-shadow: inset 0 0 0 2px #dce8fb; }
.rt-area img { max-width: 100%; height: auto; }
.rt-area h1, .rt-area h2, .rt-area h3 { margin: 12px 0 6px; }
.rt-area p { margin: 0 0 10px; }
.rt-area ul, .rt-area ol { margin: 0 0 10px; padding-left: 22px; }
.rt-area table { border-collapse: collapse; }
.rt-area td, .rt-area th { border: 1px solid var(--line); padding: 4px 8px; }
.rt-area:empty::before { content: "Write the email here…"; color: var(--muted); }

.rt-emoji { border-top: 1px solid var(--line); background: var(--bg); }
/* Needed because the rules below give this a display value, which beats the
   browser's own `[hidden] { display: none }` and left the palette open. */
.rt-emoji[hidden] { display: none; }

.rt-emoji-tabs {
    display: flex; gap: 2px; flex-wrap: wrap;
    padding: 6px 8px 0; border-bottom: 1px solid var(--line);
}
.rt-emoji-tab {
    padding: 4px 8px; font-size: 12px; color: var(--muted);
    border: 1px solid transparent; border-bottom: none; border-radius: 4px 4px 0 0;
    background: none; cursor: pointer; margin-bottom: -1px;
}
.rt-emoji-tab:hover { background: #fff; }
.rt-emoji-tab.active { background: #fff; border-color: var(--line); color: var(--ink); font-weight: 600; }

/* Fixed height and scrolling: the largest category runs to over 200 emoji, and
   letting the palette grow to fit pushes Save off the bottom of the screen. */
.rt-emoji-grid {
    display: flex; flex-wrap: wrap; gap: 2px;
    height: 150px; overflow-y: auto;
    padding: 8px; background: #fff;
}
.rt-emoji-btn {
    width: 32px; height: 32px; font-size: 17px; line-height: 1;
    border: 1px solid transparent; background: none; border-radius: 4px; cursor: pointer;
}
.rt-emoji-btn:hover { background: var(--bg); border-color: var(--line); }

/* ---- Figure page: monthly column chart ---- */

.chart {
    display: flex; align-items: flex-end; gap: 6px;
    padding: 8px 2px 0;
}
.chart-col { flex: 1 1 0; min-width: 0; text-align: center; }

/* The bars grow from a common baseline, so the track has to be a fixed height
   and the bar a percentage of it -- percentage heights need a resolved parent. */
.chart-track {
    height: 130px; display: flex; align-items: flex-end;
    background: linear-gradient(to top, var(--bg) 0 1px, transparent 1px);
}
.chart-bar {
    width: 100%; background: var(--accent); border-radius: 3px 3px 0 0;
    min-height: 0; transition: height .15s ease-out;
}
.chart-col:hover .chart-bar { background: #1a5fd0; }

.chart-n  { font-size: 12px; font-weight: 600; height: 16px; color: var(--ink); }
.chart-x  { font-size: 11px; color: var(--muted); padding-top: 4px; border-top: 1px solid var(--line); }
.chart-yr { font-size: 10px; color: var(--muted); height: 13px; }

/* ---- campaign search ---- */

.searchbar {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
/* The term gets the room; the status dropdown only needs to fit its longest
   value, and both stay usable once they wrap on a narrow screen. */
.searchbar .field:first-child { flex: 1 1 260px; margin-bottom: 0; }
.searchbar .field { flex: 0 0 auto; margin-bottom: 0; }
.searchbar-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.searchbar-count { flex: 1 1 100%; }

/* ---- sales outcome table ---- */

/* Inputs inside a table cell default to a width that either overflows the
   column or collapses to nothing; these fill the cell instead. */
.outcomes td select,
.outcomes td input[type=text] { width: 100%; margin: 0; }
.outcomes td { vertical-align: top; }

/* A lead nobody has reported on yet. Marked rather than sorted only, because
   the row order stops meaning anything as soon as somebody saves. */
.outcomes tr.unanswered td:first-child { box-shadow: inset 3px 0 0 #d97706; }

.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* ---- client-facing proposal ---- */

/* Reads as a document rather than a dashboard panel: it is going to be copied
   into an email or a PDF, so give it prose measure and spacing. */
.proposal {
    max-width: 46rem;
    padding: 18px 22px;
    margin: 12px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    line-height: 1.7;
}
.proposal h2 { font-size: 18px; margin: 0 0 4px; }
.proposal h3 { font-size: 15px; margin: 22px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.proposal h4 { font-size: 13px; margin: 14px 0 6px; }
.proposal p  { margin: 6px 0; }
.proposal ul { margin: 6px 0 12px; padding-left: 20px; }
.proposal li { margin-bottom: 8px; }

/* A target's own words. The most persuasive thing in the document, so it
   should look like a quotation and not like body text. */
.proposal blockquote {
    margin: 6px 0 6px 4px;
    padding: 6px 12px;
    border-left: 3px solid var(--out);
    background: #f6faf3;
    color: var(--ink);
    font-size: 14px;
}
.proposal hr { border: none; border-top: 1px solid var(--line); margin: 18px 0 10px; }
