/* Announcements (feos:announcements-ui; docs/modules/announcements.md): the banner, the megaphone, the side tab and
   the survey window. Colours from the FEOS look (feos.css tokens): ink #0f1b26, accent #0a72ba, amber #e4a133. */

@keyframes feosAnnPulse {
    0% { box-shadow: 0 0 0 0 rgba(228, 161, 51, .75); }
    70% { box-shadow: 0 0 0 9px rgba(228, 161, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(228, 161, 51, 0); }
}
.feos-ann-pulse { animation: feosAnnPulse 1.6s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .feos-ann-pulse, .feos-ann-dot { animation: none !important; } }

/* the top bar */
.feos-ann-li { position: relative; }
.feos-ann-toggle { position: relative; cursor: pointer; }
.feos-ann-toggle.feos-ann-waiting { color: #e4a133 !important; }
.feos-ann-dot { position: absolute; top: 6px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: #e4a133; color: #0f1b26; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
    animation: feosAnnPulse 1.6s ease-out infinite; }
.feos-ann-menu { position: absolute; right: 0; top: 100%; z-index: 1060; width: 380px; max-width: calc(100vw - 24px);
    background: #fff; color: #0f1b26; border: 1px solid #e1e7ee; border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 27, 38, .18);
    overflow: hidden; text-align: left; }
.feos-ann-menu-head { padding: 12px 16px; font-weight: 600; border-bottom: 1px solid #eef1f4; }
.feos-ann-menu-item { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid #eef1f4; }
.feos-ann-menu-item.feos-ann-open { background: #fdf0e4; }
.feos-ann-menu-dot { flex: none; width: 10px; height: 10px; border-radius: 5px; margin-top: 6px; background: #c9d3dd; }
.feos-ann-open .feos-ann-menu-dot { background: #e4a133; }
.feos-ann-menu-title { font-weight: 600; }
.feos-ann-menu-state { font-size: 12px; color: #3d4a57; margin-top: 2px; }
.feos-ann-menu-actions { margin-top: 8px; }

/* the banner */
#feos-ann-banner:empty { display: none; }
#feos-ann-banner { padding: 12px 15px 0; }
.feos-ann { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid #e7b88f; border-top: 4px solid #e4a133;
    border-radius: 8px; overflow: hidden; }
.feos-ann-pic { position: relative; flex: 1 1 320px; max-width: 100%; min-height: 200px; padding: 0; border: 0;
    background: #0f1b26; cursor: zoom-in; overflow: hidden; }
.feos-ann-pic img { display: block; width: 100%; height: 100%; max-height: 260px; object-fit: cover; object-position: left top; }
.feos-ann-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(15, 27, 38, .85); color: #fff; font-size: 12px;
    font-weight: 600; padding: 5px 10px; border-radius: 12px; }
.feos-ann-body { flex: 999 1 460px; min-width: 0; padding: 18px 24px 20px; display: flex; flex-direction: column; gap: 10px; }
.feos-ann-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: #5b6875; }
.feos-ann-chip { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #e4a133;
    color: #0f1b26; padding: 3px 10px; border-radius: 10px; }
.feos-ann-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; color: #0f1b26; }
.feos-ann-text { font-size: 15px; line-height: 1.55; color: #3d4a57; max-width: 780px; }
.feos-ann-text p { margin: 0 0 6px; }
.feos-ann-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.feos-ann-actions .btn { min-height: 40px; }
.feos-ann-notfor { color: #5b6875; padding: 8px 6px; cursor: pointer; }

/* the tab on the side */
.feos-ann-tab { position: fixed; right: 0; top: 40%; z-index: 1040; writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 14px; font-weight: 700; color: #0f1b26; background: #e4a133; border: 0; border-radius: 0 10px 10px 0;
    padding: 16px 9px; cursor: pointer; }

/* the survey window and the picture */
.feos-ann-overlay { position: fixed; inset: 0; z-index: 1070; background: rgba(15, 27, 38, .6); display: flex;
    align-items: flex-start; justify-content: center; padding: 32px 12px; overflow-y: auto; }
.feos-ann-lightbox { align-items: center; }
.feos-ann-lightbox figure { position: relative; margin: 0; max-width: min(1440px, 96vw); background: #fff; border-radius: 10px;
    overflow: hidden; }
.feos-ann-lightbox img { display: block; width: 100%; height: auto; }
.feos-ann-lightbox figcaption { padding: 10px 14px; font-size: 13px; color: #3d4a57; }
.feos-ann-close { position: absolute; top: 10px; right: 10px; }
.feos-ann-dialog { width: 100%; max-width: 940px; background: #fff; color: #0f1b26; border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35); display: flex; flex-direction: column; outline: none; }
.feos-ann-dhead { padding: 16px 24px 12px; border-bottom: 1px solid #e1e7ee; display: flex; flex-direction: column; gap: 8px; }
.feos-ann-dtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.feos-ann-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a14a08; }
.feos-ann-later { color: #5b6875; }
.feos-ann-progress { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #5b6875; }
.feos-ann-progress > div { flex: 1; height: 6px; background: #eef1f4; border-radius: 3px; }
.feos-ann-progress > div > div { height: 6px; background: #0a72ba; border-radius: 3px; }
.feos-ann-dbody { padding: 22px 24px; display: flex; flex-direction: column; gap: 22px; }
.feos-ann-dtitle { margin: 0; font-size: 22px; font-weight: 700; }
.feos-ann-help { margin: 0; font-size: 14px; color: #5b6875; }
.feos-ann-dfoot { padding: 14px 24px; border-top: 1px solid #e1e7ee; background: #f8fafc; display: flex; flex-wrap: wrap; gap: 12px;
    justify-content: space-between; align-items: center; font-size: 13px; color: #5b6875; border-radius: 0 0 12px 12px; }
.feos-ann-dfoot .btn { min-height: 42px; margin-left: 6px; }
.feos-ann-field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feos-ann-q { font-size: 17px; font-weight: 700; margin: 0 0 2px; border: 0; padding: 0; color: #0f1b26; }
.feos-ann-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.feos-ann-option, .feos-ann-chipopt, .feos-ann-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #c9d3dd;
    border-radius: 8px; padding: 12px; font-size: 14px; font-weight: 400; cursor: pointer; margin: 0; line-height: 1.4; }
.feos-ann-option input, .feos-ann-chipopt input, .feos-ann-card input { margin: 2px 0 0; flex: none; width: 17px; height: 17px; }
.feos-ann-on { border: 2px solid #0a72ba; background: #e8f3fb; padding: 11px; }
.feos-ann-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.feos-ann-chipopt { border-radius: 20px; padding: 9px 14px; }
.feos-ann-chipopt.feos-ann-on { padding: 8px 13px; }
.feos-ann-count { margin: 0; font-size: 14px; font-weight: 600; color: #075a93; }
.feos-ann-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.feos-ann-card { flex-direction: column; gap: 6px; min-height: 90px; }
.feos-ann-card-top { display: flex; gap: 8px; align-items: flex-start; }
.feos-ann-card-desc { font-size: 13px; color: #3d4a57; }
.feos-ann-note { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.feos-ann-note input, .feos-ann-note textarea, .feos-ann-field > textarea, .feos-ann-money input { font-weight: 400;
    font-size: 14px; padding: 9px 11px; border: 1px solid #c9d3dd; border-radius: 6px; }
.feos-ann-money { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.feos-ann-money input { width: 140px; }
.feos-ann-tasks { border: 1px solid #e1e7ee; border-radius: 10px; overflow: hidden; }
.feos-ann-task { display: grid; grid-template-columns: minmax(0, 2fr) auto minmax(0, 1.6fr); gap: 14px; align-items: center;
    padding: 11px 14px; border-top: 1px solid #eef1f4; }
.feos-ann-task:first-child { border-top: 0; }
.feos-ann-task-name { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.feos-ann-hint { font-size: 12px; color: #a14a08; }
.feos-ann-points { display: flex; align-items: center; gap: 6px; }
.feos-ann-points span { width: 22px; text-align: center; font-size: 16px; font-weight: 700; }
.feos-ann-points .btn { width: 36px; height: 36px; padding: 0; }
.feos-ann-seg { display: flex; }
.feos-ann-seg .btn { flex: 1; font-size: 13px; min-height: 36px; }
@media (max-width: 640px) { .feos-ann-task { grid-template-columns: 1fr; } }
.feos-ann-year { background: #e8f3fb; border: 1px solid #cfe3f3; border-radius: 10px; padding: 16px; display: flex;
    flex-direction: column; gap: 14px; }
.feos-ann-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.feos-ann-tile { background: #fff; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.feos-ann-tile-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #3d4a57; }
.feos-ann-tile-big { font-size: 26px; font-weight: 700; }
.feos-ann-tile-sub { font-size: 12px; color: #5b6875; }
.feos-ann-year-row { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.feos-ann-year-chart, .feos-ann-year-facts { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.feos-ann-bars { display: flex; align-items: flex-end; gap: 5px; height: 76px; }
.feos-ann-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; }
.feos-ann-bar div { width: 100%; background: #0a72ba; border-radius: 3px 3px 0 0; }
.feos-ann-bar span { font-size: 11px; color: #3d4a57; }
.feos-ann-looks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feos-ann-looks b { margin-right: 6px; }
.feos-ann-thanks { align-items: center; text-align: center; padding: 48px 24px; }
.feos-ann-thanks .fa-circle-check { font-size: 44px; color: #1f7a4d; }
