/*
 * Announcements of OneStop (V1.62), prefix an-: the banner under the top bar (Client\Shared\AnnouncementBanner.razor), the bell
 * and its panel (AnnouncementBell.razor), the person's center (Pages\MyAnnouncements.razor, MyAnnouncementPage.razor), the email
 * preferences of /me/notifications, and the Employee app's pages (Apps\Announcements: the list, the composer and its previews,
 * an announcement's page, the delivery log, the settings, the confirmation of a send, the degraded form).
 * Colours only through the tokens of app.css (:root and its dark values) and the four severity colours below, each with its dark
 * value; text and an icon beside every colour (never colour alone); contrast AA in both themes; prefers-reduced-motion: no slide.
 * The design system of wave 0 replaces these tokens when it lands.
 * Copyright (c) 2026 Toupin Technologies Inc. All rights reserved.
 */
:root {
  --an-info: #7a6418;          /* gold text on --an-info-soft */
  --an-info-soft: #fbf3d2;
  --an-info-line: #e0bf3f;
  --an-maint: #2f4f5c;
  --an-maint-soft: #e5edf0;
  --an-maint-line: #4f6d7a;
  --an-amber: #8a3a07;
  --an-amber-soft: #fdeedd;
  --an-amber-line: #b54708;
  --an-red: #8f1d14;
  --an-red-soft: #fde8e6;
  --an-red-line: #b42318;
  --an-green: #12572f;
  --an-green-soft: #e3f4e8;
  --an-green-line: #027a48;
}

:root[data-theme="dark"] {
  --an-info: #e8cb6c;
  --an-info-soft: #3a3217;
  --an-info-line: #e0bf3f;
  --an-maint: #b7d2dd;
  --an-maint-soft: #1d2b31;
  --an-maint-line: #7fa6b6;
  --an-amber: #f3b47b;
  --an-amber-soft: #3b2b19;
  --an-amber-line: #e08a43;
  --an-red: #f6a9a3;
  --an-red-soft: #3d2121;
  --an-red-line: #ea6b60;
  --an-green: #9ae0ad;
  --an-green-soft: #1d3420;
  --an-green-line: #4cc354;
}

/* ---- The banner (9.1): full width under the top bar, one at a time ---- */
.an-banner-area { flex: 0 0 auto; }
.an-banner {
  --tone: var(--an-maint); --tone-soft: var(--an-maint-soft); --tone-line: var(--an-maint-line);
  display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-bottom: 1px solid var(--border);
  border-left: 5px solid var(--tone-line); background: var(--tone-soft); color: var(--tone);
  animation: an-slide 220ms ease-out;
}
.an-banner.an-tone-info { --tone: var(--an-info); --tone-soft: var(--an-info-soft); --tone-line: var(--an-info-line); }
.an-banner.an-tone-amber { --tone: var(--an-amber); --tone-soft: var(--an-amber-soft); --tone-line: var(--an-amber-line); }
.an-banner.an-tone-red { --tone: var(--an-red); --tone-soft: var(--an-red-soft); --tone-line: var(--an-red-line); }
.an-banner.an-tone-green { --tone: var(--an-green); --tone-soft: var(--an-green-soft); --tone-line: var(--an-green-line); }
.an-banner-icon { flex: 0 0 auto; display: inline-flex; }
.an-banner-text { flex: 1; min-width: 0; font-size: 0.9rem; line-height: 1.35; }
.an-banner-text b { font-weight: 800; }
.an-banner-meta { margin-left: 6px; opacity: 0.85; font-size: 0.82rem; white-space: nowrap; }
.an-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.an-banner-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border: 1px solid var(--tone-line); border-radius: 999px;
  background: var(--panel); color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.an-banner-btn:hover { background: var(--panel-2); }
.an-banner-pager { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.an-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer;
}
.an-icon-btn:hover { background: rgba(0, 0, 0, 0.07); }
:root[data-theme="dark"] .an-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.an-icon-btn:focus-visible, .an-banner-btn:focus-visible { outline: 2px solid var(--tone-line, var(--accent)); outline-offset: 2px; }
@keyframes an-slide { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 700px) {
  .an-banner { flex-wrap: wrap; padding: 8px 10px; }
  .an-banner-text { flex-basis: calc(100% - 80px); }
  .an-banner-meta { display: block; margin-left: 0; }
}
html.framed .an-banner-area { display: none; }

/* ---- The bell (9.2) ---- */
.an-bell {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--panel); color: var(--text); cursor: pointer;
}
.an-bell:hover { background: var(--panel-2); }
.an-bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--an-red-line);
  color: #ffffff; font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center;
}
.an-bell-panel { width: min(400px, calc(100vw - 24px)); max-height: min(560px, 80vh); overflow: auto; padding: 4px 0; }
.an-bell-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; }
.an-bell-head b { font-size: 0.95rem; }
.an-bell-section { padding: 8px 14px 2px; color: var(--muted); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.7px; text-transform: uppercase; }
.an-bell-row { display: grid; grid-template-columns: 10px 22px 1fr; gap: 8px; align-items: start; padding: 8px 14px; color: var(--text); text-decoration: none; }
.an-bell-row:hover { background: var(--accent-soft); }
.an-bell-row .an-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.an-bell-row.unread .an-dot { background: var(--an-red-line); }
.an-bell-row .an-row-title { font-size: 0.86rem; font-weight: 700; line-height: 1.3; }
.an-bell-row .an-row-sub { color: var(--muted); font-size: 0.78rem; }
.an-bell-empty { padding: 16px 14px; color: var(--muted); font-size: 0.86rem; }
.an-bell-foot { display: flex; justify-content: flex-end; padding: 8px 14px; border-top: 1px solid var(--rule); }

/* ---- Chips of the phase and the kind ---- */
.an-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--chip-text);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; white-space: nowrap;
}
.an-chip.an-tone-info { background: var(--an-info-soft); color: var(--an-info); }
.an-chip.an-tone-maint { background: var(--an-maint-soft); color: var(--an-maint); }
.an-chip.an-tone-amber { background: var(--an-amber-soft); color: var(--an-amber); }
.an-chip.an-tone-red { background: var(--an-red-soft); color: var(--an-red); }
.an-chip.an-tone-green { background: var(--an-green-soft); color: var(--an-green); }
.an-chip.an-quiet { background: transparent; border: 1px solid var(--border); color: var(--muted); }

/* ---- Pages (full width: the owner's rule) ---- */
.an-page { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.an-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.an-head h1 { margin: 0; font-size: 1.35rem; font-weight: 900; }
.an-head .hint { margin: 4px 0 0; }
.an-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-kpis .kpi .value { font-size: 1.6rem; }
.an-kpis .kpi.an-bad .value { color: var(--bad); }
.an-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); font-size: 0.84rem; }
.an-strip.an-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; font-weight: 700; }
.an-strip.an-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; font-weight: 700; }
.an-title-cell { font-weight: 700; }
.an-sub { color: var(--muted); font-size: 0.78rem; }
.an-kind { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--chip); color: var(--chip-text); }
.an-kind.an-tone-maint { background: var(--an-maint-soft); color: var(--an-maint); }
.an-kind.an-tone-red { background: var(--an-red-soft); color: var(--an-red); }
.an-kind.an-tone-info { background: var(--an-info-soft); color: var(--an-info); }
.an-empty { padding: 28px; color: var(--muted); text-align: center; }
.an-empty .an-empty-title { color: var(--text); font-size: 1rem; font-weight: 800; }

/* ---- The composer (17.2): the form and the sticky previews ---- */
.an-compose { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .an-compose { grid-template-columns: 1fr; } }
.an-aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; }
.an-step { display: flex; flex-direction: column; gap: 10px; }
.an-step-head { display: flex; align-items: center; gap: 10px; }
.an-step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--os-accent);
  color: var(--os-on-accent); font-size: 0.8rem; font-weight: 900;
}
.an-step-head h2 { flex: 1; margin: 0; font-size: 0.95rem; font-weight: 900; letter-spacing: 0.4px; text-transform: uppercase; }
.an-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.an-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.an-field.an-grow { flex: 1; min-width: 200px; }
.an-field > span:first-child { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; }
.an-input, .an-select, .an-textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--text); font: inherit; font-size: 0.9rem;
}
.an-textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.an-input:focus, .an-select:focus, .an-textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.an-count { color: var(--faint); font-size: 0.72rem; text-align: right; }
.an-count.an-over { color: var(--bad); font-weight: 800; }
.an-seg { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); gap: 2px; }
.an-seg button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  font: inherit; font-size: 0.84rem; font-weight: 700; cursor: pointer;
}
.an-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.an-seg button:focus-visible { outline: 2px solid var(--accent); }
.an-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.an-pick {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
  color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.an-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.an-pick:focus-visible { outline: 2px solid var(--accent); }
.an-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; cursor: pointer; }
.an-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.an-utc { color: var(--faint); font-size: 0.74rem; }
.an-ai { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); }
.an-ai .an-input { flex: 1; min-width: 220px; }
.an-ai-note { color: var(--accent-strong); font-size: 0.78rem; }
.an-who-total { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 0.86rem; }
.an-who-total b { font-size: 1.05rem; }
.an-every { color: var(--bad); font-weight: 900; }

/* The plan ("How" and "What goes out") */
.an-grid { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.an-grid th { padding: 6px 8px; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.3px; text-align: left; text-transform: uppercase; }
.an-grid td { padding: 6px 8px; border-top: 1px solid var(--rule); }
.an-grid td.an-c, .an-grid th.an-c { text-align: center; }
.an-plan { margin: 0; padding: 0; list-style: none; }
.an-plan li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 0.86rem; }
.an-plan li.an-struck { color: var(--faint); text-decoration: line-through; }
.an-plan .an-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.an-checks { margin: 0; padding: 0; list-style: none; }
.an-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; padding: 5px 0; font-size: 0.86rem; }
.an-checks .an-ok { color: var(--good-text); }
.an-checks .an-warn { color: var(--warn); }
.an-checks .an-error { color: var(--bad); font-weight: 700; }

/* The previews */
.an-preview-tabs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.an-frame { overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.an-frame.an-phone { max-width: 390px; margin: 0 auto; }
.an-email-frame { display: block; width: 100%; height: 640px; border: 0; background: #fbf8f3; }
.an-push { display: grid; grid-template-columns: 38px 1fr; gap: 10px; max-width: 380px; margin: 16px auto; padding: 12px 14px; border-radius: 16px; background: var(--panel); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.an-push img { border-radius: 8px; }
.an-push b { display: block; font-size: 0.9rem; }
.an-push span { color: var(--muted); font-size: 0.84rem; }
.an-status-preview { padding: 14px; background: var(--panel); }

/* An announcement's page (17.3) */
.an-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .an-detail { grid-template-columns: 1fr; } }
.an-hold { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--note-soft); font-weight: 700; }
.an-timeline { margin: 0; padding: 0; list-style: none; }
.an-timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 0.86rem; }
.an-timeline .an-who { color: var(--muted); }
.an-md p { margin: 0 0 8px; }
.an-md ul, .an-md ol { margin: 0 0 8px; padding-left: 20px; }
.an-callout { padding: 10px 12px; border-left: 4px solid var(--an-info-line); border-radius: 8px; background: var(--an-info-soft); }
.an-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: 0.9rem; }
.an-facts dt { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; padding-top: 2px; }
.an-facts dd { margin: 0; }

/* The confirmation of a send (C1) */
.an-modal-back { position: fixed; inset: 0; z-index: 1400; background: rgba(15, 12, 8, 0.45); }
.an-modal {
  position: fixed; top: 50%; left: 50%; z-index: 1401; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto;
  padding: 20px 22px; border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); transform: translate(-50%, -50%);
}
.an-modal h2 { margin: 0 0 10px; font-size: 1.15rem; }
.an-modal .an-big { font-size: 1.5rem; font-weight: 900; }
.an-modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.an-type { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.an-type input { max-width: 180px; font-size: 1.1rem; font-weight: 800; }

/* The center (/me/announcements) */
.an-center-list { display: flex; flex-direction: column; gap: 10px; }
.an-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; color: var(--text); text-decoration: none; }
.an-card:hover { border-color: var(--accent); }
.an-card.unread .an-card-title::after { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--an-red-line); content: ""; vertical-align: middle; }
.an-card-title { font-weight: 800; }
.an-prefs { display: flex; flex-direction: column; gap: 10px; }
.an-pref { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.an-login-strip { display: flex; align-items: center; gap: 10px; margin: 0 auto 12px; padding: 10px 14px; max-width: 640px; border-radius: 10px; background: var(--an-maint-soft); color: var(--an-maint); font-size: 0.88rem; font-weight: 600; }
.an-login-strip.an-tone-red { background: var(--an-red-soft); color: var(--an-red); }


/* ---- Shared small parts ---- */
.an-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.an-block { display: block; }
.an-start { align-self: flex-start; }
.an-grow { flex: 1; min-width: 0; }
.an-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; }
.an-select.an-small, .an-input.an-small { width: auto; padding: 4px 8px; font-size: 0.82rem; }
.an-label { margin: 12px 0 4px; color: var(--muted); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.4px; text-transform: uppercase; }
.an-page .status.warn { background: var(--warn-soft); color: var(--warn); }
.an-page .bad-text { color: var(--bad); }
.an-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 700px) { .an-two { grid-template-columns: 1fr; } }

/* ---- The bell's place: the panel under the button; on a phone, the user menu's line instead ---- */
.an-bell-wrap { position: relative; flex: 0 0 auto; }
.an-bell-back { position: fixed; inset: 0; z-index: 1300; }
.an-bell-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1301; width: min(400px, calc(100vw - 24px)); max-height: min(560px, 80vh);
  overflow: auto; padding: 4px 0; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22); }
.an-bell-pop:focus { outline: none; }
.an-bell-row .an-kind { width: 22px; height: 22px; border-radius: 6px; }
.an-bell-row .an-chip { margin-right: 6px; font-size: 0.64rem; }
.an-menu-item { display: none !important; }
@media (max-width: 600px) {
  .tools > .an-bell-wrap { display: none; }
  .an-menu-item { display: flex !important; }
}

/* ---- Add to calendar ---- */
.an-cal-menu { display: flex; flex-direction: column; min-width: 220px; padding: 4px 0; }
.an-cal-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--text); font-size: 0.88rem; text-decoration: none; }
.an-cal-item:hover, .an-cal-item:focus-visible { background: var(--accent-soft); outline: none; }

/* ---- The center and the person's page ---- */
.an-center-head { padding-left: 2px; }
.an-card-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.an-person { display: flex; flex-direction: column; gap: 12px; }
.an-person-title { margin: 6px 0 4px; font-size: 1.4rem; font-weight: 900; }
.an-lead { margin: 0; font-size: 1rem; }
.an-planned { color: var(--muted); }

/* ---- The refused panel when the back end is down, and the login page's strip ---- */
.an-maint-panel { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 680px; margin: 32px auto; padding: 32px 28px; text-align: center; }
.an-maint-panel h1 { margin: 4px 0; font-size: 1.5rem; font-weight: 900; }
.an-maint-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--an-maint-soft); color: var(--an-maint); }
.an-maint-icon .mud-icon-root { width: 34px; height: 34px; font-size: 34px; }
.an-maint-when { margin: 0; font-size: 1.05rem; font-weight: 800; }
.an-maint-title { margin: 6px 0 0; font-weight: 800; }
.an-maint-update { max-width: 560px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.an-maint-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.login-page:has(.an-login-strip) { flex-direction: column; }
.an-login-strip { width: min(640px, calc(100% - 24px)); }
.an-login-strip-text { flex: 1; min-width: 0; }
.an-login-strip a { white-space: nowrap; font-weight: 800; }

/* ---- The list ---- */
.an-list-tools { margin-bottom: 8px; }
.an-list-tools .az-field { margin: 0; }
.an-table .an-title-cell { text-decoration: none; }
.an-table .an-title-cell:hover { text-decoration: underline; }
.an-menu-head { padding: 8px 16px 2px; color: var(--muted); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; }
.an-menu-name { display: block; font-weight: 700; }
.an-menu-sub { display: block; max-width: 340px; color: var(--muted); font-size: 0.76rem; white-space: normal; }
.an-head-facts { gap: 6px 12px; margin: 6px 0 0; }

/* ---- The composer ---- */
.an-compose-head h1 { margin-top: 4px; }
.an-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.an-count-row { display: flex; justify-content: space-between; gap: 10px; }
.an-duration { align-self: flex-end; padding-bottom: 22px; color: var(--muted); }
.an-foot-actions { justify-content: flex-end; }
.an-audience { display: flex; flex-direction: column; gap: 10px; }
.an-who-parts { gap: 10px 18px; }
.an-who-more { color: var(--muted); }
.an-pick.on.an-except { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.an-except-people summary { cursor: pointer; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.an-except-people textarea { margin-top: 6px; min-height: 56px; }
.an-preview { display: flex; flex-direction: column; gap: 10px; }
.an-preview-phases { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.an-preview-note { margin: 8px 12px 12px; }
.an-preview-notice { padding: 8px 10px; }
.an-frame .an-banner { border-radius: 0; }
.an-dim { opacity: 0.55; }
.an-st-overall { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--an-green-soft); color: var(--an-green); }
.an-st-overall.an-tone-amber, .an-st-overall.an-tone-maint { background: var(--an-maint-soft); color: var(--an-maint); }
.an-st-overall.an-tone-red { background: var(--an-red-soft); color: var(--an-red); }
.an-st-card { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; }
.an-st-card p { margin: 6px 0 0; }
.an-st-components { margin: 0; padding: 0; list-style: none; }
.an-st-components li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-top: 1px solid var(--rule); font-size: 0.86rem; }

/* ---- Dialogs: the drawer of "See who", the email of the delivery log ---- */
.an-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1401; display: flex; flex-direction: column; gap: 10px; width: min(860px, 100vw);
  overflow: auto; padding: 18px 20px; background: var(--panel); color: var(--text); box-shadow: -18px 0 48px rgba(0, 0, 0, 0.3);
}
.an-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.an-drawer-head h2 { margin: 0; font-size: 1.1rem; }
.an-modal-wide { width: min(760px, calc(100vw - 24px)); }
.an-error-cell { max-width: 260px; overflow-wrap: anywhere; color: var(--muted); font-size: 0.78rem; }

/* ---- Settings and the degraded form ---- */
.an-pause.an-paused { border-left: 5px solid var(--an-red-line); }
.an-degraded { border-left: 5px solid var(--an-amber-line); display: flex; flex-direction: column; gap: 10px; }
.an-degraded h2 { display: flex; align-items: center; gap: 8px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .an-banner { animation: none; }
}
