.aac-wrap {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.aac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.aac-month-label {
  font-size: 1.25rem;
  font-weight: 600;
  color: #14315c;
}
.aac-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #14315c;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: background 0.2s ease;
}
.aac-nav:hover {
  background: #1e4a86;
  color: #fff;
}
.aac-weekdays,
.aac-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.aac-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  padding: 4px 0;
}
.aac-cell {
  position: relative;
}
.aac-day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f3f5f9;
  border: 1px solid #e3e7ee;
  font-size: 0.95rem;
  color: #374151;
  transition: background 0.15s ease, transform 0.15s ease;
}
.aac-day.is-future {
  opacity: 0.55;
}
.aac-day.is-today {
  border-color: #14315c;
  font-weight: 700;
}
.aac-day.has-pdf {
  background: #14315c;
  color: #fff;
  cursor: pointer;
}
.aac-day.has-pdf:hover {
  background: #1e4a86;
  transform: translateY(-1px);
}
.aac-pdf-dot {
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f2b632;
}
.aac-edit-icon {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.15s ease;
  cursor: pointer;
  padding: 2px;
}
.aac-day:hover .aac-edit-icon {
  opacity: 0.85;
}
.aac-hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.aac-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.72);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.aac-modal[hidden] {
  display: none;
}
.aac-modal-inner {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.aac-edit-inner {
  max-width: 420px;
}
.aac-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #374151;
}
.aac-modal-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-right: 2rem;
}
.aac-modal-frame {
  flex: 1;
  width: 100%;
  min-height: 60vh;
  border: 1px solid #e3e7ee;
  border-radius: 6px;
}
.aac-modal-download {
  margin-top: 0.75rem;
  align-self: flex-start;
  color: #14315c;
  font-weight: 600;
  text-decoration: none;
}
.aac-modal-download:hover {
  text-decoration: underline;
}
.aac-edit-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.aac-edit-actions {
  display: flex;
  gap: 0.5rem;
}
.aac-btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}
.aac-btn-save {
  background: #14315c;
  color: #fff;
}
.aac-btn-save:hover {
  background: #1e4a86;
}
.aac-btn-remove {
  background: #f3f4f6;
  color: #b91c1c;
}
.aac-btn-remove:hover {
  background: #fee2e2;
}
.aac-edit-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}
body.aac-modal-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .aac-day {
    font-size: 0.8rem;
  }
  .aac-modal {
    padding: 0.75rem;
  }
}
