/* 20261117am-local: 活动 tab announcement bar is one line; dialog still shows full body */
.guild-announcement-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
  background: #fff4e8;
  border-bottom: 1px solid #ead7c0;
  color: #5c3d28;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.guild-announcement-bar[hidden] { display: none !important; }
.guild-announcement-bar:not([hidden]) { cursor: pointer; }

.ga-announcement-switch {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  cursor: pointer;
}
.ga-announcement-switch input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #c45c4a;
}
#ga-announcement-body {
  width: 100%;
  min-height: 10rem;
  resize: vertical;
}

/* Reuse auth-dialog placement + mine-guild-confirm paper typography. */
.guild-announcement-dialog {
  border: none;
  padding: 0;
  background: transparent;
  box-sizing: border-box;
  position: fixed;
  top: calc(var(--vv-offset, 0px) + 0.75rem);
  left: calc(var(--vv-left, 0px) + (var(--vv-width, 100vw) - min(400px, calc(var(--vv-width, 100vw) - 2rem))) / 2);
  right: auto;
  margin: 0;
  width: min(400px, calc(var(--vv-width, 100vw) - 2rem));
  max-width: 400px;
  max-height: calc(var(--vv-height, 100dvh) - 1.5rem);
  overflow: visible;
}
.guild-announcement-dialog::backdrop { background: rgba(0, 0, 0, 0.35); }
.guild-announcement-dialog-panel {
  width: 100%;
  max-height: calc(var(--vv-height, 100dvh) - 1.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 1.1rem 1.05rem 1rem;
  border-radius: 16px;
  background: #fffaf6;
  border: 1px solid #f0e4d8;
  box-shadow: 0 16px 40px rgba(80, 40, 16, 0.18);
}
.guild-announcement-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
}
.guild-announcement-dialog-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: #4a3a2c;
}
.guild-announcement-dialog-close {
  flex: none;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #f3e6d8;
  color: #5c3d28;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.guild-announcement-dialog-body {
  margin: 0;
  color: #5c3d28;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
