.admin-announcements { margin: 12px 0 0; min-width: 0; border: 1px solid #665035; background: #171a15; box-shadow: 3px 3px 0 #080b08; }
.admin-announcements > summary { padding: 16px 18px; color: #f2c66d; font-size: 15px; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.admin-announcements > summary::marker { color: #bb8b4e; }
.admin-announcements > summary small { display: inline-block; margin-left: 16px; color: #9da88f; font-size: 11px; font-weight: 400; line-height: 1.7; }
.admin-announcements[open] > summary { border-bottom: 1px solid #54442f; background: #211f16; }
.announcements-panel { min-width: 0; padding: 24px; }
.announcements-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.announcements-eyebrow { color: #c68b47; font-family: PixelTitle, monospace; font-size: 7px; }
.announcements-heading h2 { margin: 9px 0 0; color: #e9e5d9; font-size: 18px; }
.announcements-heading button { flex-shrink: 0; max-width: 48%; }
.announcements-published { margin: 18px 0 0; padding: 11px 13px; border-left: 3px solid #6b6652; background: #20241b; color: #a3ac99; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.announcements-published--active { border-left-color: #c59850; color: #e7ce98; background: #29261a; }
.announcements-message { min-height: 20px; margin: 10px 0 14px; color: #a3cba6; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.announcements-message--error { color: #f0a28e; }
.announcements-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; }
.announcements-editor { min-width: 0; }
.announcements-fields { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 14px; }
.admin-announcements label { min-width: 0; margin: 0; color: #c4c6b7; font-size: 12px; }
.admin-announcements input, .admin-announcements textarea, .admin-announcements select { display: block; width: 100%; min-width: 0; min-height: 44px; margin: 8px 0 0; border: 1px solid #566044; border-radius: 2px; padding: 10px 11px; background: #111810; color: #f0ead9; font: inherit; font-size: 16px; line-height: 1.6; }
.admin-announcements select { height: 48px; padding-right: 6px; }
.admin-announcements input::placeholder, .admin-announcements textarea::placeholder { color: #7e8d76; }
.admin-announcements textarea { min-height: 310px; max-height: 620px; resize: vertical; overflow-y: auto; overflow-wrap: anywhere; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.admin-announcements .announcements-body-label { margin-top: 17px; }
.announcements-help { display: block; margin: 7px 0 0; color: #96a18c; font-size: 11px; line-height: 1.7; }
.announcements-edit-state { min-height: 18px; margin: 8px 0 0; color: #d1b574; font-size: 11px; line-height: 1.7; }
.announcements-preview-shell { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid #665337; background: #1c2017; }
.announcements-preview-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #4d4933; }
.announcements-preview-heading h3 { margin: 0; color: #e7ce98; font-size: 13px; }
.announcements-preview-heading > span { color: #92a081; font-size: 10px; }
.announcements-preview-scroll { min-width: 0; min-height: 200px; max-height: 510px; padding: 18px; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #74623d #171c14; }
.announcements-preview-scroll h4 { margin: 0 0 18px; color: #f2c66d; font-size: 19px; line-height: 1.6; overflow-wrap: anywhere; }
.announcements-preview-scroll h4:empty { display: none; }
.announcements-preview-empty { margin: 28px 0; color: #88977d; font-size: 13px; line-height: 1.9; }
.announcements-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 22px 0 0; padding-top: 19px; border-top: 1px solid #424833; }
.admin-announcements button { min-height: 44px; padding: 10px 14px; font: inherit; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.announcements-actions .primary { width: auto; margin: 0; background: #8a5f29; border-color: #c69b54; color: #fff1d3; }
.announcements-actions .primary:hover { background: #a47636; }
.announcements-actions .announcements-stop { margin-left: auto; border-color: #675345; color: #d7b9a1; background: #28211b; }
.admin-announcements button:disabled { cursor: not-allowed; }
.announcements-notes { margin-top: 17px; color: #a0a892; font-size: 11px; line-height: 1.9; }
.announcements-notes p { margin: 6px 0 0; }
.admin-announcements :is(button, summary, select, textarea, input, [tabindex]):focus-visible { outline: 2px solid #f2c66d; outline-offset: 3px; }
@media (max-width: 820px) {
  .announcements-panel { padding: 18px 14px; }
  .announcements-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .announcements-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .announcements-heading h2 { font-size: 16px; }
  .announcements-heading button { max-width: 100%; }
  .admin-announcements > summary { padding: 15px 14px; }
  .admin-announcements > summary small { display: block; margin: 7px 0 0; }
  .admin-announcements textarea { min-height: 250px; max-height: 440px; }
  .announcements-preview-scroll { max-height: 420px; padding: 15px; }
  .announcements-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .announcements-actions button, .announcements-actions .announcements-stop { width: 100%; margin: 0; }
}
@media (max-width: 420px) {
  .announcements-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .announcements-preview-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
}
