/* Agenda tools: save / calendar / rate buttons, My-agenda view, rating pop-up, toast. */
.ag-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ag-act {
    display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 11px; border-radius: 999px;
    font: inherit; font-size: .74rem; font-weight: 700; color: #1f5670; cursor: pointer;
    background: rgba(255,255,255,.72); border: 1px solid rgba(11,74,104,.16);
    transition: background .2s, color .2s, border-color .2s;
}
.ag-act svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ag-act:hover { background: #fff; }
.ag-save[aria-pressed="true"] { color: #7a5413; background: linear-gradient(120deg, #fff2cc, #ecd28f); border-color: #cfa850; }
.ag-save[aria-pressed="true"] svg { fill: #c9962f; stroke: #a87a1d; }
.ag-rate { color: #0b6f8f; }
.ag-rate.is-rated { color: #8a5d12; border-color: #d8b766; }
.ag-rate.is-rated svg { display: none; }
.ag-item.is-saved { border-inline-start: 4px solid #c9962f !important; }

.ag-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -10px 0 18px; }
.ag-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(11,74,104,.14); }
.ag-seg button, .ag-tool {
    min-height: 34px; padding: 6px 13px; border-radius: 999px; border: 0; cursor: pointer;
    font: inherit; font-size: .76rem; font-weight: 700; color: #24566d; background: transparent;
}
.ag-seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(120deg, #0b7aa0, #12577a); box-shadow: 0 4px 12px rgba(11,90,130,.25); }
.ag-seg b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: 3px; border-radius: 10px; font-size: .68rem; background: rgba(201,150,47,.9); color: #fff; }
.ag-tool { background: rgba(255,255,255,.6); border: 1px solid rgba(11,74,104,.14); }
.ag-tool[aria-pressed="true"] { color: #7a5413; background: #fff2cc; border-color: #d8b766; }
.ag-empty-mine { text-align: center; color: #4a6584; font-size: .86rem; padding: 18px 10px; }

body.ag-mine-view .ag-item:not(.is-saved),
body.ag-mine-view .ag-group,
body.ag-mine-view .ag-session { display: none !important; }

/* Workshops page: buttons sit centred under the details. */
.workshop-story .ag-actions { justify-content: center; margin-top: 16px; }

/* Pop-ups */
.ag-pop .glass-card h3 { padding-inline: 30px; }
.ag-pop-sub { margin: -6px 0 14px; text-align: center; font-size: .86rem; color: var(--muted); line-height: 1.6; }
.ag-pop .glass-row { justify-content: center; font-weight: 700; }
.ag-stars { display: flex; justify-content: center; gap: 6px; margin: 6px 0 14px; direction: ltr; }
.ag-stars button {
    width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(11,42,74,.12); cursor: pointer;
    font-size: 1.6rem; line-height: 1; color: #c9ced6; background: rgba(255,255,255,.75); transition: transform .15s, color .15s;
}
.ag-stars button.on { color: #d9a12f; border-color: #e4c27a; background: #fff8e6; }
.ag-stars button:active { transform: scale(.92); }
.ag-pop textarea {
    width: 100%; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; resize: vertical;
    font: inherit; font-size: .9rem; color: var(--text); background: rgba(255,255,255,.85); border: 1px solid rgba(11,42,74,.16);
}

.ag-toast {
    position: fixed; inset-inline: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 260; max-width: 460px; margin: 0 auto;
    padding: 12px 16px; border-radius: 16px; text-align: center; font-size: .86rem; line-height: 1.6; color: #fff;
    background: rgba(11,42,74,.92); box-shadow: 0 14px 34px rgba(11,42,74,.3);
    opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.ag-toast.show { opacity: 1; transform: none; }
@media (min-width: 821px) { .ag-toast { bottom: 28px; } }
body.agenda-page .ag-item .ag-actions { justify-content: center; }
body.agenda-page .ag-tools .ag-tool { font-size: .72rem; padding: 6px 11px; }
