/* Aeroitalia brand font. Colors live in settings.UNFOLD["COLORS"]. */
@font-face {
  font-family: "Anek Latin";
  src: url("AnekLatin.8380af61890a.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 125%;
  font-display: swap;
}
/* Unlayered, so it beats Unfold's --font-sans in @layer theme. */
:root { --font-sans: "Anek Latin", system-ui, sans-serif; }

/* Dashboard (templates/admin/index.html) and email editor. Unfold's Tailwind is precompiled, so classes it
   doesn't already use don't exist: these styles use its color variables, and its .dark class for dark mode. */
.dash {
  --ink: var(--color-base-900); --muted: var(--color-base-500); --rule: var(--color-base-200);
  --ok: var(--color-primary-600); --warn: var(--color-orange-600); --bad: var(--color-red-600); --off: var(--color-base-400);
  max-width: 64rem; color: var(--color-base-700);
}
.dark .dash {
  --ink: var(--color-base-100); --muted: var(--color-base-400); --rule: var(--color-base-800);
  --ok: var(--color-primary-400); --warn: var(--color-orange-400); --bad: var(--color-red-400); --off: var(--color-base-500);
  color: var(--color-base-300);
}
.dash a { color: inherit; text-decoration: none; }
.dash a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash :focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; border-radius: 4px; }

.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin: 8px 0 20px; }
/* The one loud element: the state of the pipeline, in the brand face, condensed like a departure-board line. */
.dash-status {
  margin: 0; max-width: 22ch; color: var(--ink); font-size: clamp(28px, 4.5vw, 42px); line-height: 1.08;
  font-weight: 600; font-stretch: 87.5%; letter-spacing: -.01em; text-wrap: balance;
}
.dash-status.dash-bad { color: var(--bad); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-button {
  display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent;
  background: var(--color-primary-600); color: #fff !important; font-weight: 500; font-size: 15px; white-space: nowrap;
}
.dash-button:hover { background: var(--color-primary-700); text-decoration: none !important; }
.dash-button-quiet { background: transparent; border-color: var(--color-base-300); color: var(--ink) !important; }
.dash-button-quiet:hover { background: var(--color-base-100); }
.dark .dash-button-quiet { border-color: var(--color-base-700); }
.dark .dash-button-quiet:hover { background: var(--color-base-800); }

.dash-checks { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.dash-checks li { display: flex; gap: 10px; align-items: flex-start; }
.dash-checks .material-symbols-outlined { font-size: 20px; line-height: 1.2; }
.dash-ok .material-symbols-outlined { color: var(--ok); }
.dash-warn .material-symbols-outlined { color: var(--warn); }
.dash-bad .material-symbols-outlined { color: var(--bad); }
.dash-off .material-symbols-outlined { color: var(--off); }
.dash-checks .dash-bad { color: var(--bad); }

.dash-title { margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 600; }
.dash-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dash-tile { padding: 16px; border: 1px solid var(--rule); border-radius: 8px; }
.dash-big { display: block; margin: 4px 0; color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
/* Unfold's charts don't keep an aspect ratio: the wrapper sets the height. */
.dash-chart { position: relative; height: 220px; margin: 8px 0 40px; }
.dash-scroll { overflow-x: auto; }
.dash-upcoming { margin-bottom: 40px; }
.dash-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.dash-table th, .dash-table td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.dash-table thead th { padding-top: 0; color: var(--muted); font-size: 13px; font-weight: 500; }
.dash-table tbody th { font-weight: 600; color: var(--ink); }
.dash-meta { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 400; }
.dash-tag { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: var(--color-base-100); color: var(--color-base-600); }
.dark .dash-tag { background: var(--color-base-800); color: var(--color-base-300); }
.dash-num { text-align: right !important; font-variant-numeric: tabular-nums; }
.dash-rate { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.dash-bar { width: 72px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.dash-bar span { display: block; height: 100%; background: var(--ok); }
.dash-none { color: var(--muted); }
.dash-note { margin: 12px 0 40px; max-width: 70ch; color: var(--muted); font-size: 13px; }
.dash-empty { padding: 24px 0; max-width: 60ch; }
.dash-empty p { margin: 0 0 16px; font-size: 16px; }

/* -success, -info, -warning, -danger: the Sent emails progress badges (results.message_progress) on the booking page. */
.dash-tag-ok, .dash-tag-success, .dash-tag-info { background: var(--color-primary-100); color: var(--color-primary-800); }
.dark :is(.dash-tag-ok, .dash-tag-success, .dash-tag-info) { background: var(--color-primary-950); color: var(--color-primary-300); }
.dash-tag-warn, .dash-tag-warning { background: var(--color-orange-100); color: var(--color-orange-800); }
.dark :is(.dash-tag-warn, .dash-tag-warning) { background: var(--color-orange-950); color: var(--color-orange-300); }
.dash-tag-danger { background: var(--color-red-100); color: var(--color-red-800); }
.dark .dash-tag-danger { background: var(--color-red-950); color: var(--color-red-300); }
.dash-link-bold { font-weight: 600; color: var(--color-primary-700) !important; }
.dark .dash-link-bold { color: var(--color-primary-400) !important; }

/* Compare campaigns (templates/admin/compare.html): the dashboard's look, with its form above. */
.compare-form { display: grid; gap: 16px; margin-bottom: 32px; justify-items: start; }
.compare-period { display: flex; flex-wrap: wrap; gap: 16px; }
.compare-form label { display: grid; gap: 4px; }
/* The dates matter only for a custom period: no JS, the select's own state shows them. */
.compare-start, .compare-end { display: none !important; }
.compare-form:has(option[value="custom"]:checked) :is(.compare-start, .compare-end) { display: grid !important; }
.compare-campaigns { width: 100%; max-width: 48rem; }
.compare-campaigns .select2-container { width: 100% !important; }
/* A select2 group is itself an option holding its campaigns, and Unfold's theme pads and hovers every option: without
   this, pointing at a campaign highlights its whole group. The dropdown lives at the end of <body>, hence no scope. */
.select2-container.select2-container--admin-autocomplete .select2-results__option[role="group"] {
  margin-inline: 0; padding: 0; background: transparent !important; color: inherit;
}
.select2-container--admin-autocomplete .select2-results__group {
  display: block; padding: 8px calc(var(--spacing) * 3) 4px; color: var(--color-base-500); font-size: 12px; font-weight: 600;
}
.compare-error { color: var(--bad); font-size: 13px; }
.compare-form button { cursor: pointer; }
/* Unfold's chart legend is off: this is the key to the bars' two colors, set in results.compare_chart. */
.compare-key { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; }
.compare-key::before { content: ""; width: 10px; height: 10px; border-radius: 2px; }
.compare-key-opened::before { background: var(--color-primary-600); }
.compare-key-clicked::before { background: var(--color-primary-300); }

/* Help page (templates/admin/help.html): the dashboard's look, for reading. Tailwind's reset removes list markers.
   One panel per tab, without JS: the one the URL's #… points at or holds, else the first. admin.js marks its tab. */
.help { max-width: 60rem; }
.help #tabs-wrapper { margin-top: 24px; }
/* Scrolled to below the title and tabs, so a tab's click keeps them in view. */
.help-panels > .help-panel { display: none; scroll-margin-top: 160px; }
.help-panel:target, .help-panel:has(:target), .help-panels:not(:has(:target)) > .help-panel:first-child { display: block; }
.help-steps { counter-reset: step; }
.help-steps section { counter-increment: step; }
.help-chapters code { font-size: 14px; }
.help-part { margin: 0 0 24px; padding-top: 8px; color: var(--ink); font-size: 26px; font-weight: 600; font-stretch: 87.5%; }
.help-chapters section { margin-bottom: 56px; scroll-margin-top: 24px; }
.help-chapters .help-lead { margin-bottom: 40px; font-size: 17px; }
/* The steps as a timeline: a numbered dot per step, joined by a line down to the next one. */
.help-steps section { position: relative; padding-left: 48px; }
.help-steps section:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 36px; bottom: -48px; border-left: 2px solid var(--rule); }
.help-steps .dash-title::before {
  content: counter(step); position: absolute; left: 0; top: -3px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary-600); color: #fff; font-size: 15px;
}
.help-chapters p, .help-chapters li { max-width: 70ch; font-size: 16px; line-height: 1.55; }
.help-chapters p { margin: 0 0 12px; }
.help-chapters ol, .help-chapters ul { margin: 0 0 16px; padding-left: 22px; }
.help-chapters ol { list-style: decimal; }
.help-chapters ul { list-style: disc; }
.help-chapters li { margin: 6px 0; }
/* Troubleshooting: each problem, then what to do. */
.help-chapters dt { margin-top: 20px; color: var(--ink); font-size: 16px; font-weight: 600; }
.help-chapters dd { margin: 4px 0 0; max-width: 70ch; font-size: 16px; line-height: 1.55; }
.help-chapters strong { color: var(--ink); font-weight: 600; }
/* Links in the text look like links; .dash drops their underline. */
.help-chapters :is(p, li, dd) a { text-decoration: underline; text-underline-offset: 3px; }
.help-chapters img { display: block; width: 100%; height: auto; margin: 16px 0 24px; border: 1px solid var(--rule); border-radius: 8px; }

/* Guided tours (driver.js, started by admin.js): popovers in the admin's palette. */
.driver-popover.radar-tour {
  --driver-popover-font-family: var(--font-sans);
  max-width: 340px; padding: 16px; border-radius: 8px; background: #fff; color: var(--color-base-700);
}
.radar-tour .driver-popover-title { color: var(--color-base-900); font-size: 18px; font-weight: 600; }
.radar-tour .driver-popover-description { font-size: 15px; }
.radar-tour .driver-popover-footer-btn {
  padding: 5px 12px; border-radius: 6px; border-color: var(--color-base-300); font-size: 14px; text-shadow: none;
}
.radar-tour .driver-popover-next-btn { background: var(--color-primary-600); border-color: transparent; color: #fff; }
.radar-tour .driver-popover-next-btn:hover, .radar-tour .driver-popover-next-btn:focus { background: var(--color-primary-700); }
.dark .driver-popover.radar-tour { background: var(--color-base-800); color: var(--color-base-300); }
.dark .radar-tour .driver-popover-title { color: var(--color-base-100); }
.dark .radar-tour .driver-popover-prev-btn { background: transparent; border-color: var(--color-base-600); color: var(--color-base-200); }
.dark .radar-tour .driver-popover-arrow-side-left { border-left-color: var(--color-base-800); }
.dark .radar-tour .driver-popover-arrow-side-right { border-right-color: var(--color-base-800); }
.dark .radar-tour .driver-popover-arrow-side-top { border-top-color: var(--color-base-800); }
.dark .radar-tour .driver-popover-arrow-side-bottom { border-bottom-color: var(--color-base-800); }

/* Email editor (radar/templates/radar/email_editor.html) */
/* The "Email" fieldset already names this field: drop Unfold's 14rem label column so the editor gets the full width. */
.field-mjml > div:first-child { display: none; }
/* GrapesJS gives its side panel 15% of the width, too narrow for the style and settings fields: use a fixed 320px. */
#email-editor .gjs-cv-canvas { width: calc(100% - 320px); }
#email-editor .gjs-pn-views, #email-editor .gjs-pn-views-container { width: 320px; }
#email-editor .gjs-pn-options { right: 320px; }
#email-editor { border: 1px solid var(--color-base-300); border-radius: 6px; overflow: hidden; }
/* GrapesJS's four theme classes, in the admin's palette instead of its default dark grey and pink. */
#email-editor .gjs-one-bg { background-color: var(--color-base-50); }
#email-editor .gjs-two-color { color: var(--color-base-700); }
#email-editor .gjs-three-bg { background-color: var(--color-primary-600); color: #fff; }
#email-editor .gjs-four-color, #email-editor .gjs-four-color-h:hover { color: var(--color-primary-600); }
.dark #email-editor { border-color: var(--color-base-700); }
.dark #email-editor .gjs-one-bg { background-color: var(--color-base-900); }
.dark #email-editor .gjs-two-color { color: var(--color-base-200); }
.dark #email-editor .gjs-four-color, .dark #email-editor .gjs-four-color-h:hover { color: var(--color-primary-400); }
/* Where a dragged block lands: GrapesJS's default is a 3px line, easy to miss. */
#email-editor { --gjs-placeholder-background-color: var(--color-primary-600); }
#email-editor .gjs-placeholder.horizontal { border-width: 6px 10px; margin: -6px 0 0; }
#email-editor .gjs-placeholder.vertical { border-width: 10px 6px; margin: 0 0 0 -6px; }
/* Blocks are added with a click too (email_editor.js), not only dragged. */
#email-editor .gjs-block { cursor: pointer; font-size: 13px; font-weight: 600; }
/* The Keyword… and Emoji… menus in the text toolbar (email_editor.js, addPicker). GrapesJS sizes every action 25px
   wide, which drew them over the buttons before them: these take their own width, and look like the toolbar, not a
   form field. */
#email-editor .gjs-rte-action:has(> .gjs-rte-picker) { width: auto; padding: 0; }
#email-editor .gjs-rte-picker {
  align-self: stretch; padding: 0 24px 0 10px; border: 0; border-radius: 0; appearance: none; cursor: pointer;
  color: inherit; font: inherit; font-size: 13px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A9A9E' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 9px;
}
#email-editor .gjs-rte-picker:hover { background-color: var(--color-base-100); }
#email-editor .gjs-rte-picker:focus-visible { outline: 2px solid var(--color-primary-600); outline-offset: -2px; }
.dark #email-editor .gjs-rte-picker { color-scheme: dark; }
.dark #email-editor .gjs-rte-picker:hover { background-color: var(--color-base-800); }

/* Toolbar above the editor */
.email-editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.email-editor-start {
  padding: 6px 12px; border: 1px solid var(--color-base-300); border-radius: 6px; font-size: 14px;
  color: var(--color-base-700); background: transparent; cursor: pointer;
}
.email-editor-start:hover { background: var(--color-base-100); }
/* "Show this section", a chip centered above the selected section (email_editor.js, a canvas spot sized to the
   section), so it covers none of it: GrapesJS's badge sits above-left and its toolbar above-right. Below the section
   when there's no room above. The spots layer ignores the pointer. */
.email-editor-condition label {
  position: absolute; bottom: calc(100% + 6px); left: 50%; translate: -50% 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 10px;
  border: 1px solid var(--color-primary-600); border-radius: 6px; background: #fff; color: var(--color-primary-700);
  font-size: 13px; font-weight: 600; box-shadow: 0 2px 6px rgb(0 0 0 / .15); pointer-events: auto; white-space: nowrap;
}
.email-editor-condition.below label { bottom: auto; top: calc(100% + 6px); }
.email-editor-condition select {
  padding: 2px 6px; border: 1px solid var(--color-base-300); border-radius: 4px; background: #fff;
  color: var(--color-base-700); font: inherit; font-weight: 400; cursor: pointer;
}
.dark .email-editor-condition label { background: var(--color-base-900); color: var(--color-primary-400); }
.dark .email-editor-condition select { background: var(--color-base-800); border-color: var(--color-base-700); color: var(--color-base-200); color-scheme: dark; }
.email-editor-hint { margin: 0; color: var(--color-base-500); font-size: 13px; }
.dark .email-editor-start { border-color: var(--color-base-700); color: var(--color-base-200); }
.dark .email-editor-start:hover { background: var(--color-base-800); }

/* The Keyword… menu under Subject and Preheader (email_editor.js). The button stays quiet; what it opens is a departure
   board, in the colors of the emails' own departure_board block, each keyword with its sample value on an amber flap.
   The board is the same in both themes: it's an object on the page, not a surface of it. */
.kw { position: relative; margin-top: 6px; }
.kw-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border: 1px solid var(--color-base-300);
  border-radius: 6px; background: transparent; color: var(--color-base-600); font-size: 13px; cursor: pointer;
}
.kw-toggle .material-symbols-outlined { font-size: 18px; color: var(--color-primary-600); }
.kw-toggle:hover, .kw-toggle[aria-expanded="true"] { border-color: var(--color-primary-600); color: var(--color-base-900); }
.kw-toggle:focus-visible { outline: 2px solid var(--color-primary-600); outline-offset: 2px; }
.dark .kw-toggle { border-color: var(--color-base-700); color: var(--color-base-300); }
.dark .kw-toggle .material-symbols-outlined { color: var(--color-primary-400); }
.dark .kw-toggle:hover, .dark .kw-toggle[aria-expanded="true"] { border-color: var(--color-primary-400); color: var(--color-base-100); }

.kw-board {
  --board: #102930; --flap: #1D3D45; --amber: #F2B632; --mist: #9CB8B4; --chalk: #E4EEEC;
  /* A popover (top layer), placed by email_editor.js: none of the browser's centered, bordered popover defaults. */
  position: fixed; inset: auto; margin: 0; border: 0; overflow: visible; width: min(27rem, calc(100vw - 32px));
  padding: 10px; border-radius: 12px; background: var(--board); color: var(--chalk);
  box-shadow: 0 20px 40px -16px rgb(16 41 48 / .6);
}
.kw-board [hidden] { display: none; }
.dark .kw-board { box-shadow: 0 0 0 1px var(--color-base-700), 0 20px 40px -16px rgb(0 0 0 / .7); }
.kw-search {
  width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: var(--flap);
  color: #fff; font: inherit; font-size: 14px;
}
.kw-search::placeholder { color: var(--mist); }
.kw-search:focus { outline: none; border-color: var(--amber); }
.kw-list {
  max-height: 18rem; overflow-y: auto; margin: 6px -4px 0; padding: 0 4px; overscroll-behavior: contain;
  scrollbar-color: var(--flap) transparent;
}
.kw-group { margin: 12px 8px 4px; color: var(--mist); font-size: 12px; }
.kw-group:first-child { margin-top: 6px; }
.kw-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 5px 5px 5px 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--chalk); font-size: 14px; text-align: left;
  cursor: pointer; box-shadow: inset 3px 0 0 transparent;
}
.kw-item:hover, .kw-item:focus-visible {
  outline: none; background: var(--flap); color: #fff; box-shadow: inset 3px 0 0 var(--amber);
}
.kw-name { min-width: 0; overflow-wrap: anywhere; }
/* The flap: the brand face condensed, as on an airport board. */
.kw-sample {
  flex: none; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 8px;
  border-radius: 4px; background: var(--flap); color: var(--amber); font-size: 15px; font-weight: 700;
  font-stretch: 75%; letter-spacing: .04em; font-variant-numeric: tabular-nums;
}
.kw-item:hover .kw-sample, .kw-item:focus-visible .kw-sample { background: var(--board); }
.kw-empty { margin: 12px 8px 4px; color: var(--mist); font-size: 13px; }
.kw-note { margin: 8px 0 0; padding: 8px 8px 0; border-top: 1px solid var(--flap); color: var(--mist); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .kw-board:popover-open { animation: kw-open .14s ease-out; }
}
@keyframes kw-open { from { opacity: 0; transform: translateY(-4px); } }

/* Booking page (booking_flight.html, booking_activity.html). The one loud element is the flight strip, a boarding pass:
   the route in the dashboard's condensed departure-board type, the PNR on a stub behind a dashed tear line. */
.booking-flight-wrap { max-width: none; margin-bottom: 24px; }
.booking-flight { display: flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); }
.booking-flight-main { flex: 1 1 360px; padding: 20px 24px; }
.booking-flight-route {
  display: flex; align-items: center; gap: 16px; margin: 0; max-width: 32rem;
  font-size: clamp(32px, 5vw, 44px); line-height: 1; font-weight: 600; font-stretch: 87.5%; letter-spacing: .02em;
}
.booking-flight-line { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 72px; color: var(--ok); }
.booking-flight-line::before, .booking-flight-line::after { content: ""; flex: 1; border-top: 2px dashed var(--rule); }
.booking-flight-line .material-symbols-outlined { font-size: 24px; transform: rotate(90deg); }
.booking-flight-via { color: var(--muted); font-size: 14px; font-weight: 500; font-stretch: normal; letter-spacing: 0; white-space: nowrap; }
.schedule-journey th { padding-top: 24px; font-size: 16px; }
tbody:first-of-type > .schedule-journey th { padding-top: 0; }
.schedule-via { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.booking-flight-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 16px 0 0; color: var(--color-base-700); font-size: 15px; font-variant-numeric: tabular-nums; }
.dark .booking-flight-meta { color: var(--color-base-300); }
.booking-flight-stub { flex: 0 1 240px; display: flex; flex-direction: column; gap: 2px; padding: 20px 24px; border-left: 2px dashed var(--rule); font-size: 14px; }
.booking-flight-pnr { font-size: 24px; font-weight: 600; letter-spacing: .06em; }
.booking-flight-stub a { margin-top: 6px; color: var(--color-primary-700); font-weight: 500; }
.dark .booking-flight-stub a { color: var(--color-primary-400); }
.booking-flight-note { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; color: var(--warn); font-weight: 500; }
@media (max-width: 640px) {
  .booking-flight-stub { flex-basis: 100%; border-left: 0; border-top: 2px dashed var(--rule); }
}
.booking-activity { margin-top: 32px; }
.booking-section { margin-bottom: 40px; }
.booking-activity .dash-tag { margin-left: 0; white-space: nowrap; }
.booking-activity a { font-weight: 600; }
.booking-campaigns ul { margin: 0; padding-left: 18px; list-style: disc; color: var(--muted); }

/* Sent email page (message_progress.html): the one loud element is the track, the email's progress drawn like the
   booking page's flight line. Solid up to what happened, dashed on to what hasn't yet. */
.message-wrap { max-width: none; margin-bottom: 32px; }
.message-campaign {
  margin: 0; color: var(--ink); font-size: clamp(26px, 4vw, 34px); line-height: 1.1;
  font-weight: 600; font-stretch: 87.5%; text-wrap: balance;
}
.message-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; margin: 8px 0 0; font-size: 15px; }
.message-meta strong { color: var(--ink); font-weight: 600; }
.message-booking { font-variant-numeric: tabular-nums; }
.message-booking strong { letter-spacing: .06em; }
.message-track { display: flex; margin: 28px 0 0; padding: 0; list-style: none; max-width: 56rem; }
.message-track li { position: relative; flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 28px 12px 0 0; font-size: 14px; }
.message-track li:not(:last-child)::before { content: ""; position: absolute; top: 8px; left: 22px; right: 6px; border-top: 2px solid var(--ok); }
.message-track li:has(+ li[data-tone="todo"])::before { border-top-style: dashed; border-color: var(--rule); }
.message-track li:has(+ li[data-tone="warning"])::before { border-color: var(--warn); }
.message-track li:has(+ li[data-tone="danger"])::before { border-color: var(--bad); }
.message-dot { position: absolute; top: 1px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); }
.message-track [data-tone="todo"] .message-dot { background: transparent; border: 2px solid var(--rule); }
.message-track [data-tone="todo"] strong { color: var(--muted); font-weight: 500; }
.message-track [data-tone="warning"] .message-dot { background: var(--warn); }
.message-track [data-tone="danger"] .message-dot { background: var(--bad); }
.message-track [data-tone="ok"] strong { color: var(--ink); }
.message-track [data-tone="warning"] strong { color: var(--warn); }
.message-track [data-tone="danger"] strong { color: var(--bad); }
.message-time { font-variant-numeric: tabular-nums; }
.message-track li:has(.message-notes) { flex: 2.5; }
.message-notes { margin-top: 6px; max-width: 40ch; }
.message-notes p { margin: 0 0 4px; }
.message-notes summary { color: var(--muted); cursor: pointer; }
.message-notes .dash-meta { overflow-wrap: anywhere; }
.message-why { margin: 24px 0 0; max-width: 70ch; padding-left: 14px; border-left: 3px solid var(--warn); }
.message-why p { margin: 0; color: var(--ink); }
.message-why ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.message-wrap > .dash-meta { margin-top: 20px; }
@media (max-width: 640px) {
  .message-track { flex-direction: column; }
  .message-track li { padding: 0 0 20px 28px; }
  .message-track li:not(:last-child)::before { top: 22px; bottom: 4px; left: 7px; right: auto; border-top: 0; border-left: 2px solid var(--ok); }
  .message-track li:has(+ li[data-tone="todo"])::before { border-left-style: dashed; }
}

/* Campaign list: the line under each name (campaigns.campaign_details) */
.campaign-details { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; color: var(--color-base-500); font-size: 13px; }
.campaign-locked { color: var(--color-orange-600); font-weight: 500; }
.dark .campaign-locked { color: var(--color-orange-400); }
.campaign-design:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Flipping an Active switch saves it (admin.js) */
.model-trigger.change-list button[name=_save], .model-disruption.change-list button[name=_save] { display: none; }

/* Campaign or design page whose edit lock someone else now holds (admin.js): stays in view while scrolling the editor */
.edit-lock-lost {
  position: sticky; top: 0; z-index: 40; margin-bottom: 16px; padding: 12px 16px; border-radius: 6px;
  background: var(--color-red-100); color: var(--color-red-700); font-weight: 500;
}
.dark .edit-lock-lost { background: color-mix(in oklab, var(--color-red-500) 20%, transparent); color: var(--color-red-400); }

/* Services: no Save button (Viewers) means a drag couldn't be saved, so no drag handle either */
body:not(:has(button[name=_save])) #result_list[data-ordering-field] [x-sort\:handle] { visibility: hidden; pointer-events: none; }
