/* Pengumuman floating (meluncur dari atas) */
.ann-layer { position: fixed; left: 0; right: 0; z-index: 9400; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .25s ease; }
.ann-layer.pos-top { top: calc(env(safe-area-inset-top, 0px) + 10px); transform: translateY(-140%); opacity: 0; }
.ann-layer.pos-bottom { bottom: calc(env(safe-area-inset-bottom, 0px) + 96px); transform: translateY(140%); opacity: 0; }
.ann-layer.show { transform: none; opacity: 1; }
.ann-layer .ann-card { pointer-events: auto; }
.ann-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; width: min(560px, 100%); box-sizing: border-box; padding: 14px 14px 14px 12px; border-radius: 20px; background: var(--ann-bg, #e8f6ff); color: var(--ann-fg, #12394f); border: 2px solid var(--ann-ac, #1cb0f6); border-bottom-width: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.ann-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--ann-ac, #1cb0f6); font-size: 22px; }
.ann-copy { min-width: 0; display: grid; gap: 4px; }
.ann-copy b { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.ann-copy p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; opacity: .92; overflow-wrap: anywhere; white-space: pre-wrap; }
.ann-btn { justify-self: start; margin-top: 4px; padding: 8px 14px; border-radius: 12px; background: var(--ann-ac, #1cb0f6); color: #fff !important; font-size: 13px; font-weight: 900; text-decoration: none; border-bottom: 3px solid rgba(0,0,0,.2); }
.ann-x { width: 34px; height: 34px; min-height: 0 !important; padding: 0 !important; border-radius: 10px !important; border: 0 !important; background: rgba(0,0,0,.08) !important; color: inherit !important; box-shadow: none !important; font-size: 14px; }
.ann-compact { padding: 9px 10px; gap: 9px; border-radius: 16px; } .ann-compact .ann-ico { width: 32px; height: 32px; font-size: 17px; border-radius: 10px; } .ann-compact .ann-copy p { font-size: 12.5px; }
.ann-card.urgent { animation: annPulse 1.6s ease 2; }
@keyframes annPulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ann-ac) 28%, transparent), 0 10px 30px rgba(0,0,0,.18); } }
@media (prefers-reduced-motion: reduce) { .ann-layer { transition: opacity .2s; } .ann-card.urgent { animation: none; } }
/* editor admin */
.ann-form { display: grid; gap: 10px; padding: 12px; border: 2px solid var(--line, #e5e7eb); border-radius: 18px; margin: 10px 0; }
.ann-form h4 { margin: 0; }
.ann-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 900; }
.ann-form input[type=text], .ann-form input[type=datetime-local], .ann-form textarea, .ann-form select { width: 100%; box-sizing: border-box; border: 2px solid var(--line, #e5e7eb); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: 14px; background: var(--card, #fff); color: inherit; min-height: 42px; }
.ann-preview { padding: 12px; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 10px, transparent 10px 20px); }
.ann-preview .ann-card { margin: 0 auto; }
.ann-row { display: grid; gap: 6px; font-size: 12.5px; font-weight: 900; }
.ann-icon-in { max-width: 80px; text-align: center; font-size: 20px !important; }
.ann-icons, .ann-themes { display: flex; flex-wrap: wrap; gap: 6px; }
.ann-icons button { width: 40px; min-height: 40px !important; padding: 0 !important; border-radius: 12px !important; font-size: 18px; }
.ann-themes button { width: 44px; height: 44px; min-height: 0 !important; padding: 0 !important; border-radius: 14px !important; border: 3px solid transparent; display: grid; place-items: center; position: relative; }
.ann-themes button i { position: absolute; right: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; }
.ann-themes button.on { outline: 3px solid #1cb0f6; outline-offset: 2px; }
.ann-custom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .ann-custom input[type=color] { width: 100%; height: 42px; padding: 2px; border-radius: 10px; border: 2px solid var(--line, #e5e7eb); background: var(--card, #fff); }
.ann-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .ann-grid { grid-template-columns: 1fr 1fr; } }
.ann-check { display: flex !important; align-items: center; gap: 8px !important; grid-template-columns: none; min-height: 42px; } .ann-check input { width: 20px; height: 20px; }
.ann-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ann-list { display: grid; gap: 8px; margin-top: 10px; }
.ann-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px; border: 2px solid var(--line, #e5e7eb); border-radius: 16px; }
.ann-item-ico { font-size: 24px; text-align: center; } .ann-item-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ann-item-who small { font-weight: 700; opacity: .8; }
.ann-item-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; } .ann-item-act button { min-height: 36px !important; padding: 0 12px !important; font-size: 12.5px !important; }
.ann-chip { font-style: normal; font-weight: 900; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: rgba(0,0,0,.08); }
.ann-chip.ok { background: rgba(88,204,2,.2); color: #3d8c00; } .ann-chip.wait { background: rgba(255,150,0,.2); color: #b86a00; } .ann-chip.off { background: rgba(255,75,75,.15); color: #c43232; }
.ann-bad { color: #ff4b4b !important; }
